2017-07-20 16:34:19 +00:00
|
|
|
%define rpmrelease %{nil}
|
2015-09-03 15:21:10 +00:00
|
|
|
%define debug_package %{nil}
|
2013-08-27 12:03:59 +00:00
|
|
|
|
2016-10-11 15:24:25 +00:00
|
|
|
### Work-around the fact that openSUSE/SLES _always_ defined both :-/
|
2013-08-27 12:03:59 +00:00
|
|
|
%if 0%{?sles_version} == 0
|
|
|
|
%undefine sles_version
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Summary: Relax-and-Recover is a Linux disaster recovery and system migration tool
|
2009-04-10 13:49:42 +00:00
|
|
|
Name: rear
|
2018-06-21 08:51:31 +00:00
|
|
|
Version: 2.4
|
2018-07-14 03:27:30 +00:00
|
|
|
Release: 2%{?rpmrelease}%{?dist}
|
2013-08-27 12:03:59 +00:00
|
|
|
License: GPLv3
|
|
|
|
URL: http://relax-and-recover.org/
|
|
|
|
|
|
|
|
# as GitHub stopped with download section we need to go back to Sourceforge for downloads
|
2017-07-20 16:34:19 +00:00
|
|
|
Source: https://sourceforge.net/projects/rear/files/rear/%{version}/rear-%{version}.tar.gz
|
2013-09-19 06:02:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
|
2016-10-11 15:24:25 +00:00
|
|
|
# rear contains only bash scripts plus documentation so that on first glance it could be "BuildArch: noarch"
|
2015-09-01 14:42:24 +00:00
|
|
|
# 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.
|
|
|
|
# This avoids that rear can be "just installed" on architectures that are actually not supported (e.g. ARM or IBM z Systems):
|
2016-10-11 15:24:25 +00:00
|
|
|
ExclusiveArch: %ix86 x86_64 ppc ppc64 ppc64le ia64
|
2015-09-01 14:42:24 +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
|
|
|
|
%endif
|
2016-10-11 15:24:25 +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
|
2015-09-03 12:55:57 +00:00
|
|
|
# and on ix86 x86_64 syslinux is explicitly required to make the bootable ISO image
|
2015-09-01 14:42:24 +00:00
|
|
|
# (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.
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
### Dependencies on all distributions
|
|
|
|
Requires: binutils
|
|
|
|
Requires: ethtool
|
|
|
|
Requires: gzip
|
|
|
|
Requires: iputils
|
|
|
|
Requires: parted
|
|
|
|
Requires: tar
|
|
|
|
Requires: openssl
|
2014-05-06 06:19:38 +00:00
|
|
|
Requires: gawk
|
|
|
|
Requires: attr
|
2017-06-07 11:26:24 +00:00
|
|
|
Requires: bc
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
### If you require NFS, you may need the below packages
|
|
|
|
#Requires: nfsclient portmap rpcbind
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
### We drop LSB requirements because it pulls in too many dependencies
|
|
|
|
### The OS is hardcoded in /etc/rear/os.conf instead
|
|
|
|
#Requires: redhat-lsb
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
### Required for Bacula/MySQL support
|
|
|
|
#Requires: bacula-mysql
|
2011-11-22 11:56:39 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
### Required for OBDR
|
|
|
|
#Requires: lsscsi sg3_utils
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
### Optional requirement
|
|
|
|
#Requires: cfg2html
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
%if %{?suse_version:1}0
|
|
|
|
Requires: iproute2
|
2016-10-11 15:24:25 +00:00
|
|
|
### recent SUSE versions have an extra nfs-client package
|
2013-08-27 12:03:59 +00:00
|
|
|
### and switched to genisoimage/wodim
|
|
|
|
%if 0%{?suse_version} >= 1020
|
|
|
|
Requires: genisoimage
|
|
|
|
%else
|
|
|
|
Requires: mkisofs
|
|
|
|
%endif
|
|
|
|
###
|
|
|
|
%endif
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
%if %{?mandriva_version:1}0
|
|
|
|
Requires: iproute2
|
|
|
|
### Mandriva switched from 2008 away from mkisofs,
|
|
|
|
### and as a specialty call the package cdrkit-genisoimage!
|
|
|
|
%if 0%{?mandriva_version} >= 2008
|
|
|
|
Requires: cdrkit-genisoimage
|
|
|
|
%else
|
|
|
|
Requires: mkisofs
|
|
|
|
%endif
|
|
|
|
#Requires: lsb
|
|
|
|
%endif
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
### On RHEL/Fedora the genisoimage packages provides mkisofs
|
2017-12-20 15:07:30 +00:00
|
|
|
%if %{?centos_version:1}%{?fedora:1}%{?rhel_version:1}0
|
2013-08-27 12:03:59 +00:00
|
|
|
Requires: crontabs
|
|
|
|
Requires: iproute
|
2017-06-07 11:26:24 +00:00
|
|
|
#Requires: mkisofs
|
|
|
|
Requires: genisoimage
|
2013-08-27 12:03:59 +00:00
|
|
|
#Requires: redhat-lsb
|
|
|
|
%endif
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2015-09-03 12:55:57 +00:00
|
|
|
# Note that CentOS also has rhel defined so there is no need to use centos
|
2016-03-16 14:43:41 +00:00
|
|
|
%if 0%{?rhel}
|
2014-05-06 06:19:38 +00:00
|
|
|
Requires: util-linux
|
|
|
|
%endif
|
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
%description
|
|
|
|
Relax-and-Recover is the leading Open Source disaster recovery and system
|
2015-03-13 14:26:28 +00:00
|
|
|
migration solution. It comprises of a modular
|
|
|
|
frame-work and ready-to-go workflows for many common situations to produce
|
2013-08-27 12:03:59 +00:00
|
|
|
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.
|
2010-11-25 12:25:16 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
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
|
2013-09-19 06:02:42 +00:00
|
|
|
(incl. IBM TSM, HP DataProtector, Symantec NetBackup, EMC NetWorker,
|
2017-01-06 16:55:01 +00:00
|
|
|
Bacula, Bareos, BORG, Duplicity, rsync).
|
2009-07-27 02:53:40 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
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.
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
Professional services and support are available.
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2015-03-13 14:26:28 +00:00
|
|
|
%pre
|
|
|
|
if [ $1 -gt 1 ] ; then
|
|
|
|
# during upgrade remove obsolete directories
|
|
|
|
%{__rm} -rf %{_datadir}/rear/output/NETFS
|
|
|
|
fi
|
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
%prep
|
2017-07-20 16:34:19 +00:00
|
|
|
%setup -q
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
echo "30 1 * * * root /usr/sbin/rear checklayout || /usr/sbin/rear mkrescue" >rear.cron
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
%build
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
%install
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%{__make} install DESTDIR="%{buildroot}"
|
|
|
|
%{__install} -Dp -m0644 rear.cron %{buildroot}%{_sysconfdir}/cron.d/rear
|
2009-04-10 13:49:42 +00:00
|
|
|
|
2018-06-21 08:51:31 +00:00
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
2013-08-27 12:03:59 +00:00
|
|
|
%files
|
2017-12-20 15:07:30 +00:00
|
|
|
%doc MAINTAINERS COPYING README.adoc doc/*.txt
|
2013-08-27 12:03:59 +00:00
|
|
|
%doc %{_mandir}/man8/rear.8*
|
|
|
|
%config(noreplace) %{_sysconfdir}/cron.d/rear
|
|
|
|
%config(noreplace) %{_sysconfdir}/rear/
|
2017-06-07 11:26:24 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/rear/cert/
|
2013-08-27 12:03:59 +00:00
|
|
|
%{_datadir}/rear/
|
|
|
|
%{_localstatedir}/lib/rear/
|
|
|
|
%{_sbindir}/rear
|
|
|
|
|
|
|
|
%changelog
|
2018-07-14 03:27:30 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2015-09-01 14:42:24 +00:00
|
|
|
* Thu Jul 30 2015 Johannes Meixner <jsmeix@suse.de>
|
|
|
|
- For a changelog see the rear-release-notes.txt file.
|
2009-04-10 13:49:42 +00:00
|
|
|
|