From 0de8b529f381489aad127d1d2f11dbcc73744d83 Mon Sep 17 00:00:00 2001 From: Sinny Kumari Date: Thu, 21 Feb 2019 17:53:56 +0530 Subject: [PATCH] rhbz#1666839: Move Python utility into a separate sub-package Signed-off-by: Sinny Kumari --- xfsprogs.spec | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/xfsprogs.spec b/xfsprogs.spec index 6f2b865..aa8c820 100644 --- a/xfsprogs.spec +++ b/xfsprogs.spec @@ -1,7 +1,7 @@ Summary: Utilities for managing the XFS filesystem Name: xfsprogs Version: 4.20.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL+ and LGPLv2+ URL: https://xfs.wiki.kernel.org Source0: http://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.xz @@ -14,6 +14,7 @@ Obsoletes: xfs-cmds <= %{version} Provides: xfsprogs-qa-devel Obsoletes: xfsprogs-qa-devel <= %{version} Conflicts: xfsdump < 3.0.1 +Suggests: python3-xfsprogs %description A set of commands to use the XFS filesystem, including mkfs.xfs. @@ -40,6 +41,13 @@ You should install xfsprogs-devel if you want to develop XFS filesystem-specific programs, If you install xfsprogs-devel, you'll also want to install xfsprogs. +%package -n python3-xfsprogs +Summary: XFS utilities which requires Python3 at runtime +Requires: xfsprogs = %{version}-%{release}, Python3 + +%description -n python3-xfsprogs +XFS utilities which requires Python3 at runtime + %prep %setup -q @@ -67,6 +75,12 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/xfsprogs/ %ldconfig_scriptlets +%files -n python3-xfsprogs +%{_usr}/%{_lib}/xfsprogs/xfs_scrub_all.cron +%{_mandir}/man8/xfs_scrub_all* +%{_sbindir}/xfs_scrub_all +%{_unitdir}/xfs_scrub_all* + %files -f %{name}.lang %doc doc/CHANGES README %{_libdir}/*.so.* @@ -76,6 +90,10 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/xfsprogs/ %{_mandir}/man8/* %{_sbindir}/* %{_unitdir}/* +%exclude %{_usr}/%{_lib}/xfsprogs/xfs_scrub_all.cron +%exclude %{_mandir}/man8/xfs_scrub_all* +%exclude %{_sbindir}/xfs_scrub_all +%exclude %{_unitdir}/xfs_scrub_all* %files devel %{_mandir}/man2/* @@ -96,6 +114,9 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/xfsprogs/ %{_libdir}/*.so %changelog +* Tue Feb 26 2019 Sinny Kumari - 4.20.0-2 +- rhbz#1666839: Move Python utility into a separate sub-package + * Fri Feb 22 2019 Eric Sandeen 4.20.0-1 - New upstream release