# emulate mock bubblewrap dependency; delete with proper source %if %{?rhel:0}%{!?rhel:1} %global rhel %(rpm -qf --qf "%{version}" /etc/issue) %endif %if %{?dist:0}%{!?dist:1} %global dist el%{?rhel}%{!?rhel:0} %endif # Actually, don't strip at all since we are not even building debug packages %define __strip /bin/true %global debug_package %{nil} %global swcls zfsonlinux %global swapp zfs-auto-snapshot %global weird upstream Summary: ZFS Automatic Snapshot Service for Linux/BSD/Darwin Name: %{swapp} Version: 1.2.4 Release: 2 Epoch: 0 Source0: https://github.com/%{swcls}/%{swapp}/archive/%{weird}/%{version}.tar.gz License: GPL2; OpenZFS Group: System Environment/Utilities URL: https://openzfs.github.io/ #global buildroot %{_buildrootdir}/%{name}-%{version}-%{release} #BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{__make} Requires: zfs /sbin/service rsyslog BuildArch: noarch %define aptnoarch yes %define aptnodist yes %define noadddist yes %description %{Summary} %prep %setup -qn %{swapp}-%{weird}-%{version} %build %install %{make_install} PREFIX=%{_prefix} %clean [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT %post /sbin/service rsyslog restart # ^^ cancer prevention %preun if [ $1 = 0 ]; then : fi : # protect the db %files %defattr(-,root,root,-) %doc COPYING README %config %{_sysconfdir}/cron.*/* %attr(755,-,-) %{_sbindir}/%{swapp} %{_mandir}/man8/%{swapp}.8*