]> git.wh0rd.org - dump.git/blame - dump.spec
Another set of compression patches from Jerry.
[dump.git] / dump.spec
CommitLineData
1d568d1b
SP
1%define _sbindir /sbin
2# XXX --enable-kerberos needs krcmd
86fab47e 3%define myoptions --with-binmode=6755 --with-manowner=root --with-mangrp=root --with-manmode=0644 --with-dumpdates="%{_sysconfdir}/dumpdates" --enable-readline --enable-largefile --enable-qfa
1d568d1b 4
c154548c
SP
5Summary: Programs for backing up and restoring filesystems.
6Name: dump
35e850a4 7Version: 0.4b21
c154548c 8Release: 1
aa73f847 9License: BSD
c154548c 10Group: Applications/Archiving
aa73f847 11Source: http://download.sourceforge.net/dump/dump-%{version}.tar.gz
c154548c 12Requires: rmt
16dc7a8a 13BuildRequires: e2fsprogs-devel
1d568d1b 14BuildRoot: %{_tmppath}/%{name}-root
c154548c
SP
15
16%description
17The dump package contains both dump and restore. Dump examines files in
18a filesystem, determines which ones need to be backed up, and copies
19those files to a specified disk, tape or other storage medium. The
20restore command performs the inverse function of dump; it can restore a
21full backup of a filesystem. Subsequent incremental backups can then be
22layered on top of the full backup. Single files and directory subtrees
23may also be restored from full or partial backups.
24
25Install dump if you need a system for both backing up filesystems and
26restoring filesystems after backups.
27
28%package -n rmt
29Summary: Provides certain programs with access to remote tape devices.
30Group: Applications/Archiving
31
32%description -n rmt
33The rmt utility provides remote access to tape devices for programs
34like dump (a filesystem backup program), restore (a program for
35restoring files from a backup) and tar (an archiving program).
36
dc8d1876 37%package -n dump-static
8954518f 38Summary: Statically linked versions of dump and restore.
dc8d1876
SP
39Group: Applications/Archiving
40
41%description -n dump-static
42The dump package contains both dump and restore. Dump examines files in
43a filesystem, determines which ones need to be backed up, and copies
44those files to a specified disk, tape or other storage medium. The
45restore command performs the inverse function of dump; it can restore a
46full backup of a filesystem. Subsequent incremental backups can then be
47layered on top of the full backup. Single files and directory subtrees
48may also be restored from full or partial backups.
49
50Install dump if you need a system for both backing up filesystems and
51restoring filesystems after backups.
52
53This packages contains statically linked versions of dump and restore.
54
c154548c
SP
55%prep
56%setup -q
57
58%build
1d568d1b 59%configure %{myoptions} --enable-static
dc8d1876
SP
60
61make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
62
63mv dump/dump dump/dump.static
64mv restore/restore restore/restore.static
65
66make distclean
67
1d568d1b 68%configure %{myoptions} --enable-rmt
c154548c
SP
69
70make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
71
72%install
1d568d1b
SP
73rm -rf %{buildroot}
74mkdir -p %{buildroot}%{_sbindir}
75mkdir -p %{buildroot}%{_mandir}/man8
76
60d46c35 77%makeinstall SBINDIR=%{buildroot}%{_sbindir} MANDIR=%{buildroot}%{_mandir}/man8 BINOWNER=$(id -un) BINGRP=$(id -gn) MANOWNER=$(id -un) MANGRP=$(id -gn)
1d568d1b
SP
78
79cp dump/dump.static %{buildroot}%{_sbindir}
80cp restore/restore.static %{buildroot}%{_sbindir}
81
82{ cd %{buildroot}
83 strip .%{_sbindir}/* || :
84 ln -sf dump .%{_sbindir}/rdump
85 ln -sf dump.static .%{_sbindir}/rdump.static
86 ln -sf restore .%{_sbindir}/rrestore
87 ln -sf restore.static .%{_sbindir}/rrestore.static
88 chmod ug-s .%{_sbindir}/rmt
89 mkdir -p .%{_sysconfdir}
90 > .%{_sysconfdir}/dumpdates
91 ln -sf ..%{_sbindir}/rmt .%{_sysconfdir}/rmt
c154548c
SP
92}
93
94%clean
1d568d1b 95rm -rf %{buildroot}
c154548c
SP
96
97%files
98%defattr(-,root,root)
1d568d1b
SP
99%doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO
100%doc dump.lsm
101%attr(0664,root,disk) %config(noreplace) %{_sysconfdir}/dumpdates
102%attr(0755,root,root) %{_sbindir}/dump
103%{_sbindir}/rdump
104%attr(0755,root,root) %{_sbindir}/restore
105%{_sbindir}/rrestore
106%{_mandir}/man8/dump.*
107%{_mandir}/man8/rdump.*
108%{_mandir}/man8/restore.*
109%{_mandir}/man8/rrestore.*
c154548c
SP
110
111%files -n rmt
112%defattr(-,root,root)
1d568d1b
SP
113%attr(0755,root,root) %{_sbindir}/rmt
114%{_sysconfdir}/rmt
115%{_mandir}/man8/rmt.*
c154548c 116
dc8d1876
SP
117%files -n dump-static
118%defattr(-,root,root)
1d568d1b
SP
119%attr(0755,root,root) %{_sbindir}/dump.static
120%{_sbindir}/rdump.static
121%attr(0755,root,root) %{_sbindir}/restore.static
122%{_sbindir}/rrestore.static
dc8d1876 123
c154548c 124%changelog
35e850a4
SP
125* Sat Jan 30 2001 Stelian Pop <pop@noos.fr>
126- dump 0.4b21 released, first packaging.
127
109e9e1d 128* Fri Nov 10 2000 Stelian Pop <pop@noos.fr>
e93e901d
SP
129- dump 0.4b20 released, first packaging.
130
109e9e1d 131* Sun Aug 20 2000 Stelian Pop <pop@noos.fr>
d56b7aa4
SP
132- dump 0.4b19 released, first packaging.
133
109e9e1d 134* Thu Jun 30 2000 Stelian Pop <pop@noos.fr>
8cca05cc
SP
135- dump 0.4b18 released, first packaging.
136
109e9e1d 137* Thu Jun 1 2000 Stelian Pop <pop@noos.fr>
ac443b63
SP
138- dump 0.4b17 released, first packaging.
139
109e9e1d 140* Sat Mar 11 2000 Stelian Pop <pop@noos.fr>
107a347c
SP
141- dump 0.4b16 released, first packaging.
142
109e9e1d 143* Thu Mar 2 2000 Stelian Pop <pop@noos.fr>
2f7e72ce
SP
144- dump 0.4b15 released, first packaging.
145
109e9e1d 146* Thu Feb 10 2000 Stelian Pop <pop@noos.fr>
688653ea
SP
147- dump 0.4b14 released, first packaging.
148
109e9e1d 149* Fri Jan 21 2000 Stelian Pop <pop@noos.fr>
d4b74b5c
SP
150- dump 0.4b13 released, first packaging.
151
109e9e1d 152* Fri Jan 8 2000 Stelian Pop <pop@noos.fr>
df172bbb
SP
153- dump 0.4b12 released, first packaging.
154
109e9e1d 155* Sun Dec 5 1999 Stelian Pop <pop@noos.fr>
cf9aab8e
SP
156- dump 0.4b11 released, first packaging.
157
109e9e1d 158* Sun Nov 21 1999 Stelian Pop <pop@noos.fr>
c930abff
SP
159- dump 0.4b10 released, first packaging.
160
109e9e1d 161* Thu Nov 11 1999 Stelian Pop <pop@noos.fr>
dc8d1876
SP
162- make static versions also for rescue purposes.
163
109e9e1d 164* Wed Nov 5 1999 Stelian Pop <pop@noos.fr>
08ebf8d7
SP
165- dump 0.4b9 released, first packaging.
166
109e9e1d 167* Wed Nov 3 1999 Stelian Pop <pop@noos.fr>
c154548c
SP
168- dump 0.4b8 released, first packaging.
169
109e9e1d 170* Thu Oct 8 1999 Stelian Pop <pop@noos.fr>
c154548c
SP
171- dump 0.4b7 released, first packaging.
172
109e9e1d 173* Thu Sep 30 1999 Stelian Pop <pop@noos.fr>
c154548c
SP
174- dump 0.4b6 released, first packaging.
175
176* Fri Sep 10 1999 Jeff Johnson <jbj@redhat.com>
177- recompile with e2fsprogs = 1.15 (#4962).
178
179* Sat Jul 31 1999 Jeff Johnson <jbj@redhat.com>
180- workaround egcs bug (#4281) that caused dump problems (#2989).
181- use sigjmp_buf, not jmp_buf (#3260).
182- invoke /etc/rmt (instead of rmt) like other unices. (#3272).
183- use glibc21 err/glob rather than the internal compatibility routines.
184- wire $(OPT) throughout Makefile's.
185- fix many printf problems, mostly lint clean.
186- merge SuSE, Debian and many OpenBSD fixes.
187
188* Thu Mar 25 1999 Jeff Johnson <jbj@redhat.com>
189- remove setuid/setgid bits from /sbin/rmt (dump/restore are OK).
190
191* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
192- auto rebuild in the new build environment (release 6)
193
194* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
195- strip binaries.
196
197* Thu Mar 18 1999 Jeff Johnson <jbj@redhat.com>
198- Fix dangling symlinks (#1551).
199
200* Wed Mar 17 1999 Michael Maher <mike@redhat.com>
201- Top O' the morning, build root's fixed for man pages.
202
203* Fri Feb 19 1999 Preston Brown <pbrown@redhat.com>
204- upgraded to dump 0.4b4, massaged patches.
205
206* Tue Feb 02 1999 Ian A Cameron <I.A.Cameron@open.ac.uk>
207- added patch from Derrick J Brashear for traverse.c to stop bread errors
208
209* Wed Jan 20 1999 Jeff Johnson <jbj@redhat.com>
210- restore original 6755 root.tty to dump/restore, defattr did tty->root (#684).
211- mark /etc/dumpdates as noreplace.
212
213* Tue Jul 14 1998 Jeff Johnson <jbj@redhat.com>
214- add build root.
215
216* Tue May 05 1998 Prospector System <bugs@redhat.com>
217- translations modified for de, fr, tr
218
219* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
220- added a patch for resolving linux/types.h and sys/types.h conflicts
221
222* Wed Dec 31 1997 Erik Troan <ewt@redhat.com>
223- added prototype of llseek() so dump would work on large partitions
224
225* Thu Oct 30 1997 Donnie Barnes <djb@redhat.com>
226- made all symlinks relative instead of absolute
227
228* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
229- built against glibc
230
231* Thu Mar 06 1997 Michael K. Johnson <johnsonm@redhat.com>
232- Moved rmt to its own package.
233
234* Tue Feb 11 1997 Michael Fulbright <msf@redhat.com>
235- Added endian cleanups for SPARC
236
237* Fri Feb 07 1997 Michael K. Johnson <johnsonm@redhat.com>
238- Made /etc/dumpdates writeable by group disk.