]> git.pld-linux.org Git - packages/dump.git/blob - dump.spec
- spec adapterized.
[packages/dump.git] / dump.spec
1 Summary:        Programs for backing up and restoring filesystems
2 Summary(de):    Dump/Restore-Backup-System
3 Summary(fr):    système de sauvegarde dump/restore
4 Summary(pl):    Programy do wykonywania kopii bezpieczeñstwa plików
5 Summary(tr):    dump/restore yedekleme sistemi
6 Name:           dump
7 Version:        0.4b11
8 Release:        1
9 Copyright:      UCB
10 Group:          Utilities/System
11 Group(pl):      Narzêdzia/System
12 Source0:        http://perso.cybercable.fr/pop/dump/%{name}-%{version}.tar.gz
13 Patch0:         dump-sparc.patch
14 URL:            http://perso.cybercable.fr/pop/dump/
15 Requires:       rmt
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 The dump package contains both dump and restore. Dump examines files
20 in a filesystem, determines which ones need to be backed up, and
21 copies those files to a specified disk, tape or other storage medium.
22 The restore command performs the inverse function of dump; it can
23 restore a full backup of a filesystem. Subsequent incremental backups
24 can then be layered on top of the full backup. Single files and
25 directory subtrees may also be restored from full or partial backups.
26
27 %description -l de
28 Sie können mit dump und restore verschiedene Verfahren zum Sichern von
29 extended 2 (ext2)-Partitionen ausführen.
30
31 %description -l fr
32 dupm et restore servent à sauvegarder des partitions ext2 de plusieurs
33 façons possibles
34
35 %description -l pl
36 Pakiet dump zawiera programy dump i restore. Dump sprawdza pliki w
37 systemie plikowym i okre¶la które powinny byæ zesk³adowane w kopii
38 bezpieczeñstwa an nastêpnie kopiuje te pliki na dysk, ta¶mê
39 magnetyczna lub inny nosnik. Polecenie restore wykonujê odwrotna
40 operacjê i s³u¿y do odtwarzania plików z kopii bezpieczeñstwa. Program
41 restore umo¿liwia odtwarzanie ca³ego archiwum, a tak¿e wybranych
42 pl;ików i katalogów.
43
44 %description -l tr
45 dump, ext2 bölümlerini birkaç deðiþik þekilde yedeklemek için
46 kullanýlýr. restore ise dump ile alýnan yedekleri geri yükleyen
47 programdýr.
48
49 %package -n rmt
50 Summary:        Provides certain programs with access to remote tape devices
51 Summary(de):    Entfernter Zugriff (Netzwerk) auf Magnetbandgeräte
52 Summary(fr):    Accès distant (réseau) à un périphérique bande
53 Summary(pl):    Program do zdalnego dostêpu do napêdów ta¶m magnetycznych
54 Summary(tr):    Uzak teyp sürücülerine eriþim aracý
55 Group:          Utilities/System
56
57 %description -n rmt
58 The rmt utility provides remote access to tape devices for programs
59 like dump (a filesystem backup program), restore (a program for
60 restoring files from a backup) and tar (an archiving program).
61
62 %description -l de -n rmt
63 rmt stellt Remote-Access zu Bandgeräten für Programme wie Dump,
64 Restore und tar bereit.
65
66 %description -l fr -n rmt
67 rmt offre un accès distant aux périphériques bandes pour des
68 programmes comme dump, restore et tar.
69
70 %description -l pl -n rmt
71 Program rmt umo¿liwia zdalny dostêp do napêdów ta¶m magnetycznych dla
72 programów takich jak dump, restore czy tar.
73
74 %description -l tr -n rmt
75 rmt programý, dump, restore ve tar gibi programlar için teyp
76 aygýtlarýna uzaktan eriþim saðlar.
77
78 %prep
79 %setup -q
80 %patch0 -p1
81
82 %build
83 MYNAME=`id -ru` \
84 MYGRP=`id -rg` \
85 %configure \
86         --enable-rmt \
87         --with-ccopts="$RPM_OPT_FLAGS" \
88         --with-ldopts="-s" \
89         --with-binowner=$MYNAME \
90         --with-bingrp=$MYGRP \
91         --with-binmode=6755 \
92         --with-manowner=$MYNAME \
93         --with-mangrp=$MYGRP \
94         --with-manmode=644
95 make
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99 install -d $RPM_BUILD_ROOT/{etc,sbin,%{_mandir}/man8}
100
101 make BINDIR=$RPM_BUILD_ROOT/sbin MANDIR=$RPM_BUILD_ROOT%{_mandir}/man8 install
102
103 > $RPM_BUILD_ROOT%{_sysconfdir}/dumpdates
104
105 ln -sf dump $RPM_BUILD_ROOT/sbin/rdump
106 ln -sf restore $RPM_BUILD_ROOT/sbin/rrestore
107
108 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/{rdump,rrestore}.8
109
110 echo ".so dump.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rdump.8
111 echo ".so restore.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rrestore.8
112
113 ln -sf ../sbin/rmt $RPM_BUILD_ROOT%{_sysconfdir}/rmt
114
115 gzip -9nf COPYRIGHT KNOWNBUGS README THANKS TODO CHANGES \
116         $RPM_BUILD_ROOT%{_mandir}/man8/*
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %files
122 %defattr(644,root,root,755)
123 %doc *.gz
124 %attr(664,root, disk) %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/dumpdates
125 %attr(6755,root,root) /sbin/dump
126 %attr(755,root,root) /sbin/rdump
127 %attr(6755,root,root) /sbin/restore
128 %attr(755,root,root) /sbin/rrestore
129 %{_mandir}/man8/dump.8.gz
130 %{_mandir}/man8/rdump.8.gz
131 %{_mandir}/man8/restore.8.gz
132 %{_mandir}/man8/rrestore.8.gz
133
134 %files -n rmt
135 %defattr(644,root,root,755)
136 %attr(755,root,root) /sbin/rmt
137 %attr(755,root,root) %{_sysconfdir}/rmt
138 %{_mandir}/man8/rmt.8.gz
This page took 0.047581 seconds and 4 git commands to generate.