Browse code

pkg/kamailio/obs: packaged nats module

Sergey Safarov authored on 06/11/2021 09:31:21
Showing 1 changed files
... ...
@@ -18,6 +18,7 @@
18 18
 %bcond_without kazoo
19 19
 %bcond_without memcached
20 20
 %bcond_without mongodb
21
+%bcond_without nats
21 22
 %bcond_without perl
22 23
 %bcond_without phonenum
23 24
 %bcond_without python3
... ...
@@ -51,6 +52,7 @@
51 52
 %bcond_without kazoo
52 53
 %bcond_without memcached
53 54
 %bcond_with mongodb
55
+%bcond_with nats
54 56
 %bcond_without perl
55 57
 %bcond_with phonenum
56 58
 %bcond_with python3
... ...
@@ -85,6 +87,7 @@
85 87
 %bcond_without kazoo
86 88
 %bcond_without memcached
87 89
 %bcond_without mongodb
90
+%bcond_with nats
88 91
 %bcond_without perl
89 92
 %bcond_without phonenum
90 93
 %bcond_without python3
... ...
@@ -129,6 +132,7 @@
129 132
 %bcond_without kazoo
130 133
 %bcond_without memcached
131 134
 %bcond_without mongodb
135
+%bcond_without nats
132 136
 %bcond_without perl
133 137
 %bcond_without phonenum
134 138
 %bcond_without python3
... ...
@@ -156,6 +160,7 @@
156 160
 %bcond_with kazoo
157 161
 %bcond_without memcached
158 162
 %bcond_with mongodb
163
+%bcond_with nats
159 164
 %bcond_without perl
160 165
 %bcond_with phonenum
161 166
 %bcond_without python3
... ...
@@ -216,8 +221,9 @@ Conflicts:  kamailio-dialplan < %ver, kamailio-dnssec < %ver
216 221
 Conflicts:  kamailio-geoip < %ver, kamailio-gzcompress < %ver
217 222
 Conflicts:  kamailio-http_client < %ver
218 223
 Conflicts:  kamailio-ims < %ver, kamailio-java < %ver, kamailio-json < %ver
219
-Conflicts:  kamailio-lcr < %ver, kamailio-ldap < %ver, kamailio-lost < %ver, kamailio-lua < %ver
220 224
 Conflicts:  kamailio-kazoo < %ver
225
+Conflicts:  kamailio-lcr < %ver, kamailio-ldap < %ver, kamailio-lost < %ver, kamailio-lua < %ver
226
+Conflicts:  kamailio-nats < %ver
221 227
 Conflicts:  kamailio-rabbitmq < %ver
222 228
 Conflicts:  kamailio-memcached < %ver, kamailio-mongodb < %ver, kamailio-mysql < %ver
223 229
 Conflicts:  kamailio-outbound < %ver, kamailio-perl < %ver
... ...
@@ -687,6 +693,18 @@ BuildRequires:  mysql-devel
687 693
 MySQL database connectivity for Kamailio.
688 694
 
689 695
 
696
+%if %{with nats}
697
+%package    nats
698
+Summary:    NATS consumer for Kamailio
699
+Group:      %{PKGGROUP}
700
+Requires:   libnats, kamailio = %ver
701
+BuildRequires:    libnats-devel
702
+
703
+%description    nats
704
+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.
705
+%endif
706
+
707
+
690 708
 %package    outbound
691 709
 Summary:    Outbound (RFC 5626) support for Kamailio
692 710
 Group:      %{PKGGROUP}
... ...
@@ -1210,6 +1228,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1210 1228
     kmongodb \
1211 1229
 %endif
1212 1230
     kmysql koutbound \
1231
+%if %{with nats}
1232
+    knats \
1233
+%endif
1213 1234
 %if %{with perl}
1214 1235
     kperl \
1215 1236
 %endif
... ...
@@ -1308,6 +1329,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1308 1329
     kmongodb \
1309 1330
 %endif
1310 1331
     kmysql koutbound \
1332
+%if %{with nats}
1333
+    knats \
1334
+%endif
1311 1335
 %if %{with perl}
1312 1336
     kperl \
1313 1337
 %endif
... ...
@@ -1997,6 +2021,14 @@ fi
1997 2021
 %{_datadir}/kamailio/mysql/*
1998 2022
 
1999 2023
 
2024
+%if %{with nats}
2025
+%files      nats
2026
+%defattr(-,root,root)
2027
+%doc %{_docdir}/kamailio/modules/README.nats
2028
+%{_libdir}/kamailio/modules/nats.so
2029
+%endif
2030
+
2031
+
2000 2032
 %files      outbound
2001 2033
 %defattr(-,root,root)
2002 2034
 %doc %{_docdir}/kamailio/modules/README.outbound