2020-02-28 19:53:51 +08:00
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: rear
|
2023-10-17 16:16:34 +08:00
|
|
|
Version: 2.6
|
|
|
|
|
Release: 1
|
2020-02-28 19:53:51 +08:00
|
|
|
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
|
2023-10-17 16:16:34 +08:00
|
|
|
# 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
|
2022-11-15 09:36:47 +00:00
|
|
|
ExclusiveArch: x86_64 loongarch64
|
2020-02-28 19:53:51 +08:00
|
|
|
Requires: binutils ethtool gzip iputils parted tar openssl gawk attr bc crontabs iproute
|
2023-10-17 16:16:34 +08:00
|
|
|
Requires: genisoimage util-linux
|
|
|
|
|
%ifarch x86_64 i686
|
|
|
|
|
Requires: syslinux
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: make asciidoctor
|
2020-02-28 19:53:51 +08:00
|
|
|
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
|
2023-10-17 16:16:34 +08:00
|
|
|
%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'
|
2020-02-28 19:53:51 +08:00
|
|
|
|
|
|
|
|
%build
|
2023-10-17 16:16:34 +08:00
|
|
|
make doc
|
2020-02-28 19:53:51 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-10-17 16:16:34 +08:00
|
|
|
%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}/
|
2020-02-28 19:53:51 +08:00
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
2023-10-17 16:16:34 +08:00
|
|
|
%doc MAINTAINERS COPYING README.adoc doc/*.txt doc/user-guide/*.html
|
2020-02-28 19:53:51 +08:00
|
|
|
%config(noreplace) %{_sysconfdir}/rear/
|
2023-10-17 16:16:34 +08:00
|
|
|
%doc %{_docdir}/%{name}/rear.*
|
2020-02-28 19:53:51 +08:00
|
|
|
%{_datadir}/rear/
|
2023-10-17 16:16:34 +08:00
|
|
|
%{_sharedstatedir}/rear/
|
2020-02-28 19:53:51 +08:00
|
|
|
%{_sbindir}/rear
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc %{_mandir}/man8/rear.8*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-10-17 16:16:34 +08:00
|
|
|
* Tue Oct 17 2023 yaoxin <yao_xin001@hoperun.com> - 2.6-1
|
|
|
|
|
- Upgrade to 2.6
|
|
|
|
|
|
2022-11-15 09:36:47 +00:00
|
|
|
* Tue Nov 15 2022 huajingyun <huajingyun@loongson.cn> - 2.4-4
|
|
|
|
|
- Add loongarch64 support
|
|
|
|
|
|
2020-02-28 19:53:51 +08:00
|
|
|
* Wed Feb 26 2020 Ling Yang <lingyang2@huawei.com> - 2.4-3
|
|
|
|
|
- Package Init
|