forked from pool/xfsprogs
288500bca8
- Updated to 3.1.11 - Support for relative paths in xfs_quota thanks to Satoru Takeuchi. - mkfs.xfs will always go into multidisk mode when filesystem geometry is specified on the command line. - Document all commands in xfs_io. - Remove setfl command from xfs_io. - xfs_metadump will obfuscate symlinks by path component. - mkfs.xfs no longer accepts geometry settings smaller than the physical sector size. - xfs_logprint now supports multiply-logged inode fields and handles continued inode transactions correctly. - kill XLOG_SET - Update release scripts to use git archive to address a missing source file reported by Arkadiusz Mi?kiewicz - Fix a build error with -Werror=format-security, reported by Arkadiusz Mi?kiewicz - mkfs.xfs no longer attempts to discard when -N option is used. - Update 'make deb' to use tarball - Sync up with log reservation changes in the kernel. - Fix possible unallocated memory access in fiemap. - Guard against string overflow in path_to_fspath. - Fix setup_cursor array allocation. - Fix free of unintialized pointer in xfs_acl_valid error path. - Guard against path string overflows. - Check strdup results properly in initallfs(). - Fix attribute no_change_count logic. - Remove extraneous close() in fsrallfs(). - xfs_repair now skips the freelist scan of a corrupt agf when in no-modify mode. - xfs_db now skips freelist scans of corrupt agfs. OBS-URL: https://build.opensuse.org/request/show/175750 OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsprogs?expand=0&rev=24
131 lines
3.7 KiB
RPMSpec
131 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package xfsprogs
|
|
#
|
|
# Copyright (c) 2013 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: xfsprogs
|
|
BuildRequires: readline-devel
|
|
%if 0%{?suse_version} > 0
|
|
%if 0%{?suse_version} < 1100
|
|
BuildRequires: e2fsprogs-devel
|
|
%else
|
|
BuildRequires: libuuid-devel
|
|
%endif
|
|
%else
|
|
BuildRequires: libuuid-devel
|
|
%endif
|
|
Version: 3.1.11
|
|
Release: 0
|
|
%if 0%{?suse_version} >= 1010
|
|
# hint for ZYPP
|
|
Supplements: filesystem(xfs)
|
|
%endif
|
|
Url: http://oss.sgi.com/projects/xfs/
|
|
Summary: Utilities for managing the XFS file system
|
|
License: GPL-2.0+
|
|
Group: System/Filesystems
|
|
Source0: xfsprogs-%{version}.tar.gz
|
|
Patch0: xfsprogs-docdir.diff
|
|
Patch1: xfsprogs-ppc64.diff
|
|
Patch2: xfsprogs-avoid-no-return-in-nonvoid-warning.diff
|
|
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
|
|
Requires: xfsprogs = %version
|
|
Summary: XFS Filesystem-specific Static Libraries and Headers
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%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
|
|
%patch1
|
|
%patch2
|
|
|
|
%build
|
|
export OPTIMIZER="-fPIC"
|
|
export DEBUG=-DNDEBUG
|
|
export LIBUUID=/usr/%{_lib}/libuuid.a
|
|
%configure --enable-readline=yes
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
export DIST_ROOT="$RPM_BUILD_ROOT"
|
|
/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/libhandle.so
|
|
# move things to usr
|
|
mv $RPM_BUILD_ROOT/sbin/* $RPM_BUILD_ROOT%{_sbindir}
|
|
mv $RPM_BUILD_ROOT/%_lib/* $RPM_BUILD_ROOT%{_libdir}
|
|
#UsrMerge
|
|
ln -s %{_sbindir}/{fsck.xfs,mkfs.xfs,xfs_repair} $RPM_BUILD_ROOT/sbin
|
|
#EndUserMerge
|
|
pushd $RPM_BUILD_ROOT%_libdir
|
|
ln -s libhandle.so.[0-9] libhandle.so
|
|
popd
|
|
chmod 755 $RPM_BUILD_ROOT/%_sbindir/fsck.xfs
|
|
%find_lang %name
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%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 /usr/share/man/man[58]/*
|
|
%doc %_defaultdocdir/%name
|
|
|
|
%files devel
|
|
%defattr(-,root,root,755)
|
|
%_includedir/xfs
|
|
%_libdir/*.so
|
|
%_libdir/*.a
|
|
%_libdir/*.la
|
|
/usr/share/man/man3/*
|
|
|
|
%changelog
|