From 132b79aee60fc6192a05a99db28874d7d03eea9d Mon Sep 17 00:00:00 2001 From: Wenchao Hao Date: Wed, 25 Nov 2020 17:27:21 +0800 Subject: [PATCH] xfsprogs: split xfsprogs-xfs_scrub and the xfsprogs recommends it Split xfsprogs-xfs_scrub and the xfsprogs recommends it. If users donot want to use xfs_scrub programs, they can remove them through removing xfsprogs-xfs_scrub package. Signed-off-by: Wenchao Hao --- xfsprogs.spec | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/xfsprogs.spec b/xfsprogs.spec index ce85fb3..f58bc77 100644 --- a/xfsprogs.spec +++ b/xfsprogs.spec @@ -1,6 +1,6 @@ Name: xfsprogs Version: 5.6.0 -Release: 1 +Release: 2 Summary: Administration and debugging tools for the XFS file system License: GPL+ and LGPLv2+ URL: https://xfs.wiki.kernel.org @@ -10,6 +10,7 @@ Source0: http://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{vers BuildRequires: libtool libattr-devel libuuid-devel gcc git 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 @@ -19,6 +20,18 @@ 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 @@ -64,6 +77,15 @@ rm -rf %{buildroot}%{_datadir}/doc/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 @@ -72,10 +94,13 @@ rm -rf %{buildroot}%{_datadir}/doc/xfsprogs/ %files help %{_mandir}/man*/* - +%exclude %{_mandir}/man8/xfs_scrub* %changelog +* Wed Nov 25 2020 haowenchao - 5.6.0-2 +- Split xfsprogs-xfs_scrub and the xfsprogs recommends it. + * Thu Jul 16 2020 wuguanghao - 5.6.0-1 - update xfsprogs version to 5.6.0-1 -- Gitee