mirror of https://github.com/jimsalterjrs/sanoid
Update summary, description, source, dependencies and general cleanup. Made compatible with Fedora and RHEL/CentOS
This commit is contained in:
parent
97eb91fde8
commit
21e3eea1dd
45
sanoid.spec
45
sanoid.spec
|
|
@ -1,26 +1,27 @@
|
||||||
|
%global version 1.4.13
|
||||||
|
%global git_tag v%{version}
|
||||||
|
|
||||||
Name: sanoid
|
Name: sanoid
|
||||||
Version: 1.4.4
|
Version: %{version}
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Summary: A policy-driven snapshot management tool for ZFS filesystems
|
Summary: A policy-driven snapshot management tool for ZFS file systems
|
||||||
|
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: https://github.com/jimsalterjrs/sanoid
|
URL: https://github.com/jimsalterjrs/sanoid
|
||||||
Source0: https://github.com/jimsalterjrs/sanoid/archive/sanoid-master.zip
|
Source0: https://github.com/jimsalterjrs/%{name}/archive/%{git_tag}/%{name}-%{version}.tar.gz
|
||||||
#BuildRequires:
|
#BuildRequires:
|
||||||
Requires: perl
|
Requires: perl, mbuffer, lzop, pv
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Sanoid is a policy-driven snapshot management
|
Sanoid is a policy-driven snapshot management
|
||||||
tool for ZFS filesystems. You can use Sanoid
|
tool for ZFS file systems. You can use Sanoid
|
||||||
to create, automatically thin, and monitor snapshots
|
to create, automatically thin, and monitor snapshots
|
||||||
and pool health from a single eminently
|
and pool health from a single eminently
|
||||||
human-readable TOML config file.
|
human-readable TOML configuration file.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n sanoid-master
|
%setup -q
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
|
@ -28,20 +29,40 @@ human-readable TOML config file.
|
||||||
%{__install} -D -m 0644 sanoid.defaults.conf %{buildroot}/etc/sanoid/sanoid.defaults.conf
|
%{__install} -D -m 0644 sanoid.defaults.conf %{buildroot}/etc/sanoid/sanoid.defaults.conf
|
||||||
%{__install} -d %{buildroot}%{_sbindir}
|
%{__install} -d %{buildroot}%{_sbindir}
|
||||||
%{__install} -m 0755 sanoid syncoid findoid sleepymutex %{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}
|
||||||
%{__install} -D -m 0644 sanoid.conf %{buildroot}%{_docdir}/%{name}-%{version}/examples/sanoid.conf
|
%{__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
|
echo "* * * * * root %{_sbindir}/sanoid --cron" > %{buildroot}%{_docdir}/%{name}-%{version}/examples/sanoid.cron
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc CHANGELIST LICENSE VERSION README.md
|
%doc CHANGELIST VERSION README.md FREEBSD.readme
|
||||||
|
%license LICENSE
|
||||||
%{_sbindir}/sanoid
|
%{_sbindir}/sanoid
|
||||||
%{_sbindir}/syncoid
|
%{_sbindir}/syncoid
|
||||||
%{_sbindir}/findoid
|
%{_sbindir}/findoid
|
||||||
%{_sbindir}/sleepymutex
|
%{_sbindir}/sleepymutex
|
||||||
%dir %{_sysconfdir}/%{name}
|
%dir %{_sysconfdir}/%{name}
|
||||||
%config %{_sysconfdir}/%{name}/sanoid.defaults.conf
|
%config %{_sysconfdir}/%{name}/sanoid.defaults.conf
|
||||||
|
%if 0%{?fedora}
|
||||||
|
%{_docdir}/%{name}
|
||||||
|
%endif
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%{_docdir}/%{name}-%{version}
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
||||||
|
|
||||||
* Sat Feb 13 2016 Thomas M. Lapp <tmlapp@gmail.com> - 1.4.4-1
|
* Sat Feb 13 2016 Thomas M. Lapp <tmlapp@gmail.com> - 1.4.4-1
|
||||||
- Initial RPM Package
|
- Initial RPM Package
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue