1
0
forked from pool/xfsdump
xfsdump/xfsdump.spec

87 lines
2.5 KiB
RPMSpec

#
# spec file for package xfsdump (Version 3.0.1)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: xfsdump
BuildRequires: e2fsprogs-devel libattr-devel ncurses-devel xfsprogs-devel
Version: 3.0.1
Release: 1
AutoReqProv: on
Group: System/Filesystems
License: GPL v2 or later
Url: http://oss.sgi.com/projects/xfs/
Summary: Administrative Utilities for the XFS File System
Source0: xfsdump-%version.tar.bz2
Patch0: xfsdump-docdir.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
%build
export CFLAGS=$RPM_OPT_FLAGS
export DEBUG=-DNDEBUG
./configure \
--prefix=/usr \
--exec-prefix=/ \
--sbindir=/sbin \
--bindir=/usr/sbin \
--mandir=%{_mandir}
make %{?jobs:-j%jobs}
%install
export DIST_ROOT="$RPM_BUILD_ROOT"
make install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,755)
/sbin/*
/usr/sbin/*
%doc %_defaultdocdir/%name
/usr/share/man/man8/*
%changelog