-Summary: dump/restore backup system
-Summary(de): Dump/Restore-Backup-System
-Summary(fr): système de sauvegarde dump/restore
-Summary(pl): System kopii bezpieczeñstwa dump/restore
-Summary(tr): dump/restore yedekleme sistemi
-Name: dump
-Version: 0.3
-Release: 14
-Copyright: UCB
-Group: Utilities/System
-Source: ftp://tsx-11.mit.edu:/pub/linux/packages/ext2fs/%{name}-%{version}.tar.gz
-Patch: dump-config.patch
-Patch1: dump-0.3-types.patch
-Patch2: dump-0.3-glibc.patch
-Patch3: dump-0.3-sparc.patch
-Patch4: dump-0.3-kernel.patch
-Requires: rmt
-BuildRoot: /tmp/%{name}-%{version}-root
+Summary: Programs for backing up and restoring filesystems
+Summary(de): Dump/Restore-Backup-System
+Summary(es): Sistema de copia de seguridad dump/restore
+Summary(fr): système de sauvegarde dump/restore
+Summary(pl): Programy do wykonywania kopii bezpieczeñstwa plików
+Summary(pt_BR): Sistema de backup dump/restore
+Summary(ru): ðÒÏÇÒÁÍÍÙ ÄÌÑ ÒÅÚÅÒ×ÎÏÇÏ ËÏÐÉÒÏ×ÁÎÉÑ É ×ÏÓÓÔÁÎÏ×ÌÅÎÉÑ ÆÁÊÌÏ×ÙÈ ÓÉÓÔÅÍ
+Summary(tr): dump/restore yedekleme sistemi
+Summary(uk): ðÒÏÇÒÁÍÉ ÄÌÑ ÒÅÚÅÒ×ÎÏÇÏ ËÏЦÀ×ÁÎÎÑ ÔÁ צÄÎÏ×ÌÅÎÎÑ ÆÁÊÌÏ×ÉÈ ÓÉÓÔÅÍ
+Name: dump
+Version: 0.4b39
+Release: 1
+License: BSD
+Group: Applications/System
+Source0: http://dl.sourceforge.net/dump/%{name}-%{version}.tar.gz
+# Source0-md5: 843e4cd3cf0024a25a3d2062ade825fe
+Patch0: %{name}-autoconf.patch
+Patch1: %{name}-llh.patch
+URL: http://dump.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: bzip2-devel
+BuildRequires: e2fsprogs-devel
+BuildRequires: ncurses-devel >= 5.2
+BuildRequires: openssl-devel >= 0.9.7a
+BuildRequires: readline-devel >= 4.2
+Requires: rmt
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _sbindir /sbin
%description
-dump and restore can be used to backup extended 2 (ext2) partitions in
-a variety of ways.
+The dump 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 -l de
-Sie können mit dump und restore verschiedene Verfahren zum Sichern
-von extended 2 (ext2)-Partitionen ausführen.
+Sie können mit dump und restore verschiedene Verfahren zum Sichern von
+extended 2 (ext2)-Partitionen ausführen.
+
+%description -l es
+Dump y restore pueden ser usados para hacer copias de seguridad en
+particiones ext2 de varias maneras diferentes.
%description -l fr
dupm et restore servent à sauvegarder des partitions ext2 de plusieurs
façons possibles
%description -l pl
-Programy dump i restore s³u¿± do tworzenia i odtwarzanie kopii
-bezpieczeñstwa partycji z systemem plków ext2.
+Pakiet dump zawiera programy dump i restore. Dump sprawdza pliki w
+systemie plikowym i okre¶la które powinny byæ zesk³adowane w kopii
+bezpieczeñstwa a nastêpnie kopiuje te pliki na dysk, ta¶mê
+magnetyczn± lub inny no¶nik. Polecenie restore wykonuje odwrotn±
+operacjê i s³u¿y do odtwarzania plików z kopii bezpieczeñstwa. Program
+restore umo¿liwia odtwarzanie ca³ego archiwum, a tak¿e wybranych
+plików i katalogów.
+
+%description -l pt_BR
+o dump e o restore podem ser usados para fazer backup em partições
+ext2 de várias maneiras diferentes.
+
+%description -l ru
+ðÁËÅÔ dump ÓÏÄÅÒÖÉÔ dump É restore. Dump ÐÒÏÓÍÁÔÒÉ×ÁÅÔ ÆÁÊÌÙ ×
+ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÅ, ÏÐÒÅÄÅÌÑÅÔ ËÁËÉÅ ÉÚ ÎÉÈ ÎÕÖÄÁÀÔÓÑ × ÒÅÚÅÒ×ÎÏÍ
+ËÏÐÉÒÏ×ÁÎÉÉ É ËÏÐÉÒÕÅÔ ÜÔÉ ÆÁÊÌÙ ÎÁ ÕËÁÚÁÎÎÙÊ ÄÉÓË, ÌÅÎÔÕ ÉÌÉ ÄÒÕÇÏÊ
+ÎÏÓÉÔÅÌØ. ëÏÍÁÎÄÁ restore ×ÙÐÏÌÎÑÅÔ ÏÂÒÁÔÎÕÀ ÆÕÎËÃÉÀ - ÏÎÁ ÍÏÖÅÔ
+×ÏÓÓÔÁÎÏ×ÉÔØ ×ÓÀ ÆÁÊÌÏ×ÕÀ ÓÉÓÔÅÍÕ ÉÚ ÒÅÚÅÒ×ÎÏÊ ËÏÐÉÉ. ðÏÓÌÅÄÕÀÝÉÅ
+ÉÎËÒÅÍÅÎÔÁÌØÎÙÅ ÒÅÚÅÒ×ÎÙÅ ËÏÐÉÉ ÍÏÇÕÔ ÎÁËÌÁÄÙ×ÁÔØÓÑ ÎÁ ÐÏÌÎÕÀ ËÏÐÉÀ.
+ôÁËÖÅ ÉÚ ÐÏÌÎÏÊ ÉÌÉ ÞÁÓÔÉÞÎÏÊ ÒÅÚÅÒ×ÎÏÊ ËÏÐÉÉ ÍÏÇÕÔ ÂÙÔØ ×ÏÓÓÔÁÎÏ×ÌÅÎÙ
+ÏÔÄÅÌØÎÙÅ ÆÁÊÌÙ É ÄÅÒÅ×ØÑ ËÁÔÁÌÏÇÏ×.
%description -l tr
-dump, ext2 bölümlerini birkaç deðiþik þekilde yedeklemek için kullanýlýr.
-restore ise dump ile alýnan yedekleri geri yükleyen programdýr.
+dump, ext2 bölümlerini birkaç deðiþik þekilde yedeklemek için
+kullanýlýr. restore ise dump ile alýnan yedekleri geri yükleyen
+programdýr.
+
+%description -l uk
+ðÁËÅÔ dump ͦÓÔÉÔØ dump ÔÁ restore. Dump ÐÒÏÇÌÑÄÁ¤ ÆÁÊÌÉ Õ ÆÁÊÌÏצÊ
+ÓÉÓÔÅͦ, ×ÉÒ¦ÛÕ¤ Ñ˦ Ú ÎÉÈ Ð¦ÄÌÑÇÁÀÔØ ÒÅÚÅÒ×ÎÏÍÕ ËÏЦÀ×ÁÎÎÀ ÔÁ ËÏЦÀ¤
+æ ÆÁÊÌÉ ÎÁ ×ÉÚÎÁÞÅÎÉÊ ÄÉÓË, ÓÔÒ¦ÞËÕ ÁÂÏ ¦ÎÛÉÊ ÎÏÓ¦Ê. ëÏÍÁÎÄÁ restore
+×ÉËÏÎÕ¤ Ú×ÏÒÏÔÎÀ ÆÕÎËæÀ - ×ÏÎÁ ÍÏÖŠצÄÎÏ×ÉÔÉ ×ÓÀ ÆÁÊÌÏ×Õ ÓÉÓÔÅÍÕ Ú
+ÒÅÚÅÒ×Îϧ ËÏЦ§. îÁÓÔÕÐΦ ¦ÎËÒÅÍÅÎÔÁÌØΦ ÒÅÚÅÒ×Φ ËÏЦ§ ÍÏÖÕÔØ
+ÎÁËÌÁÄÁÔÉÓÑ ÎÁ ÐÏ×ÎÕ ËÏЦÀ. ôÁËÏÖ Ú ÐÏ×Îϧ ÁÂÏ ÞÁÓÔËÏ×ϧ ÒÅÚÅÒ×Îϧ
+ËÏЦ§ ÍÏÖÕÔØ ÂÕÔÉ ×¦ÄÎÏ×ÌÅΦ ÏËÒÅͦ ÆÁÊÌÉ ÔÁ ÄÅÒÅ×Á ËÁÔÁÌÏǦ×.
%package -n rmt
-Summary: Remote (network) tape device access
-Summary(de): Entfernter Zugriff (Netzwerk) auf Magnetbandgeräte
-Summary(fr): Accès distant (réseau) à un périphérique bande
-Summary(pl): Zdalny dostêp do napêdów ta¶m magnetycznych
-Summary(tr): Uzak teyp sürücülerine eriþim aracý
-Group: Utilities/System
+Summary: Provides certain programs with access to remote tape devices
+Summary(de): Entfernter Zugriff (Netzwerk) auf Magnetbandgeräte
+Summary(es): Acceso a dispositivo de cinta remoto (en red)
+Summary(fr): Accès distant (réseau) à un périphérique bande
+Summary(pl): Program do zdalnego dostêpu do napêdów ta¶m magnetycznych
+Summary(pt_BR): Acesso a dispositivo de fita remoto (em rede)
+Summary(ru): ðÒÏÇÒÁÍÍÙ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÕÄÁÌÅÎÎÙÍ ÌÅÎÔÏÞÎÙÍ ÕÓÔÒÏÊÓÔ×ÁÍ
+Summary(tr): Uzak teyp sürücülerine eriþim aracý
+Summary(uk): ðÒÏÇÒÁÍÉ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ×¦ÄÄÁÌÅÎÉÈ ÓÔÒ¦ÞËÏ×ÉÈ ÐÒÉÓÔÒϧ×
+Group: Applications/System
%description -n rmt
-rmt provides remote access to tape devices for programs like dump,
-restore, and tar.
+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).
+
+%description -n rmt -l de
+rmt stellt Remote-Access zu Bandgeräten für Programme wie Dump,
+Restore und tar bereit.
+
+%description -n rmt -l es
+rmt provee acceso remoto a dispositivos de cinta para programas como
+dump, restore y tar.
+
+%description -n rmt -l fr
+rmt offre un accès distant aux périphériques bandes pour des
+programmes comme dump, restore et tar.
+
+%description -n rmt -l pl
+Program rmt umo¿liwia zdalny dostêp do napêdów ta¶m magnetycznych dla
+programów takich jak dump, restore czy tar.
+
+%description -n rmt -l pt_BR
+rmt provê acesso remoto a dispositivos de fita para programas como
+dump, restore e tar.
+
+%description -n rmt -l ru
+õÔÉÌÉÔÁ rmt ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÕÄÁÌÅÎÎÙÊ ÄÏÓÔÕÐ Ë ÌÅÎÔÏÞÎÙÍ ÕÓÔÒÏÊÓÔ×ÁÍ
+ÎÅËÏÔÏÒÙÍ ÐÒÏÇÒÁÍÍÁÍ, ÎÁÐÒÉÍÅÒ dump, restore, tar.
+
+%description -n rmt -l tr
+rmt programý, dump, restore ve tar gibi programlar için teyp
+aygýtlarýna uzaktan eriþim saðlar.
-%description -l de -n rmt
-rmt stellt Remote-Access zu Bandgeräten für Programme wie Dump, Restore
-und tar bereit.
+%description -n rmt -l uk
+õÔÉ̦ÔÁ rmt ÎÁÄÁ¤ צÄÄÁÌÅÎÉÊ ÄÏÓÔÕÐ ÄÏ ÓÔÒ¦ÞËÏ×ÉÈ ÐÒÉÓÔÒÏ§× ÄÅÑËÉÍ
+ÐÒÏÇÒÁÍÁÍ, ÎÁÐÒÉËÌÁÄ dump, restore, tar.
-%description -l fr -n rmt
-rmt offre un accès distant aux périphériques bandes pour des programmes comme
-dump, restore et tar.
+%package -n ermt
+Summary: Encrypting version of rmt
+Summary(pl): Wersja rmt z szyfrowaniem
+Group: Applications/System
+Requires: openssl >= 0.9.7a
-%description -l pl -n rmt
-Program rmt umo¿liwia zdalny dostêp do napêdów ta¶m magnetycznych
-dla programów takich jak dump, restore czy tar
+%description -n ermt
+ermt is an encrypting version of rmt.
-%description -l tr -n rmt
-rmt programý, dump, restore ve tar gibi programlar için teyp aygýtlarýna
-uzaktan eriþim saðlar.
+%description -n ermt -l pl
+ermt to wersja programu rmt z szyfrowaniem.
%prep
%setup -q
-%patch0 -p0 -b .config
-%patch1 -p1 -b .types
-%patch2 -p1 -b .glibc
-#%patch3 -p1 -b .sparc
-%patch4 -p1 -b .kernel
+%patch0 -p1
+%patch1 -p1
%build
-make OPT="$RPM_OPT_FLAGS"
+%{__autoconf}
+MYNAME=`id -ru` \
+MYGRP=`id -rg`; \
+%configure \
+ --enable-ermt \
+ --enable-rmt \
+ --enable-readline \
+ --with-ccopts="%{rpmcflags}" \
+ --with-ldopts="%{rpmldflags}" \
+ --with-binowner=$MYNAME \
+ --with-bingrp=$MYGRP \
+ --with-binmode=755 \
+ --with-manowner=$MYNAME \
+ --with-mangrp=$MYGRP \
+ --with-manmode=644
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc,sbin,usr/man/man8}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},%{_mandir}/man8,/usr/sbin}
-MYNAME=`id -u`
-MYGRP=`id -g`
-make BINDIR=$RPM_BUILD_ROOT/sbin MANDIR=$RPM_BUILD_ROOT%{_mandir}/man8 \
-BINOWN=$MYNAME BINGRP=$MYGRP MANOWN=$MYNAME MANGRP=$MYGRP install
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-> $RPM_BUILD_ROOT/etc/dumpdates
+install rmt/ermt $RPM_BUILD_ROOT/usr/sbin
-ln -sf dump $RPM_BUILD_ROOT/sbin/rdump
-ln -sf restore $RPM_BUILD_ROOT/sbin/rrestore
+> $RPM_BUILD_ROOT%{_sysconfdir}/dumpdates
-echo ".so dump.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rdump.8
-echo ".so restore.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rrestore.8
+ln -sf %{_sbindir}/rmt $RPM_BUILD_ROOT%{_sysconfdir}/rmt
%clean
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(0644,root,root, 0755)
-%doc COPYRIGHT KNOWNBUGS THANKS CHANGES dump-0.3.announce
-%attr(0664,root, disk) %verify(not md5 mtime size) %config(noreplace) /etc/dumpdates
-%attr(6755,root,root) /sbin/dump
-%attr(0755,root,root) /sbin/rdump
-%attr(6755,root,root) /sbin/restore
-%attr(0755,root,root) /sbin/rrestore
-%attr(0755,root, man) %{_mandir}/man8/dump.8
-%attr(0755,root, man) %{_mandir}/man8/rdump.8
-%attr(0755,root, man) %{_mandir}/man8/restore.8
-%attr(0755,root, man) %{_mandir}/man8/rrestore.8
+%defattr(644,root,root,755)
+%doc COPYRIGHT KNOWNBUGS README THANKS TODO CHANGES
+%attr(664,root,disk) %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/dumpdates
+%attr(755,root,root) %{_sbindir}/*dump
+%attr(755,root,root) %{_sbindir}/*restore
+%{_mandir}/man8/*dump.8*
+%{_mandir}/man8/*restore.8*
%files -n rmt
-%attr(0755,root,root) /sbin/rmt
-%attr(0755,root, man) %{_mandir}/man8/rmt.8
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/rmt
+%attr(755,root,root) %{_sysconfdir}/rmt
+%{_mandir}/man8/rmt.8*
+
+%files -n ermt
+%defattr(644,root,root,755)
+%attr(755,root,root) /usr/sbin/ermt