[sr-dev] git:master:dd1b3ccb: pkg/kamailio/obs: packaged nats module

Sergey Safarov s.safarov at gmail.com
Sat Nov 6 16:44:07 CET 2021


Module: kamailio
Branch: master
Commit: dd1b3ccbc9e4674b28e420d97fe96bbe028fa009
URL: https://github.com/kamailio/kamailio/commit/dd1b3ccbc9e4674b28e420d97fe96bbe028fa009

Author: Sergey Safarov <s.safarov at gmail.com>
Committer: Sergey Safarov <s.safarov at gmail.com>
Date: 2021-11-06T18:43:39+03:00

pkg/kamailio/obs: packaged nats module

---

Modified: pkg/kamailio/obs/kamailio.spec

---

Diff:  https://github.com/kamailio/kamailio/commit/dd1b3ccbc9e4674b28e420d97fe96bbe028fa009.diff
Patch: https://github.com/kamailio/kamailio/commit/dd1b3ccbc9e4674b28e420d97fe96bbe028fa009.patch

---

diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index 5e15376879..5b87a501bc 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -18,6 +18,7 @@
 %bcond_without kazoo
 %bcond_without memcached
 %bcond_without mongodb
+%bcond_without nats
 %bcond_without perl
 %bcond_without phonenum
 %bcond_without python3
@@ -51,6 +52,7 @@
 %bcond_without kazoo
 %bcond_without memcached
 %bcond_with mongodb
+%bcond_with nats
 %bcond_without perl
 %bcond_with phonenum
 %bcond_with python3
@@ -85,6 +87,7 @@
 %bcond_without kazoo
 %bcond_without memcached
 %bcond_without mongodb
+%bcond_with nats
 %bcond_without perl
 %bcond_without phonenum
 %bcond_without python3
@@ -129,6 +132,7 @@
 %bcond_without kazoo
 %bcond_without memcached
 %bcond_without mongodb
+%bcond_without nats
 %bcond_without perl
 %bcond_without phonenum
 %bcond_without python3
@@ -156,6 +160,7 @@
 %bcond_with kazoo
 %bcond_without memcached
 %bcond_with mongodb
+%bcond_with nats
 %bcond_without perl
 %bcond_with phonenum
 %bcond_without python3
@@ -216,8 +221,9 @@ Conflicts:  kamailio-dialplan < %ver, kamailio-dnssec < %ver
 Conflicts:  kamailio-geoip < %ver, kamailio-gzcompress < %ver
 Conflicts:  kamailio-http_client < %ver
 Conflicts:  kamailio-ims < %ver, kamailio-java < %ver, kamailio-json < %ver
-Conflicts:  kamailio-lcr < %ver, kamailio-ldap < %ver, kamailio-lost < %ver, kamailio-lua < %ver
 Conflicts:  kamailio-kazoo < %ver
+Conflicts:  kamailio-lcr < %ver, kamailio-ldap < %ver, kamailio-lost < %ver, kamailio-lua < %ver
+Conflicts:  kamailio-nats < %ver
 Conflicts:  kamailio-rabbitmq < %ver
 Conflicts:  kamailio-memcached < %ver, kamailio-mongodb < %ver, kamailio-mysql < %ver
 Conflicts:  kamailio-outbound < %ver, kamailio-perl < %ver
@@ -687,6 +693,18 @@ BuildRequires:  mysql-devel
 MySQL database connectivity for Kamailio.
 
 
+%if %{with nats}
+%package    nats
+Summary:    NATS consumer for Kamailio
+Group:      %{PKGGROUP}
+Requires:   libnats, kamailio = %ver
+BuildRequires:    libnats-devel
+
+%description    nats
+The module provides an NATS consumer for Kamailio. NATS is a real time distributed messaging platform, more details about it can be found at nats.io.
+%endif
+
+
 %package    outbound
 Summary:    Outbound (RFC 5626) support for Kamailio
 Group:      %{PKGGROUP}
@@ -1210,6 +1228,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
     kmongodb \
 %endif
     kmysql koutbound \
+%if %{with nats}
+    knats \
+%endif
 %if %{with perl}
     kperl \
 %endif
@@ -1308,6 +1329,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
     kmongodb \
 %endif
     kmysql koutbound \
+%if %{with nats}
+    knats \
+%endif
 %if %{with perl}
     kperl \
 %endif
@@ -1997,6 +2021,14 @@ fi
 %{_datadir}/kamailio/mysql/*
 
 
+%if %{with nats}
+%files      nats
+%defattr(-,root,root)
+%doc %{_docdir}/kamailio/modules/README.nats
+%{_libdir}/kamailio/modules/nats.so
+%endif
+
+
 %files      outbound
 %defattr(-,root,root)
 %doc %{_docdir}/kamailio/modules/README.outbound




More information about the sr-dev mailing list