mirror of
https://github.com/ublue-os/packages.git
synced 2026-11-03 21:49:48 -09:00
55 lines
1.4 KiB
RPMSpec
55 lines
1.4 KiB
RPMSpec
Name: uupd
|
|
Version: 1.5.7
|
|
Release: 1%{?dist}
|
|
Summary: Centralized update service/checker made for Universal Blue
|
|
Vendor: ublue-os
|
|
URL: https://github.com/%{vendor}/%{name}
|
|
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
|
|
License: Apache-2.0
|
|
|
|
BuildRequires: golang
|
|
BuildRequires: systemd-rpm-macros
|
|
Recommends: bootc
|
|
Recommends: distrobox
|
|
Recommends: flatpak
|
|
Requires: libnotify
|
|
Requires: systemd
|
|
Provides: %{name} = %{version}
|
|
|
|
%description
|
|
A simple updater for Universal Blue systems
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
%build
|
|
go build -v -o %{name}
|
|
|
|
%install
|
|
install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
install -Dpm 644 %{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
|
install -Dpm 644 %{name}-manual.service %{buildroot}%{_unitdir}/%{name}-manual.service
|
|
install -Dpm 644 %{name}.timer %{buildroot}%{_unitdir}/%{name}.timer
|
|
install -Dpm 644 %{name}.rules %{buildroot}%{_datadir}/polkit-1/rules.d/%{name}.rules
|
|
install -Dpm 644 config.json %{buildroot}/%{_sysconfdir}/%{name}/config.json
|
|
|
|
%check
|
|
go test -v ./...
|
|
|
|
%post
|
|
%systemd_post %{name}.timer
|
|
|
|
%preun
|
|
%systemd_preun %{name}.timer
|
|
|
|
%files
|
|
%{_bindir}/%{name}
|
|
%{_unitdir}/%{name}.service
|
|
%{_unitdir}/%{name}.timer
|
|
%{_unitdir}/%{name}-manual.service
|
|
%{_datadir}/polkit-1/rules.d/%{name}.rules
|
|
%config(noreplace) %{_sysconfdir}/%{name}/config.json
|
|
%changelog
|
|
%autochangelog
|