| |
@@ -3,8 +3,13 @@
|
| |
|
| |
%define _legacy_common_support 1
|
| |
|
| |
+ %if 0%{?rhel}
|
| |
+ Summary: Program for restoring ext2/ext3 filesystems
|
| |
+ Name: restore
|
| |
+ %else
|
| |
Summary: Programs for backing up and restoring ext2/ext3/ext4 filesystems
|
| |
Name: dump
|
| |
+ %endif
|
| |
Epoch: 1
|
| |
Version: 0.4
|
| |
Release: 0.45.%{PREVER}%{?dist}
|
| |
@@ -20,13 +25,28 @@
|
| |
# group is created before installation (#60461)
|
| |
Requires: setup
|
| |
Requires: rmt
|
| |
- Obsoletes: dump-static
|
| |
+ %if 0%{?fedora}
|
| |
+ Obsoletes: dump-static <= 0.4
|
| |
Provides: dump-static
|
| |
+ %endif
|
| |
|
| |
Patch0: dump-buildfix.patch
|
| |
Patch1: dump-remove-lzo.patch
|
| |
Patch2: dump-glibc_xattr.patch
|
| |
|
| |
+ %if 0%{?rhel}
|
| |
+ # No dump package in RHEL (restore remains)
|
| |
+ Patch101: dump-replacement.patch
|
| |
+
|
| |
+ %description
|
| |
+ The restore command performs the inverse function of dump; it can
|
| |
+ restore a full backup of a filesystem. Subsequent incremental backups
|
| |
+ can then be layered on top of the full backup. Single files and
|
| |
+ directory subtrees may also be restored from full or partial backups.
|
| |
+
|
| |
+ Install restore if you need restoring filesystems after backups
|
| |
+ made by dump.
|
| |
+ %else
|
| |
%description
|
| |
The dump package contains both dump and restore. Dump examines files
|
| |
in a filesystem, determines which ones need to be backed up, and
|
| |
@@ -38,6 +58,7 @@
|
| |
|
| |
Install dump if you need a system for both backing up filesystems and
|
| |
restoring filesystems after backups.
|
| |
+ %endif
|
| |
|
| |
%prep
|
| |
%setup -q -n dump-%{DUMP_VERSION}
|
| |
@@ -46,6 +67,11 @@
|
| |
%patch1 -p1 -b .remove-lzo
|
| |
%patch2 -p1 -b .glibc_xattr
|
| |
|
| |
+ %if 0%{?rhel}
|
| |
+ rm -rf dump
|
| |
+ %patch101 -p1
|
| |
+ %endif
|
| |
+
|
| |
for i in MAINTAINERS COPYING ChangeLog; do
|
| |
iconv -f iso-8859-1 -t utf-8 $i -o $i.new
|
| |
touch -r $i $i.new
|
| |
@@ -87,7 +113,9 @@
|
| |
MANGRP=$(id -gn)
|
| |
|
| |
pushd %{buildroot}
|
| |
+ %if 0%{?fedora}
|
| |
ln -sf dump .%{_sbindir}/rdump
|
| |
+ %endif
|
| |
ln -sf restore .%{_sbindir}/rrestore
|
| |
mkdir -p .%{_sysconfdir}
|
| |
> .%{_sysconfdir}/dumpdates
|
| |
@@ -97,12 +125,14 @@
|
| |
%doc AUTHORS COPYING INSTALL KNOWNBUGS MAINTAINERS NEWS README REPORTING-BUGS TODO
|
| |
%doc dump.lsm
|
| |
%attr(0664,root,disk) %config(noreplace) %{_sysconfdir}/dumpdates
|
| |
+ %if 0%{?fedora}
|
| |
%{_sbindir}/dump
|
| |
%{_sbindir}/rdump
|
| |
- %{_sbindir}/restore
|
| |
- %{_sbindir}/rrestore
|
| |
%{_mandir}/man8/dump.8*
|
| |
%{_mandir}/man8/rdump.8*
|
| |
+ %endif
|
| |
+ %{_sbindir}/restore
|
| |
+ %{_sbindir}/rrestore
|
| |
%{_mandir}/man8/restore.8*
|
| |
%{_mandir}/man8/rrestore.8*
|
| |
|
| |
Because dump is no longer up to date with ext3/ext4 requirements and as default FS in F34+ is btrfs, we should think about removing dump from Fedora.
This pull request is removing dump from RHEL environment, where only restore utility should be available, so users can restore their older backups and for ext backup they should use some more reliable utilities (e.g. bacula).
If we want to remove dump from Fedora, we should start FESCO discussion first (and from my POV ASAP)