Module: kamailio
Branch: master
Commit: 2c077b0434037f1b0f6b37d6026235b206ddbbb2
URL:
https://github.com/kamailio/kamailio/commit/2c077b0434037f1b0f6b37d6026235b…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2018-11-04T11:25:12Z
pkg/kamailio/obs: Fixed bdb module build on fedora dists
---
Modified: pkg/kamailio/obs/kamailio.spec
---
Diff:
https://github.com/kamailio/kamailio/commit/2c077b0434037f1b0f6b37d6026235b…
Patch:
https://github.com/kamailio/kamailio/commit/2c077b0434037f1b0f6b37d6026235b…
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index d5b4dafd9e..c0356d8f73 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -213,6 +213,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
@@ -271,8 +277,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
@@ -1141,6 +1152,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