xfsprogs/xfsprogs.spec
Xiaole He 2d1a7014e7 xfs_db: use preferable macro to seek offset for local dir3 entry fields
Backport from xfs kernel git repository:
This fix has already been merged into xfs kernel git repository:
Link: https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/commit/?id=d878935dd9af126801d499afd9c6c1224797eeee
And the original discussion for this patch can be found:
Link: https://marc.info/?l=linux-xfs&m=166178369302374&w=2

Signed-off-by: Xiaole He <hexiaole@kylinos.cn>
2022-12-08 13:02:17 +08:00

146 lines
4.7 KiB
RPMSpec

Name: xfsprogs
Version: 5.6.0
Release: 7
Summary: Administration and debugging tools for the XFS file system
License: GPL+ and LGPLv2+
URL: https://xfs.wiki.kernel.org
Source0: http://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.xz
Patch1: 0001-mkfs.xfs-fix-ASSERT-on-too-small-device-with-stripe-.patch
Patch2: 0002-xfs-add-agf-freeblocks-verify-in-xfs_agf_verify.patch
Patch3: 0003-xfs-don-t-ever-return-a-stale-pointer-from-__xfs_dir.patch
Patch4: 0004-xfs-xfs_dabuf_map-should-return-ENOMEM-when-map-allo.patch
Patch5: 0005-xfs-fix-incorrect-test-in-xfs_alloc_ag_vextent_lastb.patch
Patch6: 0006-xfs_db-fix-crc-invalidation-segfault.patch
Patch7: 0007-xfs_repair-fix-missing-dir-buffer-corruption-checks.patch
Patch8: 0008-xfs-fix-inode-allocation-block-res-calculation-prece.patch
Patch9: 0009-xfs-fix-off-by-one-in-inode-alloc-block-reservation-.patch
Patch10: 0010-xfs-fix-boundary-test-in-xfs_attr_shortform_verify.patch
Patch11: 0011-xfs-set-xefi_discard-when-creating-a-deferred-agfl-f.patch
Patch12: 0012-xfs-correct-nlink-printf-specifier-from-hd-to-PRIu32.patch
Patch13: 0013-libxfs-fix-inode-reservation-space-for-removing-tran.patch
Patch14: 0014-xfs_db-use-preferable-macro-to-seek-offset-for-local.patch
BuildRequires: libtool libattr-devel libuuid-devel gcc git gettext
BuildRequires: readline-devel libblkid-devel >= 2.30 lvm2-devel libicu-devel >= 62.0
Recommends: %{name}-xfs_scrub
Provides: xfs-cmds
Obsoletes: xfs-cmds <= %{version}
Provides: xfsprogs-qa-devel
Obsoletes: xfsprogs-qa-devel <= %{version}
Conflicts: xfsdump < 3.0.1
%description
xfsprogs are the userspace utilities that manage XFS filesystems.
%package xfs_scrub
Summary: xfs filesystem online scrubbing utilities
Requires: xfsprogs = %{version}-%{release}, python3
%description xfs_scrub
xfs_scrub is used for checking and repairing metadata in a
mounted XFS filesystem.
WARNING!!! This program is EXPERIMENTAL, which means that its
behavior and interface could change at any time!
xfs_scrub is an immature utility! Do not run this program unless
you have backups of your data!
%package devel
Summary: The header files for XFS filesystem
Requires: xfsprogs = %{version}-%{release}, libuuid-devel
%description devel
It contains the header files for the developing of XFS
filesystem.
%package help
Summary: Including man files for xfsprogs
Requires: man
BuildArch: noarch
%description help
This contains man files for the using of xfsprogs.
%prep
%autosetup -n %{name}-%{version} -p1 -S git
%build
export tagname=CC
%configure --enable-readline=yes --enable-blkid=yes --enable-lto=no
make %{?_smp_mflags}
%install
make DIST_ROOT=%{buildroot} install install-dev \
PKG_ROOT_SBIN_DIR=%{_sbindir} PKG_ROOT_LIB_DIR=%{_libdir}
rm -f %{buildroot}{%{_lib}/*.{la,a,so},%{_libdir}/*.{la,a}}
rm -rf %{buildroot}%{_datadir}/doc/xfsprogs/
%find_lang %{name}
%ldconfig_scriptlets
%files -f %{name}.lang
%doc doc/CHANGES README
%{_libdir}/*.so.*
%dir %{_usr}/%{_lib}/xfsprogs
%{_usr}/%{_lib}/xfsprogs/*
%{_sbindir}/*
%{_unitdir}/*
%exclude %{_sbindir}/xfs_scrub*
%exclude %{_unitdir}/xfs_scrub*
%exclude %{_usr}/%{_lib}/xfsprogs/xfs_scrub*
%files xfs_scrub
%{_sbindir}/xfs_scrub*
%{_unitdir}/xfs_scrub*
%{_usr}/%{_lib}/xfsprogs/xfs_scrub*
%{_mandir}/man8/xfs_scrub*
%files devel
%dir %{_includedir}/xfs
%{_includedir}/xfs/*.h
%{_libdir}/*.so
%files help
%{_mandir}/man*/*
%exclude %{_mandir}/man8/xfs_scrub*
%changelog
* Thu Dec 8 2022 Xiaole He <hexiaole@kylinos.cn> - 5.6.0-7
- add Patch14: use preferable macro to seek offset for local dir3 entry fields
* Thu Aug 18 2022 Xiaole He <hexiaole@kylinos.cn> - 5.6.0-6
- add Patch13: fix inode reservation space for removing transaction
* Tue Jul 19 2022 Xiaole He <hexiaole@kylinos.cn> - 5.6.0-5
- add Patch12: correct nlink printf specifier from hd to PRIu32
* Mon Mar 14 2022 wuguanghao <wuguanghao3@huawei.com> - 5.6.0-4
- backport bugfix patches from community
* Wed Mar 02 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 5.6.0-3
- mkfs.xfs: fix ASSERT on to-small device with stripe geometry.
Fix issue: https://gitee.com/src-openeuler/xfsprogs/issues/I4RZKQ
* Wed Nov 25 2020 haowenchao <haowenchao@huawei.com> - 5.6.0-2
- Split xfsprogs-xfs_scrub and the xfsprogs recommends it.
* Thu Jul 30 2020 wangjun <wangjun196@huawei.com> - 5.6.0-1
- update xfsprogs version to 5.6.0-1
* Wed Aug 28 2019 zhanghaibo <ted.zhang@huawei.com> - 4.17.0-5
- Type:enhancemnet
- ID:NA
- SUG:NA
- DESCi:openEuler Debranding
* Mon Aug 12 2019 zhanghaibo <ted.zhang@huawei.com> - 4.17.0-4
- Package init