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