summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorRenato Botelho do Couto <renato@netgate.com>2020-03-06 13:42:22 -0600
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-13 08:12:25 +0000
commit5d83b56e24353c0294f887674aed119c81172db2 (patch)
tree21a32af0f56d9dd23a523d75f26b88daca9dadfb /extras
parentcd243dea976becc83eb379b6a726f742a2794f40 (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 (cherry picked from commit 1d94ab5f1b4557c9e017af7e9da0f821cae1fa72)
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 cb847f2f427..31ffcc87570 100644
--- a/extras/rpm/vpp.spec
+++ b/extras/rpm/vpp.spec
@@ -152,7 +152,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