aboutsummaryrefslogtreecommitdiffstats
path: root/extras/rpm/vpp.spec
diff options
context:
space:
mode:
authorChristian Svensson <blue@cmd.nu>2023-02-06 17:25:16 +0100
committerDamjan Marion <dmarion@0xa5.net>2023-03-06 14:22:36 +0000
commit184a70a58c8e48f569e0faa88869f27844db39de (patch)
tree3c1ca8ebb79182baae7414a8cd22760011251019 /extras/rpm/vpp.spec
parent15eec552b5f98e61890a4e225c99706c022cf009 (diff)
build: add Rocky Linux 9 support
Currently only RHEL/CentOS 8 and Fedora are supported. EL9 is a middle ground and thus require some different dependencies. Type: feature Signed-off-by: Christian Svensson <blue@cmd.nu> Change-Id: I7be79e61994800bb796d4e9141f0ff6ad8bdead2
Diffstat (limited to 'extras/rpm/vpp.spec')
-rw-r--r--extras/rpm/vpp.spec17
1 files changed, 13 insertions, 4 deletions
diff --git a/extras/rpm/vpp.spec b/extras/rpm/vpp.spec
index 2bd16ca9e25..6bfb12471e2 100644
--- a/extras/rpm/vpp.spec
+++ b/extras/rpm/vpp.spec
@@ -48,23 +48,32 @@ BuildRequires: python3, python36-devel, python3-virtualenv
BuildRequires: cmake
%else
%if 0%{rhel} >= 7
-Requires: vpp-lib = %{_version}-%{_release}, vpp-selinux-policy = %{_version}-%{_release}, net-tools, pciutils, python36
+Requires: vpp-lib = %{_version}-%{_release}, vpp-selinux-policy = %{_version}-%{_release}, net-tools, pciutils
Requires: libffi-devel
BuildRequires: epel-release
BuildREquires: openssl-devel
-BuildRequires: python36-devel
%if 0%{rhel} == 7
+Requires: python36
BuildRequires: devtoolset-9-toolchain
BuildRequires: cmake3
BuildRequires: glibc-static, yum-utils
+BuildRequires: python36-devel
+%else
+%if 0%{rhel} == 8
+Requires: python36
+BuildRequires: cmake
+BuildRequires: dnf-utils
+BuildRequires: python36-devel
%else
+Requires: python3
BuildRequires: cmake
BuildRequires: dnf-utils
+BuildRequires: python3-devel
+%endif
%endif
%endif
%endif
BuildRequires: libffi-devel
-BuildRequires: redhat-lsb
BuildRequires: apr-devel
BuildRequires: numactl-devel
BuildRequires: autoconf automake libtool byacc bison flex
@@ -321,7 +330,7 @@ fi
%postun
-%systemd_postun
+%systemd_postun vpp.service
if [ $1 -eq 0 ] ; then
echo "Uninstalling, unbind user-mode PCI drivers"
# Unbind user-mode PCI drivers