Blame SPECS/rear.spec

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