X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=dump.spec;h=f470253b53ccc3d06f655f792981bcb443054e7d;hb=a41bb9b1b16fd9efd947e1e00e60ef994cf8c584;hp=7f7654ac99e8f1033a6d26b2efb13bc1e77b6b25;hpb=5ccf81bb7d9f6f42b6a073815ab8cb3f3f4fa37a;p=packages%2Fdump.git diff --git a/dump.spec b/dump.spec index 7f7654a..f470253 100644 --- a/dump.spec +++ b/dump.spec @@ -4,18 +4,26 @@ Summary(fr): syst Summary(pl): Programy do wykonywania kopii bezpieczeñstwa plików Summary(tr): dump/restore yedekleme sistemi Name: dump -Version: 0.4b16 -Release: 1 -Copyright: UCB -Group: Utilities/System -Group(pl): Narzêdzia/System -Source0: http://download.sourceforge.net/dump/dump-%{version}.tar.gz -Patch0: dump-sparc.patch +Version: 0.4b21 +Release: 4 +License: BSD +Group: Applications/System +Group(de): Applikationen/System +Group(pl): Aplikacje/System +Source0: ftp://download.sourceforge.net/pub/sourceforge/dump/%{name}-%{version}.tar.gz +Patch0: %{name}-sparc.patch +Patch1: %{name}-autoconf.patch +Patch2: %{name}-use_ncurses.patch +Patch3: %{name}-time.patch URL: http://dump.sourceforge.net/ BuildRequires: e2fsprogs-devel +BuildRequires: ncurses-devel >= 5.0 +BuildRequires: readline-devel Requires: rmt BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _sbindir /sbin + %description The dump package contains both dump and restore. Dump examines files in a filesystem, determines which ones need to be backed up, and @@ -53,7 +61,9 @@ Summary(de): Entfernter Zugriff (Netzwerk) auf Magnetbandger 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(tr): Uzak teyp sürücülerine eriþim aracý -Group: Utilities/System +Group: Applications/System +Group(de): Applikationen/System +Group(pl): Aplikacje/System %description -n rmt The rmt utility provides remote access to tape devices for programs @@ -79,42 +89,39 @@ ayg %prep %setup -q %patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build +autoconf MYNAME=`id -ru` \ -MYGRP=`id -rg` \ +MYGRP=`id -rg`; \ %configure \ --enable-rmt \ - --with-ccopts="$RPM_OPT_FLAGS" \ - --with-ldopts="-s" \ + --enable-readline \ + --with-ccopts="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}" \ + --with-ldopts="%{!?debug:-s}" \ --with-binowner=$MYNAME \ --with-bingrp=$MYGRP \ - --with-binmode=6755 \ + --with-binmode=755 \ --with-manowner=$MYNAME \ --with-mangrp=$MYGRP \ --with-manmode=644 -make +%{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/{etc,sbin,%{_mandir}/man8} -make BINDIR=$RPM_BUILD_ROOT/sbin MANDIR=$RPM_BUILD_ROOT%{_mandir}/man8 install +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT > $RPM_BUILD_ROOT%{_sysconfdir}/dumpdates -ln -sf dump $RPM_BUILD_ROOT/sbin/rdump -ln -sf restore $RPM_BUILD_ROOT/sbin/rrestore - -rm -f $RPM_BUILD_ROOT%{_mandir}/man8/{rdump,rrestore}.8 - -echo ".so dump.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rdump.8 -echo ".so restore.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rrestore.8 - -ln -sf ../sbin/rmt $RPM_BUILD_ROOT%{_sysconfdir}/rmt +ln -sf ..%{_sbindir}/rmt $RPM_BUILD_ROOT%{_sysconfdir}/rmt -gzip -9nf COPYRIGHT KNOWNBUGS README THANKS TODO CHANGES \ - $RPM_BUILD_ROOT%{_mandir}/man8/* +gzip -9nf COPYRIGHT KNOWNBUGS README THANKS TODO CHANGES %clean rm -rf $RPM_BUILD_ROOT @@ -123,17 +130,13 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc *.gz %attr(664,root, disk) %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/dumpdates -%attr(6755,root,root) /sbin/dump -%attr(755,root,root) /sbin/rdump -%attr(6755,root,root) /sbin/restore -%attr(755,root,root) /sbin/rrestore -%{_mandir}/man8/dump.8.gz -%{_mandir}/man8/rdump.8.gz -%{_mandir}/man8/restore.8.gz -%{_mandir}/man8/rrestore.8.gz +%attr(755,root,root) %{_sbindir}/*dump +%attr(755,root,root) %{_sbindir}/*restore +%{_mandir}/man8/*dump.8* +%{_mandir}/man8/*restore.8* %files -n rmt %defattr(644,root,root,755) -%attr(755,root,root) /sbin/rmt +%attr(755,root,root) %{_sbindir}/rmt %attr(755,root,root) %{_sysconfdir}/rmt -%{_mandir}/man8/rmt.8.gz +%{_mandir}/man8/rmt.8*