From 184a70a58c8e48f569e0faa88869f27844db39de Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Mon, 6 Feb 2023 17:25:16 +0100 Subject: 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 Change-Id: I7be79e61994800bb796d4e9141f0ff6ad8bdead2 --- extras/rpm/vpp.spec | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'extras') 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 -- cgit 1.2.3-korg