%define debug_package %{nil} Name: rear Version: 2.6 Release: 1 License: GPLv3 Summary: Relax-and-Recover is a setup-and-forget Linux bare metal disaster recovery solution URL: http://relax-and-recover.org/ Source0: https://sourceforge.net/projects/rear/files/rear/%{version}/rear-%{version}.tar.gz # Add cronjob and systemd timer as documentation Source1: rear.cron Source2: rear.service Source3: rear.timer # https://github.com/rear/rear/commit/df5e18b8d7c8359b48bc133bfa29734934d18160 Patch0: 0001-skip-kernel-buildin-modules.patch ExclusiveArch: x86_64 loongarch64 Requires: binutils ethtool gzip iputils parted tar openssl gawk attr bc crontabs iproute Requires: genisoimage util-linux %ifarch x86_64 i686 Requires: syslinux %endif BuildRequires: make asciidoctor BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %description Relax-and-Recover is a setup-and-forget Linux bare metal disaster recovery solution. It is easy to set up and requires no maintenance so there is no excuse for not using it. %package help Summary: Help document for the rear Buildarch: noarch %description help Help document for the rear package. %pre if [ $1 -gt 1 ] ; then rm -rf %{_datadir}/rear/output/NETFS fi %prep %autosetup -p1 sed -E -e "s:([\"' ])/lib:\1/usr/lib:g" \ -i usr/share/rear/prep/GNU/Linux/*include*.sh sed -e 's:/lib/:/usr/lib/:g' \ -e 's:/lib\*/:/usr/lib\*/:g' \ -e 's:/usr/usr/lib:/usr/lib:g' \ -i 'usr/share/rear/conf/GNU/Linux.conf' %build make doc %install %make_install install -p -d %{buildroot}%{_docdir}/%{name}/ install -m 0644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}/ install -m 0644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}/ install -m 0644 %{SOURCE3} %{buildroot}%{_docdir}/%{name}/ %clean rm -rf %{buildroot} %files %doc MAINTAINERS COPYING README.adoc doc/*.txt doc/user-guide/*.html %config(noreplace) %{_sysconfdir}/rear/ %doc %{_docdir}/%{name}/rear.* %{_datadir}/rear/ %{_sharedstatedir}/rear/ %{_sbindir}/rear %files help %doc %{_mandir}/man8/rear.8* %changelog * Tue Oct 17 2023 yaoxin - 2.6-1 - Upgrade to 2.6 * Tue Nov 15 2022 huajingyun - 2.4-4 - Add loongarch64 support * Wed Feb 26 2020 Ling Yang - 2.4-3 - Package Init