2007-01-16 00:10:42 +01:00
|
|
|
#
|
2011-09-22 13:55:27 +02:00
|
|
|
# spec file for package dump
|
2007-01-16 00:10:42 +01:00
|
|
|
#
|
2015-02-25 09:09:42 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:10:42 +01:00
|
|
|
#
|
2008-10-23 04:29:49 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-04-01 12:07:22 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:10:42 +01:00
|
|
|
#
|
|
|
|
|
2013-01-12 10:46:19 +01:00
|
|
|
|
2007-04-01 12:07:22 +02:00
|
|
|
Name: dump
|
2015-02-25 09:09:42 +01:00
|
|
|
Version: 0.4b44
|
|
|
|
Release: 0
|
|
|
|
Summary: A Backup Program
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Archiving/Backup
|
|
|
|
Url: http://dump.sourceforge.net
|
|
|
|
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Patch0: %{name}-0.4b43-pathnames.patch
|
|
|
|
Patch1: %{name}-0.4b43-destdir.patch
|
|
|
|
Patch2: %{name}-0.4b43-configure.patch
|
|
|
|
Patch3: %{name}-0.4b43-include.patch
|
|
|
|
Patch4: %{name}-0.4b43-fix-bashisms.patch
|
|
|
|
Patch5: %{name}-buildfix.patch
|
|
|
|
BuildRequires: autoconf
|
2011-12-02 20:07:11 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
BuildRequires: libselinux-devel
|
2015-02-25 09:09:42 +01:00
|
|
|
BuildRequires: libtool
|
2011-12-02 20:07:11 +01:00
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: zlib-devel
|
2007-04-01 12:07:22 +02:00
|
|
|
Requires: rmt
|
2015-02-25 09:09:42 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:10:42 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The dump package contains both dump and restore. Dump examines files
|
2007-04-01 12:07:22 +02:00
|
|
|
in a file system, determines which ones need to be backed up, and
|
2015-02-25 09:09:42 +01:00
|
|
|
copies those files to a specified disk, tape, or other storage medium.
|
2007-04-01 12:07:22 +02:00
|
|
|
The restore command performs the inverse function of dump. It can
|
|
|
|
restore a full backup of a file system.
|
2007-01-16 00:10:42 +01:00
|
|
|
|
|
|
|
%prep
|
2015-02-25 09:09:42 +01:00
|
|
|
%setup -q
|
2007-01-16 00:10:42 +01:00
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2014-12-16 14:06:51 +01:00
|
|
|
%patch4 -p1
|
2015-02-25 09:09:42 +01:00
|
|
|
%patch5 -p1
|
2007-01-16 00:10:42 +01:00
|
|
|
|
|
|
|
%build
|
2015-02-25 09:09:42 +01:00
|
|
|
autoreconf -fi
|
|
|
|
%configure \
|
|
|
|
--sbindir=/sbin \
|
|
|
|
--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
|
2011-09-22 13:55:27 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:10:42 +01:00
|
|
|
|
|
|
|
%install
|
2015-02-25 09:09:42 +01:00
|
|
|
install -d %{buildroot}/etc \
|
|
|
|
%{buildroot}/sbin \
|
|
|
|
%{buildroot}/%{_mandir}/man8
|
|
|
|
make DESTDIR=%{buildroot}/ install
|
2007-01-16 00:10:42 +01:00
|
|
|
#do not install rmt
|
|
|
|
#ln -sf ../sbin/rmt $RPM_BUILD_ROOT/etc/rmt
|
2015-02-25 09:09:42 +01:00
|
|
|
rm %{buildroot}/sbin/rmt
|
|
|
|
rm %{buildroot}/%{_mandir}/man8/rmt.*
|
2007-01-16 00:10:42 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc %{_mandir}/*/*
|
|
|
|
/sbin/*
|
|
|
|
%doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README REPORTING-BUGS
|
|
|
|
%doc THANKS TODO dump.lsm examples
|
|
|
|
|
2007-04-01 12:07:22 +02:00
|
|
|
%changelog
|