From bcd493e99b9042c6c80fb4e368917dfc89b55d5b Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Fri, 10 Aug 2018 09:57:34 +0200 Subject: [PATCH] Require the correct package with /usr/sbin/semanage /usr/sbin/semanage tool is shipped by policycoreutils-python in Red Hat Enterprise Linux, but it was moved to policycoreutils-python-utils in Fedora --- nfs-ganesha.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/nfs-ganesha.spec b/nfs-ganesha.spec index 0839ef6..b27b5a5 100644 --- a/nfs-ganesha.spec +++ b/nfs-ganesha.spec @@ -100,7 +100,7 @@ Requires: openSUSE-release Name: nfs-ganesha Version: 2.6.2 -Release: 4%{?dev:%{dev}}%{?dist} +Release: 5%{?dev:%{dev}}%{?dist} Summary: NFS-Ganesha is a NFS Server running in user space Group: Applications/System License: LGPLv3+ @@ -134,10 +134,15 @@ BuildRequires: libntirpc-devel = 1.6.2 %else Requires: libntirpc = @NTIRPC_VERSION_EMBED@ %endif +%if 0%{?rhel} && 0%{?rhel} <= 7 +# this should effectively be a no-op, as all Red Hat Enterprise Linux installs should have it +# with selinux. +Requires: policycoreutils-python +%endif %if ( 0%{?fedora} ) # this should effectively be a no-op, as all Fedora installs should have it # with selinux. -Requires: policycoreutils-python +Requires: policycoreutils-python-utils %endif Requires: nfs-utils %if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 ) || ( 0%{?suse_version} ) @@ -728,6 +733,9 @@ exit 0 %endif %changelog +* Fri Aug 10 2018 Petr Lautrbach - 2.6.2-5 +- require the correct package with /usr/sbin/semanage + * Tue Jul 17 2018 Kaleb S. KEITHLEY - 2.6.2-4 - disable utils, python