b2261c
Summary:	Utilities for managing the XFS filesystem
b2261c
Name:		xfsprogs
389111
Version:	5.0.0
4bf432
Release:	9%{?dist}
b2261c
License:	GPL+ and LGPLv2+
b2261c
Group:		System Environment/Base
b2261c
URL:		https://xfs.wiki.kernel.org
b2261c
Source0:	http://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.xz
b2261c
BuildRequires:	gcc
b2261c
BuildRequires:	libtool, gettext, libattr-devel, libuuid-devel
b2261c
BuildRequires:	readline-devel, libblkid-devel >= 2.17-0.1.git5e51568
b2261c
BuildRequires:	lvm2-devel, libicu-devel >= 4.6
b2261c
Provides:	xfs-cmds
b2261c
Obsoletes:	xfs-cmds <= %{version}
b2261c
Provides:	xfsprogs-qa-devel
b2261c
Obsoletes:	xfsprogs-qa-devel <= %{version}
b2261c
Conflicts:	xfsdump < 3.0.1
b2261c
b2261c
# reflink is not yet default upstream, but we enabled it as such
b2261c
Patch0:		xfsprogs-4.17.0-reflink-default.patch
82babb
Patch1:		xfsprogs-5.1.0-mkfs-validate-start-and-end-of-aligned-logs.patch
82babb
Patch2:		xfsprogs-5.1.0-mkfs-don-t-use-xfs_verify_fsbno-before-m_sb-is-fully.patch
82babb
Patch3:		xfsprogs-5.1.0-xfsprogs-Fix-uninitialized-cfg-lsunit.patch
82babb
Patch4:		xfsprogs-5.3.0-xfs_growfs-allow-mounted-device-node-as-argument.patch
212ea0
Patch5:		xfsprogs-5.5.0-libxfs-use-FALLOC_FL_ZERO_RANGE-in-libxfs_device_zer.patch
212ea0
Patch6:		xfsprogs-5.4.0-mkfs-Break-block-discard-into-chunks-of-2-GB.patch
212ea0
Patch7:		xfsprogs-5.4.0-mkfs-tidy-up-discard-notifications.patch
48cf7c
Patch8:		xfsprogs-5.7.0-xfs_quota-refactor-code-to-generate-id-from-name.patch
48cf7c
Patch9:		xfsprogs-5.7.0-xfs_quota-allow-individual-timer-extension.patch
48cf7c
Patch10:	xfsprogs-5.7.0-xfs_quota-fix-unsigned-int-id-comparisons.patch
48cf7c
Patch11:	xfsprogs-5.7.0-xfs_repair-check-for-AG-btree-records-that-would-wra.patch
48cf7c
Patch12:	xfsprogs-5.7.0-xfs_repair-tag-inobt-vs-finobt-errors-properly.patch
48cf7c
Patch13:	xfsprogs-5.7.0-xfs_repair-complain-about-bad-interior-btree-pointer.patch
48cf7c
Patch14:	xfsprogs-5.7.0-xfs_repair-convert-to-libxfs_verify_agbno.patch
48cf7c
Patch15:	xfsprogs-5.9.0-mkfs.xfs-fix-ASSERT-on-too-small-device-with-stripe.patch
48cf7c
Patch16:	xfsprogs-5.7.0-xfs_repair-fix-rebuilding-btree-block-less-than-minr.patch
48cf7c
Patch17:	xfsprogs-5.10.0-xfs_quota-document-how-the-default-quota-is-stored.patch
48cf7c
Patch18:	xfsprogs-5.8.0-xfs_db-short-circuit-type_f-if-type-is-unchanged.patch
48cf7c
Patch19:	xfsprogs-5.10.0-xfs_repair-Use-proper-min-max-values-in-compute_level_geometry.patch
4bf432
Patch20:	xfsprogs-5.8.0-xfs_quota-command-error-message-improvement.patch
4bf432
Patch21:	xfsprogs-5.8.0-xfs_quota-display-warning-limits-when-printing-quota.patch
4bf432
Patch22:	xfsprogs-5.8.0-xfs_quota-state-command-should-report-ugp-grace-time.patch
b2261c
b2261c
%description
b2261c
A set of commands to use the XFS filesystem, including mkfs.xfs.
b2261c
b2261c
XFS is a high performance journaling filesystem which originated
b2261c
on the SGI IRIX platform.  It is completely multi-threaded, can
b2261c
support large files and large filesystems, extended attributes,
b2261c
variable block sizes, is extent based, and makes extensive use of
b2261c
Btrees (directories, extents, free space) to aid both performance
b2261c
and scalability.
b2261c
b2261c
This implementation is on-disk compatible with the IRIX version
b2261c
of XFS.
b2261c
b2261c
%package devel
b2261c
Summary: XFS filesystem-specific headers
b2261c
Group: Development/Libraries
b2261c
Requires: xfsprogs = %{version}-%{release}, libuuid-devel
b2261c
b2261c
%description devel
b2261c
xfsprogs-devel contains the header files needed to develop XFS
b2261c
filesystem-specific programs.
b2261c
b2261c
You should install xfsprogs-devel if you want to develop XFS
b2261c
filesystem-specific programs,  If you install xfsprogs-devel, you'll
b2261c
also want to install xfsprogs.
b2261c
b2261c
%prep
b2261c
%setup -q
b2261c
b2261c
%patch0 -p1
82babb
%patch1 -p1
82babb
%patch2 -p1
82babb
%patch3 -p1
82babb
%patch4 -p1
212ea0
%patch5 -p1
212ea0
%patch6 -p1
212ea0
%patch7 -p1
48cf7c
%patch8 -p1
48cf7c
%patch9 -p1
48cf7c
%patch10 -p1
48cf7c
%patch11 -p1
48cf7c
%patch12 -p1
48cf7c
%patch13 -p1
48cf7c
%patch14 -p1
48cf7c
%patch15 -p1
48cf7c
%patch16 -p1
48cf7c
%patch17 -p1
48cf7c
%patch18 -p1
48cf7c
%patch19 -p1
4bf432
%patch20 -p1
4bf432
%patch21 -p1
4bf432
%patch22 -p1
b2261c
b2261c
%build
b2261c
export tagname=CC
b2261c
b2261c
%configure \
b2261c
        --enable-readline=yes	\
b2261c
	--enable-blkid=yes	\
b2261c
	--enable-lto=no		\
b2261c
	--enable-scrub=no
b2261c
b2261c
# NOTE scrub manpages manually removed below as well
b2261c
b2261c
make V=1 %{?_smp_mflags}
b2261c
b2261c
%install
b2261c
make DIST_ROOT=$RPM_BUILD_ROOT install install-dev \
b2261c
	PKG_ROOT_SBIN_DIR=%{_sbindir} PKG_ROOT_LIB_DIR=%{_libdir}
b2261c
b2261c
# nuke .la files, etc
b2261c
rm -f $RPM_BUILD_ROOT/{%{_lib}/*.{la,a,so},%{_libdir}/*.{la,a}}
b2261c
b2261c
# remove non-versioned docs location
b2261c
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/xfsprogs/
b2261c
b2261c
# Remove scrub manpages
b2261c
rm -rf $RPM_BUILD_ROOT/%{_mandir}/man8/xfs_scrub*
b2261c
b2261c
%find_lang %{name}
b2261c
b2261c
%post -p /sbin/ldconfig
b2261c
b2261c
%postun -p /sbin/ldconfig
b2261c
b2261c
%files -f %{name}.lang
b2261c
%doc doc/CHANGES README
b2261c
%{_libdir}/*.so.*
b2261c
%{_mandir}/man5/*
b2261c
%{_mandir}/man8/*
b2261c
%{_sbindir}/*
b2261c
b2261c
%files devel
b2261c
%{_mandir}/man2/*
b2261c
%{_mandir}/man3/*
b2261c
%dir %{_includedir}/xfs
b2261c
%{_includedir}/xfs/handle.h
b2261c
%{_includedir}/xfs/jdm.h
b2261c
%{_includedir}/xfs/linux.h
b2261c
%{_includedir}/xfs/xfs.h
b2261c
%{_includedir}/xfs/xfs_arch.h
b2261c
%{_includedir}/xfs/xfs_fs.h
b2261c
%{_includedir}/xfs/xfs_types.h
b2261c
%{_includedir}/xfs/xfs_format.h
b2261c
%{_includedir}/xfs/xfs_da_format.h
b2261c
%{_includedir}/xfs/xfs_log_format.h
b2261c
%{_includedir}/xfs/xqm.h
b2261c
b2261c
%{_libdir}/*.so
b2261c
b2261c
%changelog
4bf432
* Thu Jul 08 2021 Bill O'Donnell <bodonnel@redhat.com> 5.0.0-9
4bf432
- xfs_quota: state command should report ugp grace time (#1949743)
4bf432
48cf7c
* Thu Jan 07 2021 Bill O'Donnell <billodo@redhat.com> 5.0.0-8
48cf7c
- xfs_repair: Use proper min/max values in compute_level_geometry (#1910384)
48cf7c
48cf7c
* Mon Dec 14 2020 Bill O'Donnell <billodo@redhat.com> 5.0.0-7
48cf7c
- xfs_quota: document how the default quota is stored (#1850188)
48cf7c
- xfs_db: skip type change if type_f unchanged (#1867474)
48cf7c
48cf7c
* Wed Dec 09 2020 Bill O'Donnell <billodo@redhat.com> 5.0.0-6
48cf7c
- xfs_repair: improve AG btree ptr validation (libxfs_verify_agbno) (#1887288)
48cf7c
- mkfs.xfs: fix ASSERT on too-small device with stripe geometry (#1887401)
48cf7c
- xfs_repair: fix rebuilding btree block less than minrecs (#1759452)
48cf7c
48cf7c
* Wed Dec 02 2020 Bill O'Donnell <billodo@redhat.com> 5.0.0-5
48cf7c
- xfs_quota: allow individual timer extension (#1899204)
48cf7c
212ea0
* Wed Jun 03 2020 Eric Sandeen <sandeen@redhat.com> 5.0.0-4
212ea0
- mkfs.xfs: inform user about discard, and make interruptable (#1836414)
212ea0
212ea0
* Mon Apr 20 2020 Eric Sandeen <sandeen@redhat.com> 5.0.0-3
212ea0
- mkfs.xfs: use faster log zeroing on supported devices (#1755046)
212ea0
82babb
* Sat Dec 14 2019 Eric Sandeen <sandeen@redhat.com> 5.0.0-2
82babb
- mkfs.xfs: validate log stripe unit alignment (#1632596)
82babb
- xfs_growfs: allow mounted device node as argument (#1765217)
82babb
389111
* Tue May 21 2019 Eric Sandeen <sandeen@redhat.com> 5.0.0-1
389111
- New upstream version (#1712147)
389111
- mkfs.xfs: validate extent size hint parameters (#1683007)
389111
- mkfs.xfs: null-terminate symlinks created via protofile (#1640503)
389111
- xfs_repair: allow '/' in attribute names (#1667354)
389111
- xfs_info: allow device name as parameter (#1679840)
389111
- xfs_quota: fix project inheritance flag handling (#1664105)
389111
- xfs_metadump: handle symlinks correctly (#1693074)
389111
- xfs_db: fix finobt record decoding with sparse inodes (#1690245)
389111
b2261c
* Mon Feb 04 2019 Eric Sandeen <sandeen@redhat.com> 4.19.0-2
b2261c
- xfs_repair: initialize non-leaf finobt blocks with correct magic (#1670153)
b2261c
b2261c
* Tue Nov 27 2018 Eric Sandeen <sandeen@redhat.com> 4.19.0-1
b2261c
- New upstream release (#1652248)
b2261c
- Note reflink default in mkfs.xfs manpage (#1641698)
b2261c
- Fix xfs_db sign extension in agi freecount (#1640090)
b2261c
- Fix xfs_repair hang on large filesystem (#1630674)
b2261c
389111
* Tue Sep 25 2018 Eric Sandeen <sandeen@redhat.com> 4.18.0-3
b2261c
- Remove experimental xfs_scrub utility (#1623301)
b2261c
b2261c
* Wed Sep 19 2018 Eric Sandeen <sandeen@redhat.com> 4.18.0-2
b2261c
- Fix annobin checks (#1630641)
b2261c
b2261c
* Tue Aug 28 2018 Eric Sandeen <sandeen@redhat.com> 4.18.0-1
b2261c
- New upstream release (#1623695)
b2261c
b2261c
* Mon Aug 13 2018 Eric Sandeen <sandeen@redhat.com> 4.17.0-4
b2261c
- Disable reflink automatically if crcs are disabled (#1600610)
b2261c
b2261c
* Wed Aug 01 2018 Charalampos Stratakis <cstratak@redhat.com> - 4.17.0-3
b2261c
- Rebuild for platform-python
b2261c
b2261c
* Thu Jun 28 2018 Eric Sandeen <sandeen@redhat.com> 4.17.0-2
b2261c
- Default mkfs to reflink enabled (#1494028)
b2261c
b2261c
* Thu Jun 28 2018 Eric Sandeen <sandeen@redhat.com> 4.17.0-1
b2261c
- New upstream release
b2261c
- Clean up spec file
b2261c
b2261c
* Mon Feb 26 2018 Eric Sandeen <sandeen@redhat.com> 4.15.1-1
b2261c
- New upstream release
b2261c
- Update Polish translation
b2261c
b2261c
* Mon Feb 26 2018 Eric Sandeen <sandeen@redhat.com> 4.15.0-2
b2261c
- BuildRequires: gcc
b2261c
b2261c
* Sat Feb 24 2018 Eric Sandeen <sandeen@redhat.com> 4.15.0-1
b2261c
- New upstream release
b2261c
- Adds new xfs_scrub utility and services
b2261c
b2261c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.14.0-2
b2261c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b2261c
b2261c
* Mon Nov 27 2017 Eric Sandeen <sandeen@redhat.com> 4.14.0-1
b2261c
- New upstream release
b2261c
b2261c
* Wed Sep 27 2017 Eric Sandeen <sandeen@redhat.com> 4.13.1-1
b2261c
- New upstream release
b2261c
- Trim ancient changelog
b2261c
b2261c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.12.0-4
b2261c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b2261c
b2261c
* Sun Jul 30 2017 Florian Weimer <fweimer@redhat.com> - 4.12.0-3
b2261c
- Rebuild with binutils fix for ppc64le (#1475636)
b2261c
b2261c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.12.0-2
b2261c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b2261c
b2261c
* Mon Jul 24 2017 Eric Sandeen <sandeen@redhat.com> 4.12.0-1
b2261c
- New upstream release
b2261c
b2261c
* Fri May 05 2017 Eric Sandeen <sandeen@redhat.com> 4.11.0-1
b2261c
- New upstream release
b2261c
b2261c
* Sun Feb 26 2017 Eric Sandeen <sandeen@redhat.com> 4.10.0-1
b2261c
- New upstream release
b2261c
b2261c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.0-3
b2261c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b2261c
b2261c
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 4.9.0-2
b2261c
- Rebuild for readline 7.x
b2261c
b2261c
* Thu Jan 05 2017 Eric Sandeen <sandeen@redhat.com> 4.9.0-1
b2261c
- New upstream release
b2261c
b2261c
* Tue Oct 18 2016 Eric Sandeen <sandeen@redhat.com> 4.8.0-1
b2261c
- New upstream release
b2261c
b2261c
* Tue Sep 06 2016 Eric Sandeen <sandeen@redhat.com> 4.7.0-2
b2261c
- Add libattr-devel build dependency to fix xfs_fsr
b2261c
b2261c
* Sun Sep 04 2016 Eric Sandeen <sandeen@redhat.com> 4.7.0-1
b2261c
- New upstream release
b2261c
b2261c
* Tue Mar 15 2016 Eric Sandeen <sandeen@redhat.com> 4.5.0-1
b2261c
- New upstream release
b2261c
b2261c
* Thu Mar 10 2016 Eric Sandeen <sandeen@redhat.com> 4.3.0-3
b2261c
- Fix build w/ new kernels which have [sg]etxattr promotion
b2261c
b2261c
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-2
b2261c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b2261c
b2261c
* Mon Nov 30 2015 Eric Sandeen <sandeen@redhat.com> 4.3.0-1
b2261c
- New upstream release
b2261c
b2261c
* Wed Sep 09 2015 Eric Sandeen <sandeen@redhat.com> 4.2.0-1
b2261c
- New upstream release
b2261c
b2261c
* Thu Jul 30 2015 Eric Sandeen <sandeen@redhat.com> 3.2.4-1
b2261c
- New upstream release
b2261c
- Addresses CVE-2012-2150 for xfs_metadump
b2261c
b2261c
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-2
b2261c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b2261c
b2261c
* Wed Jun 10 2015 Eric Sandeen <sandeen@redhat.com> 3.2.3-1
b2261c
- New upstream release