File dump.spec of Package dump
#
# spec file for package dump (Version 0.4b41)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: dump
BuildRequires: e2fsprogs-devel readline-devel zlib-devel
License: BSD 3-Clause
Group: Productivity/Archiving/Backup
AutoReqProv: on
Version: 0.4b41
Release: 159
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}-pathnames.patch
Patch1: %{name}-%{version}-destdir.patch
Patch2: %{name}-%{version}-configure.patch
Patch3: %{name}-%{version}-include.patch
Url: http://dump.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A Backup Program
Requires: rmt
%description
The dump package contains both dump and restore. Dump examines files
in a file system, determines which ones need to be backed up, and
copies those files to a specified disk, tape, or other storage medium.
The restore command performs the inverse function of dump. It can
restore a full backup of a file system.
Authors:
--------
Remy Card <Remy.Card@freenix.fr>
Stelian Pop <pop@cybercable.fr>
%prep
%setup
#mkdir ext2fs
#sed -e "s|ino_t|__ino_t|g" /usr/include/ext2fs/ext2fs.h >ext2fs/ext2fs.h
%patch0
%patch1
%patch2
%patch3
%{suse_update_config}
%build
%define prefix /usr
%define sysconfdir /etc
aclocal
autoconf
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
./configure --mandir=%{_mandir} \
--prefix=%{prefix} \
--sbindir=/sbin \
--infodir=%{_infodir} \
--sysconfdir=%{sysconfdir} \
--enable-rmt \
--with-ldopts= \
--with-ccopts="-I$PWD -Wall" \
--with-binowner=root \
--with-bingrp=root \
--with-binmode=0755 \
--with-manowner=root \
--with-mangrp=root \
--with-manmode=0644 \
--enable-readline \
--enable-largefile
make
%install
install -d $RPM_BUILD_ROOT/etc \
$RPM_BUILD_ROOT/sbin \
$RPM_BUILD_ROOT/%{_mandir}/man8
make DESTDIR=$RPM_BUILD_ROOT/ install
#do not install rmt
#ln -sf ../sbin/rmt $RPM_BUILD_ROOT/etc/rmt
rm $RPM_BUILD_ROOT/sbin/rmt
rm $RPM_BUILD_ROOT/%{_mandir}/man8/rmt.*
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-, root, root)
%doc %{_mandir}/*/*
/sbin/*
%doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README REPORTING-BUGS
%doc THANKS TODO dump.lsm examples
%changelog
* Sat Mar 31 2007 rguenther@suse.de
- add zlib-devel BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 15 2006 schwab@suse.de
- Don't strip binaries.
* Tue Jan 03 2006 nadvornik@suse.cz
- updated to 0.4b41
* ACL fixes
* Mon Jul 25 2005 nadvornik@suse.cz
- do not install rmt
* Fri Jul 15 2005 nadvornik@suse.cz
- updated to 0.4b40
* support for extended attributes (ACL)
* Tue Apr 19 2005 nadvornik@suse.de
- fixed including of linux/fs.h
* Tue Jan 25 2005 nadvornik@suse.cz
- updated to 0.4b39
* Wed Sep 01 2004 nadvornik@suse.cz
- updated to 0.4b37
* Wed Jun 02 2004 ro@suse.de
- avoid inclusion of linux/audit.h
* Tue Feb 10 2004 kukuk@suse.de
- Fix compiling on 64bit architectures
* Thu Feb 05 2004 nadvornik@suse.cz
- updated to 0.4b35
* Fri Aug 01 2003 nadvornik@suse.cz
- fixed to compile on x86_64
* Wed Jul 23 2003 nadvornik@suse.cz
- update to 0.4b34, fixes [#27810]
* Mon Feb 17 2003 nadvornik@suse.cz
- updated to 0.4b33
* Thu Aug 29 2002 nadvornik@suse.cz
- updated to 0.4b31:
- fixed rmt open flags transmission (remote dump was broken in 0.4b29)
- fixed the tape length calculation when using large tapes and compression
- made dump save 32 bit UID/GID
* Tue Jul 02 2002 nadvornik@suse.cz
- updated to 0.4b29
- bugfixes
- more examples
* Thu Apr 18 2002 nadvornik@suse.cz
- updated to 0.4b28
- bugfixes
- do not include kernel haders
- compiled with readline
* Tue Apr 02 2002 nadvornik@suse.cz
- fixed to compile with new autoconf
* Wed Jan 30 2002 nadvornik@suse.cz
- update to 0.4b26:
- more examples
- bugfixes
* Mon Jan 07 2002 nadvornik@suse.cz
- added link /etc/rmt -> /sbin/rmt for compatibility [bug #12615]
* Thu Nov 22 2001 nadvornik@suse.cz
- update to 0.4b25:
- more documentation
- added bzip2 compression
- suport for backups to CD
- bugfixes
* Fri Aug 17 2001 nadvornik@suse.cz
- added fix for traverse.c
* Thu Aug 16 2001 ro@suse.de
- up to 0.4b23 to make it build with new e2fsprogs
* Tue Feb 27 2001 nadvornik@suse.cz
- update to 0.4b21
* Fri Feb 23 2001 ro@suse.de
- added readline/readline-devel to neededforbuild (split from bash)
* Thu Feb 22 2001 schwab@suse.de
- Fix missing includes.
- Replace ino_t by __ino_t instead of unsigned int.
- Don't kill entire process group on crash.
* Fri Feb 09 2001 uli@suse.de
- fixed for glibc 2.2.1
* Thu Jan 11 2001 nadvornik@suse.cz
- added lfs patch
* Tue Dec 05 2000 smid@suse.cz
- path to rmt changed [#4306]
* Sun Dec 03 2000 smid@suse.cz
- new version 0.4b20
* Thu Nov 09 2000 ro@suse.de
- fixed neededforbuild
* Fri Sep 29 2000 smid@suse.cz
- new version 0.4b19
* Fri Apr 07 2000 smid@suse.cz
- upgrade to 0.4b16
- buildroot added
* Thu Mar 02 2000 kukuk@suse.de
- Update to version 0.4b15 and correct security fix
* Thu Feb 10 2000 kukuk@suse.de
- Update to version 0.4b14
* Sun Jan 30 2000 kukuk@suse.de
- Update to version 0.4b13
- Move /usr/man -> /usr/share/man
* Mon Dec 06 1999 kukuk@suse.de
- Update to version 0.4b11 (BUG #1448)
- Fix dump manual page (BUG #1367)
* Sat Nov 13 1999 kukuk@suse.de
- Compile without ext2fs progs, but use ext2fs development package
* Mon Nov 08 1999 kukuk@suse.de
- Security update for dump to 0.4b9
* Fri Oct 29 1999 ro@suse.de
- fixed spec for e2fsprogs-1.17
* Mon Oct 25 1999 ro@suse.de
- fixed spec for e2fsprogs-1.16
* Mon Oct 18 1999 kukuk@suse.de
- Update to version 0.4b7
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Aug 31 1999 ro@suse.de
- changed for e2fsprogs-1.15 / only do install-lib
* Sat Jun 26 1999 kukuk@suse.de
- Update to dump 0.4b4
* Tue Sep 01 1998 ro@suse.de
- use e2fsprgs-1.12-sources / dont use -lbsd
* Mon Oct 20 1997 ro@suse.de
- ready for autobuild
minor patch in dump/traverse.c
* Thu Jan 02 1997 florian@suse.de
- recompile to use newer and static ext2 libraries