Browse code

pkg/kamailio/obs: added readline-devel build dependency (#3233)

* pkg/kamailio/obs: added readline-devel build dependency

- Added a readline-devel dependency when generating rpm's. This ensures that when generating rpm's (mock context), kamcmd uses this library in its compilation and autocomplete is available in kamcmd's interactive mode.

Gustavo Almeida authored on 16/09/2022 20:06:53 • GitHub committed on 16/09/2022 20:06:53
Showing 1 changed files
... ...
@@ -290,7 +290,7 @@ Conflicts:  kamailio-utils < %ver, kamailio-websocket < %ver
290 290
 Conflicts:  kamailio-xhttp-pi < %ver, kamailio-xmlops < %ver
291 291
 Conflicts:  kamailio-xmlrpc < %ver, kamailio-xmpp < %ver
292 292
 Conflicts:  kamailio-uuid < %ver
293
-BuildRequires:  bison, flex, which, make, gcc, gcc-c++, pkgconfig
293
+BuildRequires:  bison, flex, which, make, gcc, gcc-c++, pkgconfig, readline-devel
294 294
 %if 0%{?rhel} != 6
295 295
 Requires:  systemd
296 296
 BuildRequires:  systemd-devel
... ...
@@ -2420,6 +2420,8 @@ fi
2420 2420
 
2421 2421
 
2422 2422
 %changelog
2423
+* Tue Sep 13 2022 Gustavo Almeida <galmeida@broadvoice.com>
2424
+  - added readline-devel build dependency
2423 2425
 * Sat Aug 31 2019 Sergey Safarov <s.safarov@gmail.com> 5.3.0-dev7
2424 2426
   - Packaged kemix, lost and xhttp_prom modules
2425 2427
 * Sat Mar 30 2019 Sergey Safarov <s.safarov@gmail.com> 5.3.0-0
Browse code

pkg/kamailio/obs: fixed rpm packaging on CentOS 8 and Fedora

Sergey Safarov authored on 16/08/2022 13:31:25
Showing 1 changed files
... ...
@@ -1833,7 +1833,7 @@ fi
1833 1833
 
1834 1834
 %dir %{_libdir}/kamailio/kamctl/dbtextdb
1835 1835
 %{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.py
1836
-%if 0%{?rhel} > 8
1836
+%if 0%{?rhel} >= 8 || 0%{?fedora}
1837 1837
 %dir %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__
1838 1838
 %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__/*.pyc
1839 1839
 %endif
Browse code

pkg/kamailio/obs: fixed packaging for RHEL 7 and RHEL 6 based dists [skip ci]

Sergey Safarov authored on 16/08/2022 12:30:56
Showing 1 changed files
... ...
@@ -1833,8 +1833,14 @@ fi
1833 1833
 
1834 1834
 %dir %{_libdir}/kamailio/kamctl/dbtextdb
1835 1835
 %{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.py
1836
+%if 0%{?rhel} > 8
1836 1837
 %dir %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__
1837 1838
 %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__/*.pyc
1839
+%endif
1840
+%if 0%{?rhel} == 6 || 0%{?rhel} == 7
1841
+%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyc
1842
+%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyo
1843
+%endif
1838 1844
 
1839 1845
 %{_mandir}/man5/*
1840 1846
 %{_mandir}/man8/*
Browse code

pkg/kamailio/obs: added CentOS 9 support

Sergey Safarov authored on 22/06/2022 18:16:41
Showing 1 changed files
... ...
@@ -21,6 +21,7 @@
21 21
 %bcond_without nats
22 22
 %bcond_without perl
23 23
 %bcond_without phonenum
24
+%bcond_without python2
24 25
 %bcond_without python3
25 26
 %bcond_without rabbitmq
26 27
 %bcond_without redis
... ...
@@ -55,6 +56,7 @@
55 56
 %bcond_with nats
56 57
 %bcond_without perl
57 58
 %bcond_with phonenum
59
+%bcond_without python2
58 60
 %bcond_with python3
59 61
 %bcond_with rabbitmq
60 62
 %bcond_with redis
... ...
@@ -90,6 +92,7 @@
90 92
 %bcond_with nats
91 93
 %bcond_without perl
92 94
 %bcond_without phonenum
95
+%bcond_without python2
93 96
 %bcond_without python3
94 97
 %bcond_without rabbitmq
95 98
 %bcond_without redis
... ...
@@ -135,6 +138,53 @@
135 138
 %bcond_without nats
136 139
 %bcond_without perl
137 140
 %bcond_without phonenum
141
+%bcond_without python2
142
+%bcond_without python3
143
+%bcond_without rabbitmq
144
+%bcond_without redis
145
+%bcond_without ruby
146
+%bcond_without sctp
147
+%bcond_without websocket
148
+%bcond_without xmlrpc
149
+%endif
150
+
151
+%if 0%{?rhel} == 9
152
+%if 0%{?centos_ver}
153
+%define dist_name centos
154
+%define dist_version %{?centos}
155
+%define dist .el9.centos
156
+%endif
157
+%if 0%{?almalinux_ver}
158
+%define dist_name centos
159
+%define dist_version %{?almalinux}
160
+%define dist .el9.almalinux
161
+%endif
162
+%if 0%{?rocky_ver}
163
+%define dist_name centos
164
+%define dist_version %{?rocky}
165
+%define dist .el9.rocky
166
+%endif
167
+%if 0%{?centos_ver} == 0 && 0%{?almalinux_ver} == 0 && 0%{?rocky_ver} == 0
168
+%define dist_name rhel
169
+%define dist_version %{?rhel}
170
+%endif
171
+%bcond_without cnxcc
172
+%bcond_with dnssec
173
+%bcond_without evapi
174
+%bcond_without geoip
175
+%bcond_without http_async_client
176
+%bcond_without ims
177
+%bcond_without jansson
178
+%bcond_without json
179
+%bcond_without lua
180
+%bcond_without lwsc
181
+%bcond_without kazoo
182
+%bcond_without memcached
183
+%bcond_without mongodb
184
+%bcond_without nats
185
+%bcond_without perl
186
+%bcond_without phonenum
187
+%bcond_with python2
138 188
 %bcond_without python3
139 189
 %bcond_without rabbitmq
140 190
 %bcond_without redis
... ...
@@ -163,6 +213,7 @@
163 213
 %bcond_with nats
164 214
 %bcond_without perl
165 215
 %bcond_with phonenum
216
+%bcond_without python2
166 217
 %bcond_without python3
167 218
 %bcond_with rabbitmq
168 219
 %bcond_without redis
... ...
@@ -788,13 +839,11 @@ SIP Presence (and RLS, XCAP, etc) support for Kamailio.
788 839
 %package    python
789 840
 Summary:    Python extensions for Kamailio
790 841
 Group:      %{PKGGROUP}
842
+%if %{with python2}
791 843
 Requires:   python2, kamailio = %ver
792 844
 BuildRequires:  python2, python2-devel
793
-%if %{with python3}
794
-%if 0%{?rhel} == 7
795
-Requires:   python36, kamailio = %ver
796
-BuildRequires:  python36, python36-devel
797 845
 %endif
846
+%if %{with python3}
798 847
 %if 0%{?rhel} == 8
799 848
 Requires:   python39, kamailio = %ver
800 849
 BuildRequires:  python39, python39-devel
... ...
@@ -824,7 +873,7 @@ RabbitMQ module for Kamailio.
824 873
 Summary:    RADIUS modules for Kamailio
825 874
 Group:      %{PKGGROUP}
826 875
 Requires:   kamailio = %ver
827
-%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
876
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
828 877
 Requires:   freeradius-client
829 878
 BuildRequires:  freeradius-client-devel
830 879
 %else
... ...
@@ -1158,14 +1207,14 @@ sed -i -e 's/python3/python2/' utils/kamctl/dbtextdb/dbtextdb.py
1158 1207
 %endif
1159 1208
 
1160 1209
 # on latest dist need to add --atexit=no for Kamailio options. More details GH #2616
1161
-%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1210
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
1162 1211
 sed -i -e 's|/usr/sbin/kamailio|/usr/sbin/kamailio --atexit=no|' pkg/kamailio/obs/kamailio.service
1163 1212
 %endif
1164 1213
 
1165 1214
 
1166 1215
 %build
1167 1216
 ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}
1168
-%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1217
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
1169 1218
 export FREERADIUS=1
1170 1219
 %endif
1171 1220
 make cfg prefix=/usr \
... ...
@@ -1180,10 +1229,10 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1180 1229
 %if %{with openssl11}
1181 1230
     SSL_BUILDER="pkg-config libssl11" \
1182 1231
 %endif
1183
-%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1232
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
1184 1233
     FREERADIUS=1 \
1185 1234
 %endif
1186
-%if 0%{?rhel} == 8
1235
+%if 0%{?rhel} >= 8
1187 1236
     PYTHON3=python3.9 \
1188 1237
 %endif
1189 1238
     group_include="kstandard kautheph kberkeley kcarrierroute \
... ...
@@ -1244,7 +1293,10 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1244 1293
 %if %{with phonenum}
1245 1294
     kphonenum \
1246 1295
 %endif
1247
-    kpostgres kpresence kpython \
1296
+    kpostgres kpresence \
1297
+%if %{with python2}
1298
+    kpython \
1299
+%endif
1248 1300
 %if %{with python3}
1249 1301
     kpython3 \
1250 1302
 %endif
... ...
@@ -1284,10 +1336,10 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1284 1336
 %if %{with openssl11}
1285 1337
     SSL_BUILDER="pkg-config libssl11" \
1286 1338
 %endif
1287
-%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1339
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
1288 1340
     FREERADIUS=1 \
1289 1341
 %endif
1290
-%if 0%{?rhel} == 8
1342
+%if 0%{?rhel} >= 8
1291 1343
     PYTHON3=python3.9 \
1292 1344
 %endif
1293 1345
     group_include="kstandard kautheph kberkeley kcarrierroute \
... ...
@@ -1348,7 +1400,10 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1348 1400
 %if %{with phonenum}
1349 1401
     kphonenum \
1350 1402
 %endif
1351
-    kpostgres kpresence kpython \
1403
+    kpostgres kpresence \
1404
+%if %{with python2}
1405
+    kpython \
1406
+%endif
1352 1407
 %if %{with python3}
1353 1408
     kpython3 \
1354 1409
 %endif
... ...
@@ -1411,8 +1466,8 @@ install -m644 pkg/kamailio/%{dist_name}/%{dist_version}/sipcapture.sysconfig \
1411 1466
 %if 0%{?suse_version}
1412 1467
 %py_compile -O %{buildroot}%{_libdir}/kamailio/kamctl/dbtextdb
1413 1468
 %endif
1414
-%if 0%{?fedora} || 0%{?rhel} == 8
1415
-%py_byte_compile %{__python2} %{buildroot}%{_libdir}/kamailio/kamctl/dbtextdb
1469
+%if 0%{?fedora} || 0%{?rhel} >= 8
1470
+%py_byte_compile %{__python3} %{buildroot}%{_libdir}/kamailio/kamctl/dbtextdb
1416 1471
 %endif
1417 1472
 
1418 1473
 # Removing devel files
... ...
@@ -1778,8 +1833,8 @@ fi
1778 1833
 
1779 1834
 %dir %{_libdir}/kamailio/kamctl/dbtextdb
1780 1835
 %{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.py
1781
-%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyc
1782
-%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyo
1836
+%dir %{_libdir}/kamailio/kamctl/dbtextdb/__pycache__
1837
+%{_libdir}/kamailio/kamctl/dbtextdb/__pycache__/*.pyc
1783 1838
 
1784 1839
 %{_mandir}/man5/*
1785 1840
 %{_mandir}/man8/*
... ...
@@ -2145,8 +2200,10 @@ fi
2145 2200
 
2146 2201
 %files      python
2147 2202
 %defattr(-,root,root)
2203
+%if %{with python2}
2148 2204
 %doc %{_docdir}/kamailio/modules/README.app_python
2149 2205
 %{_libdir}/kamailio/modules/app_python.so
2206
+%endif
2150 2207
 %if %{with python3}
2151 2208
 %doc %{_docdir}/kamailio/modules/README.app_python3
2152 2209
 %{_libdir}/kamailio/modules/app_python3.so
Browse code

packaging: on EL8 package with Python 3.9

Anthony Alba authored on 11/06/2022 01:05:26 • sergey-safarov committed on 11/06/2022 11:18:50
Showing 1 changed files
... ...
@@ -794,6 +794,10 @@ BuildRequires:  python2, python2-devel
794 794
 %if 0%{?rhel} == 7
795 795
 Requires:   python36, kamailio = %ver
796 796
 BuildRequires:  python36, python36-devel
797
+%endif
798
+%if 0%{?rhel} == 8
799
+Requires:   python39, kamailio = %ver
800
+BuildRequires:  python39, python39-devel
797 801
 %else
798 802
 Requires:   python3, kamailio = %ver
799 803
 BuildRequires:  python3, python3-devel
... ...
@@ -1178,6 +1182,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1178 1182
 %endif
1179 1183
 %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1180 1184
     FREERADIUS=1 \
1185
+%endif
1186
+%if 0%{?rhel} == 8
1187
+    PYTHON3=python3.9 \
1181 1188
 %endif
1182 1189
     group_include="kstandard kautheph kberkeley kcarrierroute \
1183 1190
 %if %{with cnxcc}
... ...
@@ -1279,6 +1286,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1279 1286
 %endif
1280 1287
 %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1281 1288
     FREERADIUS=1 \
1289
+%endif
1290
+%if 0%{?rhel} == 8
1291
+    PYTHON3=python3.9 \
1282 1292
 %endif
1283 1293
     group_include="kstandard kautheph kberkeley kcarrierroute \
1284 1294
 %if %{with cnxcc}
Browse code

pkg/kamailio/obs: packaged siprepo module into RPM files

Sergey Safarov authored on 30/05/2022 12:21:23
Showing 1 changed files
... ...
@@ -1539,6 +1539,7 @@ fi
1539 1539
 %doc %{_docdir}/kamailio/modules/README.sdpops
1540 1540
 %doc %{_docdir}/kamailio/modules/README.seas
1541 1541
 %doc %{_docdir}/kamailio/modules/README.sipcapture
1542
+%doc %{_docdir}/kamailio/modules/README.siprepo
1542 1543
 %doc %{_docdir}/kamailio/modules/README.sipt
1543 1544
 %doc %{_docdir}/kamailio/modules/README.siptrace
1544 1545
 %doc %{_docdir}/kamailio/modules/README.siputils
... ...
@@ -1699,6 +1700,7 @@ fi
1699 1700
 %{_libdir}/kamailio/modules/sdpops.so
1700 1701
 %{_libdir}/kamailio/modules/seas.so
1701 1702
 %{_libdir}/kamailio/modules/sipcapture.so
1703
+%{_libdir}/kamailio/modules/siprepo.so
1702 1704
 %{_libdir}/kamailio/modules/sipt.so
1703 1705
 %{_libdir}/kamailio/modules/siptrace.so
1704 1706
 %{_libdir}/kamailio/modules/siputils.so
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
Browse code

pkg/kamailio/obs: updated modules list

Sergey Safarov authored on 28/10/2021 17:31:46
Showing 1 changed files
... ...
@@ -214,6 +214,7 @@ Conflicts:  kamailio-auth-ephemeral < %ver, kamailio-bdb < %ver
214 214
 Conflicts:  kamailio-carrierroute < %ver, kamailio-cpl < %ver
215 215
 Conflicts:  kamailio-dialplan < %ver, kamailio-dnssec < %ver
216 216
 Conflicts:  kamailio-geoip < %ver, kamailio-gzcompress < %ver
217
+Conflicts:  kamailio-http_client < %ver
217 218
 Conflicts:  kamailio-ims < %ver, kamailio-java < %ver, kamailio-json < %ver
218 219
 Conflicts:  kamailio-lcr < %ver, kamailio-ldap < %ver, kamailio-lost < %ver, kamailio-lua < %ver
219 220
 Conflicts:  kamailio-kazoo < %ver
... ...
@@ -225,6 +226,7 @@ Conflicts:  kamailio-python < %ver
225 226
 Conflicts:  kamailio-radius < %ver, kamailio-redis < %ver
226 227
 Conflicts:  kamailio-regex < %ver, kamailio-ruby < %ver
227 228
 Conflicts:  kamailio-sctp < %ver, kamailio-secfilter < %ver, kamailio-sipdump < %ver
229
+Conflicts:  kamailio-slack < %ver
228 230
 Conflicts:  kamailio-snmpstats < %ver, kamailio-sqlang < %ver, kamailio-sqlite < %ver
229 231
 Conflicts:  kamailio-tls < %ver, kamailio-unixodbc < %ver
230 232
 Conflicts:  kamailio-utils < %ver, kamailio-websocket < %ver
... ...
@@ -906,6 +908,23 @@ Requires:   kamailio = %ver
906 908
 This module serializes SIP message attributes into a JSON document
907 909
 
908 910
 
911
+%package    slack
912
+Summary:    Slack integration module for Kamailio
913
+Group:      %{PKGGROUP}
914
+
915
+Requires:   kamailio = %ver, kamailio-http_client = %ver
916
+%if 0%{?suse_version}
917
+Requires:   libcurl4
918
+BuildRequires:  libcurl-devel
919
+%else
920
+Requires:   libcurl
921
+BuildRequires:  libcurl-devel
922
+%endif
923
+
924
+%description    slack
925
+This module provides integration with Slack over webhooks. 
926
+
927
+
909 928
 %package    smsops
910 929
 Summary:    Tools for handling SMS packets in SIP messages
911 930
 Group:      %{PKGGROUP}
... ...
@@ -1458,11 +1477,11 @@ fi
1458 1477
 %doc %{_docdir}/kamailio/modules/README.kemix
1459 1478
 %doc %{_docdir}/kamailio/modules/README.kex
1460 1479
 %doc %{_docdir}/kamailio/modules/README.lrkproxy
1461
-%doc %{_docdir}/kamailio/modules/README.malloc_test
1462 1480
 %doc %{_docdir}/kamailio/modules/README.mangler
1463 1481
 %doc %{_docdir}/kamailio/modules/README.matrix
1464 1482
 %doc %{_docdir}/kamailio/modules/README.maxfwd
1465 1483
 %doc %{_docdir}/kamailio/modules/README.mediaproxy
1484
+%doc %{_docdir}/kamailio/modules/README.misctest
1466 1485
 %doc %{_docdir}/kamailio/modules/README.mohqueue
1467 1486
 %doc %{_docdir}/kamailio/modules/README.mqueue
1468 1487
 %doc %{_docdir}/kamailio/modules/README.msilo
... ...
@@ -1477,6 +1496,7 @@ fi
1477 1496
 %doc %{_docdir}/kamailio/modules/README.permissions
1478 1497
 %doc %{_docdir}/kamailio/modules/README.pike
1479 1498
 %doc %{_docdir}/kamailio/modules/README.pipelimit
1499
+%doc %{_docdir}/kamailio/modules/README.posops
1480 1500
 %doc %{_docdir}/kamailio/modules/README.prefix_route
1481 1501
 %doc %{_docdir}/kamailio/modules/README.print
1482 1502
 %doc %{_docdir}/kamailio/modules/README.print_lib
... ...
@@ -1617,11 +1637,11 @@ fi
1617 1637
 %{_libdir}/kamailio/modules/kemix.so
1618 1638
 %{_libdir}/kamailio/modules/kex.so
1619 1639
 %{_libdir}/kamailio/modules/lrkproxy.so
1620
-%{_libdir}/kamailio/modules/malloc_test.so
1621 1640
 %{_libdir}/kamailio/modules/mangler.so
1622 1641
 %{_libdir}/kamailio/modules/matrix.so
1623 1642
 %{_libdir}/kamailio/modules/maxfwd.so
1624 1643
 %{_libdir}/kamailio/modules/mediaproxy.so
1644
+%{_libdir}/kamailio/modules/misctest.so
1625 1645
 %{_libdir}/kamailio/modules/mohqueue.so
1626 1646
 %{_libdir}/kamailio/modules/mqueue.so
1627 1647
 %{_libdir}/kamailio/modules/msilo.so
... ...
@@ -1636,6 +1656,7 @@ fi
1636 1656
 %{_libdir}/kamailio/modules/permissions.so
1637 1657
 %{_libdir}/kamailio/modules/pike.so
1638 1658
 %{_libdir}/kamailio/modules/pipelimit.so
1659
+%{_libdir}/kamailio/modules/posops.so
1639 1660
 %{_libdir}/kamailio/modules/prefix_route.so
1640 1661
 %{_libdir}/kamailio/modules/print.so
1641 1662
 %{_libdir}/kamailio/modules/print_lib.so
... ...
@@ -2182,6 +2203,12 @@ fi
2182 2203
 %{_libdir}/kamailio/modules/sipjson.so
2183 2204
 
2184 2205
 
2206
+%files      slack
2207
+%defattr(-,root,root)
2208
+%doc %{_docdir}/kamailio/modules/README.slack
2209
+%{_libdir}/kamailio/modules/slack.so
2210
+
2211
+
2185 2212
 %files      snmpstats
2186 2213
 %defattr(-,root,root)
2187 2214
 %{_docdir}/kamailio/modules/README.snmpstats
Browse code

pkg: enable RHEL7-like distros to build with OpenSSL 1.1.1

SPChan authored on 10/06/2021 23:51:11 • sergey-safarov committed on 18/06/2021 12:56:41
Showing 1 changed files
... ...
@@ -172,6 +172,11 @@
172 172
 %define _rundir %{_localstatedir}/run
173 173
 %endif
174 174
 
175
+# build with openssl 1.1.1 on RHEL 7 based dists
176
+%if 0%{?rhel} == 7
177
+%bcond_with openssl11
178
+%endif
179
+
175 180
 # redefine buggy openSUSE Leap _sharedstatedir macro. More info at https://bugzilla.redhat.com/show_bug.cgi?id=183370
176 181
 %if 0%{?suse_version} == 1315
177 182
 %define _sharedstatedir /var/lib
... ...
@@ -279,8 +284,13 @@ Account transaction information in a JSON dictionary.
279 284
 %package    auth-ephemeral
280 285
 Summary:    Functions for authentication using ephemeral credentials
281 286
 Group:      %{PKGGROUP}
287
+%if 0%{?rhel} == 7 && %{with openssl11}
288
+Requires:   openssl11, kamailio = %ver
289
+BuildRequires:  openssl11-devel
290
+%else
282 291
 Requires:   openssl, kamailio = %ver
283 292
 BuildRequires:  openssl-devel
293
+%endif
284 294
 
285 295
 %description    auth-ephemeral
286 296
 Functions for authentication using ephemeral credentials.
... ...
@@ -365,9 +375,14 @@ Requires:   openssl
365 375
 BuildRequires:  openssl-devel
366 376
 %endif
367 377
 %if 0%{?rhel} == 7
378
+%if %{with openssl11}
379
+Requires:   openssl11-libs
380
+BuildRequires:  openssl11-devel
381
+%else
368 382
 Requires:   openssl-libs
369 383
 BuildRequires:  openssl-devel
370 384
 %endif
385
+%endif
371 386
 %if 0%{?fedora}
372 387
 Requires:   openssl-libs
373 388
 BuildRequires:  openssl-devel
... ...
@@ -673,8 +688,13 @@ MySQL database connectivity for Kamailio.
673 688
 %package    outbound
674 689
 Summary:    Outbound (RFC 5626) support for Kamailio
675 690
 Group:      %{PKGGROUP}
691
+%if 0%{?rhel} == 7 && %{with openssl11}
692
+Requires:   openssl11, kamailio = %ver
693
+BuildRequires:  openssl11-devel
694
+%else
676 695
 Requires:   openssl, kamailio = %ver
677 696
 BuildRequires:  openssl-devel
697
+%endif
678 698
 
679 699
 %description    outbound
680 700
 RFC 5626, "Managing Client-Initiated Connections in the Session Initiation
... ...
@@ -952,8 +972,13 @@ SQLite database connectivity for Kamailio.
952 972
 %package    tls
953 973
 Summary:    TLS transport for Kamailio
954 974
 Group:      %{PKGGROUP}
975
+%if 0%{?rhel} == 7 && %{with openssl11}
976
+Requires:   openssl11, kamailio = %ver
977
+BuildRequires:  openssl11-devel
978
+%else
955 979
 Requires:   openssl, kamailio = %ver
956 980
 BuildRequires:  openssl-devel
981
+%endif
957 982
 
958 983
 %description    tls
959 984
 TLS transport for Kamailio.
... ...
@@ -1008,8 +1033,13 @@ Non-SIP utitility functions for Kamailio.
1008 1033
 %package    websocket
1009 1034
 Summary:    WebSocket transport for Kamailio
1010 1035
 Group:      %{PKGGROUP}
1036
+%if 0%{?rhel} == 7 && %{with openssl11}
1037
+Requires:   libunistring, openssl11, kamailio = %ver
1038
+BuildRequires:  libunistring-devel, openssl11-devel
1039
+%else
1011 1040
 Requires:   libunistring, openssl, kamailio = %ver
1012 1041
 BuildRequires:  libunistring-devel, openssl-devel
1042
+%endif
1013 1043
 
1014 1044
 %description    websocket
1015 1045
 WebSocket transport for Kamailio.
... ...
@@ -1106,6 +1136,9 @@ make cfg prefix=/usr \
1106 1136
 make
1107 1137
 make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1108 1138
     jabber ndb_cassandra osp" \
1139
+%if %{with openssl11}
1140
+    SSL_BUILDER="pkg-config libssl11" \
1141
+%endif
1109 1142
 %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1110 1143
     FREERADIUS=1 \
1111 1144
 %endif
... ...
@@ -1201,6 +1234,9 @@ rm -rf %{buildroot}
1201 1234
 make install
1202 1235
 make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1203 1236
     iptrtpproxy jabber osp" \
1237
+%if %{with openssl11}
1238
+    SSL_BUILDER="pkg-config libssl11" \
1239
+%endif
1204 1240
 %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1205 1241
     FREERADIUS=1 \
1206 1242
 %endif
Browse code

pkg/kamailio/obs: disabled lwsc build on CentOS 6 dist

Sergey Safarov authored on 14/06/2021 12:31:32
Showing 1 changed files
... ...
@@ -14,6 +14,7 @@
14 14
 %bcond_without jansson
15 15
 %bcond_without json
16 16
 %bcond_without lua
17
+%bcond_without lwsc
17 18
 %bcond_without kazoo
18 19
 %bcond_without memcached
19 20
 %bcond_without mongodb
... ...
@@ -46,6 +47,7 @@
46 47
 %bcond_without jansson
47 48
 %bcond_without json
48 49
 %bcond_without lua
50
+%bcond_with lwsc
49 51
 %bcond_without kazoo
50 52
 %bcond_without memcached
51 53
 %bcond_with mongodb
... ...
@@ -79,6 +81,7 @@
79 81
 %bcond_without jansson
80 82
 %bcond_without json
81 83
 %bcond_without lua
84
+%bcond_without lwsc
82 85
 %bcond_without kazoo
83 86
 %bcond_without memcached
84 87
 %bcond_without mongodb
... ...
@@ -122,6 +125,7 @@
122 125
 %bcond_without jansson
123 126
 %bcond_without json
124 127
 %bcond_without lua
128
+%bcond_without lwsc
125 129
 %bcond_without kazoo
126 130
 %bcond_without memcached
127 131
 %bcond_without mongodb
... ...
@@ -148,6 +152,7 @@
148 152
 %bcond_without jansson
149 153
 %bcond_without json
150 154
 %bcond_without lua
155
+%bcond_without lwsc
151 156
 %bcond_with kazoo
152 157
 %bcond_without memcached
153 158
 %bcond_with mongodb
... ...
@@ -611,6 +616,7 @@ Lua extensions for Kamailio.
611 616
 %endif
612 617
 
613 618
 
619
+%if %{with lwsc}
614 620
 %package    lwsc
615 621
 Summary:    Websocket client implementation to interact with external systems, similar to http client
616 622
 Group:      %{PKGGROUP}
... ...
@@ -619,6 +625,7 @@ BuildRequires:  libwebsockets-devel
619 625
 
620 626
 %description    lwsc
621 627
 Websocket client implementation to interact with external systems, similar to http client.
628
+%endif
622 629
 
623 630
 
624 631
 %if %{with memcached}
... ...
@@ -1138,7 +1145,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1138 1145
 %if %{with lua}
1139 1146
     klua \
1140 1147
 %endif
1148
+%if %{with lwsc}
1141 1149
     klwsc \
1150
+%endif
1142 1151
 %if %{with memcached}
1143 1152
     kmemcached \
1144 1153
 %endif
... ...
@@ -1231,7 +1240,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1231 1240
 %if %{with lua}
1232 1241
     klua \
1233 1242
 %endif
1243
+%if %{with lwsc}
1234 1244
     klwsc \
1245
+%endif
1235 1246
 %if %{with memcached}
1236 1247
     kmemcached \
1237 1248
 %endif
... ...
@@ -1894,10 +1905,12 @@ fi
1894 1905
 %endif
1895 1906
 
1896 1907
 
1908
+%if %{with lwsc}
1897 1909
 %files      lwsc
1898 1910
 %defattr(-,root,root)
1899 1911
 %doc %{_docdir}/kamailio/modules/README.lwsc
1900 1912
 %{_libdir}/kamailio/modules/lwsc.so
1913
+%endif
1901 1914
 
1902 1915
 %if %{with memcached}
1903 1916
 %files      memcached
Browse code

pkg/kamailio/obs: simlifid module definition for RHEL dist

Sergey Safarov authored on 14/06/2021 05:05:41
Showing 1 changed files
... ...
@@ -28,9 +28,15 @@
28 28
 %bcond_without xmlrpc
29 29
 %endif
30 30
 
31
-%if 0%{?centos_ver} == 6
31
+%if 0%{?rhel} == 6
32
+%if 0%{?centos_ver}
32 33
 %define dist_name centos
33 34
 %define dist_version %{?centos}
35
+%endif
36
+%if 0%{?centos_ver} == 0
37
+%define dist_name rhel
38
+%define dist_version %{?rhel}
39
+%endif
34 40
 %bcond_with cnxcc
35 41
 %bcond_without dnssec
36 42
 %bcond_without evapi
... ...
@@ -54,10 +60,16 @@
54 60
 %bcond_without xmlrpc
55 61
 %endif
56 62
 
57
-%if 0%{?centos_ver} == 7
63
+%if 0%{?rhel} == 7
64
+%if 0%{?centos_ver}
58 65
 %define dist_name centos
59 66
 %define dist_version %{?centos}
60 67
 %define dist .el7.centos
68
+%endif
69
+%if 0%{?centos_ver} == 0
70
+%define dist_name rhel
71
+%define dist_version %{?rhel}
72
+%endif
61 73
 %bcond_without cnxcc
62 74
 %bcond_with dnssec
63 75
 %bcond_without evapi
... ...
@@ -81,23 +93,26 @@
81 93
 %bcond_without xmlrpc
82 94
 %endif
83 95
 
84
-%if 0%{?centos_ver} == 8 || 0%{?almalinux_ver} == 8 || 0%{?rocky_ver} == 8
85
-%define rhel_rebuild 8
86
-% if 0%{?centos_ver}
96
+%if 0%{?rhel} == 8
97
+%if 0%{?centos_ver}
87 98
 %define dist_name centos
88 99
 %define dist_version %{?centos}
89 100
 %define dist .el8.centos
90 101
 %endif
91
-% if 0%{?almalinux_ver}
102
+%if 0%{?almalinux_ver}
92 103
 %define dist_name centos
93 104
 %define dist_version %{?almalinux}
94 105
 %define dist .el8.almalinux
95 106
 %endif
96
-% if 0%{?rocky_ver}
107
+%if 0%{?rocky_ver}
97 108
 %define dist_name centos
98 109
 %define dist_version %{?rocky}
99 110
 %define dist .el8.rocky
100 111
 %endif
112
+%if 0%{?centos_ver} == 0 && 0%{?almalinux_ver} == 0 && 0%{?rocky_ver} == 0
113
+%define dist_name rhel
114
+%define dist_version %{?rhel}
115
+%endif
101 116
 %bcond_without cnxcc
102 117
 %bcond_with dnssec
103 118
 %bcond_without evapi
... ...
@@ -147,84 +162,6 @@
147 162
 %bcond_without xmlrpc
148 163
 %endif
149 164
 
150
-%if 0%{?rhel} == 6 && 0%{?centos_ver} != 6
151
-%define dist_name rhel
152
-%define dist_version %{?rhel}
153
-%bcond_with cnxcc
154
-%bcond_without dnssec
155
-%bcond_without evapi
156
-%bcond_with geoip
157
-%bcond_with http_async_client
158
-%bcond_with ims
159
-%bcond_with jansson
160
-%bcond_with json
161
-%bcond_with lua
162
-%bcond_with kazoo
163
-%bcond_with memcached
164
-%bcond_with mongodb
165
-%bcond_with perl
166
-%bcond_with phonenum
167
-%bcond_with python3
168
-%bcond_with rabbitmq
169
-%bcond_with redis
170
-%bcond_with ruby
171
-%bcond_with sctp
172
-%bcond_with websocket
173
-%bcond_without xmlrpc
174
-%endif
175
-
176
-%if 0%{?rhel} == 7 && 0%{?centos_ver} != 7
177
-%define dist_name rhel
178
-%define dist_version %{?rhel}
179
-%bcond_without cnxcc
180
-%bcond_with dnssec
181
-%bcond_without evapi
182
-%bcond_without geoip
183
-%bcond_without http_async_client
184
-%bcond_without ims
185
-%bcond_without jansson
186
-%bcond_without json
187
-%bcond_without lua
188
-%bcond_without kazoo
189
-%bcond_without memcached
190
-%bcond_without mongodb
191
-%bcond_without perl
192
-%bcond_without phonenum
193
-%bcond_without python3
194
-%bcond_without rabbitmq
195
-%bcond_without redis
196
-%bcond_without ruby
197
-%bcond_without sctp
198
-%bcond_without websocket
199
-%bcond_without xmlrpc
200
-%endif
201
-
202
-%if 0%{?rhel} == 8 && 0%{?rhel_rebuild} != 8
203
-%define dist_name rhel
204
-%define dist_version %{?rhel}
205
-%bcond_without cnxcc
206
-%bcond_with dnssec
207
-%bcond_without evapi
208
-%bcond_without geoip
209
-%bcond_without http_async_client
210
-%bcond_without ims
211
-%bcond_without jansson
212
-%bcond_without json
213
-%bcond_without lua
214
-%bcond_without kazoo
215
-%bcond_without memcached
216
-%bcond_without mongodb
217
-%bcond_without perl
218
-%bcond_without phonenum
219
-%bcond_without python3
220
-%bcond_without rabbitmq
221
-%bcond_without redis
222
-%bcond_without ruby
223
-%bcond_without sctp
224
-%bcond_without websocket
225
-%bcond_without xmlrpc
226
-%endif
227
-
228 165
 # Defining missing macros on RHEL/CentOS 6
229 166
 %if 0%{?rhel} == 6
230 167
 %define _rundir %{_localstatedir}/run
Browse code

pkg: add support for AlmaLinux and Rocky Linux

SPChan authored on 11/06/2021 03:23:55 • sergey-safarov committed on 11/06/2021 11:41:12
Showing 1 changed files
... ...
@@ -81,10 +81,23 @@
81 81
 %bcond_without xmlrpc
82 82
 %endif
83 83
 
84
-%if 0%{?centos_ver} == 8
84
+%if 0%{?centos_ver} == 8 || 0%{?almalinux_ver} == 8 || 0%{?rocky_ver} == 8
85
+%define rhel_rebuild 8
86
+% if 0%{?centos_ver}
85 87
 %define dist_name centos
86 88
 %define dist_version %{?centos}
87 89
 %define dist .el8.centos
90
+%endif
91
+% if 0%{?almalinux_ver}
92
+%define dist_name centos
93
+%define dist_version %{?almalinux}
94
+%define dist .el8.almalinux
95
+%endif
96
+% if 0%{?rocky_ver}
97
+%define dist_name centos
98
+%define dist_version %{?rocky}
99
+%define dist .el8.rocky
100
+%endif
88 101
 %bcond_without cnxcc
89 102
 %bcond_with dnssec
90 103
 %bcond_without evapi
... ...
@@ -186,7 +199,7 @@
186 199
 %bcond_without xmlrpc
187 200
 %endif
188 201
 
189
-%if 0%{?rhel} == 8 && 0%{?centos_ver} != 8
202
+%if 0%{?rhel} == 8 && 0%{?rhel_rebuild} != 8
190 203
 %define dist_name rhel
191 204
 %define dist_version %{?rhel}
192 205
 %bcond_without cnxcc
Browse code

pkg/kamailio/obs: added lwsc module packaging

Sergey Safarov authored on 16/04/2021 09:36:55
Showing 1 changed files
... ...
@@ -661,6 +661,16 @@ Lua extensions for Kamailio.
661 661
 %endif
662 662
 
663 663
 
664
+%package    lwsc
665
+Summary:    Websocket client implementation to interact with external systems, similar to http client
666
+Group:      %{PKGGROUP}
667
+Requires:   libwebsockets, kamailio = %ver
668
+BuildRequires:  libwebsockets-devel
669
+
670
+%description    lwsc
671
+Websocket client implementation to interact with external systems, similar to http client.
672
+
673
+
664 674
 %if %{with memcached}
665 675
 %package    memcached
666 676
 Summary:    Memcached configuration file support for Kamailio
... ...
@@ -1178,6 +1188,7 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1178 1188
 %if %{with lua}
1179 1189
     klua \
1180 1190
 %endif
1191
+    klwsc \
1181 1192
 %if %{with memcached}
1182 1193
     kmemcached \
1183 1194
 %endif
... ...
@@ -1270,6 +1281,7 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1270 1281
 %if %{with lua}
1271 1282
     klua \
1272 1283
 %endif
1284
+    klwsc \
1273 1285
 %if %{with memcached}
1274 1286
     kmemcached \
1275 1287
 %endif
... ...
@@ -1932,6 +1944,11 @@ fi
1932 1944
 %endif
1933 1945
 
1934 1946
 
1947
+%files      lwsc
1948
+%defattr(-,root,root)