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