Blame SPECS/rear.spec

cd95a1
cd95a1
Summary:    Relax-and-Recover is a Linux disaster recovery and system migration tool
cd95a1
Name:       rear
cbaefc
Version:    2.4
f25f8e
Release:    4%{?dist}
cd95a1
License:    GPLv3
cd95a1
Group:      Applications/File
cd95a1
URL:        http://relax-and-recover.org/
cd95a1
cbaefc
Source0:    https://github.com/rear/rear/archive/%{version}.tar.gz#/rear-%{version}.tar.gz
e58bff
Patch4:  rear-bz1492177-warning.patch
f25f8e
Patch8:  rear-bz1652828-bz1652853.patch
f25f8e
Patch10: rear-bz1639705.patch
f25f8e
Patch11: rear-bz1653214.patch
f25f8e
Patch12: rear-bz1659137.patch
f25f8e
Patch14: rear-bz1672938.patch
b071b5
cd95a1
ExcludeArch: s390x
cd95a1
ExcludeArch: s390
cd95a1
cd95a1
### Dependencies on all distributions
cbaefc
BuildRequires:   asciidoc
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
cbaefc
Requires:   bc
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,
cbaefc
Bacula, Bareos, BORG, Duplicity, 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 
e58bff
%patch4 -p1
f25f8e
%patch8 -p1
f25f8e
%patch10 -p1
f25f8e
%patch11 -p1
f25f8e
%patch12 -p1
f25f8e
%patch14 -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
cbaefc
# asciidoc writes a timestamp to files it produces, based on the last
cbaefc
# modified date of the source file, but is sensible to the timezone.
cbaefc
# This makes the results differ according to the timezone of the build machine
cbaefc
# and spurious changes will be seen.
cbaefc
# Set the timezone to UTC as a workaround.
cbaefc
# https://wiki.debian.org/ReproducibleBuilds/TimestampsInDocumentationGeneratedByAsciidoc
cbaefc
TZ=UTC %{__make} -C doc
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
cd95a1
%files
cd95a1
%defattr(-, root, root, 0755)
cbaefc
%doc MAINTAINERS COPYING README.adoc doc/*.txt doc/user-guide/relax-and-recover-user-guide.html
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
f25f8e
* Tue Feb 26 2019 Pavel Cahyna <pcahyna@redhat.com> - 2.4-4
f25f8e
- Apply upstream PR2034 (multipath optimizations for lots of devices)
f25f8e
f25f8e
* Thu Jan 03 2019 Pavel Cahyna <pcahyna@redhat.com> - 2.4-3
f25f8e
- Backport fixes for upstream bugs 1974 and 1975
f25f8e
- Apply upstream PR1954 (record permanent MAC address for bond members)
f25f8e
- Apply upstream PR2004 (support for custom network interface naming)
f25f8e
- Backport fix for upstream bug 1926 (support for LACP bonding and teaming)
f25f8e
cbaefc
* Wed Jul 18 2018 Pavel Cahyna <pcahyna@redhat.com> - 2.4-2
cbaefc
- Build and install the HTML user guide. #1418459
cbaefc
cbaefc
* Wed Jun 27 2018 Pavel Cahyna <pcahyna@redhat.com> - 2.4-1
cbaefc
- Rebase to version 2.4, drop patches integrated upstream
cbaefc
  Resolves #1534646 #1484051 #1498828 #1571266 #1496518
e55c6f
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)