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
|
|
|
#
|
2021-07-19 11:20:19 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2020-03-30 19:42:24 +02:00
|
|
|
# Please submit bugfixes or comments via https://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
|
2021-07-19 11:20:19 +02:00
|
|
|
Version: 0.4b47
|
2015-02-25 09:09:42 +01:00
|
|
|
Release: 0
|
2017-03-24 22:21:51 +01:00
|
|
|
Summary: Programs for backing up and restoring ext2/3/4 filesystems
|
2015-02-25 09:09:42 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Archiving/Backup
|
2020-03-30 19:42:24 +02:00
|
|
|
URL: http://dump.sourceforge.net
|
2015-02-25 09:09:42 +01:00
|
|
|
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2017-03-24 22:21:51 +01:00
|
|
|
Source1: ermt.1.in
|
|
|
|
# PATCH-FIX-SUSE dump-0.4b46-pathnames.patch svalx@svalx.net -- pathnames and
|
|
|
|
# symlinks configuration for dump and restore
|
|
|
|
Patch0: %{name}-0.4b46-pathnames.patch
|
|
|
|
# PATCH-FIX-UPSTREAM dump-0.4b46-rmt-ermt.patch svalx@svalx.net -- Independent rmt and
|
|
|
|
# ermt build, change its locations to _bindir
|
|
|
|
Patch1: %{name}-0.4b46-rmt-ermt.patch
|
2015-02-25 09:09:42 +01:00
|
|
|
Patch3: %{name}-0.4b43-include.patch
|
|
|
|
BuildRequires: autoconf
|
2011-12-02 20:07:11 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: e2fsprogs-devel
|
2015-05-07 09:53:43 +02:00
|
|
|
BuildRequires: libbz2-devel
|
2011-12-02 20:07:11 +01:00
|
|
|
BuildRequires: libselinux-devel
|
2015-02-25 09:09:42 +01:00
|
|
|
BuildRequires: libtool
|
2015-05-07 09:53:43 +02:00
|
|
|
BuildRequires: lzo-devel
|
|
|
|
BuildRequires: openssl-devel
|
2011-12-02 20:07:11 +01:00
|
|
|
BuildRequires: readline-devel
|
2017-06-15 15:03:58 +02:00
|
|
|
BuildRequires: sqlite3-devel
|
2011-12-02 20:07:11 +01:00
|
|
|
BuildRequires: zlib-devel
|
2017-03-24 22:21:51 +01:00
|
|
|
Recommends: %{name}-rmt = %{version}
|
|
|
|
Recommends: mt
|
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
|
|
|
|
2017-03-24 22:21:51 +01:00
|
|
|
%package rmt
|
|
|
|
Summary: Provides certain programs with access to remote tape devices
|
|
|
|
Group: Productivity/Archiving/Backup
|
|
|
|
Requires(post): update-alternatives
|
2021-07-19 11:20:19 +02:00
|
|
|
Requires(postun):update-alternatives
|
2017-03-24 22:21:51 +01:00
|
|
|
Provides: rmt
|
|
|
|
|
|
|
|
%description rmt
|
|
|
|
The rmt utility provides remote access to tape devices for programs
|
|
|
|
like dump (a filesystem backup program), restore (a program for
|
|
|
|
restoring files from a backup), tar (an archiving program) and cpio.
|
|
|
|
|
2007-01-16 00:10:42 +01:00
|
|
|
%prep
|
2015-02-25 09:09:42 +01:00
|
|
|
%setup -q
|
2017-03-24 22:21:51 +01:00
|
|
|
cp %{SOURCE1} rmt/
|
2024-02-26 11:51:44 +01:00
|
|
|
%patch -P 0 -p1
|
|
|
|
%patch -P 1 -p1
|
|
|
|
%patch -P 3
|
2007-01-16 00:10:42 +01:00
|
|
|
|
|
|
|
%build
|
2017-03-27 13:45:53 +02:00
|
|
|
autoreconf -fiv
|
2020-03-30 19:42:24 +02:00
|
|
|
export CFLAGS="%{optflags} -fcommon"
|
2017-03-27 13:45:53 +02:00
|
|
|
%configure \
|
2017-06-15 15:03:58 +02:00
|
|
|
--disable-silent-rules \
|
|
|
|
--enable-sqlite \
|
2017-03-27 13:45:53 +02:00
|
|
|
--enable-ermt \
|
|
|
|
--enable-rmt=no \
|
|
|
|
--with-rmtpath=%{_bindir}
|
2021-07-19 11:20:19 +02:00
|
|
|
%make_build
|
2007-01-16 00:10:42 +01:00
|
|
|
|
|
|
|
%install
|
2017-03-24 22:21:51 +01:00
|
|
|
%make_install
|
|
|
|
mv examples/encrypted_rmt .
|
|
|
|
# Alternatives system
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
ln -sf %{_sysconfdir}/alternatives/rmt %{buildroot}%{_bindir}/rmt
|
|
|
|
ln -sf %{_sysconfdir}/alternatives/rmt.1%{ext_man} %{buildroot}%{_mandir}/man1/rmt.1%{ext_man}
|
|
|
|
|
|
|
|
%post rmt
|
|
|
|
%{_sbindir}/update-alternatives --force \
|
|
|
|
--install %{_bindir}/rmt rmt %{_bindir}/ermt 20 \
|
|
|
|
--slave %{_mandir}/man1/rmt.1%{ext_man} rmt.1%{ext_man} %{_mandir}/man1/ermt.1%{ext_man}
|
|
|
|
|
|
|
|
%postun rmt
|
2017-03-27 13:45:53 +02:00
|
|
|
if [ ! -f %{_bindir}/ermt ] ; then
|
2017-03-24 22:21:51 +01:00
|
|
|
"%{_sbindir}/update-alternatives" --remove rmt %{_bindir}/ermt
|
|
|
|
fi
|
2007-01-16 00:10:42 +01:00
|
|
|
|
|
|
|
%files
|
2017-03-24 22:21:51 +01:00
|
|
|
%{_sbindir}/dump
|
|
|
|
%{_sbindir}/restore
|
2021-07-19 11:20:19 +02:00
|
|
|
%{_mandir}/man8/dump.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/restore.8%{?ext_man}
|
|
|
|
%license COPYING
|
|
|
|
%doc NEWS KNOWNBUGS MAINTAINERS README REPORTING-BUGS
|
2017-03-24 22:21:51 +01:00
|
|
|
%doc AUTHORS TODO dump.lsm examples
|
|
|
|
|
|
|
|
%files rmt
|
|
|
|
%ghost %{_bindir}/rmt
|
|
|
|
%{_bindir}/ermt
|
|
|
|
%ghost %{_mandir}/man1/rmt.1%{ext_man}
|
2021-07-19 11:20:19 +02:00
|
|
|
%{_mandir}/man1/ermt.1%{?ext_man}
|
2017-03-24 22:21:51 +01:00
|
|
|
%ghost %{_sysconfdir}/alternatives/rmt
|
|
|
|
%ghost %{_sysconfdir}/alternatives/rmt.1%{ext_man}
|
|
|
|
%doc encrypted_rmt/README
|
2007-01-16 00:10:42 +01:00
|
|
|
|
2007-04-01 12:07:22 +02:00
|
|
|
%changelog
|