SHA256
1
0
forked from pool/dump
dump/dump.spec

92 lines
2.7 KiB
RPMSpec

#
# spec file for package dump
#
# Copyright (c) 2013 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/
#
Name: dump
BuildRequires: automake
BuildRequires: e2fsprogs-devel
BuildRequires: libselinux-devel
BuildRequires: readline-devel
BuildRequires: zlib-devel
Version: 0.4b43
Release: 0
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
License: BSD-3-Clause
Group: Productivity/Archiving/Backup
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.
%prep
%setup
#mkdir ext2fs
#sed -e "s|ino_t|__ino_t|g" /usr/include/ext2fs/ext2fs.h >ext2fs/ext2fs.h
%patch0
%patch1
%patch2
%patch3
%build
%define prefix /usr
%define sysconfdir /etc
aclocal
autoconf
%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
make %{?_smp_mflags}
%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.*
%files
%defattr(-, root, root)
%doc %{_mandir}/*/*
/sbin/*
%doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README REPORTING-BUGS
%doc THANKS TODO dump.lsm examples
%changelog