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