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