Name: znapzend Version: 0.20.0 Release: 1%{?dist} Summary: zfs backup with remote capabilities and mbuffer integration License: GPLv3+ URL: http://www.znapzend.org Source: https://github.com/oetiker/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz %if 0%{?rhel} <= 7 BuildRequires: perl-core %endif %description ZnapZend is a ZFS centric backup tool. It relies on snapshot, send and receive to do its work. It has the built-in ability to manage both local snapshots as well as remote copies by thinning them out as time progresses. %prep %setup %build ./configure --prefix=/opt/znapzend make %install make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install mkdir -p $RPM_BUILD_ROOT/%{_bindir} for prog in $(ls $RPM_BUILD_ROOT/opt/znapzend/bin); do ln -s /opt/znapzend/bin/$prog $RPM_BUILD_ROOT/%{_bindir}/$prog done # Init script. %if 0%{?rhel} <= 6 # Still on SysV mkdir -p $RPM_BUILD_ROOT/%{_initddir} $RPM_BUILD_ROOT/%{_initddir}/znapzend chmod +x $RPM_BUILD_ROOT/%{_initddir}/znapzend %else # Now with SystemD mkdir -p $RPM_BUILD_ROOT/%{_unitdir} $RPM_BUILD_ROOT/%{_unitdir}/znapzend.service %endif %files /opt/znapzend %doc README.md LICENSE COPYRIGHT CHANGES %{_bindir}/* %{_mandir}/*/* %if 0%{?rhel} <= 6 %{_initddir}/* %else %{_unitdir}/* %endif