aboutsummaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorRenato Botelho do Couto <renato@netgate.com>2020-03-06 13:42:22 -0600
committerRenato Botelho do Couto <renato@netgate.com>2020-03-06 14:15:18 -0600
commit1d94ab5f1b4557c9e017af7e9da0f821cae1fa72 (patch)
treec641d42d350f6fdbd3fcd8134d8a46c969c49d3a /extras
parent9c1928f8120aaad078101a18beb19c748d1f0d48 (diff)
misc: Fix vpp-selinux-policy dependency on CentOS 8
policycoreutils-python is now called python3-policycoreutils on CentOS 8. Type: fix Signed-off-by: Renato Botelho do Couto <renato@netgate.com> Change-Id: I46264c66a2a719d546e0926f3bd716e986461963
Diffstat (limited to 'extras')
-rw-r--r--extras/rpm/vpp.spec7
1 files changed, 6 insertions, 1 deletions
diff --git a/extras/rpm/vpp.spec b/extras/rpm/vpp.spec
index 09e70c5245d..726c9c42f28 100644
--- a/extras/rpm/vpp.spec
+++ b/extras/rpm/vpp.spec
@@ -158,7 +158,12 @@ This package contains the python3 bindings for the vpp api
%package selinux-policy
Summary: VPP Security-Enhanced Linux (SELinux) policy
Group: System Environment/Base
-Requires(post): selinux-policy-base >= %{selinux_policyver}, selinux-policy-targeted >= %{selinux_policyver}, policycoreutils, policycoreutils-python libselinux-utils
+Requires(post): selinux-policy-base >= %{selinux_policyver}, selinux-policy-targeted >= %{selinux_policyver}, policycoreutils, libselinux-utils
+%if 0%{rhel} < 8
+Requires(post): policycoreutils-python
+%else
+Requires(post): python3-policycoreutils
+%endif
%description selinux-policy
This package contains a tailored VPP SELinux policy