Skip to content

Commit

Permalink
pkg/kamailio/ops: Added MongoDB rpm package
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-safarov committed Nov 4, 2018
1 parent 3c95473 commit 702bfff
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion pkg/kamailio/obs/kamailio.spec
Expand Up @@ -14,6 +14,7 @@
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without rabbitmq
%bcond_without redis
Expand All @@ -34,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 @@ -54,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 @@ -74,6 +77,7 @@
%bcond_without lua
%bcond_with kazoo
%bcond_without memcached
%bcond_with mongodb
%bcond_without perl
%bcond_with rabbitmq
%bcond_with redis
Expand All @@ -95,6 +99,7 @@
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without rabbitmq
%bcond_without redis
Expand All @@ -115,6 +120,7 @@
%bcond_without lua
%bcond_with kazoo
%bcond_without memcached
%bcond_with mongodb
%bcond_without perl
%bcond_with rabbitmq
%bcond_without redis
Expand All @@ -135,6 +141,7 @@
%bcond_with lua
%bcond_with kazoo
%bcond_with memcached
%bcond_with mongodb
%bcond_with perl
%bcond_with rabbitmq
%bcond_with redis
Expand All @@ -155,6 +162,7 @@
%bcond_with lua
%bcond_with kazoo
%bcond_with memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without rabbitmq
%bcond_without redis
Expand Down Expand Up @@ -188,7 +196,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 Down Expand Up @@ -541,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 @@ -991,6 +1012,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 @@ -1060,6 +1084,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 @@ -1668,6 +1695,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

0 comments on commit 702bfff

Please sign in to comment.