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
This commit is contained in:
Petr Lautrbach 2018-08-10 09:57:34 +02:00
parent 3380c42015
commit bcd493e99b
1 changed files with 10 additions and 2 deletions

View File

@ -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 <plautrba@redhat.com> - 2.6.2-5
- require the correct package with /usr/sbin/semanage
* Tue Jul 17 2018 Kaleb S. KEITHLEY <kkeithle at redhat.com> - 2.6.2-4
- disable utils, python