ALT Linux repositórios
Group :: Arquivamento/Backup
RPM: dump
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: dump
Version: 0.4b41
Release: alt2
Summary: Programs for backing up and restoring ext2/ext3 filesystems
License: BSD
Group: Archiving/Backup
URL: http://dump.sourceforge.net/
Source: http://download.sourceforge.net/dump/dump-%version.tar.gz
Patch1: dump-0.4b28-alt-makefile.patch
Patch2: dump-0.4b40-include.patch
Requires: rmt = %version-%release
BuildPreReq: glibc-kernheaders
# Automatically added by buildreq on Wed Sep 12 2007
BuildRequires: bzlib-devel libe2fs-devel libncurses-devel libreadline-devel zlib-devel
%package -n rmt
Summary: Provides certain programs with access to remote tape devices
Group: Archiving/Backup
%description
The %name package contains both dump and restore. Dump examines files in
a filesystem, determines which ones need to be backed up, and copies
those files to a specified disk, tape or other storage medium. 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.
%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
%patch1 -p1
%patch2 -p1
%__subst s,termcap,tinfo,g ./configure.in
%build
autoconf
%configure \
--with-manowner=root \
--with-mangrp=root \
--with-binmode=755 \
--with-manmode=644 \
--enable-rmt \
--enable-readline \
--enable-largefile
make OPT="$RPM_OPT_FLAGS -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
%install
%__mkdir_p $RPM_BUILD_ROOT{/sbin,%_man8dir}
make install SBINDIR=$RPM_BUILD_ROOT/sbin BINDIR=$RPM_BUILD_ROOT/sbin MANDIR=$RPM_BUILD_ROOT%_man8dir
pushd $RPM_BUILD_ROOT
%__ln_s -nf dump ./sbin/rdump
%__ln_s -nf restore ./sbin/rrestore
%__ln_s -nf dump.8 .%_man8dir/rdump.8
%__ln_s -nf restore.8 .%_man8dir/rrestore.8
%__chmod a-s ./sbin/rmt
%__mkdir_p .%_sysconfdir
:> .%_sysconfdir/dumpdates
%__ln_s -nf ../sbin/rmt .%_sysconfdir/rmt
popd
%files
/sbin/*dump
/sbin/*restore
%_man8dir/*dump.*
%_man8dir/*restore.*
%attr(664,root,disk) %config(noreplace) %_sysconfdir/dumpdates
%doc CHANGES COPYRIGHT KNOWNBUGS README THANKS TODO MAINTAINERS
%files -n rmt
/sbin/rmt
%_sysconfdir/rmt
%_man8dir/rmt.*
%doc COPYRIGHT
%changelog
…
Todas as alterações você pod ver aqui
Version: 0.4b41
Release: alt2
Summary: Programs for backing up and restoring ext2/ext3 filesystems
License: BSD
Group: Archiving/Backup
URL: http://dump.sourceforge.net/
Source: http://download.sourceforge.net/dump/dump-%version.tar.gz
Patch1: dump-0.4b28-alt-makefile.patch
Patch2: dump-0.4b40-include.patch
Requires: rmt = %version-%release
BuildPreReq: glibc-kernheaders
# Automatically added by buildreq on Wed Sep 12 2007
BuildRequires: bzlib-devel libe2fs-devel libncurses-devel libreadline-devel zlib-devel
%package -n rmt
Summary: Provides certain programs with access to remote tape devices
Group: Archiving/Backup
%description
The %name package contains both dump and restore. Dump examines files in
a filesystem, determines which ones need to be backed up, and copies
those files to a specified disk, tape or other storage medium. 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.
%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
%patch1 -p1
%patch2 -p1
%__subst s,termcap,tinfo,g ./configure.in
%build
autoconf
%configure \
--with-manowner=root \
--with-mangrp=root \
--with-binmode=755 \
--with-manmode=644 \
--enable-rmt \
--enable-readline \
--enable-largefile
make OPT="$RPM_OPT_FLAGS -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
%install
%__mkdir_p $RPM_BUILD_ROOT{/sbin,%_man8dir}
make install SBINDIR=$RPM_BUILD_ROOT/sbin BINDIR=$RPM_BUILD_ROOT/sbin MANDIR=$RPM_BUILD_ROOT%_man8dir
pushd $RPM_BUILD_ROOT
%__ln_s -nf dump ./sbin/rdump
%__ln_s -nf restore ./sbin/rrestore
%__ln_s -nf dump.8 .%_man8dir/rdump.8
%__ln_s -nf restore.8 .%_man8dir/rrestore.8
%__chmod a-s ./sbin/rmt
%__mkdir_p .%_sysconfdir
:> .%_sysconfdir/dumpdates
%__ln_s -nf ../sbin/rmt .%_sysconfdir/rmt
popd
%files
/sbin/*dump
/sbin/*restore
%_man8dir/*dump.*
%_man8dir/*restore.*
%attr(664,root,disk) %config(noreplace) %_sysconfdir/dumpdates
%doc CHANGES COPYRIGHT KNOWNBUGS README THANKS TODO MAINTAINERS
%files -n rmt
/sbin/rmt
%_sysconfdir/rmt
%_man8dir/rmt.*
%doc COPYRIGHT
%changelog
…
Todas as alterações você pod ver aqui