2020-10-15 04:30:03 +00:00
|
|
|
# this is purely a shell script, so no debug packages
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
Name: rear
|
|
|
|
Version: 2.6
|
2022-08-09 09:43:54 +00:00
|
|
|
Release: 13%{?dist}
|
2020-10-15 04:30:03 +00:00
|
|
|
Summary: Relax-and-Recover is a Linux disaster recovery and system migration tool
|
|
|
|
URL: http://relax-and-recover.org/
|
|
|
|
License: GPLv3
|
|
|
|
|
2021-06-30 18:05:15 +00:00
|
|
|
Source0: https://github.com/rear/rear/archive/%{version}.tar.gz#/rear-%{version}.tar.gz
|
2020-10-15 04:30:03 +00:00
|
|
|
# Add cronjob and systemd timer as documentation
|
|
|
|
Source1: rear.cron
|
|
|
|
Source2: rear.service
|
|
|
|
Source3: rear.timer
|
|
|
|
# Skip buildin modules, RHBZ#1831311
|
|
|
|
Patch0: 0001-skip-kernel-buildin-modules.patch
|
2021-06-30 18:20:38 +00:00
|
|
|
Patch4: rear-bz1492177-warning.patch
|
|
|
|
Patch29: rear-bz1832394.patch
|
|
|
|
Patch30: rear-sfdc02772301.patch
|
2021-08-16 07:47:52 +00:00
|
|
|
Patch31: rear-bz1945869.patch
|
|
|
|
Patch32: rear-bz1958247.patch
|
|
|
|
Patch33: rear-bz1930662.patch
|
2021-08-03 08:05:27 +00:00
|
|
|
Patch34: rear-tmpdir.patch
|
2021-08-16 07:47:52 +00:00
|
|
|
Patch35: rear-bz1983013.patch
|
|
|
|
Patch36: rear-bz1993296.patch
|
2021-08-30 21:49:47 +00:00
|
|
|
Patch37: rear-bz1747468.patch
|
2022-02-13 23:19:11 +00:00
|
|
|
Patch38: rear-bz2049091.patch
|
2021-12-16 11:39:36 +00:00
|
|
|
Patch39: rear-pr2675.patch
|
2022-02-21 14:09:24 +00:00
|
|
|
Patch40: rear-bz2048454.patch
|
2022-02-22 09:16:10 +00:00
|
|
|
Patch41: rear-bz2035939.patch
|
2022-07-28 18:49:42 +00:00
|
|
|
Patch42: rear-bz2083272.patch
|
2022-07-28 18:54:21 +00:00
|
|
|
Patch43: rear-bz2111049.patch
|
2022-07-28 18:57:04 +00:00
|
|
|
Patch44: rear-bz2104005.patch
|
2022-07-29 11:12:54 +00:00
|
|
|
Patch45: rear-bz2097437.patch
|
2022-07-29 11:18:55 +00:00
|
|
|
Patch46: rear-bz2096916.patch
|
2022-07-29 11:21:00 +00:00
|
|
|
Patch47: rear-bz2096900.patch
|
2022-07-29 18:07:48 +00:00
|
|
|
Patch48: rear-bz2111059.patch
|
2022-08-05 15:29:21 +00:00
|
|
|
Patch49: rsync-output.patch
|
2022-08-24 12:49:23 +00:00
|
|
|
Patch50: rear-bz2119501.patch
|
2022-08-24 12:54:34 +00:00
|
|
|
Patch51: rear-bz2120736.patch
|
2020-10-15 04:30:03 +00:00
|
|
|
|
|
|
|
# rear contains only bash scripts plus documentation so that on first glance it could be "BuildArch: noarch"
|
|
|
|
# but actually it is not "noarch" because it only works on those architectures that are explicitly supported.
|
|
|
|
# Of course the rear bash scripts can be installed on any architecture just as any binaries can be installed on any architecture.
|
|
|
|
# But the meaning of architecture dependent packages should be on what architectures they will work.
|
|
|
|
# Therefore only those architectures that are actually supported are explicitly listed.
|
2021-06-30 18:21:33 +00:00
|
|
|
# This avoids that rear can be "just installed" on architectures that are actually not supported (e.g. ARM):
|
|
|
|
ExclusiveArch: %ix86 x86_64 ppc ppc64 ppc64le ia64 s390x
|
2020-10-15 04:30:03 +00:00
|
|
|
# Furthermore for some architectures it requires architecture dependent packages (like syslinux for x86 and x86_64)
|
|
|
|
# so that rear must be architecture dependent because ifarch conditions never match in case of "BuildArch: noarch"
|
|
|
|
# see the GitHub issue https://github.com/rear/rear/issues/629
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
Requires: syslinux
|
2022-08-01 13:21:42 +00:00
|
|
|
# We need mkfs.vfat for recreating EFI System Partition
|
|
|
|
Recommends: dosfstools
|
2020-10-15 04:30:03 +00:00
|
|
|
%endif
|
2022-02-21 17:48:35 +00:00
|
|
|
%ifarch ppc ppc64 ppc64le
|
|
|
|
# Called by grub2-install (except on PowerNV)
|
|
|
|
Requires: /usr/sbin/ofpathname
|
|
|
|
# Needed to make PowerVM LPARs bootable
|
|
|
|
Requires: /usr/sbin/bootlist
|
|
|
|
%endif
|
2020-10-15 04:30:03 +00:00
|
|
|
# In the end this should tell the user that rear is known to work only on ix86 x86_64 ppc ppc64 ppc64le ia64
|
|
|
|
# and on ix86 x86_64 syslinux is explicitly required to make the bootable ISO image
|
|
|
|
# (in addition to the default installed bootloader grub2) while on ppc ppc64 the
|
|
|
|
# default installed bootloader yaboot is also useed to make the bootable ISO image.
|
|
|
|
|
|
|
|
# Required for HTML user guide
|
2021-02-05 04:23:11 +00:00
|
|
|
BuildRequires: make
|
2020-10-15 04:30:03 +00:00
|
|
|
BuildRequires: asciidoctor
|
|
|
|
|
|
|
|
### Mandatory dependencies:
|
|
|
|
Requires: binutils
|
|
|
|
Requires: ethtool
|
|
|
|
Requires: gzip
|
|
|
|
Requires: iputils
|
|
|
|
Requires: parted
|
|
|
|
Requires: tar
|
|
|
|
Requires: openssl
|
|
|
|
Requires: gawk
|
|
|
|
Requires: attr
|
|
|
|
Requires: bc
|
|
|
|
Requires: iproute
|
2022-02-21 17:44:02 +00:00
|
|
|
# No ISO image support on s390x (may change when we add support for LPARs)
|
|
|
|
%ifnarch s390x
|
|
|
|
Requires: xorriso
|
|
|
|
%endif
|
2021-06-30 18:22:05 +00:00
|
|
|
Requires: file
|
2021-06-30 18:23:42 +00:00
|
|
|
Requires: dhcp-client
|
2020-10-15 04:30:03 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
Requires: util-linux
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Relax-and-Recover is the leading Open Source disaster recovery and system
|
|
|
|
migration solution. It comprises of a modular
|
|
|
|
frame-work and ready-to-go workflows for many common situations to produce
|
|
|
|
a bootable image and restore from backup using this image. As a benefit,
|
|
|
|
it allows to restore to different hardware and can therefore be used as
|
|
|
|
a migration tool as well.
|
|
|
|
|
|
|
|
Currently Relax-and-Recover supports various boot media (incl. ISO, PXE,
|
|
|
|
OBDR tape, USB or eSATA storage), a variety of network protocols (incl.
|
|
|
|
sftp, ftp, http, nfs, cifs) as well as a multitude of backup strategies
|
|
|
|
(incl. IBM TSM, MircroFocus Data Protector, Symantec NetBackup, EMC NetWorker,
|
|
|
|
Bacula, Bareos, BORG, Duplicity, rsync).
|
|
|
|
|
|
|
|
Relax-and-Recover was designed to be easy to set up, requires no maintenance
|
|
|
|
and is there to assist when disaster strikes. Its setup-and-forget nature
|
|
|
|
removes any excuse for not having a disaster recovery solution implemented.
|
|
|
|
|
|
|
|
Professional services and support are available.
|
|
|
|
|
|
|
|
#-- PREP, BUILD & INSTALL -----------------------------------------------------#
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
2021-06-30 18:13:50 +00:00
|
|
|
### Add a specific os.conf so we do not depend on LSB dependencies
|
|
|
|
%{?fedora:echo -e "OS_VENDOR=Fedora\nOS_VERSION=%{?fedora}" >etc/rear/os.conf}
|
|
|
|
%{?rhel:echo -e "OS_VENDOR=RedHatEnterpriseServer\nOS_VERSION=%{?rhel}" >etc/rear/os.conf}
|
|
|
|
|
2021-03-11 20:22:00 +00:00
|
|
|
# Change /lib to /usr/lib for COPY_AS_IS
|
|
|
|
sed -E -e "s:([\"' ])/lib:\1/usr/lib:g" \
|
|
|
|
-i usr/share/rear/prep/GNU/Linux/*include*.sh
|
|
|
|
|
|
|
|
# Same for Linux.conf
|
|
|
|
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-10-15 04:30:03 +00:00
|
|
|
%build
|
|
|
|
# build HTML user guide
|
2021-06-30 18:05:15 +00:00
|
|
|
# asciidoc writes a timestamp to files it produces, based on the last
|
|
|
|
# modified date of the source file, but is sensitive to the timezone.
|
|
|
|
# This makes the results differ according to the timezone of the build machine
|
|
|
|
# and spurious changes will be seen.
|
|
|
|
# Set the timezone to UTC as a workaround.
|
|
|
|
# https://wiki.debian.org/ReproducibleBuilds/TimestampsInDocumentationGeneratedByAsciidoc
|
|
|
|
TZ=UTC make doc
|
2020-10-15 04:30:03 +00:00
|
|
|
|
|
|
|
%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}/
|
|
|
|
|
|
|
|
#-- FILES ---------------------------------------------------------------------#
|
|
|
|
%files
|
|
|
|
%doc MAINTAINERS COPYING README.adoc doc/*.txt doc/user-guide/*.html
|
|
|
|
%doc %{_mandir}/man8/rear.8*
|
|
|
|
%doc %{_docdir}/%{name}/rear.*
|
|
|
|
%config(noreplace) %{_sysconfdir}/rear/
|
|
|
|
%{_datadir}/rear/
|
|
|
|
%{_sharedstatedir}/rear/
|
|
|
|
%{_sbindir}/rear
|
|
|
|
|
|
|
|
#-- CHANGELOG -----------------------------------------------------------------#
|
|
|
|
%changelog
|
2022-08-09 09:43:54 +00:00
|
|
|
* Tue Aug 9 2022 Pavel Cahyna <pcahyna@redhat.com> - 2.6-13
|
|
|
|
- Backport PR2831 - rsync URL refactoring
|
|
|
|
fixes rsync OUTPUT_URL when different from BACKUP_URL
|
|
|
|
|
2022-08-08 16:50:10 +00:00
|
|
|
* Mon Aug 8 2022 Pavel Cahyna <pcahyna@redhat.com> - 2.6-12
|
|
|
|
- Apply PR2795 to detect changes in system files between backup
|
|
|
|
and rescue image
|
|
|
|
- Apply PR2808 to exclude dev/watchdog* from recovery system
|
|
|
|
- Backport upstream PRs 2827 and 2839 to pass -y to lvcreate instead of one "y"
|
|
|
|
on stdin
|
|
|
|
- Apply PR2811 to add the PRE/POST_RECOVERY_COMMANDS directives
|
|
|
|
- Recommend dosfstools on x86_64, needed for EFI System Partition
|
|
|
|
- Backport PR2825 to replace defunct mkinitrd with dracut
|
|
|
|
- Apply PR2580 to load the nvram module in the rescue environment in order
|
|
|
|
to be able to set the boot order on ppc64le LPARs
|
|
|
|
- Backport PR2822 to include the true vi executable in rescue ramdisk
|
|
|
|
|
2022-02-25 16:24:06 +00:00
|
|
|
* Sun Feb 27 2022 Pavel Cahyna <pcahyna@redhat.com> - 2.6-11
|
|
|
|
- Apply PR2675 to fix leftover temp dir bug (introduced in backported PR2625)
|
|
|
|
- Apply PR2603 to ignore unused PV devices
|
|
|
|
- Apply upstream PR2750 to avoid exclusion of wanted multipath devices
|
|
|
|
- Remove unneeded xorriso dep on s390x (no ISO image support there)
|
|
|
|
- Apply upstream PR2736 to add the EXCLUDE_{IP_ADDRESSES,NETWORK_INTERFACES}
|
|
|
|
options
|
|
|
|
- Add patch for better handling of thin pools and other LV types not supported
|
|
|
|
by vgcfgrestore
|
|
|
|
|
2021-08-16 07:55:21 +00:00
|
|
|
* Mon Aug 16 2021 Pavel Cahyna <pcahyna@redhat.com> - 2.6-10
|
|
|
|
- Sync spec changes and downstream patches from RHEL 8 rear-2.6-2
|
|
|
|
- Fix multipath performance regression in 2.6, introduced by upstream PR #2299.
|
|
|
|
Resolves: rhbz1993296
|
|
|
|
- On POWER add bootlist & ofpathname to the list of required programs
|
|
|
|
conditionally (bootlist only if running under PowerVM, ofpathname
|
|
|
|
always except on PowerNV) - upstream PR2665, add them to package
|
|
|
|
dependencies
|
|
|
|
Resolves: rhbz1983013
|
|
|
|
- Backport PR2608:
|
|
|
|
Fix setting boot path in case of UEFI partition (ESP) on MD RAID
|
|
|
|
Resolves: rhbz1945869
|
|
|
|
- Backport PR2625
|
|
|
|
Prevents accidental backup removal in case of errors
|
|
|
|
Resolves: rhbz1958247
|
|
|
|
- Fix rsync error and option handling
|
|
|
|
Resolves: rhbz1930662
|
|
|
|
|
2021-08-11 08:24:17 +00:00
|
|
|
* Wed Aug 11 2021 Pavel Cahyna <pcahyna@redhat.com> - 2.6-9
|
|
|
|
- Put TMPDIR on /var/tmp by default, otherwise it may lack space
|
|
|
|
RHBZ #1988420, upstream PR2664
|
|
|
|
|
2021-08-10 00:35:30 +00:00
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.6-8
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
2021-06-30 18:35:48 +00:00
|
|
|
* Wed Jun 30 2021 Pavel Cahyna <pcahyna@redhat.com> - 2.6-7
|
|
|
|
- Sync spec changes and downstream patches from RHEL 8
|
|
|
|
- Require xorriso instead of genisoimage
|
|
|
|
- Add S/390 support and forgotten dependency on the file utility
|
|
|
|
- Backport upstream code related to LUKS2 support
|
|
|
|
- Modify the cron command to avoid an e-mail with error message after
|
|
|
|
ReaR is installed but not properly configured when the cron command
|
|
|
|
is triggered for the first time
|
|
|
|
- Changes for NetBackup (NBU) support, upstream PR2544
|
|
|
|
- Add dependency on dhcp-client, RHBZ #1926451
|
|
|
|
|
2021-04-16 05:08:20 +00:00
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.6-6
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
2021-03-11 20:22:00 +00:00
|
|
|
* Fri Feb 26 2021 Christopher Engelhard <ce@lcts.de> - 2.6-5
|
|
|
|
- Change /lib to /usr/lib in scripts to fix RHBZ #1931112
|
|
|
|
|
2021-02-05 04:23:11 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-10-15 04:30:03 +00:00
|
|
|
* Wed Sep 23 2020 Christopher Engelhard <ce@lcts.de> - 2.6-3
|
|
|
|
- Stop auto-creating a cronjob, but ship example cronjob/
|
|
|
|
systemd timer units in docdir instead (upstream issue #1829)
|
|
|
|
- Build & ship HTML user guide
|
|
|
|
- Remove %pre scriptlet, as it was introduced only to fix a
|
|
|
|
specific upgrade issue with v1.15 in 2014
|
|
|
|
|
|
|
|
* Tue Sep 22 2020 Christopher Engelhard <ce@lcts.de> - 2.6-2
|
|
|
|
- Backport upstream PR#2469 to fix RHBZ #1831311
|
|
|
|
|
|
|
|
* Tue Sep 22 2020 Christopher Engelhard <ce@lcts.de> - 2.6-1
|
|
|
|
- Update to 2.6
|
|
|
|
- Streamline & clean up spec file
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jul 30 2015 Johannes Meixner <jsmeix@suse.de>
|
|
|
|
- For a changelog see the rear-release-notes.txt file.
|
|
|
|
|