forked from pool/xfsdump
Dirk Mueller
753b9be200
usrMerge project - move files from toplevel to /usr OBS-URL: https://build.opensuse.org/request/show/102946 OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsdump?expand=0&rev=8
89 lines
2.7 KiB
RPMSpec
89 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package xfsdump
|
|
#
|
|
# Copyright (c) 2012 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: xfsdump
|
|
BuildRequires: e2fsprogs-devel
|
|
BuildRequires: libattr-devel
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: xfsprogs-devel
|
|
Version: 3.0.5
|
|
Release: 0
|
|
Url: http://oss.sgi.com/projects/xfs/
|
|
Summary: Administrative Utilities for the XFS File System
|
|
License: GPL-2.0+
|
|
Group: System/Filesystems
|
|
Source0: xfsdump-%version.tar.gz
|
|
Patch0: xfsdump-docdir.diff
|
|
Patch1: xfsdump-3.0.1-fix-bufferoverflow.diff
|
|
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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
SGI
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
%patch1 -p1
|
|
|
|
%build
|
|
export CFLAGS=$RPM_OPT_FLAGS
|
|
export DEBUG=-DNDEBUG
|
|
%configure --bindir=%{_sbindir} --mandir=%{_mandir}
|
|
make %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
export DIST_ROOT="$RPM_BUILD_ROOT"
|
|
make install
|
|
#UsrMerge
|
|
ln -sf %_sbindir/xfsdump $RPM_BUILD_ROOT/sbin
|
|
ln -sf %_sbindir/xfsrestore $RPM_BUILD_ROOT/sbin
|
|
#EndUsrMerge
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,755)
|
|
%_sbindir/*
|
|
#UsrMerge
|
|
/sbin/*
|
|
#EndUsrMerge
|
|
%doc %_defaultdocdir/%name
|
|
/usr/share/man/man8/*
|
|
|
|
%changelog
|