Skip to content

Commit

Permalink
fix: cleanup sanoid.spec to build on COPR (#19)
Browse files Browse the repository at this point in the history
- switch from version to release for ucore identification (build error)
- added `sandoid-prune.service` to installed file list (build error)
- corrected typo in changelog date (build warning)
- switch timer to `0/15` to match upstream debian packaging and docs
  • Loading branch information
bsherman committed Mar 23, 2024
1 parent b09041a commit 5da8f19
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ucore/sanoid.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
%global _with_systemd 1

Name: sanoid
Version: %{version}.ucore1
Release: 1%{?dist}
Version: %{version}
Release: 1%{?dist}.ucore
BuildArch: noarch
Summary: A policy-driven snapshot management tool for ZFS file systems
Group: Applications/System
Expand Down Expand Up @@ -87,7 +87,7 @@ cat > %{buildroot}%{_unitdir}/%{name}.timer <<EOF
Description=Run Sanoid Every Minute

[Timer]
OnCalendar=*:0/1
OnCalendar=*:0/15
Persistent=true

[Install]
Expand Down Expand Up @@ -126,11 +126,12 @@ echo "* * * * * root %{_sbindir}/sanoid --cron" > %{buildroot}%{_docdir}/%{name}
%endif
%if 0%{?_with_systemd}
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}-prune.service
%{_unitdir}/%{name}.timer
%endif

%changelog
* Mon Mar 19 2024 John McGee <[email protected]> - 2.2.0.ucore1
* Tue Mar 19 2024 John McGee <[email protected]> - 2.2.0.ucore
- Remove perl requirement to remove build tools
- Add perl-interpreter and perl-Sys-Hostname requirements
- Correct systemd units to incluide sanoid-prune
Expand Down

0 comments on commit 5da8f19

Please sign in to comment.