[sr-dev] git:5.6:b552a278: packaging: on EL8 package with Python 3.9

Sergey Safarov s.safarov at gmail.com
Sat Jun 11 13:20:31 CEST 2022


Module: kamailio
Branch: 5.6
Commit: b552a27821cf083e87bf0e2cd2c05acb6cf79aea
URL: https://github.com/kamailio/kamailio/commit/b552a27821cf083e87bf0e2cd2c05acb6cf79aea

Author: Anthony Alba <ascanio.alba7 at gmail.com>
Committer: Sergey Safarov <s.safarov at gmail.com>
Date: 2022-06-11T14:20:06+03:00

packaging: on EL8 package with Python 3.9

(cherry picked from commit c938619e458e0efa0676e7e60c2b1a6fc7e947db)

---

Modified: pkg/kamailio/obs/kamailio.spec

---

Diff:  https://github.com/kamailio/kamailio/commit/b552a27821cf083e87bf0e2cd2c05acb6cf79aea.diff
Patch: https://github.com/kamailio/kamailio/commit/b552a27821cf083e87bf0e2cd2c05acb6cf79aea.patch

---

diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index 5ba68a92241..fbc41f36ce0 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -794,6 +794,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
@@ -1178,6 +1182,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}
@@ -1279,6 +1286,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}




More information about the sr-dev mailing list