Summary: Checksum and verify archives of directory trees. Name: babarchive Version: 1.8 Release: 1%{?dist} License: GPLv2 Group: Development/Tools URL: https://ant.isi.edu/software/babarchive/ Source0: https://ant.isi.edu/software/babarchive/babarchive-%{version}.tar.gz BuildArch: noarch BuildRequires: perl-interpreter BuildRequires: pandoc # these are for testing in build BuildRequires: perl-Digest-SHA BuildRequires: coreutils BuildRequires: findutils BuildRequires: sed BuildRequires: diffutils BuildRequires: make # systemd assumes Fedora 21 or later BuildRequires: systemd Requires: perl-interpreter Requires: bash %if 0%{?fedora} >= 36 || 0%{?rehl} >= 10 Requires: plocate %else Requires: mlocate %endif # tac, date, sha1sum, tr Requires: coreutils # xargs, find Requires: findutils # sed, needed in babarchive_update_file Requires: sed # cmp, needed in babarchive_update_file Requires: diffutils # shasum Requires: perl-Digest-SHA # sendmail or equivalent for outgoing mail Requires: /usr/lib/sendmail %description Babarchive is a set of tools to manage checksumming directory trees ("archives") for long-term storage. Run babarchive_prep_one on the root of each directory tree to build its checksum in a .shasum.fsdb in the root (as well as .shasum files in each subdirectory). We assume locate will these .shasum.fsdb files. Run babarchive_check_all repeatedly to check several archives (all archives when run enough times). %prep %setup -q -n babarchive-%{version} %build %install make install DESTDIR=$RPM_BUILD_ROOT make install_systemd UNITDIR=$RPM_BUILD_ROOT%{_unitdir} # fix up g+s getting set on directories, and executables being 0555 # (*I* think those are ok, but not rpmlint.) find $RPM_BUILD_ROOT -type d -exec chmod g-s {} ';' # find $RPM_BUILD_ROOT -executable -exec chmod 0755 {} ';' %{_fixperms} %{buildroot}/* %check # yes, we have a simple test suite make test %files %doc README COPYING CHANGES.md %{_bindir}/* %{_mandir}/man1/* %{_mandir}/man8/* %{_localstatedir}/spool/babarchive %{_unitdir}/babarchive.service %{_unitdir}/babarchive.timer %post # Not clear enabling the timer matched fedora guidelines, but to force manual enable seems silly. /bin/systemctl enable babarchive.timer %systemd_post babarchive.timer %preun %systemd_preun babarchive.timer %postun %systemd_postun_with_restart babarchive.timer %changelog * Thu Apr 30 2015 John Heidemann 1.8-1 - See https://ant.isi.edu/software/babarchive/ - this spec is will install systemd support - Support for both anacron and systemd are in the babarchive source