Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM spec update for 5.1 branch #1708

Merged
merged 4 commits into from
Nov 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
102 changes: 55 additions & 47 deletions pkg/kamailio/obs/kamailio.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,6 @@
%define ver 5.1.6
%define rel 0%{dist}

%if 0%{?fedora} == 25
%define dist_name fedora
%define dist_version %{?fedora}
%bcond_without cnxcc
%bcond_with dnssec
%bcond_without geoip
%bcond_without http_async_client
%bcond_without jansson
%bcond_without json
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without perl
%bcond_without rebbitmq
%bcond_without redis
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
%endif

%if 0%{?fedora} == 26
%define dist_name fedora
%define dist_version %{?fedora}
%bcond_without cnxcc
%bcond_with dnssec
%bcond_without geoip
%bcond_without http_async_client
%bcond_without jansson
%bcond_without json
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without perl
%bcond_without rebbitmq
%bcond_without redis
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
%endif

%if 0%{?fedora} == 27
%define dist_name fedora
%define dist_version %{?fedora}
Expand All @@ -54,6 +14,7 @@
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without rebbitmq
%bcond_without redis
Expand All @@ -74,6 +35,7 @@
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without rabbitmq
%bcond_without redis
Expand All @@ -94,6 +56,7 @@
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without rabbitmq
%bcond_without redis
Expand All @@ -114,6 +77,7 @@
%bcond_without lua
%bcond_with kazoo
%bcond_without memcached
%bcond_with mongodb
%bcond_without perl
%bcond_with rebbitmq
%bcond_with redis
Expand All @@ -135,6 +99,7 @@
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without rebbitmq
%bcond_without redis
Expand All @@ -155,6 +120,7 @@
%bcond_without lua
%bcond_with kazoo
%bcond_without memcached
%bcond_with mongodb
%bcond_without perl
%bcond_with rebbitmq
%bcond_without redis
Expand All @@ -175,6 +141,7 @@
%bcond_with lua
%bcond_with kazoo
%bcond_with memcached
%bcond_with mongodb
%bcond_with perl
%bcond_with rebbitmq
%bcond_with redis
Expand All @@ -195,6 +162,7 @@
%bcond_with lua
%bcond_with kazoo
%bcond_with memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without rebbitmq
%bcond_without redis
Expand Down Expand Up @@ -227,7 +195,7 @@ Conflicts: kamailio-ims < %ver, kamailio-java < %ver, kamailio-json < %ver
Conflicts: kamailio-lcr < %ver, kamailio-ldap < %ver, kamailio-lua < %ver
Conflicts: kamailio-kazoo < %ver
Conflicts: kamailio-rabbitmq < %ver
Conflicts: kamailio-memcached < %ver, kamailio-mysql < %ver
Conflicts: kamailio-memcached < %ver, kamailio-mongodb < %ver, kamailio-mysql < %ver
Conflicts: kamailio-outbound < %ver, kamailio-perl < %ver
Conflicts: kamailio-postgresql < %ver, kamailio-presence < %ver
Conflicts: kamailio-python < %ver
Expand All @@ -244,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
Expand Down Expand Up @@ -285,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
Expand Down Expand Up @@ -570,6 +549,19 @@ Memcached configuration file support for Kamailio.
%endif


%if %{with mongodb}
%package mongodb
Summary: MongoDB database connectivity for Kamailio
Group: System Environment/Daemons
Requires: kamailio = %ver
Requires: mongo-c-driver
BuildRequires: mongo-c-driver-devel

%description mongodb
MongoDB database connectivity for Kamailio.
%endif


%package mysql
Summary: MySQL database connectivity for Kamailio
Group: System Environment/Daemons
Expand Down Expand Up @@ -944,19 +936,14 @@ UUID module for Kamailio.
%prep
%setup -n %{name}-%{ver}

ln -s ../obs pkg/kamailio/fedora/24
ln -s ../obs pkg/kamailio/fedora/25
ln -s ../obs pkg/kamailio/fedora/26
ln -s ../obs pkg/kamailio/fedora/27
ln -s ../obs pkg/kamailio/fedora/28
ln -s ../obs pkg/kamailio/fedora/29
mkdir -p pkg/kamailio/rhel
ln -s ../obs pkg/kamailio/rhel/6
ln -s ../obs pkg/kamailio/rhel/7
mkdir -p pkg/kamailio/opensuse
ln -s ../obs pkg/kamailio/opensuse/1315
ln -s ../obs pkg/kamailio/opensuse/1330
mkdir -p pkg/kamailio/centos
ln -s ../obs pkg/kamailio/opensuse/1550
ln -s ../obs pkg/kamailio/centos/6
ln -s ../obs pkg/kamailio/centos/7

Expand Down Expand Up @@ -1016,6 +1003,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
%endif
%if %{with xmlrpc}
kmi_xmlrpc \
%endif
%if %{with mongodb}
kmongodb \
%endif
kmysql koutbound \
%if %{with perl}
Expand Down Expand Up @@ -1085,6 +1075,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
%endif
%if %{with xmlrpc}
kmi_xmlrpc \
%endif
%if %{with mongodb}
kmongodb \
%endif
kmysql koutbound \
%if %{with perl}
Expand Down Expand Up @@ -1139,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
Expand Down Expand Up @@ -1683,6 +1679,16 @@ fi
%endif


%if %{with mongodb}
%files mongodb
%defattr(-,root,root)
%doc %{_docdir}/kamailio/modules/README.db_mongodb
%doc %{_docdir}/kamailio/modules/README.ndb_mongodb
%{_libdir}/kamailio/modules/db_mongodb.so
%{_libdir}/kamailio/modules/ndb_mongodb.so
%endif


%files mysql
%defattr(-,root,root)
%doc %{_docdir}/kamailio/modules/README.db_mysql
Expand Down Expand Up @@ -1959,6 +1965,8 @@ fi


%changelog
* Sun Nov 04 2018 Sergey Safarov <s.safarov@gmail.com>
- removed packaging for Fedora 25, 26 as End Of Life
* Sat Sep 02 2017 Sergey Safarov <s.safarov@gmail.com>
- added packaging for Fedora 26 and openSUSE Leap 42.3
- removed packaging for Fedora 24 and openSUSE Leap 42.1 as End Of Life
Expand Down
25 changes: 12 additions & 13 deletions pkg/kamailio/obs/meta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<project name="home:kamailio:v5.0.x-rpms">
<title>RPM Packages for Kamailio v5.0.x</title>
<description>RPM Packages for Kamailio v5.0.x</description>
<project name="home:kamailio:v5.1.x-rpms">
<title>RPM Packages for Kamailio v5.1.x</title>
<description>RPM Packages for Kamailio v5.1.x</description>
<person userid="kamailio" role="maintainer"/>
<repository name="openSUSE_Tumbleweed">
<path project="openSUSE:Factory" repository="snapshot"/>
Expand All @@ -24,20 +24,19 @@
<path project="Fedora:EPEL:6" repository="RHEL"/>
<arch>x86_64</arch>
</repository>
<repository name="Fedora_27">
<path project="Fedora:27" repository="update"/>
<path project="Fedora:27" repository="standard"/>
<repository name="Fedora_29">
<path project="Fedora:29" repository="update"/>
<path project="Fedora:29" repository="standard"/>
<arch>x86_64</arch>
</repository>
<repository name="Fedora_26">
<path project="Fedora:26" repository="update"/>
<path project="Fedora:26" repository="standard"/>
<repository name="Fedora_28">
<path project="Fedora:28" repository="update"/>
<path project="Fedora:28" repository="standard"/>
<arch>x86_64</arch>
</repository>
<repository name="Fedora_25">
<path project="Fedora:25" repository="update"/>
<path project="Fedora:25" repository="standard"/>
<arch>i586</arch>
<repository name="Fedora_27">
<path project="Fedora:27" repository="update"/>
<path project="Fedora:27" repository="standard"/>
<arch>x86_64</arch>
</repository>
<repository name="CentOS_7">
Expand Down