# # spec file for package dump # # Copyright (c) 2015 SUSE LINUX 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 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 BuildRequires: automake BuildRequires: e2fsprogs-devel BuildRequires: libbz2-devel BuildRequires: libselinux-devel BuildRequires: libtool BuildRequires: lzo-devel BuildRequires: openssl-devel BuildRequires: readline-devel BuildRequires: zlib-devel Requires: rmt BuildRoot: %{_tmppath}/%{name}-%{version}-build %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 -q %patch0 %patch1 %patch2 %patch3 %patch4 -p1 %patch5 -p1 %build 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 \ --enable-ermt make %{?_smp_mflags} %install install -d %{buildroot}%{_sysconfdir} \ %{buildroot}/sbin \ %{buildroot}/%{_mandir}/man8 make DESTDIR=%{buildroot}/ install #do not install rmt #ln -sf ../sbin/rmt $RPM_BUILD_ROOT/etc/rmt rm %{buildroot}/sbin/rmt rm %{buildroot}/%{_mandir}/man8/rmt.* %files %defattr(-, root, root) %{_mandir}/*/* /sbin/* %doc CHANGES COPYRIGHT KNOWNBUGS MAINTAINERS README REPORTING-BUGS %doc THANKS TODO dump.lsm examples %changelog