Move rmt into star package (#968995)
This commit is contained in:
parent
d2af5930fa
commit
17af03f528
10
dump-rmt-moved-star.patch
Normal file
10
dump-rmt-moved-star.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff --git a/compat/include/pathnames.h b/compat/include/pathnames.h
|
||||
index 281d204..2f2885a 100644
|
||||
--- a/compat/include/pathnames.h
|
||||
+++ b/compat/include/pathnames.h
|
||||
@@ -54,4 +54,4 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-#define _PATH_RMT "/etc/rmt" /* path on remote host */
|
||||
+#define _PATH_RMT "/usr/sbin/rmt" /* path on remote host */
|
||||
28
dump.spec
28
dump.spec
@ -5,7 +5,7 @@ Summary: Programs for backing up and restoring ext2/ext3 filesystems
|
||||
Name: dump
|
||||
Epoch: 1
|
||||
Version: 0.4
|
||||
Release: 0.19.%{PREVER}%{?dist}
|
||||
Release: 0.20.%{PREVER}%{?dist}
|
||||
License: BSD
|
||||
Group: Applications/Archiving
|
||||
URL: http://dump.sourceforge.net/
|
||||
@ -17,6 +17,7 @@ BuildRequires: device-mapper-devel, libselinux-devel
|
||||
# This Requires is now mandatory because we need to ensure the "disk"
|
||||
# group is created before installation (#60461)
|
||||
Requires: setup
|
||||
Requires: star
|
||||
Requires: rmt
|
||||
Obsoletes: dump-static
|
||||
Provides: dump-static
|
||||
@ -24,6 +25,7 @@ Provides: dump-static
|
||||
Patch0: dump-buildfix.patch
|
||||
Patch1: dump-rh664616.patch
|
||||
Patch2: dump-aarch64.patch
|
||||
Patch3: dump-rmt-moved-star.patch
|
||||
|
||||
%description
|
||||
The dump package contains both dump and restore. Dump examines files
|
||||
@ -37,21 +39,13 @@ directory subtrees may also be restored from full or partial backups.
|
||||
Install dump if you need a system for both backing up filesystems and
|
||||
restoring filesystems after backups.
|
||||
|
||||
%package -n rmt
|
||||
Summary: Provides certain programs with access to remote tape devices
|
||||
Group: Applications/Archiving
|
||||
|
||||
%description -n rmt
|
||||
The rmt utility provides remote access to tape devices for programs
|
||||
like dump (a filesystem backup program), restore (a program for
|
||||
restoring files from a backup), and tar (an archiving program).
|
||||
|
||||
%prep
|
||||
%setup -q -n dump-%{VERSION}
|
||||
|
||||
%patch0 -p1 -b .buildfix
|
||||
%patch1 -p1 -b .rh664616
|
||||
%patch2 -p1 -b .aarch64
|
||||
%patch3 -p1 -b .rmt-moved-star
|
||||
|
||||
for i in THANKS MAINTAINERS COPYRIGHT CHANGES; do
|
||||
iconv -f iso-8859-1 -t utf-8 $i -o $i.new
|
||||
@ -68,8 +62,8 @@ export CFLAGS="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes \
|
||||
# XXX --enable-kerberos needs krcmd
|
||||
%configure --disable-static \
|
||||
--enable-transselinux \
|
||||
--enable-rmt \
|
||||
--enable-largefile \
|
||||
--disable-rmt \
|
||||
--enable-qfa \
|
||||
--enable-readline \
|
||||
--with-binmode=0755 \
|
||||
@ -96,10 +90,8 @@ mkdir -p %{buildroot}%{_mandir}/man8
|
||||
pushd %{buildroot}
|
||||
ln -sf dump .%{_sbindir}/rdump
|
||||
ln -sf restore .%{_sbindir}/rrestore
|
||||
chmod ug-s .%{_sbindir}/rmt
|
||||
mkdir -p .%{_sysconfdir}
|
||||
> .%{_sysconfdir}/dumpdates
|
||||
ln -sf ..%{_sbindir}/rmt .%{_sysconfdir}/rmt
|
||||
popd
|
||||
|
||||
%clean
|
||||
@ -119,14 +111,10 @@ rm -rf %{buildroot}
|
||||
%{_mandir}/man8/restore.8*
|
||||
%{_mandir}/man8/rrestore.8*
|
||||
|
||||
%files -n rmt
|
||||
%defattr(-,root,root)
|
||||
%doc COPYRIGHT
|
||||
%{_sbindir}/rmt
|
||||
%{_sysconfdir}/rmt
|
||||
%{_mandir}/man8/rmt.8*
|
||||
|
||||
%changelog
|
||||
* Tue Jun 04 2013 Petr Hracek <phracek@redhat.com> - 1:0.4-0.20.b44
|
||||
- Move rmt into star package (#968995)
|
||||
|
||||
* Wed Apr 17 2013 Petr Hracek <phracek@redhat.com> - 1:0.4-0.19.b44
|
||||
- Support aarch64 (#925282)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user