2007-01-16 00:42:30 +01:00
|
|
|
#
|
2011-10-15 07:09:26 +02:00
|
|
|
# spec file for package xfsprogs
|
2007-01-16 00:42:30 +01:00
|
|
|
#
|
2014-05-19 16:35:01 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:42:30 +01:00
|
|
|
#
|
2008-09-02 18:22:58 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:42:30 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-15 14:55:10 +01:00
|
|
|
|
2007-01-16 00:42:30 +01:00
|
|
|
Name: xfsprogs
|
2012-10-10 21:40:33 +02:00
|
|
|
BuildRequires: readline-devel
|
2012-05-07 22:29:09 +02:00
|
|
|
%if 0%{?suse_version} > 0
|
|
|
|
%if 0%{?suse_version} < 1100
|
2007-01-16 00:42:30 +01:00
|
|
|
BuildRequires: e2fsprogs-devel
|
2012-05-07 22:29:09 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
%endif
|
2014-12-11 11:50:05 +01:00
|
|
|
Version: 3.2.2
|
2012-02-15 14:37:22 +01:00
|
|
|
Release: 0
|
2010-03-19 09:26:05 +01:00
|
|
|
%if 0%{?suse_version} >= 1010
|
2007-04-04 20:13:27 +02:00
|
|
|
# hint for ZYPP
|
|
|
|
Supplements: filesystem(xfs)
|
2010-03-19 09:26:05 +01:00
|
|
|
%endif
|
2007-10-24 01:46:13 +02:00
|
|
|
Url: http://oss.sgi.com/projects/xfs/
|
2007-01-16 00:42:30 +01:00
|
|
|
Summary: Utilities for managing the XFS file system
|
2012-02-15 14:37:22 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Filesystems
|
2011-06-20 15:08:27 +02:00
|
|
|
Source0: xfsprogs-%{version}.tar.gz
|
2007-04-04 20:13:27 +02:00
|
|
|
Patch0: xfsprogs-docdir.diff
|
2007-06-22 18:53:51 +02:00
|
|
|
Patch1: xfsprogs-ppc64.diff
|
2007-01-16 00:42:30 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
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
|
|
|
|
scalability.
|
|
|
|
|
|
|
|
Refer to the documentation at http://oss.sgi.com/projects/xfs/ for
|
|
|
|
complete details. This implementation is on-disk compatible with the
|
|
|
|
IRIX version of XFS.
|
|
|
|
|
|
|
|
%package devel
|
2007-06-22 18:53:51 +02:00
|
|
|
Requires: xfsprogs = %version
|
2007-01-16 00:42:30 +01:00
|
|
|
Summary: XFS Filesystem-specific Static Libraries and Headers
|
2012-02-15 14:37:22 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-01-16 00:42:30 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
2007-04-04 20:13:27 +02:00
|
|
|
%setup -q
|
2012-05-07 22:29:09 +02:00
|
|
|
%if 0%{?suse_version}
|
2007-01-16 00:42:30 +01:00
|
|
|
%patch0
|
2012-05-07 22:29:09 +02:00
|
|
|
%endif
|
2007-01-16 00:42:30 +01:00
|
|
|
%patch1
|
|
|
|
|
|
|
|
%build
|
|
|
|
export OPTIMIZER="-fPIC"
|
|
|
|
export DEBUG=-DNDEBUG
|
|
|
|
export LIBUUID=/usr/%{_lib}/libuuid.a
|
2012-10-10 21:40:33 +02:00
|
|
|
%configure --enable-readline=yes
|
2012-05-26 14:02:23 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:42:30 +01:00
|
|
|
|
|
|
|
%install
|
2007-06-22 18:53:51 +02:00
|
|
|
export DIST_ROOT="$RPM_BUILD_ROOT"
|
|
|
|
/usr/bin/make install
|
|
|
|
/usr/bin/make install-dev
|
|
|
|
# remove devel stuff from /lib
|
2014-12-11 11:50:05 +01:00
|
|
|
rm $RPM_BUILD_ROOT/%_lib/libhandle.so
|
2012-02-15 14:37:22 +01:00
|
|
|
# move things to usr
|
|
|
|
mv $RPM_BUILD_ROOT/sbin/* $RPM_BUILD_ROOT%{_sbindir}
|
|
|
|
mv $RPM_BUILD_ROOT/%_lib/* $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
#UsrMerge
|
2012-03-15 14:55:10 +01:00
|
|
|
ln -s %{_sbindir}/{fsck.xfs,mkfs.xfs,xfs_repair} $RPM_BUILD_ROOT/sbin
|
2012-02-15 14:37:22 +01:00
|
|
|
#EndUserMerge
|
2007-06-22 18:53:51 +02:00
|
|
|
pushd $RPM_BUILD_ROOT%_libdir
|
2012-02-15 14:37:22 +01:00
|
|
|
ln -s libhandle.so.[0-9] libhandle.so
|
2007-06-22 18:53:51 +02:00
|
|
|
popd
|
2012-02-15 14:37:22 +01:00
|
|
|
chmod 755 $RPM_BUILD_ROOT/%_sbindir/fsck.xfs
|
2007-06-22 18:53:51 +02:00
|
|
|
%find_lang %name
|
2007-01-16 00:42:30 +01:00
|
|
|
|
2007-06-22 18:53:51 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 00:42:30 +01:00
|
|
|
|
2007-06-22 18:53:51 +02:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:42:30 +01:00
|
|
|
|
2007-06-22 18:53:51 +02:00
|
|
|
%files -f %name.lang
|
2007-01-16 00:42:30 +01:00
|
|
|
%defattr(-,root,root,755)
|
2012-02-15 14:37:22 +01:00
|
|
|
#UsrMerge
|
2007-06-22 18:53:51 +02:00
|
|
|
/sbin/*
|
2012-02-15 14:37:22 +01:00
|
|
|
#EndUsrMerge
|
|
|
|
%_sbindir/*
|
|
|
|
# this is only used by xfs cmds, therefore no urgent need for a shlib package
|
|
|
|
%_libdir/libhandle.so.*
|
2007-06-22 18:53:51 +02:00
|
|
|
%doc /usr/share/man/man[58]/*
|
|
|
|
%doc %_defaultdocdir/%name
|
|
|
|
|
|
|
|
%files devel
|
2007-01-16 00:42:30 +01:00
|
|
|
%defattr(-,root,root,755)
|
2012-02-15 14:37:22 +01:00
|
|
|
%_includedir/xfs
|
2007-06-22 18:53:51 +02:00
|
|
|
%_libdir/*.so
|
|
|
|
%_libdir/*.a
|
|
|
|
%_libdir/*.la
|
|
|
|
/usr/share/man/man3/*
|
2008-02-04 17:44:01 +01:00
|
|
|
|
2007-04-04 20:13:27 +02:00
|
|
|
%changelog
|