-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkamailio.spec
2364 lines (2013 loc) · 64 KB
/
kamailio.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%define name kamailio
%define ver %{VERSION_NUMBER}
%define rel %{BUILD_NUMBER}%{dist}
%if 0%{?fedora}
%define dist_name fedora
%define dist_version %{?fedora}
%bcond_without cnxcc
%bcond_with dnssec
%bcond_without evapi
%bcond_without geoip
%bcond_without http_async_client
%bcond_without ims
%bcond_without jansson
%bcond_without json
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without phonenum
%bcond_without python3
%bcond_without rabbitmq
%bcond_without redis
%bcond_without ruby
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
%bcond_without sipx
%endif
%if 0%{?centos_ver} == 6
%define dist_name centos
%define dist_version %{?centos}
%bcond_with cnxcc
%bcond_without dnssec
%bcond_without evapi
%bcond_without geoip
%bcond_without http_async_client
%bcond_without ims
%bcond_without jansson
%bcond_without json
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_with mongodb
%bcond_without perl
%bcond_with phonenum
%bcond_with python3
%bcond_with rabbitmq
%bcond_with redis
%bcond_with ruby
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
%bcond_with sipx
%endif
%if 0%{?centos_ver} == 7
%define dist_name centos
%define dist_version %{?centos}
%define dist .el7.centos
%bcond_without cnxcc
%bcond_with dnssec
%bcond_without evapi
%bcond_without geoip
%bcond_with http_async_client
%bcond_without ims
%bcond_without jansson
%bcond_without json
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_with mongodb
%bcond_without perl
%bcond_with phonenum
%bcond_with python3
%bcond_without rabbitmq
%bcond_with redis
%bcond_without ruby
%bcond_with sctp
%bcond_without websocket
%bcond_without xmlrpc
%bcond_with sipx
%endif
%if 0%{?centos_ver} == 8
%define dist_name centos
%define dist_version %{?centos}
%define dist .el8.centos
%bcond_without cnxcc
%bcond_with dnssec
%bcond_without evapi
%bcond_without geoip
%bcond_without http_async_client
%bcond_without ims
%bcond_without jansson
%bcond_without json
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without phonenum
%bcond_without python3
%bcond_without rabbitmq
%bcond_without redis
%bcond_without ruby
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
%bcond_without sipx
%endif
%if 0%{?suse_version}
%define dist_name opensuse
%define dist_version %{?suse_version}
%bcond_without cnxcc
%bcond_with dnssec
%bcond_with evapi
%bcond_without geoip
%bcond_without http_async_client
%bcond_without ims
%bcond_without jansson
%bcond_without json
%bcond_without lua
%bcond_with kazoo
%bcond_without memcached
%bcond_with mongodb
%bcond_without perl
%bcond_with phonenum
%bcond_without python3
%bcond_with rabbitmq
%bcond_without redis
%bcond_without ruby
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
%bcond_without sipx
%endif
%if 0%{?rhel} == 6 && 0%{?centos_ver} != 6
%define dist_name rhel
%define dist_version %{?rhel}
%bcond_with cnxcc
%bcond_without dnssec
%bcond_without evapi
%bcond_with geoip
%bcond_with http_async_client
%bcond_with ims
%bcond_with jansson
%bcond_with json
%bcond_with lua
%bcond_with kazoo
%bcond_with memcached
%bcond_with mongodb
%bcond_with perl
%bcond_with phonenum
%bcond_with python3
%bcond_with rabbitmq
%bcond_with redis
%bcond_with ruby
%bcond_with sctp
%bcond_with websocket
%bcond_without xmlrpc
%bcond_without sipx
%endif
%if 0%{?rhel} == 7 && 0%{?centos_ver} != 7
%define dist_name rhel
%define dist_version %{?rhel}
%bcond_without cnxcc
%bcond_with dnssec
%bcond_without evapi
%bcond_without geoip
%bcond_without http_async_client
%bcond_without ims
%bcond_without jansson
%bcond_without json
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without phonenum
%bcond_without python3
%bcond_without rabbitmq
%bcond_without redis
%bcond_without ruby
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
%bcond_without sipx
%endif
%if 0%{?rhel} == 8 && 0%{?centos_ver} != 8
%define dist_name rhel
%define dist_version %{?rhel}
%bcond_without cnxcc
%bcond_with dnssec
%bcond_without evapi
%bcond_without geoip
%bcond_without http_async_client
%bcond_without ims
%bcond_without jansson
%bcond_without json
%bcond_without lua
%bcond_without kazoo
%bcond_without memcached
%bcond_without mongodb
%bcond_without perl
%bcond_without phonenum
%bcond_without python3
%bcond_without rabbitmq
%bcond_without redis
%bcond_without ruby
%bcond_without sctp
%bcond_without websocket
%bcond_without xmlrpc
%bcond_without sipx
%endif
# Defining missing macros on RHEL/CentOS 6
%if 0%{?rhel} == 6
%define _rundir %{_localstatedir}/run
%endif
# redefine buggy openSUSE Leap _sharedstatedir macro. More info at https://bugzilla.redhat.com/show_bug.cgi?id=183370
%if 0%{?suse_version} == 1315
%define _sharedstatedir /var/lib
%endif
# Defining missing macros on OpenSUSE Leap
%if 0%{?suse_version} == 1315
%define _fillupdir /var/adm/fillup-templates
%endif
%if 0%{?suse_version} == 1330
%define _fillupdir /var/adm/fillup-templates
%endif
# Package groups for OpenSUSE is different than others
%if 0%{?suse_version}
%define PKGGROUP System/Daemons
%else
%define PKGGROUP System Environment/Daemons
%endif
Summary: Kamailio (former OpenSER) - the Open Source SIP Server
Name: %name
Version: %ver
Release: %rel
Packager: Peter Dunkley <[email protected]>
License: GPL-2.0
Group: %{PKGGROUP}
Source: http://kamailio.org/pub/kamailio/%{ver}/src/%{name}-%{ver}_src.tar.gz
URL: http://kamailio.org/
Vendor: kamailio.org
BuildRoot: %{_tmppath}/%{name}-%{ver}-buildroot
Conflicts: kamailio-acc_json < %ver
Conflicts: kamailio-auth-ephemeral < %ver, kamailio-bdb < %ver
Conflicts: kamailio-carrierroute < %ver, kamailio-cpl < %ver
Conflicts: kamailio-dialplan < %ver, kamailio-dnssec < %ver
Conflicts: kamailio-geoip < %ver, kamailio-gzcompress < %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-rabbitmq < %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
Conflicts: kamailio-radius < %ver, kamailio-redis < %ver
Conflicts: kamailio-regex < %ver, kamailio-ruby < %ver
Conflicts: kamailio-sctp < %ver, kamailio-secfilter < %ver, kamailio-sipdump < %ver
Conflicts: kamailio-snmpstats < %ver, kamailio-sqlang < %ver, kamailio-sqlite < %ver
Conflicts: kamailio-tls < %ver, kamailio-unixodbc < %ver
Conflicts: kamailio-utils < %ver, kamailio-websocket < %ver
Conflicts: kamailio-xhttp-pi < %ver, kamailio-xmlops < %ver
Conflicts: kamailio-xmlrpc < %ver, kamailio-xmpp < %ver
Conflicts: kamailio-uuid < %ver
BuildRequires: bison, flex
%if 0%{?suse_version} == 1315 || 0%{?suse_version} == 1330
Requires: filesystem
BuildRequires: systemd, shadow
%endif
%description
Kamailio (former OpenSER) is an Open Source SIP Server released under GPL, able
to handle thousands of call setups per second. Among features: asynchronous TCP,
UDP and SCTP, secure communication via TLS for VoIP (voice, video); IPv4 and
IPv6; SIMPLE instant messaging and presence with embedded XCAP server and MSRP
relay; ENUM; DID and least cost routing; load balancing; routing fail-over;
accounting, authentication and authorization; support for many backend systems
such as MySQL, Postgres, Oracle, Radius, LDAP, Redis, Cassandra; XMLRPC control
interface, SNMP monitoring. It can be used to build large VoIP servicing
platforms or to scale up SIP-to-PSTN gateways, PBX systems or media servers
like Asterisk™, FreeSWITCH™ or SEMS.
%if %{with jansson}
%package acc_json
Summary: Account transaction information in a JSON dictionary
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?rhel} == 6
Requires: libevent2
BuildRequires: libevent2-devel
%else
Requires: libevent
BuildRequires: libevent-devel
%endif
%if 0%{?suse_version}
Requires: libjansson
BuildRequires: libjansson-devel
%else
Requires: jansson
BuildRequires: jansson-devel
%endif
%description acc_json
Account transaction information in a JSON dictionary.
%endif
%package auth-ephemeral
Summary: Functions for authentication using ephemeral credentials
Group: %{PKGGROUP}
Requires: openssl, kamailio = %ver
BuildRequires: openssl-devel
%description auth-ephemeral
Functions for authentication using ephemeral credentials.
%package auth-xkeys
Summary: Functions for authentication using shared keys
Group: %{PKGGROUP}
Requires: kamailio = %ver
%description auth-xkeys
Functions for authentication using shared keys.
%package bdb
Summary: Berkeley database connectivity for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?suse_version}
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
Berkeley database connectivity for Kamailio.
%package carrierroute
Summary: The carrierroute module for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%description carrierroute
The carrierroute module for Kamailio.
%package cfgt
Summary: Unit test config file execution tracing module for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%description cfgt
The unit test config file execution tracing module for Kamailio.
%if %{with cnxcc}
%package cnxcc
Summary: Module provides a mechanism to limit call duration
Group: %{PKGGROUP}
Requires: libevent, hiredis, kamailio = %ver
BuildRequires: libevent-devel, hiredis-devel
%description cnxcc
Module which provides a mechanism to limit call duration based on credit information parameters for Kamailio.
%endif
%package cpl
Summary: CPL (Call Processing Language) interpreter for Kamailio
Group: %{PKGGROUP}
Requires: which, libxml2, kamailio = %ver
BuildRequires: libxml2-devel
%description cpl
CPL (Call Processing Language) interpreter for Kamailio.
%package crypto
Summary: Module to support cryptographic extensions
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?rhel} == 6
Requires: openssl
BuildRequires: openssl-devel
%endif
%if 0%{?rhel} == 7
Requires: openssl-libs
BuildRequires: openssl-devel
%endif
%if 0%{?fedora}
Requires: openssl-libs
BuildRequires: openssl-devel
%endif
%if 0%{?suse_version}
Requires: libopenssl1_0_0
BuildRequires: libopenssl-devel
%endif
%description crypto
This module provides various cryptography tools for use in Kamailio configuration file. It relies on OpenSSL libraries for cryptographic operations (libssl, libcrypto).
%package dialplan
Summary: String translations based on rules for Kamailio
Group: %{PKGGROUP}
Requires: pcre, kamailio = %ver
BuildRequires: pcre-devel
%description dialplan
String translations based on rules for Kamailio.
%package dmq_userloc
Summary: User location records replication between multiple servers
Group: %{PKGGROUP}
Requires: kamailio = %ver
%description dmq_userloc
User location (usrloc) records replication between multiple servers via DMQ module for Kamailio.
%if %{with dnssec}
%package dnssec
Summary: DNSSEC support for Kamailio
Group: %{PKGGROUP}
Requires: dnssec-tools-libs, kamailio = %ver
BuildRequires: dnssec-tools-libs-devel
%description dnssec
DNSSEC support for Kamailio.
%endif
%if %{with evapi}
%package evapi
Summary: Module can be used to create an event message flow from Kamailio to any application that can connect to a TCP socket
Group: %{PKGGROUP}
Requires: libev, kamailio = %ver
BuildRequires: libev-devel
%description evapi
The remote application can also issue messages received by Kamailio.
There is no protocol definition, it is all up to the author of the routing script.
Events can be generated for any event in Kamailio. For 3rd party transaction control, a transaction can be automatically
suspended when sending the event, to be resumed at a later point, maybe triggered by an incoming message on the event socket.
%endif
%if %{with geoip}
%package geoip
Summary: MaxMind GeoIP support for Kamailio
Group: %{PKGGROUP}
Requires: GeoIP, kamailio = %ver
BuildRequires: GeoIP-devel
%description geoip
MaxMind GeoIP support for Kamailio.
%endif
%package gzcompress
Summary: Compressed body (SIP and HTTP) handling for kamailio
Group: %{PKGGROUP}
Requires: zlib, kamailio = %ver
BuildRequires: zlib-devel
%description gzcompress
Compressed body (SIP and HTTP) handling for kamailio.
%if %{with http_async_client}
%package http_async_client
Summary: Async HTTP client module for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?rhel} == 6
Requires: libevent2
BuildRequires: libevent2-devel
%else
Requires: libevent
BuildRequires: libevent-devel
%endif
%if 0%{?suse_version}
Requires: libcurl4
BuildRequires: libcurl-devel
%else
Requires: libcurl
BuildRequires: libcurl-devel
%endif
%description http_async_client
This module implements protocol functions that use the libcurl to communicate with HTTP servers in asyncronous way.
%endif
%package http_client
Summary: HTTP client module for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?suse_version}
Requires: libcurl4, libxml2-tools
BuildRequires: libcurl-devel, libxml2-devel
%else
Requires: libxml2, libcurl, zlib
BuildRequires: libxml2-devel, libcurl-devel, zlib-devel
%endif
%description http_client
This module implements protocol functions that use the libcurl to communicate with HTTP servers.
%if %{with ims}
%package ims
Summary: IMS modules and extensions module for Kamailio
Group: %{PKGGROUP}
Requires: libxml2, kamailio = %ver
BuildRequires: libxml2-devel libmnl-devel
%description ims
IMS modules and extensions module for Kamailio.
%endif
%if %{with jansson}
%package jansson
Summary: JSON string handling and RPC modules for Kamailio using JANSSON library
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?rhel} == 6
Requires: libevent2
BuildRequires: libevent2-devel
%else
Requires: libevent
BuildRequires: libevent-devel
%endif
%if 0%{?suse_version}
Requires: libjson-c2
BuildRequires: libjansson-devel
%else
Requires: json-c
BuildRequires: jansson-devel
%endif
%description jansson
JSON string handling and RPC modules for Kamailio using JANSSON library.
%endif
%if %{with json}
%package json
Summary: JSON string handling and RPC modules for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?rhel} == 6
Requires: libevent2
BuildRequires: libevent2-devel
%else
Requires: libevent
BuildRequires: libevent-devel
%endif
%if 0%{?suse_version}
Requires: libjson-c2
BuildRequires: libjson-c-devel
%else
Requires: json-c
BuildRequires: json-c-devel
%endif
%description json
JSON string handling and RPC modules for Kamailio.
%endif
%if %{with kazoo}
%package kazoo
Summary: Kazoo middle layer connector support for Kamailio
Group: %{PKGGROUP}
Requires: libuuid, librabbitmq, json-c, kamailio = %ver
BuildRequires: libuuid-devel, librabbitmq-devel, json-c-devel
%if 0%{?rhel} == 6
Requires: libevent2
BuildRequires: libevent2-devel
%else
Requires: libevent
BuildRequires: libevent-devel
%endif
%description kazoo
Kazoo module for Kamailio.
%endif
%package lcr
Summary: Least cost routing for Kamailio
Group: %{PKGGROUP}
Requires: pcre, kamailio = %ver
BuildRequires: pcre-devel
%description lcr
Least cost routing for Kamailio.
%package ldap
Summary: LDAP search interface for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?suse_version}
Requires: openldap2 libsasl2-3
BuildRequires: openldap2-devel cyrus-sasl-devel
%else
Requires: openldap
BuildRequires: openldap-devel
%endif
%description ldap
LDAP search interface for Kamailio.
%package lost
Summary: HELD (RFC6155) and LOST (RFC5222) location-based routing
Group: %{PKGGROUP}
Requires: libxml2, kamailio = %ver
BuildRequires: libxml2-devel
%description lost
HELD (RFC6155) and LOST (RFC5222) location-based routing support for Kamailio.
%if %{with lua}
%package lua
Summary: Lua extensions for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
BuildRequires: lua-devel
%description lua
Lua extensions for Kamailio.
%endif
%if %{with memcached}
%package memcached
Summary: Memcached configuration file support for Kamailio
Group: %{PKGGROUP}
Requires: libmemcached, kamailio = %ver
BuildRequires: libmemcached-devel
%description memcached
Memcached configuration file support for Kamailio.
%endif
%package mongodb
Summary: MongoDB database connectivity for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
Requires: mongo-c-driver
BuildRequires: mongo-c-driver-devel
%description mongodb
MongoDB database connectivity for Kamailio.
%package mysql
Summary: MySQL database connectivity for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
BuildRequires: zlib-devel
%if 0%{?suse_version}
Requires: libmysqlclient18
BuildRequires: libmysqlclient-devel
%else
Requires: mysql-libs
BuildRequires: mysql-devel
%endif
%description mysql
MySQL database connectivity for Kamailio.
%package outbound
Summary: Outbound (RFC 5626) support for Kamailio
Group: %{PKGGROUP}
Requires: openssl, kamailio = %ver
BuildRequires: openssl-devel
%description outbound
RFC 5626, "Managing Client-Initiated Connections in the Session Initiation
Protocol (SIP)" support for Kamailio.
%if %{with perl}
%package perl
Summary: Perl extensions and database driver for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?suse_version}
Requires: perl
BuildRequires: perl
%else
Requires: perl-libs
BuildRequires: perl-ExtUtils-Embed
%endif
%description perl
Perl extensions and database driver for Kamailio.
%endif
%if %{with phonenum}
%package phonenum
Summary: Phonenum module the Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
Requires: libphonenumber
BuildRequires: libphonenumber-devel libicu-devel protobuf-devel
%description phonenum
Phonenum module the Kamailio.
%endif
%package postgresql
Summary: PostgreSQL database connectivity for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?suse_version}
Requires: libpq5
BuildRequires: postgresql-devel
%else
Requires: postgresql-libs
BuildRequires: postgresql-devel
%endif
%description postgresql
PostgreSQL database connectivity for Kamailio.
%package presence
Summary: SIP Presence (and RLS, XCAP, etc) support for Kamailio
Group: %{PKGGROUP}
Requires: libxml2, kamailio = %ver, kamailio-xmpp = %ver
BuildRequires: libxml2-devel
%if 0%{?suse_version}
Requires: libcurl4
BuildRequires: libcurl-devel
%else
Requires: libcurl
BuildRequires: libcurl-devel
%endif
%description presence
SIP Presence (and RLS, XCAP, etc) support for Kamailio.
%package python
Summary: Python extensions for Kamailio
Group: %{PKGGROUP}
Requires: python2, kamailio = %ver
BuildRequires: python2, python2-devel
%if %{with python3}
%if 0%{?rhel} == 7
Requires: python36, kamailio = %ver
BuildRequires: python36, python36-devel
%else
Requires: python3, kamailio = %ver
BuildRequires: python3, python3-devel
%endif
%endif
%description python
Python extensions for Kamailio.
%if %{with rabbitmq}
%package rabbitmq
Summary: RabbitMQ related modules
Group: %{PKGGROUP}
Requires: libuuid, librabbitmq, kamailio = %ver
BuildRequires: librabbitmq-devel, libuuid-devel
%description rabbitmq
RabbitMQ module for Kamailio.
%endif
%package radius
Summary: RADIUS modules for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
Requires: freeradius-client
BuildRequires: freeradius-client-devel
%else
Requires: radiusclient-ng
BuildRequires: radiusclient-ng-devel
%endif
%description radius
RADIUS modules for Kamailio.
%if %{with redis}
%package redis
Summary: Redis configuration file support for Kamailio
Group: %{PKGGROUP}
Requires: hiredis, kamailio = %ver
BuildRequires: hiredis-devel
%description redis
Redis configuration file support for Kamailio.
%endif
%package regex
Summary: PCRE mtaching operations for Kamailio
Group: %{PKGGROUP}
Requires: pcre, kamailio = %ver
BuildRequires: pcre-devel
%description regex
PCRE mtaching operations for Kamailio.
%package rtjson
Summary: SIP routing based on JSON specifications
Group: %{PKGGROUP}
Requires: kamailio = %ver
%description rtjson
SIP routing based on JSON specifications.
%if %{with ruby}
%package ruby
Summary: Ruby extensions for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
BuildRequires: ruby-devel
%description ruby
Ruby extensions for Kamailio.
%endif
%if %{with sctp}
%package sctp
Summary: SCTP transport for Kamailio
Group: %{PKGGROUP}
Requires: lksctp-tools, kamailio = %ver
BuildRequires: lksctp-tools-devel
%description sctp
SCTP transport for Kamailio.
%endif
%package sipx
Summary: SIPX plugins for Kamailio
Group: Productivity/Telephony/SIP/Servers
Requires: libxml2, libcurl, kamailio = %ver, kamailio-mongodb = %ver, kamailio-presence = %ver
BuildRequires: libxml2-devel, curl-devel
%description sipx
SIPX plugins for Kamailio.
%package secfilter
Summary: Additional layer of security over our communications
Group: %{PKGGROUP}
Requires: kamailio = %ver
%description secfilter
Additional layer of security over our communications.
%package sipcapture-daemon-config
Summary: Reference config for sipcapture daemon
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?suse_version}
Requires: filesystem
%endif
%description sipcapture-daemon-config
reference config for sipcapture daemon.
%package sipdump
Summary: This module writes SIP traffic and some associated details into local files
Group: %{PKGGROUP}
Requires: kamailio = %ver
%description sipdump
This module writes SIP traffic and some associated details into local files
%package sipjson
Summary: This module serializes SIP message attributes into a JSON document
Group: %{PKGGROUP}
Requires: kamailio = %ver
%description sipjson
This module serializes SIP message attributes into a JSON document
%package smsops
Summary: Tools for handling SMS packets in SIP messages
Group: %{PKGGROUP}
Requires: kamailio = %ver
%description smsops
This module collects the Transformations for 3GPP-SMS.
%package snmpstats
Summary: SNMP management interface (scalar statistics) for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%if 0%{?suse_version}
Requires: libsnmp30
BuildRequires: net-snmp-devel
%else
Requires: net-snmp-libs
BuildRequires: net-snmp-devel
%endif
%description snmpstats
SNMP management interface (scalar statistics) for Kamailio.
%package statsc
Summary: Statistics collecting module providing reports for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %ver
%description statsc
This module provides a statistics collector engine.
%package statsd
Summary: Send commands to statsd server
Group: %{PKGGROUP}
Requires: kamailio = %ver
%description statsd
Send commands to statsd server.
%package sqlang
Summary: Squirrel Language (SQLang) for Kamailio
Group: %{PKGGROUP}
Requires: kamailio = %version
BuildRequires: gcc-c++
%description sqlang
app_sqlang module for Kamailio.
%package sqlite
Summary: SQLite database connectivity for Kamailio
Group: %{PKGGROUP}
Requires: sqlite, kamailio = %ver
BuildRequires: sqlite-devel
%description sqlite
SQLite database connectivity for Kamailio.
%package tls
Summary: TLS transport for Kamailio
Group: %{PKGGROUP}
Requires: openssl, kamailio = %ver
BuildRequires: openssl-devel