Files
dump/dump.spec
Antonio Teixeira 55a8cfd5bf - Update to 0.4b49:
* Reworking of regression tests and test harness
  * Import some patches from the Debian package.
  * restore -N should never change the fs. Fixes #154
  * Support outputting list of files from restore -t with '\0' separator
    (Patch from debian bug 703564 by Heiko Schlittermann)
  * Fix reading of QFA file when listing tape.
  * Support restoring to filesystems with a blocksize that isn't a multiple
    of TP_BSIZE (debian bug 995992). This is a different fix to the one
    currently in debian. The advantage of using a common multiple, if
    available, is that every FS block will only be written to once.
    Fixed an issue where the alignment between blocksize and writing pos
    becomes misaligned when a sparse hole doesn't occupy a full fs block
    (happens when restoring to a FS with a different, larger blocksize than
    the one the dump was taken on.
  * Numerous other minor patches from the Debian package
  * Don't read off end of buffer when restoring symlinks
  * Fix some weirdness around dumping a subdirectory. Do not include the
    inodes for all of the items in the subdirectories - which then give a
    restore error "inode not found on tape"
  * Fix EA problem when EAs blocks are read immediately before a tape change.
  * Allow compressed dumps to work when -b blocksize setting is the maximum
    a tape drive supports.
  * Remove code added for building on systems other than __linux__
  * Major reworking of how reading from disk and tape works. Dump now
    supports writing a compressed dump to a file and then writing that to
    tape. There is now only one "read" function. We do not have separate
    functions for reading tapes, files, compressed tapes, compressed files.
  * Improve the efficiency of TS_ADDR (and TS_INODE) record for
    representing larger files. A single TS_ADDR record can now represent up

OBS-URL: https://build.opensuse.org/package/show/Archiving/dump?expand=0&rev=29
2024-12-17 20:21:32 +00:00

121 lines
3.9 KiB
RPMSpec

#
# spec file for package dump
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: dump
Version: 0.4b49
Release: 0
Summary: Programs for backing up and restoring ext2/3/4 filesystems
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
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
Patch3: %{name}-0.4b43-include.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: sqlite3-devel
BuildRequires: zlib-devel
Recommends: %{name}-rmt = %{version}
Recommends: mt
%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.
%package rmt
Summary: Provides certain programs with access to remote tape devices
Group: Productivity/Archiving/Backup
Requires(post): update-alternatives
Requires(postun): update-alternatives
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.
%prep
%setup -q
cp %{SOURCE1} rmt/
%autopatch -p1
%build
autoreconf -fiv
export CFLAGS="%{optflags} -fcommon"
%configure \
--disable-silent-rules \
--enable-sqlite \
--enable-ermt \
--enable-rmt=no \
--with-rmtpath=%{_bindir}
%make_build
%install
%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
if [ ! -f %{_bindir}/ermt ] ; then
"%{_sbindir}/update-alternatives" --remove rmt %{_bindir}/ermt
fi
%files
%{_sbindir}/dump
%{_sbindir}/restore
%{_mandir}/man8/dump.8%{?ext_man}
%{_mandir}/man8/restore.8%{?ext_man}
%license COPYING
%doc NEWS KNOWNBUGS MAINTAINERS README REPORTING-BUGS
%doc AUTHORS TODO dump.lsm examples
%files rmt
%ghost %{_bindir}/rmt
%{_bindir}/ermt
%ghost %{_mandir}/man1/rmt.1%{ext_man}
%{_mandir}/man1/ermt.1%{?ext_man}
%ghost %{_sysconfdir}/alternatives/rmt
%ghost %{_sysconfdir}/alternatives/rmt.1%{ext_man}
%doc encrypted_rmt/README
%changelog