sanoid/sanoid.spec

69 lines
2.0 KiB
Plaintext
Raw Normal View History

%global version 1.4.13
%global git_tag v%{version}
2016-03-08 16:46:36 +01:00
Name: sanoid
Version: %{version}
2016-03-08 16:46:36 +01:00
Release: 1%{?dist}
BuildArch: noarch
Summary: A policy-driven snapshot management tool for ZFS file systems
2016-03-08 16:46:36 +01:00
Group: Applications/System
License: GPLv3
URL: https://github.com/jimsalterjrs/sanoid
Source0: https://github.com/jimsalterjrs/%{name}/archive/%{git_tag}/%{name}-%{version}.tar.gz
2016-03-08 16:46:36 +01:00
#BuildRequires:
Requires: perl, mbuffer, lzop, pv
2016-03-08 16:46:36 +01:00
%description
Sanoid is a policy-driven snapshot management
tool for ZFS file systems. You can use Sanoid
2016-03-08 16:46:36 +01:00
to create, automatically thin, and monitor snapshots
and pool health from a single eminently
human-readable TOML configuration file.
2016-03-08 16:46:36 +01:00
%prep
%setup -q
2016-03-08 16:46:36 +01:00
%build
%install
%{__install} -D -m 0644 sanoid.defaults.conf %{buildroot}/etc/sanoid/sanoid.defaults.conf
%{__install} -d %{buildroot}%{_sbindir}
%{__install} -m 0755 sanoid syncoid findoid sleepymutex %{buildroot}%{_sbindir}
%if 0%{?fedora}
%{__install} -D -m 0644 sanoid.conf %{buildroot}%{_docdir}/%{name}/examples/sanoid.conf
echo "* * * * * root %{_sbindir}/sanoid --cron" > %{buildroot}%{_docdir}/%{name}/examples/sanoid.cron
%endif
%if 0%{?rhel}
2016-03-08 16:46:36 +01:00
%{__install} -D -m 0644 sanoid.conf %{buildroot}%{_docdir}/%{name}-%{version}/examples/sanoid.conf
echo "* * * * * root %{_sbindir}/sanoid --cron" > %{buildroot}%{_docdir}/%{name}-%{version}/examples/sanoid.cron
%endif
2016-03-08 16:46:36 +01:00
%files
%doc CHANGELIST VERSION README.md FREEBSD.readme
%license LICENSE
2016-03-08 16:46:36 +01:00
%{_sbindir}/sanoid
%{_sbindir}/syncoid
%{_sbindir}/findoid
%{_sbindir}/sleepymutex
%dir %{_sysconfdir}/%{name}
%config %{_sysconfdir}/%{name}/sanoid.defaults.conf
%if 0%{?fedora}
%{_docdir}/%{name}
%endif
%if 0%{?rhel}
%{_docdir}/%{name}-%{version}
%endif
2016-03-08 16:46:36 +01:00
%changelog
* Wed Jul 12 2017 Thomas M. Lapp <tmlapp@gmail.com> - 1.4.13-1
- Version bump
- Include FREEBSD.readme in docs
* Wed Jul 12 2017 Thomas M. Lapp <tmlapp@gmail.com> - 1.4.9-1
- Version bump
- Clean up variables and macros
- Compatible with both Fedora and Red Hat
2016-03-08 16:48:40 +01:00
* Sat Feb 13 2016 Thomas M. Lapp <tmlapp@gmail.com> - 1.4.4-1
2016-03-08 16:46:36 +01:00
- Initial RPM Package