File xfsprogs.spec of Package xfsprogs

# spec file for package xfsprogs (Version 3.1.4)
# Copyright (c) 2010 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

# norootforbuild

Name:           xfsprogs
BuildRequires:  e2fsprogs-devel
Version:        3.1.4
Release:        1
%if 0%{?suse_version} >= 1010
# hint for ZYPP
Supplements:    filesystem(xfs)
AutoReqProv:    on
Group:          System/Filesystems
License:        GPLv2+
Summary:        Utilities for managing the XFS file system
Source0:        xfsprogs-%{version}.tar.bz2
Patch0:         xfsprogs-docdir.diff
Patch1:         xfsprogs-ppc64.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A set of commands to use the XFS file system, including mkfs.xfs.

XFS is a high performance journaling file system which originated on
the SGI IRIX platform.	It is completely multithreaded. It can support
large files and large file systems, extended attributes, and variable
block sizes.It is extent based and makes extensive use of Btrees
(directories, extents, and free space) to aid both performance and

Refer to the documentation at for
complete details.  This implementation is on-disk compatible with the
IRIX version of XFS.


%package      devel
Requires:       xfsprogs = %version
AutoReqProv:    on
Group:          Development/Libraries/C and C++
License:        GPLv2+
Summary:        XFS Filesystem-specific Static Libraries and Headers

%description devel
xfsprogs-devel contains the libraries and header files needed to
develop XFS file system-specific programs.

You should install xfsprogs-devel if you want to develop XFS file
system-specific programs.  If you install xfsprogs-devel, you will also
want to install xfsprogs.


%setup -q

export OPTIMIZER="-fPIC"
export LIBUUID=/usr/%{_lib}/libuuid.a
./configure \
	--prefix=%{_prefix} \
	--libdir=/%{_libdir} \
	--libexecdir=/usr/%{_lib} \
	--includedir=%{_includedir} \
	--mandir=%{_mandir} \
make %{?jobs:-j %jobs}

/usr/bin/make install
/usr/bin/make install-dev
# remove devel stuff from /lib
rm $RPM_BUILD_ROOT/%_lib/libhandle.{so,a,la}
rm $RPM_BUILD_ROOT/%_libdir/
pushd $RPM_BUILD_ROOT%_libdir
	ls ../../%_lib/[0-9]
	ln -s ../../%_lib/[0-9]
chmod 755 $RPM_BUILD_ROOT/sbin/fsck.xfs
%find_lang %name


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %name.lang
# this is only used by xfs cmds, therefore no urgent need for a shlib package
%doc /usr/share/man/man[58]/*
%doc %_defaultdocdir/%name

%files devel

openSUSE Build Service is sponsored by