Skip to content

Commit

Permalink
feat: add uupd (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz authored Dec 25, 2024
1 parent 24e8ae1 commit fefa8ae
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions staging/uupd/uupd.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
Name: uupd
# renovate: datasource=github-releases depName=ublue-os/uupd
Version: 0.5
Release: 0%{?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}.timer %{buildroot}%{_unitdir}/%{name}.timer
install -Dpm 644 %{name}.rules %{buildroot}%{_sysconfdir}/polkit-1/rules.d/%{name}.rules

%check
go test -v ./...

%post
%systemd_post %{name}.timer

%preun
%systemd_preun %{name}.timer

%files
%{_bindir}/%{name}
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.timer
%config(noreplace) %{_sysconfdir}/polkit-1/rules.d/%{name}.rules

%changelog
%autochangelog

0 comments on commit fefa8ae

Please sign in to comment.