Module: kamailio
Branch: master
Commit: b2402ec1fdde4584c9061e0a47a92e3328b5e7a8
URL:
https://github.com/kamailio/kamailio/commit/b2402ec1fdde4584c9061e0a47a92e3…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2019-05-18T19:28:58+03:00
pkg/kamailio/obs: Fixed packaging on Fedora 30 [skip ci]
---
Modified: pkg/kamailio/obs/kamailio.spec
---
Diff:
https://github.com/kamailio/kamailio/commit/b2402ec1fdde4584c9061e0a47a92e3…
Patch:
https://github.com/kamailio/kamailio/commit/b2402ec1fdde4584c9061e0a47a92e3…
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index 5706b5178e..03bdb4c33c 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -289,6 +289,10 @@ BuildRequires: python3-devel
%if 0%{?fedora} == 28
BuildRequires: python3-devel
%endif
+%if 0%{?fedora} == 30
+BuildRequires: python3-devel
+%endif
+
%description
Kamailio (former OpenSER) is an Open Source SIP Server released under GPL, able
@@ -393,7 +397,7 @@ Module which provides a mechanism to limit call duration based on
credit informa
%package cpl
Summary: CPL (Call Processing Language) interpreter for Kamailio
Group: %{PKGGROUP}
-Requires: libxml2, kamailio = %ver
+Requires: which, libxml2, kamailio = %ver
BuildRequires: libxml2-devel
%description cpl
@@ -1056,9 +1060,14 @@ UUID module for Kamailio.
%prep
%setup -n %{name}-%{ver}
+%if "%{__python2}" != ""
+ sed -i -e 's:#!/usr/bin/python:#!%{__python2}:'
utils/kamctl/dbtextdb/dbtextdb.py
+%endif
+
ln -s ../obs pkg/kamailio/fedora/27
ln -s ../obs pkg/kamailio/fedora/28
ln -s ../obs pkg/kamailio/fedora/29
+ln -s ../obs pkg/kamailio/fedora/30
ln -s ../obs pkg/kamailio/rhel/6
ln -s ../obs pkg/kamailio/rhel/7
ln -s ../obs pkg/kamailio/opensuse/1315
@@ -1748,6 +1757,7 @@ fi
%doc %{_docdir}/kamailio/modules/README.ims_registrar_pcscf
%doc %{_docdir}/kamailio/modules/README.ims_registrar_scscf
%doc %{_docdir}/kamailio/modules/README.ims_usrloc_pcscf
+%doc %{_docdir}/kamailio/modules/README.ims_usrloc_scscf
%{_libdir}/kamailio/modules/cdp.so
%{_libdir}/kamailio/modules/cdp_avp.so
%{_libdir}/kamailio/modules/ims_auth.so