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
|
|
|
#
|
2017-05-23 20:14:04 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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
|
|
|
|
2017-05-23 20:14:04 +02:00
|
|
|
%define _dracutmodulesdir %{_libexecdir}/dracut/modules.d
|
|
|
|
|
2007-01-16 00:42:30 +01:00
|
|
|
Name: xfsprogs
|
2017-05-23 20:14:04 +02:00
|
|
|
Version: 4.9.0
|
2015-03-19 15:44:17 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Utilities for managing the XFS file system
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Filesystems
|
|
|
|
Url: http://xfs.org
|
2017-05-23 20:14:04 +02:00
|
|
|
Source0: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-%{version}.tar.xz
|
|
|
|
Source1: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-%{version}.tar.sign
|
2015-03-19 15:44:17 +01:00
|
|
|
Source2: %{name}.keyring
|
2017-05-23 20:14:04 +02:00
|
|
|
Source3: module-setup.sh.in
|
|
|
|
Source4: dracut-fsck-help.txt
|
2015-03-19 15:44:17 +01:00
|
|
|
Patch0: xfsprogs-docdir.diff
|
2015-11-18 22:13:09 +01:00
|
|
|
BuildRequires: libblkid-devel
|
2012-10-10 21:40:33 +02:00
|
|
|
BuildRequires: readline-devel
|
2015-03-19 15:44:17 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-05-07 22:29:09 +02:00
|
|
|
BuildRequires: libuuid-devel
|
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
|
2016-01-04 10:27:31 +01:00
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
BuildRequires: suse-module-tools
|
|
|
|
%endif
|
2007-01-16 00:42:30 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
Summary: XFS Filesystem-specific Static Libraries and Headers
|
2012-02-15 14:37:22 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-03-19 15:44:17 +01:00
|
|
|
Requires: xfsprogs = %{version}
|
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
|
|
|
|
|
|
|
%build
|
|
|
|
export OPTIMIZER="-fPIC"
|
|
|
|
export DEBUG=-DNDEBUG
|
2015-03-19 15:44:17 +01:00
|
|
|
export LIBUUID=%{_libdir}/libuuid.a
|
2012-10-10 21:40:33 +02:00
|
|
|
%configure --enable-readline=yes
|
2016-01-04 10:27:31 +01:00
|
|
|
make %{?_smp_mflags} V=1
|
2007-01-16 00:42:30 +01:00
|
|
|
|
2017-05-23 20:14:04 +02:00
|
|
|
PATH_TO_HELP="%{_dracutmodulesdir}/95suse-xfs/dracut-fsck-help.txt"
|
|
|
|
sed -e "s|@@PATH_TO_HELP@@|$PATH_TO_HELP|" %{SOURCE3} > module-setup.sh
|
|
|
|
|
2007-01-16 00:42:30 +01:00
|
|
|
%install
|
2015-03-19 15:44:17 +01:00
|
|
|
export DIST_ROOT=%{buildroot}
|
|
|
|
make install
|
|
|
|
make install-dev
|
2015-11-18 22:13:09 +01:00
|
|
|
# Move libhandle to usr, libhandle.{a,la} are symlinks to usr/lib* already so
|
|
|
|
# remove them first.
|
|
|
|
rm %{buildroot}/%{_lib}/libhandle.a
|
|
|
|
rm %{buildroot}/%{_lib}/libhandle.la
|
2015-03-19 15:44:17 +01:00
|
|
|
mv %{buildroot}/%{_lib}/* %{buildroot}%{_libdir}
|
|
|
|
%find_lang %{name}
|
2017-05-23 20:14:04 +02:00
|
|
|
install -m 0755 -d %{buildroot}/%{_dracutmodulesdir}/95suse-xfs/
|
|
|
|
install -m 0755 module-setup.sh %{buildroot}/%{_dracutmodulesdir}/95suse-xfs/
|
|
|
|
install -m 0644 %{SOURCE4} %{buildroot}/%{_dracutmodulesdir}/95suse-xfs/
|
2007-01-16 00:42:30 +01:00
|
|
|
|
2016-01-04 10:27:31 +01:00
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
%post
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
%else
|
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
|
2016-01-04 10:27:31 +01:00
|
|
|
%endif
|
2007-01-16 00:42:30 +01:00
|
|
|
|
2015-03-19 15:44:17 +01: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
|
2015-03-19 15:44:17 +01:00
|
|
|
%{_sbindir}/*
|
2012-02-15 14:37:22 +01:00
|
|
|
# this is only used by xfs cmds, therefore no urgent need for a shlib package
|
2015-03-19 15:44:17 +01:00
|
|
|
%{_libdir}/libhandle.so.*
|
|
|
|
%doc %{_mandir}/man[58]/*
|
|
|
|
%doc %{_defaultdocdir}/%{name}
|
2017-05-23 20:14:04 +02:00
|
|
|
%dir %{_libexecdir}/dracut
|
|
|
|
%dir %{_libexecdir}/dracut/modules.d
|
|
|
|
%dir %{_dracutmodulesdir}/95suse-xfs/
|
|
|
|
%{_dracutmodulesdir}/95suse-xfs/dracut-fsck-help.txt
|
|
|
|
%{_dracutmodulesdir}/95suse-xfs/module-setup.sh
|
2007-06-22 18:53:51 +02:00
|
|
|
|
|
|
|
%files devel
|
2007-01-16 00:42:30 +01:00
|
|
|
%defattr(-,root,root,755)
|
2015-03-19 15:44:17 +01:00
|
|
|
%{_includedir}/xfs
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.a
|
|
|
|
%{_libdir}/*.la
|
|
|
|
%{_mandir}/man3/*
|
2008-02-04 17:44:01 +01:00
|
|
|
|
2007-04-04 20:13:27 +02:00
|
|
|
%changelog
|