X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump.spec;h=91c1e4bdd03ad83824a499c6f4e7de7a895bc84d;hp=aecb5ddbcecb670047a971c563967a4ac96714d8;hb=c5e38bc12e0a29762e7a4561c815ab8a7c8ade56;hpb=60d46c352087c38c29a690d80b62441028579f35 diff --git a/dump.spec b/dump.spec index aecb5dd..91c1e4b 100644 --- a/dump.spec +++ b/dump.spec @@ -1,25 +1,29 @@ %define _sbindir /sbin # XXX --enable-kerberos needs krcmd -%define myoptions --with-binmode=6755 --with-manowner=root --with-mangrp=root --with-manmode=0644 --with-dumpdates="%{_sysconfdir}/dumpdates" --enable-readline +%define myoptions --with-binmode=6755 --with-manowner=root --with-mangrp=root --with-manmode=0644 --with-dumpdates="%{_sysconfdir}/dumpdates" -Summary: Programs for backing up and restoring filesystems. +Summary: Programs for backing up and restoring ext2/ext3 filesystems. Name: dump -Version: 0.4b21 +Version: 0.4b42 Release: 1 -Copyright: UCB +License: BSD +URL: http://dump.sourceforge.net Group: Applications/Archiving -Source: http://sourceforge.net/download.php/dump/dump-%{version}.tar.gz +Source: dump-%{version}.tar.gz +BuildPrereq: e2fsprogs-devel >= 1.18 +BuildPrereq: libtermcap-devel, readline-devel, ncurses-devel +BuildPrereq: zlib-devel, bzip2-devel Requires: rmt BuildRoot: %{_tmppath}/%{name}-root %description -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. +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. Install dump if you need a system for both backing up filesystems and restoring filesystems after backups. @@ -31,42 +35,47 @@ 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). +restoring files from a backup), and tar (an archiving program). %package -n dump-static Summary: Statically linked versions of dump and restore. Group: Applications/Archiving %description -n dump-static -The dump package contains both dump and restore. Dump examines files in +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 +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 +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 dump if you need a system for both backing up filesystems and restoring filesystems after backups. -This packages contains statically linked versions of dump and restore. +This package contains statically linked versions of dump and restore. %prep %setup -q %build -%configure %{myoptions} --enable-static +%configure %{myoptions} --enable-static -disable-rmt -make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts" +%ifarch alpha +RPM_OPT_FLAGS="" +%endif +make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes \ + -Wmissing-prototypes -Wno-char-subscripts" mv dump/dump dump/dump.static mv restore/restore restore/restore.static make distclean -%configure %{myoptions} --enable-rmt +%configure %{myoptions} -make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts" +make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes \ + -Wmissing-prototypes -Wno-char-subscripts" %install rm -rf %{buildroot} @@ -74,12 +83,12 @@ mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_mandir}/man8 %makeinstall SBINDIR=%{buildroot}%{_sbindir} MANDIR=%{buildroot}%{_mandir}/man8 BINOWNER=$(id -un) BINGRP=$(id -gn) MANOWNER=$(id -un) MANGRP=$(id -gn) +mkdir -p $RPM_BUILD_ROOT/usr/sbin cp dump/dump.static %{buildroot}%{_sbindir} cp restore/restore.static %{buildroot}%{_sbindir} -{ cd %{buildroot} - strip .%{_sbindir}/* || : +pushd $RPM_BUILD_ROOT ln -sf dump .%{_sbindir}/rdump ln -sf dump.static .%{_sbindir}/rdump.static ln -sf restore .%{_sbindir}/rrestore @@ -88,7 +97,13 @@ cp restore/restore.static %{buildroot}%{_sbindir} mkdir -p .%{_sysconfdir} > .%{_sysconfdir}/dumpdates ln -sf ..%{_sbindir}/rmt .%{_sysconfdir}/rmt -} + # quick workaround :) + mv sbin/* usr/sbin/ + mv usr/sbin/*static sbin/ + mv usr/sbin/rmt sbin/ + # somehow, rpm didn't strip these... + strip usr/sbin/* sbin/* || : +popd %clean rm -rf %{buildroot} @@ -96,12 +111,12 @@ rm -rf %{buildroot} %files %defattr(-,root,root) %doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO -%doc dump.lsm +%doc dump.lsm examples %attr(0664,root,disk) %config(noreplace) %{_sysconfdir}/dumpdates -%attr(0755,root,root) %{_sbindir}/dump -%{_sbindir}/rdump -%attr(0755,root,root) %{_sbindir}/restore -%{_sbindir}/rrestore +%attr(0755,root,root) /usr/sbin/dump +/usr/sbin/rdump +%attr(0755,root,root) /usr/sbin/restore +/usr/sbin/rrestore %{_mandir}/man8/dump.* %{_mandir}/man8/rdump.* %{_mandir}/man8/restore.* @@ -121,55 +136,115 @@ rm -rf %{buildroot} %{_sbindir}/rrestore.static %changelog -* Sat Jan 30 2001 Stelian Pop +* Mon Jun 18 2009 Stelian Pop +- dump 0.4b42 released, first packaging. + +* Mon Jan 2 2006 Stelian Pop +- dump 0.4b41 released, first packaging. + +* Fri Jan 21 2005 Stelian Pop +- dump 0.4b39 released, first packaging. + +* Fri Jan 7 2005 Stelian Pop +- dump 0.4b38 released, first packaging. + +* Wed Jul 7 2004 Stelian Pop +- dump 0.4b37 released, first packaging. + +* Wed Apr 21 2004 Stelian Pop +- dump 0.4b36 released, first packaging. + +* Sun Dec 21 2003 Stelian Pop +- dump 0.4b35 released, first packaging. + +* Fri Apr 18 2003 Stelian Pop +- dump 0.4b34 released, first packaging. + +* Mon Feb 10 2003 Stelian Pop +- dump 0.4b33 released, first packaging. + +* Fri Nov 15 2002 Stelian Pop +- dump 0.4b32 released, first packaging. + +* Tue Jul 30 2002 Stelian Pop +- dump 0.4b31 released, first packaging. + +* Thu Jul 25 2002 Stelian Pop +- dump 0.4b30 released, first packaging. + +* Sat Jun 8 2002 Stelian Pop +- dump 0.4b29 released, first packaging. + +* Fri Apr 12 2002 Stelian Pop +- dump 0.4b28 released, first packaging. + +* Fri Feb 15 2002 Stelian Pop +- dump 0.4b27 released, first packaging. + +* Mon Jan 7 2002 Stelian Pop +- dump 0.4b26 released, first packaging. + +* Sat Nov 17 2001 Stelian Pop +- dump 0.4b25 released, first packaging. + +* Wed Sep 12 2001 Stelian Pop +- dump 0.4b24 released, first packaging. + +* Fri Jul 20 2001 Stelian Pop +- dump 0.4b23 released, first packaging. + +* Sat May 12 2001 Stelian Pop +- dump 0.4b22 released, first packaging. + +* Sat Jan 30 2001 Stelian Pop - dump 0.4b21 released, first packaging. -* Fri Nov 10 2000 Stelian Pop +* Fri Nov 10 2000 Stelian Pop - dump 0.4b20 released, first packaging. -* Sun Aug 20 2000 Stelian Pop +* Sun Aug 20 2000 Stelian Pop - dump 0.4b19 released, first packaging. -* Thu Jun 30 2000 Stelian Pop +* Thu Jun 30 2000 Stelian Pop - dump 0.4b18 released, first packaging. -* Thu Jun 1 2000 Stelian Pop +* Thu Jun 1 2000 Stelian Pop - dump 0.4b17 released, first packaging. -* Sat Mar 11 2000 Stelian Pop +* Sat Mar 11 2000 Stelian Pop - dump 0.4b16 released, first packaging. -* Thu Mar 2 2000 Stelian Pop +* Thu Mar 2 2000 Stelian Pop - dump 0.4b15 released, first packaging. -* Thu Feb 10 2000 Stelian Pop +* Thu Feb 10 2000 Stelian Pop - dump 0.4b14 released, first packaging. -* Fri Jan 21 2000 Stelian Pop +* Fri Jan 21 2000 Stelian Pop - dump 0.4b13 released, first packaging. -* Fri Jan 8 2000 Stelian Pop +* Fri Jan 8 2000 Stelian Pop - dump 0.4b12 released, first packaging. -* Sun Dec 5 1999 Stelian Pop +* Sun Dec 5 1999 Stelian Pop - dump 0.4b11 released, first packaging. -* Sun Nov 21 1999 Stelian Pop +* Sun Nov 21 1999 Stelian Pop - dump 0.4b10 released, first packaging. -* Thu Nov 11 1999 Stelian Pop +* Thu Nov 11 1999 Stelian Pop - make static versions also for rescue purposes. -* Wed Nov 5 1999 Stelian Pop +* Wed Nov 5 1999 Stelian Pop - dump 0.4b9 released, first packaging. -* Wed Nov 3 1999 Stelian Pop +* Wed Nov 3 1999 Stelian Pop - dump 0.4b8 released, first packaging. -* Thu Oct 8 1999 Stelian Pop +* Thu Oct 8 1999 Stelian Pop - dump 0.4b7 released, first packaging. -* Thu Sep 30 1999 Stelian Pop +* Thu Sep 30 1999 Stelian Pop - dump 0.4b6 released, first packaging. * Fri Sep 10 1999 Jeff Johnson