]> git.pld-linux.org Git - packages/dump.git/blob - dump.spec
- fixed usage of macros
[packages/dump.git] / dump.spec
1 Summary:        dump/restore backup system
2 Summary(de):    Dump/Restore-Backup-System 
3 Summary(fr):    système de sauvegarde dump/restore
4 Summary(pl):    System kopii bezpieczeñstwa dump/restore
5 Summary(tr):    dump/restore yedekleme sistemi
6 Name:           dump
7 Version:        0.4b4
8 Release:        1
9 Copyright:      UCB
10 Group:          Utilities/System
11 Source:         ftp://tsx-11.mit.edu:/pub/linux/packages/ext2fs/%{name}-%{version}.tar.gz
12 Patch0:         dump-glibc.patch
13 Patch1:         dump-sparc.patch
14 Patch2:         dump-kernel.patch
15 Requires:       rmt
16 BuildRoot:      /tmp/%{name}-%{version}-root
17
18 %description
19 dump and restore can be used to backup extended 2 (ext2) partitions in
20 a variety of ways.
21
22 %description -l de
23 Sie können mit dump und restore verschiedene Verfahren zum Sichern 
24 von extended 2 (ext2)-Partitionen ausführen.
25
26 %description -l fr
27 dupm et restore servent à sauvegarder des partitions ext2 de plusieurs
28 façons possibles
29
30 %description -l pl
31 Programy dump i restore s³u¿± do tworzenia i odtwarzanie kopii
32 bezpieczeñstwa partycji z systemem plków ext2.
33
34 %description -l tr
35 dump, ext2 bölümlerini birkaç deðiþik þekilde yedeklemek için kullanýlýr.
36 restore ise dump ile alýnan yedekleri geri yükleyen programdýr.
37
38 %package -n rmt
39 Summary:        Remote (network) tape device access
40 Summary(de):    Entfernter Zugriff (Netzwerk) auf Magnetbandgeräte
41 Summary(fr):    Accès distant (réseau) à un périphérique bande
42 Summary(pl):    Zdalny dostêp do napêdów ta¶m magnetycznych
43 Summary(tr):    Uzak teyp sürücülerine eriþim aracý
44 Group:          Utilities/System
45
46 %description -n rmt
47 rmt provides remote access to tape devices for programs like dump,
48 restore, and tar.
49
50 %description -l de -n rmt
51 rmt stellt Remote-Access zu Bandgeräten für Programme wie Dump, Restore 
52 und tar bereit. 
53
54 %description -l fr -n rmt
55 rmt offre un accès distant aux périphériques bandes pour des programmes comme
56 dump, restore et tar.
57
58 %description -l pl -n rmt
59 Program rmt umo¿liwia zdalny dostêp do napêdów ta¶m magnetycznych
60 dla programów takich jak dump, restore czy tar
61
62 %description -l tr -n rmt
63 rmt programý, dump, restore ve tar gibi programlar için teyp aygýtlarýna
64 uzaktan eriþim saðlar.
65
66 %prep
67 %setup -q
68 %patch0 -p1
69 #%patch1 -p1
70 %patch2 -p1
71
72 %build
73 MYNAME=`id -ru` \
74 MYGRP=`id -rg` \
75 %configure \
76         --enable-rmt \
77         --with-ccopts="$RPM_OPT_FLAGS" \
78         --with-ldopts="-s" \
79         --with-binowner=$MYNAME \
80         --with-bingrp=$MYGRP \
81         --with-binmode=6755 \
82         --with-manowner=$MYNAME \
83         --with-mangrp=$MYGRP \
84         --with-manmode=644
85 make
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT/{etc,sbin,%{_mandir}/man8}
90
91 make BINDIR=$RPM_BUILD_ROOT/sbin MANDIR=$RPM_BUILD_ROOT%{_mandir}/man8 install
92
93 > $RPM_BUILD_ROOT/etc/dumpdates
94
95 ln -sf dump $RPM_BUILD_ROOT/sbin/rdump
96 ln -sf restore $RPM_BUILD_ROOT/sbin/rrestore
97
98 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/{rdump,rrestore}.8
99
100 echo ".so dump.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rdump.8
101 echo ".so restore.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rrestore.8
102
103 gzip -9nf COPYRIGHT KNOWNBUGS THANKS CHANGES dump-0.3.announce \
104         $RPM_BUILD_ROOT%{_mandir}/man8/*
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %files
110 %defattr(644,root,root,755)
111 %doc {COPYRIGHT,KNOWNBUGS,THANKS,CHANGES,dump-0.3.announce}.gz
112 %attr(664,root, disk) %verify(not md5 mtime size) %config(noreplace) /etc/dumpdates
113 %attr(6755,root,root) /sbin/dump
114 %attr(755,root,root) /sbin/rdump
115 %attr(6755,root,root) /sbin/restore
116 %attr(755,root,root) /sbin/rrestore
117 %{_mandir}/man8/dump.8.gz
118 %{_mandir}/man8/rdump.8.gz
119 %{_mandir}/man8/restore.8.gz
120 %{_mandir}/man8/rrestore.8.gz
121
122 %files -n rmt
123 %defattr(644,root,root,755)
124 %attr(755,root,root) /sbin/rmt
125 %{_mandir}/man8/rmt.8.gz
This page took 0.060777 seconds and 4 git commands to generate.