Module: kamailio
Branch: 5.1
Commit: 094f584901ff4a4c60b6119b3fd7563472b2f88f
URL:
https://github.com/kamailio/kamailio/commit/094f584901ff4a4c60b6119b3fd7563…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2018-11-06T11:44:36Z
pkg/kamailio/obs: Fixed bdb module build on fedora dists
(cherry picked from commit 2c077b0434037f1b0f6b37d6026235b206ddbbb2)
---
Modified: pkg/kamailio/obs/kamailio.spec
---
Diff:
https://github.com/kamailio/kamailio/commit/094f584901ff4a4c60b6119b3fd7563…
Patch:
https://github.com/kamailio/kamailio/commit/094f584901ff4a4c60b6119b3fd7563…
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index 85f8e4359f..57c3122257 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -212,6 +212,12 @@ BuildRequires: bison, flex
%if 0%{?suse_version}
BuildRequires: systemd-mini, shadow
%endif
+%if 0%{?fedora} == 27
+BuildRequires: python3-devel
+%endif
+%if 0%{?fedora} == 28
+BuildRequires: python3-devel
+%endif
%description
Kamailio (former OpenSER) is an Open Source SIP Server released under GPL, able
@@ -253,8 +259,13 @@ Requires: kamailio = %ver
Requires: libdb-4_8
BuildRequires: libdb-4_8-devel
%else
+%if 0%{?rhel} == 6
Requires: db4
BuildRequires: db4-devel
+%else
+Requires: libdb
+BuildRequires: libdb-devel
+%endif
%endif
%description bdb
@@ -1121,6 +1132,9 @@ install -m644
pkg/kamailio/%{dist_name}/%{dist_version}/sipcapture.sysconfig \
%if 0%{?suse_version}
%py_compile -O %{buildroot}%{_libdir}/kamailio/kamctl/dbtextdb
%endif
+%if 0%{?fedora}
+%py_byte_compile %{__python2} %{buildroot}%{_libdir}/kamailio/kamctl/dbtextdb
+%endif
# Removing devel files
rm -f %{buildroot}%{_libdir}/kamailio/lib*.so