From 0c6b55fd5588979ec3dfc26112de06825731dce5 Mon Sep 17 00:00:00 2001 From: Anthony Alba Date: Sat, 11 Jun 2022 09:05:26 +0800 Subject: [PATCH] packaging: on EL8 package with Python 3.9 (cherry picked from commit c938619e458e0efa0676e7e60c2b1a6fc7e947db) --- pkg/kamailio/obs/kamailio.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec index ee9c08e0b85..57f14110a6c 100644 --- a/pkg/kamailio/obs/kamailio.spec +++ b/pkg/kamailio/obs/kamailio.spec @@ -807,6 +807,10 @@ BuildRequires: python2, python2-devel %if 0%{?rhel} == 7 Requires: python36, kamailio = %ver BuildRequires: python36, python36-devel +%endif +%if 0%{?rhel} == 8 +Requires: python39, kamailio = %ver +BuildRequires: python39, python39-devel %else Requires: python3, kamailio = %ver BuildRequires: python3, python3-devel @@ -1174,6 +1178,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \ %endif %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8 FREERADIUS=1 \ +%endif +%if 0%{?rhel} == 8 + PYTHON3=python3.9 \ %endif group_include="kstandard kautheph kberkeley kcarrierroute \ %if %{with cnxcc} @@ -1269,6 +1276,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \ %endif %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8 FREERADIUS=1 \ +%endif +%if 0%{?rhel} == 8 + PYTHON3=python3.9 \ %endif group_include="kstandard kautheph kberkeley kcarrierroute \ %if %{with cnxcc}