1
0
forked from pool/xfsdump
xfsdump/xfsdump.spec
Dirk Mueller 7525dd0639 Accepting request 999463 from home:ailiopoulos:branches:filesystems
- Update to version 3.1.11
  - Remove remaining slave words from documentation
  - Remove DMAPI remaining code
  - Fix FTBFS error
  - Removed xfsdump-xfs_restore-remove-DMAPI-support.patch
  - Updated keyring to reflect new upstream maintainer (cem@kernel.org)

OBS-URL: https://build.opensuse.org/request/show/999463
OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsdump?expand=0&rev=36
2022-08-29 09:38:13 +00:00

93 lines
3.0 KiB
RPMSpec

#
# spec file for package xfsdump
#
# Copyright (c) 2022 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: xfsdump
Version: 3.1.11
Release: 0
Summary: Administrative Utilities for the XFS File System
License: GPL-2.0-or-later
Group: System/Filesystems
URL: https://xfs.wiki.kernel.org/
Source0: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsdump/xfsdump-%{version}.tar.xz
Source1: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsdump/xfsdump-%{version}.tar.sign
Source2: %{name}.keyring
Patch0: xfsdump-docdir.diff
Patch1: xfsdump-rename-READ-WRITE-macros-in-rmtlib.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: e2fsprogs-devel
BuildRequires: libattr-devel
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: xfsprogs-devel
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The xfsdump package contains xfsdump, xfsrestore, and a number of other
utilities for administering XFS file systems.
xfsdump examines files in a file system, determines which files need to
be backed up, and copies those files to a specified disk, tape, or
other storage medium. It uses XFS-specific directives for optimizing
the dump of an XFS file system and also knows how to backup XFS
extended attributes. Backups created with xfsdump are "endian safe"
and can thus be transferred between Linux machines of different
architectures and also between IRIX machines.
xfsrestore performs the inverse function of xfsdump. It can restore a
full backup of a file system. Subsequent incremental backups can then
be layered on top of the full backup. Single files and directory
subtrees may be restored from full or partial backups.
%prep
%setup -q
%patch0
%patch1 -p1
%build
rm -f configure
make configure
export DEBUG=-DNDEBUG
%configure --bindir=%{_sbindir}
make %{?_smp_mflags}
%install
export DIST_ROOT=%{buildroot}
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%find_lang xfsdump
mv %{buildroot}/sbin/{xfsdump,xfsrestore} %{buildroot}/%{_sbindir}
%if !0%{?usrmerged}
ln -s %{_sbindir}/xfsdump %{buildroot}/sbin
ln -s %{_sbindir}/xfsrestore %{buildroot}/sbin
%endif
%files -f xfsdump.lang
%defattr(-,root,root,755)
%{_sbindir}/*
%if !0%{?usrmerged}
/sbin/*
%endif
%doc %{_defaultdocdir}/%{name}
%{_mandir}/man8/*
%if 0%{?suse_version} > 1200
%doc doc/COPYING
%endif
%changelog