Summary: Administrative utilities for the XFS filesystem Name: xfsdump Version: 2.2.45 Release: 3%{?dist} # Licensing based on generic "GNU GENERAL PUBLIC LICENSE" # in source, with no mention of version. License: GPL+ Group: System Environment/Base URL: http://oss.sgi.com/projects/xfs/ Source0: ftp://oss.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf, libtool, gettext, gawk BuildRequires: xfsprogs-devel, e2fsprogs-devel, libattr-devel ncurses-devel Requires: xfsprogs >= 2.6.30, attr >= 2.0.0 Patch1: fix-open-O_CREAT-perms.patch %description The xfsdump package contains xfsdump, xfsrestore and a number of other utilities for administering XFS filesystems. xfsdump examines files in a filesystem, determines which 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 filesystem, and also knows how to backup XFS extended attributes. Backups created with xfsdump are "endian safe" and can thus be transfered 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 filesystem. 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 %patch1 -p1 %build autoconf %configure --libdir=/%{_lib} --libexecdir=%{_libdir} \ --sbindir=/sbin --bindir=%{_sbindir} \ --enable-lib64=yes make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DIST_ROOT=$RPM_BUILD_ROOT install # remove non-versioned docs location rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/xfsdump/ (cd $RPM_BUILD_ROOT/%{_sbindir}; rm xfsdump xfsrestore) (cd $RPM_BUILD_ROOT/%{_sbindir}; ln -s ../../sbin/xfsdump .) (cd $RPM_BUILD_ROOT/%{_sbindir}; ln -s ../../sbin/xfsrestore .) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README doc/COPYING doc/CHANGES doc/README.xfsdump doc/xfsdump_ts.txt doc/PORTING %{_mandir}/man8/* %{_sbindir}/* /sbin/* %changelog * Fri Aug 24 2007 Eric Sandeen - 2.2.45-3 - Update license tag - Fix up O_CREAT opens with no mode - Add gawk to buildrequires * Tue Jun 19 2007 Eric Sandeen - 2.2.45-2 - Remove readline-devel & libtermcap-devel BuildRequires * Thu May 31 2007 Eric Sandeen - 2.2.45-1 - Update to xfsdump 2.2.45 * Wed Aug 31 2006 Russell Cattelan - 2.2.42-2 - Remove Distribution: tag * Wed Aug 23 2006 Russell Cattelan - 2.2.42-1 - update to version 2.2.42 * Tue Aug 22 2006 Russell Cattelan - 2.2.38-3 - Fix the /usr/sbin sym links to relative links - Add the Distribution tag - Add ncurses-devel to buildrequires * Tue Aug 16 2006 Russell Cattelan - 2.2.38-2 - install removes the makefile installed version of the docs package the docs based in the version specfic directory * Wed Aug 9 2006 Russell Cattelan - 2.2.38-1 - Add xfsdump to Fedorda