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