xfsprogs/xfsprogs.spec

145 lines
4.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package xfsprogs
#
Accepting request 495389 from home:jeff_mahoney:branches:filesystems - Update to 4.9.0 * xfs_quota: handle wrapped id from GETNEXTQUOTA * xfs_repair: don't indicate dirtiness if FSGEOMETRY fails * xfs_repair: junk leaf attribute if count == 0 * xfs_repair: fix some potential null pointer deferences * xfs_repair: fix bogus rmapbt record owner check * xfs.h: require transparent LFS for all users * xfs_io: Fix initial -m option * xfs_io: add command line option -i to start an idle thread * xfsprogs: Update FSF address in COPYING file * mkfs.xfs: format reflink enabled filesystems * xfs_repair: use thread pools to sort rmap data * xfs_repair: check for mergeable refcount records * xfs_repair: use range query when while checking rmaps * xfs_repair: check the CoW extent size hint * xfs_repair: complain about copy-on-write leftovers * xfs_repair: rebuild the refcount btree * xfs_repair: check the refcount btree against our observed reference counts when -n * xfs_repair: fix inode reflink flags * xfs_repair: record reflink inode state * xfs_repair: process reverse-mapping data into refcount data * xfs_repair: handle multiple owners of data blocks * xfs_repair: check the existing refcount btree * xfs_repair: fix get_agino_buf to avoid corrupting inodes * xfs_logprint: support bmap redo items * xfs_logprint: support refcount redo items * xfs_logprint: support cowextsize reporting in log contents * xfs_io: try to unshare copy-on-write blocks via fallocate * xfs_io: provide long-format help for falloc * xfs_io: support injecting the 'per-AG reservation critically low' error OBS-URL: https://build.opensuse.org/request/show/495389 OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=47
2017-05-23 20:14:04 +02:00
# Copyright (c) 2017 SUSE LINUX 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/
#
Accepting request 495389 from home:jeff_mahoney:branches:filesystems - Update to 4.9.0 * xfs_quota: handle wrapped id from GETNEXTQUOTA * xfs_repair: don't indicate dirtiness if FSGEOMETRY fails * xfs_repair: junk leaf attribute if count == 0 * xfs_repair: fix some potential null pointer deferences * xfs_repair: fix bogus rmapbt record owner check * xfs.h: require transparent LFS for all users * xfs_io: Fix initial -m option * xfs_io: add command line option -i to start an idle thread * xfsprogs: Update FSF address in COPYING file * mkfs.xfs: format reflink enabled filesystems * xfs_repair: use thread pools to sort rmap data * xfs_repair: check for mergeable refcount records * xfs_repair: use range query when while checking rmaps * xfs_repair: check the CoW extent size hint * xfs_repair: complain about copy-on-write leftovers * xfs_repair: rebuild the refcount btree * xfs_repair: check the refcount btree against our observed reference counts when -n * xfs_repair: fix inode reflink flags * xfs_repair: record reflink inode state * xfs_repair: process reverse-mapping data into refcount data * xfs_repair: handle multiple owners of data blocks * xfs_repair: check the existing refcount btree * xfs_repair: fix get_agino_buf to avoid corrupting inodes * xfs_logprint: support bmap redo items * xfs_logprint: support refcount redo items * xfs_logprint: support cowextsize reporting in log contents * xfs_io: try to unshare copy-on-write blocks via fallocate * xfs_io: provide long-format help for falloc * xfs_io: support injecting the 'per-AG reservation critically low' error OBS-URL: https://build.opensuse.org/request/show/495389 OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=47
2017-05-23 20:14:04 +02:00
%define _dracutmodulesdir %{_libexecdir}/dracut/modules.d
Name: xfsprogs
Accepting request 495389 from home:jeff_mahoney:branches:filesystems - Update to 4.9.0 * xfs_quota: handle wrapped id from GETNEXTQUOTA * xfs_repair: don't indicate dirtiness if FSGEOMETRY fails * xfs_repair: junk leaf attribute if count == 0 * xfs_repair: fix some potential null pointer deferences * xfs_repair: fix bogus rmapbt record owner check * xfs.h: require transparent LFS for all users * xfs_io: Fix initial -m option * xfs_io: add command line option -i to start an idle thread * xfsprogs: Update FSF address in COPYING file * mkfs.xfs: format reflink enabled filesystems * xfs_repair: use thread pools to sort rmap data * xfs_repair: check for mergeable refcount records * xfs_repair: use range query when while checking rmaps * xfs_repair: check the CoW extent size hint * xfs_repair: complain about copy-on-write leftovers * xfs_repair: rebuild the refcount btree * xfs_repair: check the refcount btree against our observed reference counts when -n * xfs_repair: fix inode reflink flags * xfs_repair: record reflink inode state * xfs_repair: process reverse-mapping data into refcount data * xfs_repair: handle multiple owners of data blocks * xfs_repair: check the existing refcount btree * xfs_repair: fix get_agino_buf to avoid corrupting inodes * xfs_logprint: support bmap redo items * xfs_logprint: support refcount redo items * xfs_logprint: support cowextsize reporting in log contents * xfs_io: try to unshare copy-on-write blocks via fallocate * xfs_io: provide long-format help for falloc * xfs_io: support injecting the 'per-AG reservation critically low' error OBS-URL: https://build.opensuse.org/request/show/495389 OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=47
2017-05-23 20:14:04 +02:00
Version: 4.9.0
Release: 0
Summary: Utilities for managing the XFS file system
License: GPL-2.0+
Group: System/Filesystems
Url: http://xfs.org
Accepting request 495389 from home:jeff_mahoney:branches:filesystems - Update to 4.9.0 * xfs_quota: handle wrapped id from GETNEXTQUOTA * xfs_repair: don't indicate dirtiness if FSGEOMETRY fails * xfs_repair: junk leaf attribute if count == 0 * xfs_repair: fix some potential null pointer deferences * xfs_repair: fix bogus rmapbt record owner check * xfs.h: require transparent LFS for all users * xfs_io: Fix initial -m option * xfs_io: add command line option -i to start an idle thread * xfsprogs: Update FSF address in COPYING file * mkfs.xfs: format reflink enabled filesystems * xfs_repair: use thread pools to sort rmap data * xfs_repair: check for mergeable refcount records * xfs_repair: use range query when while checking rmaps * xfs_repair: check the CoW extent size hint * xfs_repair: complain about copy-on-write leftovers * xfs_repair: rebuild the refcount btree * xfs_repair: check the refcount btree against our observed reference counts when -n * xfs_repair: fix inode reflink flags * xfs_repair: record reflink inode state * xfs_repair: process reverse-mapping data into refcount data * xfs_repair: handle multiple owners of data blocks * xfs_repair: check the existing refcount btree * xfs_repair: fix get_agino_buf to avoid corrupting inodes * xfs_logprint: support bmap redo items * xfs_logprint: support refcount redo items * xfs_logprint: support cowextsize reporting in log contents * xfs_io: try to unshare copy-on-write blocks via fallocate * xfs_io: provide long-format help for falloc * xfs_io: support injecting the 'per-AG reservation critically low' error OBS-URL: https://build.opensuse.org/request/show/495389 OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=47
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
Source2: %{name}.keyring
Accepting request 495389 from home:jeff_mahoney:branches:filesystems - Update to 4.9.0 * xfs_quota: handle wrapped id from GETNEXTQUOTA * xfs_repair: don't indicate dirtiness if FSGEOMETRY fails * xfs_repair: junk leaf attribute if count == 0 * xfs_repair: fix some potential null pointer deferences * xfs_repair: fix bogus rmapbt record owner check * xfs.h: require transparent LFS for all users * xfs_io: Fix initial -m option * xfs_io: add command line option -i to start an idle thread * xfsprogs: Update FSF address in COPYING file * mkfs.xfs: format reflink enabled filesystems * xfs_repair: use thread pools to sort rmap data * xfs_repair: check for mergeable refcount records * xfs_repair: use range query when while checking rmaps * xfs_repair: check the CoW extent size hint * xfs_repair: complain about copy-on-write leftovers * xfs_repair: rebuild the refcount btree * xfs_repair: check the refcount btree against our observed reference counts when -n * xfs_repair: fix inode reflink flags * xfs_repair: record reflink inode state * xfs_repair: process reverse-mapping data into refcount data * xfs_repair: handle multiple owners of data blocks * xfs_repair: check the existing refcount btree * xfs_repair: fix get_agino_buf to avoid corrupting inodes * xfs_logprint: support bmap redo items * xfs_logprint: support refcount redo items * xfs_logprint: support cowextsize reporting in log contents * xfs_io: try to unshare copy-on-write blocks via fallocate * xfs_io: provide long-format help for falloc * xfs_io: support injecting the 'per-AG reservation critically low' error OBS-URL: https://build.opensuse.org/request/show/495389 OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=47
2017-05-23 20:14:04 +02:00
Source3: module-setup.sh.in
Source4: dracut-fsck-help.txt
Patch0: xfsprogs-docdir.diff
BuildRequires: libblkid-devel
BuildRequires: readline-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libuuid-devel
%if 0%{?suse_version} >= 1010
# hint for ZYPP
Supplements: filesystem(xfs)
%endif
%if 0%{?suse_version} >= 1310
BuildRequires: suse-module-tools
%endif
%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
Group: Development/Libraries/C and C++
Requires: xfsprogs = %{version}
%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
%setup -q
%if 0%{?suse_version}
%patch0
%endif
%build
export OPTIMIZER="-fPIC"
export DEBUG=-DNDEBUG
export LIBUUID=%{_libdir}/libuuid.a
%configure --enable-readline=yes
make %{?_smp_mflags} V=1
Accepting request 495389 from home:jeff_mahoney:branches:filesystems - Update to 4.9.0 * xfs_quota: handle wrapped id from GETNEXTQUOTA * xfs_repair: don't indicate dirtiness if FSGEOMETRY fails * xfs_repair: junk leaf attribute if count == 0 * xfs_repair: fix some potential null pointer deferences * xfs_repair: fix bogus rmapbt record owner check * xfs.h: require transparent LFS for all users * xfs_io: Fix initial -m option * xfs_io: add command line option -i to start an idle thread * xfsprogs: Update FSF address in COPYING file * mkfs.xfs: format reflink enabled filesystems * xfs_repair: use thread pools to sort rmap data * xfs_repair: check for mergeable refcount records * xfs_repair: use range query when while checking rmaps * xfs_repair: check the CoW extent size hint * xfs_repair: complain about copy-on-write leftovers * xfs_repair: rebuild the refcount btree * xfs_repair: check the refcount btree against our observed reference counts when -n * xfs_repair: fix inode reflink flags * xfs_repair: record reflink inode state * xfs_repair: process reverse-mapping data into refcount data * xfs_repair: handle multiple owners of data blocks * xfs_repair: check the existing refcount btree * xfs_repair: fix get_agino_buf to avoid corrupting inodes * xfs_logprint: support bmap redo items * xfs_logprint: support refcount redo items * xfs_logprint: support cowextsize reporting in log contents * xfs_io: try to unshare copy-on-write blocks via fallocate * xfs_io: provide long-format help for falloc * xfs_io: support injecting the 'per-AG reservation critically low' error OBS-URL: https://build.opensuse.org/request/show/495389 OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=47
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
%install
export DIST_ROOT=%{buildroot}
make install
make install-dev
# 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
mv %{buildroot}/%{_lib}/* %{buildroot}%{_libdir}
%find_lang %{name}
Accepting request 495389 from home:jeff_mahoney:branches:filesystems - Update to 4.9.0 * xfs_quota: handle wrapped id from GETNEXTQUOTA * xfs_repair: don't indicate dirtiness if FSGEOMETRY fails * xfs_repair: junk leaf attribute if count == 0 * xfs_repair: fix some potential null pointer deferences * xfs_repair: fix bogus rmapbt record owner check * xfs.h: require transparent LFS for all users * xfs_io: Fix initial -m option * xfs_io: add command line option -i to start an idle thread * xfsprogs: Update FSF address in COPYING file * mkfs.xfs: format reflink enabled filesystems * xfs_repair: use thread pools to sort rmap data * xfs_repair: check for mergeable refcount records * xfs_repair: use range query when while checking rmaps * xfs_repair: check the CoW extent size hint * xfs_repair: complain about copy-on-write leftovers * xfs_repair: rebuild the refcount btree * xfs_repair: check the refcount btree against our observed reference counts when -n * xfs_repair: fix inode reflink flags * xfs_repair: record reflink inode state * xfs_repair: process reverse-mapping data into refcount data * xfs_repair: handle multiple owners of data blocks * xfs_repair: check the existing refcount btree * xfs_repair: fix get_agino_buf to avoid corrupting inodes * xfs_logprint: support bmap redo items * xfs_logprint: support refcount redo items * xfs_logprint: support cowextsize reporting in log contents * xfs_io: try to unshare copy-on-write blocks via fallocate * xfs_io: provide long-format help for falloc * xfs_io: support injecting the 'per-AG reservation critically low' error OBS-URL: https://build.opensuse.org/request/show/495389 OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=47
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/
%if 0%{?suse_version} >= 1310
%post
%{?regenerate_initrd_post}
/sbin/ldconfig
%postun
%{?regenerate_initrd_post}
/sbin/ldconfig
%posttrans
%{?regenerate_initrd_posttrans}
%else
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif
%files -f %{name}.lang
%defattr(-,root,root,755)
#UsrMerge
/sbin/*
#EndUsrMerge
%{_sbindir}/*
# this is only used by xfs cmds, therefore no urgent need for a shlib package
%{_libdir}/libhandle.so.*
%doc %{_mandir}/man[58]/*
%doc %{_defaultdocdir}/%{name}
Accepting request 495389 from home:jeff_mahoney:branches:filesystems - Update to 4.9.0 * xfs_quota: handle wrapped id from GETNEXTQUOTA * xfs_repair: don't indicate dirtiness if FSGEOMETRY fails * xfs_repair: junk leaf attribute if count == 0 * xfs_repair: fix some potential null pointer deferences * xfs_repair: fix bogus rmapbt record owner check * xfs.h: require transparent LFS for all users * xfs_io: Fix initial -m option * xfs_io: add command line option -i to start an idle thread * xfsprogs: Update FSF address in COPYING file * mkfs.xfs: format reflink enabled filesystems * xfs_repair: use thread pools to sort rmap data * xfs_repair: check for mergeable refcount records * xfs_repair: use range query when while checking rmaps * xfs_repair: check the CoW extent size hint * xfs_repair: complain about copy-on-write leftovers * xfs_repair: rebuild the refcount btree * xfs_repair: check the refcount btree against our observed reference counts when -n * xfs_repair: fix inode reflink flags * xfs_repair: record reflink inode state * xfs_repair: process reverse-mapping data into refcount data * xfs_repair: handle multiple owners of data blocks * xfs_repair: check the existing refcount btree * xfs_repair: fix get_agino_buf to avoid corrupting inodes * xfs_logprint: support bmap redo items * xfs_logprint: support refcount redo items * xfs_logprint: support cowextsize reporting in log contents * xfs_io: try to unshare copy-on-write blocks via fallocate * xfs_io: provide long-format help for falloc * xfs_io: support injecting the 'per-AG reservation critically low' error OBS-URL: https://build.opensuse.org/request/show/495389 OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=47
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
%files devel
%defattr(-,root,root,755)
%{_includedir}/xfs
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/*.la
%{_mandir}/man3/*
%changelog