Blame SPECS/rear.spec

bab9d7
3b03ad
Summary:    Relax-and-Recover is a Linux disaster recovery and system migration tool
3b03ad
Name:       rear
07571f
Version:    2.00
1ce466
Release:    5%{?dist}
3b03ad
License:    GPLv3
3b03ad
Group:      Applications/File
3b03ad
URL:        http://relax-and-recover.org/
bab9d7
bab9d7
# as GitHub stopped with download section we need to go back to Sourceforge for downloads
07571f
Source0:    https://sourceforge.net/projects/rear/files/rear/2.00/%{version}/rear-%{version}.tar.gz
8f77bc
Patch0:  pr-1481.patch
1ce466
Patch2:  rear-bz1532676-pr1685.patch
07571f
#Patch0: 0001-Added-PRE-POST-backup-scripts-in-order-to-be-able-to.patch
07571f
#Patch1: 0002-Solved-error-with-exit-tasks-on-PRE-POST-backup-scri.patch
07571f
#Patch2: 0003-Added-some-explanation-of-PRE-POST-backup-scripts-in.patch
1ce466
Patch3:  bz1506231.patch
1ce466
3b03ad
BuildRoot:  %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
241f4b
ExcludeArch: s390x
241f4b
ExcludeArch: s390
bab9d7
bab9d7
### Dependencies on all distributions
3b03ad
Requires:   binutils
3b03ad
Requires:   ethtool
3b03ad
Requires:   gzip
3b03ad
Requires:   iputils
3b03ad
Requires:   parted
3b03ad
Requires:   tar
3b03ad
Requires:   openssl
3b03ad
Requires:   gawk
3b03ad
Requires:   attr
bab9d7
bab9d7
### If you require NFS, you may need the below packages
3b03ad
#Requires:  nfsclient portmap rpcbind
bab9d7
bab9d7
### We drop LSB requirements because it pulls in too many dependencies
bab9d7
### The OS is hardcoded in /etc/rear/os.conf instead
3b03ad
#Requires:  redhat-lsb
bab9d7
bab9d7
### Required for Bacula/MySQL support
3b03ad
#Requires:  bacula-mysql
bab9d7
bab9d7
### Required for OBDR
3b03ad
#Requires:  lsscsi sg3_utils
bab9d7
bab9d7
### Optional requirement
3b03ad
#Requires:  cfg2html
bab9d7
3b03ad
%ifarch x86_64 i686
3b03ad
Requires:   syslinux
bab9d7
%endif
bab9d7
%ifarch ppc ppc64
3b03ad
Requires:   yaboot
bab9d7
%endif
bab9d7
3b03ad
Requires:   crontabs
3b03ad
Requires:   iproute
3b03ad
Requires:   mkisofs
bab9d7
bab9d7
# mingetty is not available anymore with RHEL 7 (use agetty instead via systemd)
bab9d7
# Note that CentOS also has %rhel defined so there is no need to use %centos
bab9d7
%if 0%{?rhel} && 0%{?rhel} > 6
3b03ad
Requires:   util-linux
bab9d7
%else
3b03ad
Requires:   mingetty
3b03ad
Requires:   util-linux
bab9d7
%endif
bab9d7
bab9d7
### The rear-snapshot package is no more
bab9d7
#Obsoletes: rear-snapshot
bab9d7
bab9d7
%description
bab9d7
Relax-and-Recover is the leading Open Source disaster recovery and system
bab9d7
migration solution. It comprises of a modular
bab9d7
frame-work and ready-to-go workflows for many common situations to produce
bab9d7
a bootable image and restore from backup using this image. As a benefit,
bab9d7
it allows to restore to different hardware and can therefore be used as
bab9d7
a migration tool as well.
bab9d7
bab9d7
Currently Relax-and-Recover supports various boot media (incl. ISO, PXE,
bab9d7
OBDR tape, USB or eSATA storage), a variety of network protocols (incl.
bab9d7
sftp, ftp, http, nfs, cifs) as well as a multitude of backup strategies
bab9d7
(incl.  IBM TSM, HP DataProtector, Symantec NetBackup, EMC NetWorker,
bab9d7
Bacula, Bareos, rsync).
bab9d7
bab9d7
Relax-and-Recover was designed to be easy to set up, requires no maintenance
bab9d7
and is there to assist when disaster strikes. Its setup-and-forget nature
bab9d7
removes any excuse for not having a disaster recovery solution implemented.
bab9d7
bab9d7
Professional services and support are available.
bab9d7
bab9d7
%pre
bab9d7
if [ $1 -gt 1 ] ; then
bab9d7
# during upgrade remove obsolete directories
bab9d7
%{__rm} -rf %{_datadir}/rear/output/NETFS
bab9d7
fi
bab9d7
bab9d7
%prep
07571f
%setup 
8f77bc
%patch0 -p1
1ce466
#%patch1 -p1
1ce466
%patch2 -p1
1ce466
%patch3 -p1
3b03ad
bab9d7
echo "30 1 * * * root /usr/sbin/rear checklayout || /usr/sbin/rear mkrescue" >rear.cron
bab9d7
bab9d7
### Add a specific os.conf so we do not depend on LSB dependencies
bab9d7
%{?fedora:echo -e "OS_VENDOR=Fedora\nOS_VERSION=%{?fedora}" >etc/rear/os.conf}
bab9d7
%{?rhel:echo -e "OS_VENDOR=RedHatEnterpriseServer\nOS_VERSION=%{?rhel}" >etc/rear/os.conf}
bab9d7
bab9d7
%build
bab9d7
bab9d7
%install
bab9d7
%{__rm} -rf %{buildroot}
bab9d7
%{__make} install DESTDIR="%{buildroot}"
bab9d7
%{__install} -Dp -m0644 rear.cron %{buildroot}%{_sysconfdir}/cron.d/rear
bab9d7
#%{__install} -Dp -m0644 etc/udev/rules.d/62-rear-usb.rules %{buildroot}%{_sysconfdir}/udev/rules.d/62-rear-usb.rules
bab9d7
%clean
bab9d7
%{__rm} -rf %{buildroot}
bab9d7
bab9d7
%files
bab9d7
%defattr(-, root, root, 0755)
bab9d7
%doc AUTHORS COPYING README.adoc doc/*.txt
bab9d7
%doc %{_mandir}/man8/rear.8*
bab9d7
%config(noreplace) %{_sysconfdir}/cron.d/rear
bab9d7
%config(noreplace) %{_sysconfdir}/rear/
bab9d7
#%config(noreplace) %{_sysconfdir}/udev/rules.d/62-rear-usb.rules
bab9d7
%{_datadir}/rear/
bab9d7
%{_localstatedir}/lib/rear/
bab9d7
%{_sbindir}/rear
bab9d7
bab9d7
%changelog
1ce466
* Fri Feb 16 2018 Pavel Cahyna <pcahyna@redhat.com> - 2.00-5
1ce466
- Ensure that NetBackup is started automatically upon recovery (PR#1544)
1ce466
  Also do not kill daemons spawned by sysinit.service at the service's end
1ce466
  (PR#1610, applies to NetBackup and also to dhclient)
1ce466
  Resolves #1506231
1ce466
e70530
* Fri Jan 12 2018 Pavel Cahyna <pcahyna@redhat.com> - 2.00-4
e70530
- cd to the correct directory before md5sum to fix BACKUP_INTEGRITY_CHECK.
e70530
  Upstream PR#1685, bz1532676
e70530
8f77bc
* Wed Sep 13 2017 Pavel Cahyna <pcahyna@redhat.com> - 2.00-3
8f77bc
- Fix rear mkrescue on systems w/o UEFI. Upstream PR#1481 issue#1478
8f77bc
- Resolves: #1479002
8f77bc
07571f
* Wed May 17 2017 Jakub Mazanek <jmazanek@redhat.com> - 2.00-2
07571f
- Excluding Archs s390 and s390x
07571f
- Related #1355667
07571f
07571f
* Mon Feb 20 2017 Jakub Mazanek <jmazanek@redhat.com> - 2.00-1
07571f
- Rebase to version 2.00 
07571f
- Resolves #1355667
1f19fa
3b03ad
* Tue Jul 19 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-6
3b03ad
- Replace experimental grep -P with grep -E
3b03ad
Resolves: #1290205
3b03ad
3b03ad
* Wed Mar 23 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-5
3b03ad
- Remove backuped patched files
3b03ad
Related: #1283930
3b03ad
3b03ad
* Wed Mar 23 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-4
3b03ad
- Rear recovery over teaming interface will not work
3b03ad
Resolves: #1283930
3b03ad
3b03ad
* Tue Mar 08 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-3
3b03ad
- Replace experimental grep -P with grep -E
3b03ad
Resolves: #1290205
3b03ad
3b03ad
* Tue Feb 23 2016 Petr Hracek <phracek@redhat.com> - 1.17.2-2
3b03ad
- rear does not require syslinux
3b03ad
- changing to arch package so that syslinux is installed
3b03ad
- Resolves: #1283927
3b03ad
bab9d7
* Mon Sep 14 2015 Petr Hracek <phracek@redhat.com> - 1.17.2-1
bab9d7
- New upstream release 1.17.2
bab9d7
Related: #1059196
bab9d7
bab9d7
* Wed May 13 2015 Petr Hracek <phracek@redhat.com> 1.17.0-2
bab9d7
- Fix Source tag
bab9d7
Related: #1059196
bab9d7
bab9d7
* Mon May 04 2015 Petr Hracek <phracek@redhat.com> 1.17.0-1
bab9d7
- Initial package for RHEL 7
bab9d7
Resolves: #1059196
bab9d7
bab9d7
* Fri Oct 17 2014 Gratien D'haese <gratien.dhaese@gmail.com>
bab9d7
- added the suse_version lines to identify the corresponding OS_VERSION
bab9d7
bab9d7
* Fri Jun 20 2014 Gratien D'haese <gratien.dhaese@gmail.com>
bab9d7
- add %%pre section
bab9d7
bab9d7
* Thu Apr 11 2013 Gratien D'haese <gratien.dhaese@gmail.com>
bab9d7
- changes Source
bab9d7
bab9d7
* Thu Jun 03 2010 Dag Wieers <dag@wieers.com>
bab9d7
- Initial package. (using DAR)