1%define name    kamailio
2%define ver 5.4.5
3%define rel dev1.0%{dist}
4
5%if 0%{?fedora}
6%define dist_name fedora
7%define dist_version %{?fedora}
8%bcond_without cnxcc
9%bcond_with dnssec
10%bcond_without evapi
11%bcond_without geoip
12%bcond_without http_async_client
13%bcond_without ims
14%bcond_without jansson
15%bcond_without json
16%bcond_without lua
17%bcond_without kazoo
18%bcond_without memcached
19%bcond_without mongodb
20%bcond_without perl
21%bcond_without phonenum
22%bcond_without python3
23%bcond_without rabbitmq
24%bcond_without redis
25%bcond_without ruby
26%bcond_without sctp
27%bcond_without websocket
28%bcond_without xmlrpc
29%endif
30
31%if 0%{?centos_ver} == 6
32%define dist_name centos
33%define dist_version %{?centos}
34%bcond_with cnxcc
35%bcond_without dnssec
36%bcond_without evapi
37%bcond_without geoip
38%bcond_without http_async_client
39%bcond_without ims
40%bcond_without jansson
41%bcond_without json
42%bcond_without lua
43%bcond_without kazoo
44%bcond_without memcached
45%bcond_with mongodb
46%bcond_without perl
47%bcond_with phonenum
48%bcond_with python3
49%bcond_with rabbitmq
50%bcond_with redis
51%bcond_with ruby
52%bcond_without sctp
53%bcond_without websocket
54%bcond_without xmlrpc
55%endif
56
57%if 0%{?centos_ver} == 7
58%define dist_name centos
59%define dist_version %{?centos}
60%define dist .el7.centos
61%bcond_without cnxcc
62%bcond_with dnssec
63%bcond_without evapi
64%bcond_without geoip
65%bcond_without http_async_client
66%bcond_without ims
67%bcond_without jansson
68%bcond_without json
69%bcond_without lua
70%bcond_without kazoo
71%bcond_without memcached
72%bcond_without mongodb
73%bcond_without perl
74%bcond_without phonenum
75%bcond_without python3
76%bcond_without rabbitmq
77%bcond_without redis
78%bcond_without ruby
79%bcond_without sctp
80%bcond_without websocket
81%bcond_without xmlrpc
82%endif
83
84%if 0%{?centos_ver} == 8
85%define dist_name centos
86%define dist_version %{?centos}
87%define dist .el8.centos
88%bcond_without cnxcc
89%bcond_with dnssec
90%bcond_without evapi
91%bcond_without geoip
92%bcond_without http_async_client
93%bcond_without ims
94%bcond_without jansson
95%bcond_without json
96%bcond_without lua
97%bcond_without kazoo
98%bcond_without memcached
99%bcond_without mongodb
100%bcond_without perl
101%bcond_without phonenum
102%bcond_without python3
103%bcond_without rabbitmq
104%bcond_without redis
105%bcond_without ruby
106%bcond_without sctp
107%bcond_without websocket
108%bcond_without xmlrpc
109%endif
110
111%if 0%{?suse_version}
112%define dist_name opensuse
113%define dist_version %{?suse_version}
114%bcond_without cnxcc
115%bcond_with dnssec
116%bcond_with evapi
117%bcond_without geoip
118%bcond_without http_async_client
119%bcond_without ims
120%bcond_without jansson
121%bcond_without json
122%bcond_without lua
123%bcond_with kazoo
124%bcond_without memcached
125%bcond_with mongodb
126%bcond_without perl
127%bcond_with phonenum
128%bcond_without python3
129%bcond_with rabbitmq
130%bcond_without redis
131%bcond_without ruby
132%bcond_without sctp
133%bcond_without websocket
134%bcond_without xmlrpc
135%endif
136
137%if 0%{?rhel} == 6 && 0%{?centos_ver} != 6
138%define dist_name rhel
139%define dist_version %{?rhel}
140%bcond_with cnxcc
141%bcond_without dnssec
142%bcond_without evapi
143%bcond_with geoip
144%bcond_with http_async_client
145%bcond_with ims
146%bcond_with jansson
147%bcond_with json
148%bcond_with lua
149%bcond_with kazoo
150%bcond_with memcached
151%bcond_with mongodb
152%bcond_with perl
153%bcond_with phonenum
154%bcond_with python3
155%bcond_with rabbitmq
156%bcond_with redis
157%bcond_with ruby
158%bcond_with sctp
159%bcond_with websocket
160%bcond_without xmlrpc
161%endif
162
163%if 0%{?rhel} == 7 && 0%{?centos_ver} != 7
164%define dist_name rhel
165%define dist_version %{?rhel}
166%bcond_without cnxcc
167%bcond_with dnssec
168%bcond_without evapi
169%bcond_without geoip
170%bcond_without http_async_client
171%bcond_without ims
172%bcond_without jansson
173%bcond_without json
174%bcond_without lua
175%bcond_without kazoo
176%bcond_without memcached
177%bcond_without mongodb
178%bcond_without perl
179%bcond_without phonenum
180%bcond_without python3
181%bcond_without rabbitmq
182%bcond_without redis
183%bcond_without ruby
184%bcond_without sctp
185%bcond_without websocket
186%bcond_without xmlrpc
187%endif
188
189%if 0%{?rhel} == 8 && 0%{?centos_ver} != 8
190%define dist_name rhel
191%define dist_version %{?rhel}
192%bcond_without cnxcc
193%bcond_with dnssec
194%bcond_without evapi
195%bcond_without geoip
196%bcond_without http_async_client
197%bcond_without ims
198%bcond_without jansson
199%bcond_without json
200%bcond_without lua
201%bcond_without kazoo
202%bcond_without memcached
203%bcond_without mongodb
204%bcond_without perl
205%bcond_without phonenum
206%bcond_without python3
207%bcond_without rabbitmq
208%bcond_without redis
209%bcond_without ruby
210%bcond_without sctp
211%bcond_without websocket
212%bcond_without xmlrpc
213%endif
214
215# Defining missing macros on RHEL/CentOS 6
216%if 0%{?rhel} == 6
217%define _rundir %{_localstatedir}/run
218%endif
219
220# redefine buggy openSUSE Leap _sharedstatedir macro. More info at https://bugzilla.redhat.com/show_bug.cgi?id=183370
221%if 0%{?suse_version} == 1315
222%define _sharedstatedir /var/lib
223%endif
224
225# Defining missing macros on OpenSUSE Leap
226%if 0%{?suse_version} == 1315
227%define _fillupdir /var/adm/fillup-templates
228%endif
229%if 0%{?suse_version} == 1330
230%define _fillupdir /var/adm/fillup-templates
231%endif
232
233# Package groups for OpenSUSE is different than others
234%if 0%{?suse_version}
235%define PKGGROUP System/Daemons
236%else
237%define PKGGROUP System Environment/Daemons
238%endif
239
240
241Summary:    Kamailio - the Open Source SIP Server
242Name:       %name
243Version:    %ver
244Release:    %rel
245Packager:   Sergey Safarov <s.safarov@gmail.com>
246License:    GPL-2.0
247Group:      %{PKGGROUP}
248Source:     http://kamailio.org/pub/kamailio/%{ver}/src/%{name}-%{ver}_src.tar.gz
249URL:        http://kamailio.org/
250Vendor:     kamailio.org
251BuildRoot:  %{_tmppath}/%{name}-%{ver}-buildroot
252Conflicts:  kamailio-acc_json < %ver
253Conflicts:  kamailio-auth-ephemeral < %ver, kamailio-bdb < %ver
254Conflicts:  kamailio-carrierroute < %ver, kamailio-cpl < %ver
255Conflicts:  kamailio-dialplan < %ver, kamailio-dnssec < %ver
256Conflicts:  kamailio-geoip < %ver, kamailio-gzcompress < %ver
257Conflicts:  kamailio-ims < %ver, kamailio-java < %ver, kamailio-json < %ver
258Conflicts:  kamailio-lcr < %ver, kamailio-ldap < %ver, kamailio-lost < %ver, kamailio-lua < %ver
259Conflicts:  kamailio-kazoo < %ver
260Conflicts:  kamailio-rabbitmq < %ver
261Conflicts:  kamailio-memcached < %ver, kamailio-mongodb < %ver, kamailio-mysql < %ver
262Conflicts:  kamailio-outbound < %ver, kamailio-perl < %ver
263Conflicts:  kamailio-postgresql < %ver, kamailio-presence < %ver
264Conflicts:  kamailio-python < %ver
265Conflicts:  kamailio-radius < %ver, kamailio-redis < %ver
266Conflicts:  kamailio-regex < %ver, kamailio-ruby < %ver
267Conflicts:  kamailio-sctp < %ver, kamailio-secfilter < %ver, kamailio-sipdump < %ver
268Conflicts:  kamailio-snmpstats < %ver, kamailio-sqlang < %ver, kamailio-sqlite < %ver
269Conflicts:  kamailio-tls < %ver, kamailio-unixodbc < %ver
270Conflicts:  kamailio-utils < %ver, kamailio-websocket < %ver
271Conflicts:  kamailio-xhttp-pi < %ver, kamailio-xmlops < %ver
272Conflicts:  kamailio-xmlrpc < %ver, kamailio-xmpp < %ver
273Conflicts:  kamailio-uuid < %ver
274BuildRequires:  bison, flex, which, make, gcc, gcc-c++, pkgconfig
275%if 0%{?rhel} != 6
276Requires:  systemd
277BuildRequires:  systemd-devel
278%endif
279
280%if 0%{?suse_version} == 1315 || 0%{?suse_version} == 1330
281Requires:  filesystem
282BuildRequires:  shadow
283%endif
284
285
286%description
287Kamailio is an Open Source SIP Server released under GPL, able
288to handle thousands of call setups per second. Among features: asynchronous TCP,
289UDP and SCTP, secure communication via TLS for VoIP (voice, video); IPv4 and
290IPv6; SIMPLE instant messaging and presence with embedded XCAP server and MSRP
291relay; ENUM; DID and least cost routing; load balancing; routing fail-over;
292accounting, authentication and authorization; support for many backend systems
293such as MySQL, Postgres, Oracle, Radius, LDAP, Redis, Cassandra; XMLRPC control
294interface, SNMP monitoring. It can be used to build large VoIP servicing
295platforms or to scale up SIP-to-PSTN gateways, PBX systems or media servers
296like Asterisk™, FreeSWITCHor SEMS.
297
298
299%if %{with jansson}
300%package    acc_json
301Summary:    Account transaction information in a JSON dictionary
302Group:      %{PKGGROUP}
303Requires:   kamailio = %ver
304%if 0%{?rhel} == 6
305Requires:   libevent2
306BuildRequires:  libevent2-devel
307%else
308Requires:   libevent
309BuildRequires:  libevent-devel
310%endif
311%if 0%{?suse_version}
312Requires:   libjansson
313BuildRequires:  libjansson-devel
314%else
315Requires:   jansson
316BuildRequires:  jansson-devel
317%endif
318
319%description    acc_json
320Account transaction information in a JSON dictionary.
321%endif
322
323
324%package    auth-ephemeral
325Summary:    Functions for authentication using ephemeral credentials
326Group:      %{PKGGROUP}
327Requires:   openssl, kamailio = %ver
328BuildRequires:  openssl-devel
329
330%description    auth-ephemeral
331Functions for authentication using ephemeral credentials.
332
333
334%package    auth-xkeys
335Summary:    Functions for authentication using shared keys
336Group:      %{PKGGROUP}
337Requires:   kamailio = %ver
338
339%description    auth-xkeys
340Functions for authentication using shared keys.
341
342
343%package    bdb
344Summary:    Berkeley database connectivity for Kamailio
345Group:      %{PKGGROUP}
346Requires:   kamailio = %ver
347%if 0%{?suse_version}
348Requires:   libdb-4_8
349BuildRequires:  libdb-4_8-devel
350%else
351%if 0%{?rhel} == 6
352Requires:   db4
353BuildRequires:  db4-devel
354%else
355Requires:   libdb
356BuildRequires:  libdb-devel
357%endif
358%endif
359
360%description    bdb
361Berkeley database connectivity for Kamailio.
362
363
364%package    carrierroute
365Summary:    The carrierroute module for Kamailio
366Group:      %{PKGGROUP}
367Requires:   kamailio = %ver
368
369%description    carrierroute
370The carrierroute module for Kamailio.
371
372
373%package    cfgt
374Summary:    Unit test config file execution tracing module for Kamailio
375Group:      %{PKGGROUP}
376Requires:   kamailio = %ver
377
378%description    cfgt
379The unit test config file execution tracing module for Kamailio.
380
381
382%if %{with cnxcc}
383%package    cnxcc
384Summary:    Module provides a mechanism to limit call duration
385Group:      %{PKGGROUP}
386Requires:   libevent, hiredis, kamailio = %ver
387BuildRequires:  libevent-devel, hiredis-devel
388
389%description    cnxcc
390Module which provides a mechanism to limit call duration based on credit information parameters for Kamailio.
391%endif
392
393
394%package    cpl
395Summary:    CPL (Call Processing Language) interpreter for Kamailio
396Group:      %{PKGGROUP}
397Requires:   which, libxml2, kamailio = %ver
398BuildRequires:  libxml2-devel
399
400%description    cpl
401CPL (Call Processing Language) interpreter for Kamailio.
402
403
404%package    crypto
405Summary:    Module to support cryptographic extensions
406Group:      %{PKGGROUP}
407Requires:   kamailio = %ver
408%if 0%{?rhel} == 6
409Requires:   openssl
410BuildRequires:  openssl-devel
411%endif
412%if 0%{?rhel} == 7
413Requires:   openssl-libs
414BuildRequires:  openssl-devel
415%endif
416%if 0%{?fedora}
417Requires:   openssl-libs
418BuildRequires:  openssl-devel
419%endif
420%if 0%{?suse_version}
421Requires:   libopenssl1_0_0
422BuildRequires:  libopenssl-devel
423%endif
424
425%description    crypto
426This module provides various cryptography tools for use in Kamailio configuration file.  It relies on OpenSSL libraries for cryptographic operations (libssl, libcrypto).
427
428
429%package    dialplan
430Summary:    String translations based on rules for Kamailio
431Group:      %{PKGGROUP}
432Requires:   pcre, kamailio = %ver
433BuildRequires:  pcre-devel
434
435%description    dialplan
436String translations based on rules for Kamailio.
437
438
439%package    dmq_userloc
440Summary:    User location records replication between multiple servers
441Group:      %{PKGGROUP}
442Requires:   kamailio = %ver
443
444%description    dmq_userloc
445User location (usrloc) records replication between multiple servers via DMQ module for Kamailio.
446
447
448%if %{with dnssec}
449%package    dnssec
450Summary:    DNSSEC support for Kamailio
451Group:      %{PKGGROUP}
452Requires:   dnssec-tools-libs, kamailio = %ver
453BuildRequires:  dnssec-tools-libs-devel
454
455%description    dnssec
456DNSSEC support for Kamailio.
457%endif
458
459
460%if %{with evapi}
461%package    evapi
462Summary:    Module can be used to create an event message flow from Kamailio to any application that can connect to a TCP socket
463Group:      %{PKGGROUP}
464Requires:   libev, kamailio = %ver
465BuildRequires:  libev-devel
466
467%description    evapi
468The remote application can also issue messages received by Kamailio.
469There is no protocol definition, it is all up to the author of the routing script.
470Events can be generated for any event in Kamailio. For 3rd party transaction control, a transaction can be automatically
471suspended when sending the event, to be resumed at a later point, maybe triggered by an incoming message on the event socket.
472%endif
473
474
475%if %{with geoip}
476%package    geoip
477Summary:    MaxMind GeoIP support for Kamailio
478Group:      %{PKGGROUP}
479Requires:   GeoIP, kamailio = %ver
480BuildRequires:  GeoIP-devel
481
482%description    geoip
483MaxMind GeoIP support for Kamailio.
484%endif
485
486
487%package    gzcompress
488Summary:    Compressed body (SIP and HTTP) handling for kamailio
489Group:      %{PKGGROUP}
490Requires:   zlib, kamailio = %ver
491BuildRequires:  zlib-devel
492
493%description    gzcompress
494Compressed body (SIP and HTTP) handling for kamailio.
495
496
497%if %{with http_async_client}
498%package    http_async_client
499Summary:    Async HTTP client module for Kamailio
500Group:      %{PKGGROUP}
501Requires:   kamailio = %ver
502%if 0%{?rhel} == 6
503Requires:   libevent2
504BuildRequires:  libevent2-devel
505%else
506Requires:   libevent
507BuildRequires:  libevent-devel
508%endif
509%if 0%{?suse_version}
510Requires:   libcurl4
511BuildRequires:  libcurl-devel
512%else
513Requires:   libcurl
514BuildRequires:  libcurl-devel
515%endif
516
517%description   http_async_client
518This module implements protocol functions that use the libcurl to communicate with HTTP servers in asyncronous way.
519%endif
520
521%package    http_client
522Summary:    HTTP client module for Kamailio
523Group:      %{PKGGROUP}
524Requires:   kamailio = %ver
525%if 0%{?suse_version}
526Requires:   libcurl4, libxml2-tools
527BuildRequires:  libcurl-devel, libxml2-devel
528%else
529Requires:   libxml2, libcurl, zlib
530BuildRequires:  libxml2-devel, libcurl-devel, zlib-devel
531%endif
532
533%description    http_client
534This module implements protocol functions that use the libcurl to communicate with HTTP servers.
535
536
537%if %{with ims}
538%package    ims
539Summary:    IMS modules and extensions module for Kamailio
540Group:      %{PKGGROUP}
541Requires:   libxml2, kamailio = %ver
542BuildRequires:  libxml2-devel libmnl-devel
543
544%description    ims
545IMS modules and extensions module for Kamailio.
546%endif
547
548
549%if %{with jansson}
550%package    jansson
551Summary:    JSON string handling and RPC modules for Kamailio using JANSSON library
552Group:      %{PKGGROUP}
553Requires:   kamailio = %ver
554%if 0%{?rhel} == 6
555Requires:   libevent2
556BuildRequires:  libevent2-devel
557%else
558Requires:   libevent
559BuildRequires:  libevent-devel
560%endif
561%if 0%{?suse_version}
562Requires:   libjson-c2
563BuildRequires:  libjansson-devel
564%else
565Requires:   json-c
566BuildRequires:  jansson-devel
567%endif
568
569%description    jansson
570JSON string handling and RPC modules for Kamailio using JANSSON library.
571%endif
572
573
574%if %{with json}
575%package    json
576Summary:    JSON string handling and RPC modules for Kamailio
577Group:      %{PKGGROUP}
578Requires:   kamailio = %ver
579%if 0%{?rhel} == 6
580Requires:   libevent2
581BuildRequires:  libevent2-devel
582%else
583Requires:   libevent
584BuildRequires:  libevent-devel
585%endif
586%if 0%{?suse_version}
587Requires:   libjson-c2
588BuildRequires:  libjson-c-devel
589%else
590Requires:   json-c
591BuildRequires:  json-c-devel
592%endif
593
594%description    json
595JSON string handling and RPC modules for Kamailio.
596%endif
597
598
599%if %{with kazoo}
600%package    kazoo
601Summary:    Kazoo middle layer connector support for Kamailio
602Group:      %{PKGGROUP}
603Requires:   libuuid, librabbitmq, json-c, kamailio = %ver
604BuildRequires:  libuuid-devel, librabbitmq-devel, json-c-devel
605%if 0%{?rhel} == 6
606Requires:   libevent2
607BuildRequires:  libevent2-devel
608%else
609Requires:   libevent
610BuildRequires:  libevent-devel
611%endif
612
613%description    kazoo
614Kazoo module for Kamailio.
615%endif
616
617
618%package    lcr
619Summary:    Least cost routing for Kamailio
620Group:      %{PKGGROUP}
621Requires:   pcre, kamailio = %ver
622BuildRequires:  pcre-devel
623
624%description    lcr
625Least cost routing for Kamailio.
626
627
628%package    ldap
629Summary:    LDAP search interface for Kamailio
630Group:      %{PKGGROUP}
631Requires:   kamailio = %ver
632%if 0%{?suse_version}
633Requires:   openldap2 libsasl2-3
634BuildRequires:  openldap2-devel cyrus-sasl-devel
635%else
636Requires:   openldap
637BuildRequires:  openldap-devel
638%endif
639
640%description    ldap
641LDAP search interface for Kamailio.
642
643%package    lost
644Summary:    HELD (RFC6155) and LOST (RFC5222) location-based routing
645Group:      %{PKGGROUP}
646Requires:   libxml2, kamailio = %ver
647BuildRequires:  libxml2-devel
648
649%description    lost
650HELD (RFC6155) and LOST (RFC5222) location-based routing support for Kamailio.
651
652%if %{with lua}
653%package    lua
654Summary:    Lua extensions for Kamailio
655Group:      %{PKGGROUP}
656Requires:   kamailio = %ver
657BuildRequires:  lua-devel
658
659%description    lua
660Lua extensions for Kamailio.
661%endif
662
663
664%if %{with memcached}
665%package    memcached
666Summary:    Memcached configuration file support for Kamailio
667Group:      %{PKGGROUP}
668Requires:   libmemcached, kamailio = %ver
669BuildRequires:  libmemcached-devel
670
671%description    memcached
672Memcached configuration file support for Kamailio.
673%endif
674
675
676%if %{with mongodb}
677%package    mongodb
678Summary:    MongoDB database connectivity for Kamailio
679Group:      %{PKGGROUP}
680Requires:   kamailio = %ver
681Requires:   mongo-c-driver
682BuildRequires:  mongo-c-driver-devel
683
684%description    mongodb
685MongoDB database connectivity for Kamailio.
686%endif
687
688
689%package    mysql
690Summary:    MySQL database connectivity for Kamailio
691Group:      %{PKGGROUP}
692Requires:   kamailio = %ver
693BuildRequires:  zlib-devel
694%if 0%{?suse_version}
695Requires:   libmysqlclient18
696BuildRequires:  libmysqlclient-devel
697%else
698Requires:   mysql-libs
699BuildRequires:  mysql-devel
700%endif
701
702%description    mysql
703MySQL database connectivity for Kamailio.
704
705
706%package    outbound
707Summary:    Outbound (RFC 5626) support for Kamailio
708Group:      %{PKGGROUP}
709Requires:   openssl, kamailio = %ver
710BuildRequires:  openssl-devel
711
712%description    outbound
713RFC 5626, "Managing Client-Initiated Connections in the Session Initiation
714Protocol (SIP)" support for Kamailio.
715
716
717%if %{with perl}
718%package    perl
719Summary:    Perl extensions and database driver for Kamailio
720Group:      %{PKGGROUP}
721Requires:   kamailio = %ver
722%if 0%{?suse_version}
723Requires:   perl
724BuildRequires:  perl
725%else
726Requires:   perl-libs
727BuildRequires:  perl-ExtUtils-Embed
728%endif
729
730%description    perl
731Perl extensions and database driver for Kamailio.
732%endif
733
734
735%if %{with phonenum}
736%package    phonenum
737Summary:    Phonenum module the Kamailio
738Group:      %{PKGGROUP}
739Requires:   kamailio = %ver
740Requires:   libphonenumber
741BuildRequires:  libphonenumber-devel libicu-devel protobuf-devel
742
743%description    phonenum
744Phonenum module the Kamailio.
745%endif
746
747
748%package    postgresql
749Summary:    PostgreSQL database connectivity for Kamailio
750Group:      %{PKGGROUP}
751Requires:   kamailio = %ver
752%if 0%{?suse_version}
753Requires:   libpq5
754BuildRequires:  postgresql-devel
755%else
756Requires:   postgresql-libs
757BuildRequires:  postgresql-devel
758%endif
759
760%description    postgresql
761PostgreSQL database connectivity for Kamailio.
762
763
764%package    presence
765Summary:    SIP Presence (and RLS, XCAP, etc) support for Kamailio
766Group:      %{PKGGROUP}
767Requires:   libxml2, kamailio = %ver, kamailio-xmpp = %ver
768BuildRequires:  libxml2-devel
769%if 0%{?suse_version}
770Requires:   libcurl4
771BuildRequires:  libcurl-devel
772%else
773Requires:   libcurl
774BuildRequires:  libcurl-devel
775%endif
776
777%description    presence
778SIP Presence (and RLS, XCAP, etc) support for Kamailio.
779
780
781%package    python
782Summary:    Python extensions for Kamailio
783Group:      %{PKGGROUP}
784Requires:   python2, kamailio = %ver
785BuildRequires:  python2, python2-devel
786%if %{with python3}
787%if 0%{?rhel} == 7
788Requires:   python36, kamailio = %ver
789BuildRequires:  python36, python36-devel
790%else
791Requires:   python3, kamailio = %ver
792BuildRequires:  python3, python3-devel
793%endif
794%endif
795
796%description    python
797Python extensions for Kamailio.
798
799
800%if %{with rabbitmq}
801%package    rabbitmq
802Summary:    RabbitMQ related modules
803Group:      %{PKGGROUP}
804Requires:   libuuid, librabbitmq, kamailio = %ver
805BuildRequires:    librabbitmq-devel, libuuid-devel
806
807%description    rabbitmq
808RabbitMQ module for Kamailio.
809%endif
810
811
812%package    radius
813Summary:    RADIUS modules for Kamailio
814Group:      %{PKGGROUP}
815Requires:   kamailio = %ver
816%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
817Requires:   freeradius-client
818BuildRequires:  freeradius-client-devel
819%else
820Requires:   radiusclient-ng
821BuildRequires:  radiusclient-ng-devel
822%endif
823
824%description    radius
825RADIUS modules for Kamailio.
826
827
828%if %{with redis}
829%package    redis
830Summary:    Redis configuration file support for Kamailio
831Group:      %{PKGGROUP}
832Requires:   hiredis, kamailio = %ver
833BuildRequires:  hiredis-devel
834
835%description    redis
836Redis configuration file support for Kamailio.
837%endif
838
839
840%package    regex
841Summary:    PCRE mtaching operations for Kamailio
842Group:      %{PKGGROUP}
843Requires:   pcre, kamailio = %ver
844BuildRequires:  pcre-devel
845
846%description    regex
847PCRE mtaching operations for Kamailio.
848
849
850%package    rtjson
851Summary:    SIP routing based on JSON specifications
852Group:      %{PKGGROUP}
853Requires:   kamailio = %ver
854
855%description    rtjson
856SIP routing based on JSON specifications.
857
858
859%if %{with ruby}
860%package    ruby
861Summary:    Ruby extensions for Kamailio
862Group:      %{PKGGROUP}
863Requires:   kamailio = %ver
864BuildRequires:  ruby-devel
865
866%description    ruby
867Ruby extensions for Kamailio.
868%endif
869
870
871%if %{with sctp}
872%package    sctp
873Summary:    SCTP transport for Kamailio
874Group:      %{PKGGROUP}
875Requires:   lksctp-tools, kamailio = %ver
876BuildRequires:  lksctp-tools-devel
877
878%description    sctp
879SCTP transport for Kamailio.
880%endif
881
882
883%package    secfilter
884Summary:    Additional layer of security over our communications
885Group:      %{PKGGROUP}
886Requires:   kamailio = %ver
887
888%description    secfilter
889Additional layer of security over our communications.
890
891
892%package    sipcapture-daemon-config
893Summary:    Reference config for sipcapture daemon
894Group:      %{PKGGROUP}
895Requires:   kamailio = %ver
896%if 0%{?suse_version}
897Requires:  filesystem
898%endif
899
900%description    sipcapture-daemon-config
901reference config for sipcapture daemon.
902
903
904%package    sipdump
905Summary:    This module writes SIP traffic and some associated details into local files
906Group:      %{PKGGROUP}
907Requires:   kamailio = %ver
908
909%description    sipdump
910This module writes SIP traffic and some associated details into local files
911
912
913%package    sipjson
914Summary:    This module serializes SIP message attributes into a JSON document
915Group:      %{PKGGROUP}
916Requires:   kamailio = %ver
917
918%description    sipjson
919This module serializes SIP message attributes into a JSON document
920
921
922%package    smsops
923Summary:    Tools for handling SMS packets in SIP messages
924Group:      %{PKGGROUP}
925Requires:   kamailio = %ver
926
927%description    smsops
928This module collects the Transformations for 3GPP-SMS.
929
930
931%package    snmpstats
932Summary:    SNMP management interface (scalar statistics) for Kamailio
933Group:      %{PKGGROUP}
934Requires:   kamailio = %ver
935%if 0%{?suse_version}
936Requires:   libsnmp30
937BuildRequires:  net-snmp-devel
938%else
939Requires:   net-snmp-libs
940BuildRequires:  net-snmp-devel
941%endif
942
943%description    snmpstats
944SNMP management interface (scalar statistics) for Kamailio.
945
946
947%package    statsc
948Summary:    Statistics collecting module providing reports for Kamailio
949Group:      %{PKGGROUP}
950Requires:   kamailio = %ver
951
952%description    statsc
953This module provides a statistics collector engine.
954
955
956%package    statsd
957Summary:    Send commands to statsd server
958Group:      %{PKGGROUP}
959Requires:   kamailio = %ver
960
961%description    statsd
962Send commands to statsd server.
963
964
965%package        sqlang
966Summary:        Squirrel Language (SQLang) for Kamailio
967Group:          %{PKGGROUP}
968Requires:       kamailio = %version
969BuildRequires:  gcc-c++
970
971%description    sqlang
972app_sqlang module for Kamailio.
973
974
975%package    sqlite
976Summary:    SQLite database connectivity for Kamailio
977Group:      %{PKGGROUP}
978Requires:   sqlite, kamailio = %ver
979BuildRequires:  sqlite-devel
980
981%description    sqlite
982SQLite database connectivity for Kamailio.
983
984
985%package    tls
986Summary:    TLS transport for Kamailio
987Group:      %{PKGGROUP}
988Requires:   openssl, kamailio = %ver
989BuildRequires:  openssl-devel
990
991%description    tls
992TLS transport for Kamailio.
993
994
995%package    tcpops
996Summary:    On demand and per socket control to the TCP options
997Group:      %{PKGGROUP}
998Requires:   kamailio = %ver
999
1000%description    tcpops
1001On demand and per socket control to the TCP options.
1002
1003
1004%package    topos
1005Summary:    Topology stripping module for Kamailio
1006Group:      %{PKGGROUP}
1007Requires:   kamailio = %ver
1008
1009%description    topos
1010This module offers topology hiding by stripping the routing headers that could show topology details.
1011
1012
1013%package    unixodbc
1014Summary:    UnixODBC database connectivity for Kamailio
1015Group:      %{PKGGROUP}
1016Requires:   unixODBC, kamailio = %ver
1017BuildRequires:  unixODBC-devel
1018
1019%description    unixodbc
1020UnixODBC database connectivity for Kamailio.
1021
1022
1023%package    utils
1024Summary:    Non-SIP utitility functions for Kamailio
1025Group:      %{PKGGROUP}
1026Requires:   libxml2, kamailio = %ver
1027BuildRequires:  libxml2-devel
1028%if 0%{?suse_version}
1029Requires:   libcurl4
1030BuildRequires:  libcurl-devel
1031%else
1032Requires:   libcurl
1033BuildRequires:  libcurl-devel
1034%endif
1035
1036%description    utils
1037Non-SIP utitility functions for Kamailio.
1038
1039
1040%if %{with websocket}
1041%package    websocket
1042Summary:    WebSocket transport for Kamailio
1043Group:      %{PKGGROUP}
1044Requires:   libunistring, openssl, kamailio = %ver
1045BuildRequires:  libunistring-devel, openssl-devel
1046
1047%description    websocket
1048WebSocket transport for Kamailio.
1049%endif
1050
1051
1052%package    xhttp-pi
1053Summary:    Web-provisioning interface for Kamailio
1054Group:      %{PKGGROUP}
1055Requires:   libxml2, kamailio = %ver
1056BuildRequires:  libxml2-devel
1057
1058%description    xhttp-pi
1059Web-provisioning interface for Kamailio.
1060
1061
1062%package    xmlops
1063Summary:    XML operation functions for Kamailio
1064Group:      %{PKGGROUP}
1065Requires:   libxml2, kamailio = %ver
1066BuildRequires:  libxml2-devel
1067
1068%description    xmlops
1069XML operation functions for Kamailio.
1070
1071
1072%if %{with xmlrpc}
1073%package    xmlrpc
1074Summary:    XMLRPC transport and encoding for Kamailio RPCs and MI commands
1075Group:      %{PKGGROUP}
1076Requires:   libxml2, kamailio = %ver
1077BuildRequires:  libxml2-devel
1078
1079%description    xmlrpc
1080XMLRPC transport and encoding for Kamailio RPCs and MI commands.
1081%endif
1082
1083%package    xmpp
1084Summary:    SIP/XMPP IM gateway for Kamailio
1085Group:      %{PKGGROUP}
1086Requires:   kamailio = %ver
1087%if 0%{?suse_version}
1088Requires:   libexpat1
1089BuildRequires:  libexpat-devel
1090%else
1091Requires:   expat
1092BuildRequires:  expat-devel
1093%endif
1094
1095%description    xmpp
1096SIP/XMPP IM gateway for Kamailio.
1097
1098
1099%package        uuid
1100Summary:        UUID generator for Kamailio
1101Group:          %{PKGGROUP}
1102Requires:   kamailio = %ver
1103%if 0%{?suse_version}
1104Requires:       libuuid1
1105BuildRequires:  libuuid-devel
1106%else
1107Requires:       libuuid
1108BuildRequires:  libuuid-devel
1109%endif
1110
1111%description    uuid
1112UUID module for Kamailio.
1113
1114
1115%prep
1116%setup -n %{name}-%{ver}
1117# python3 does not exist in RHEL 6 and similar dist.
1118%if 0%{?rhel} == 6
1119sed -i -e 's/python3/python2/' utils/kamctl/dbtextdb/dbtextdb.py
1120%endif
1121
1122# on latest dist need to add --atexit=no for Kamailio options. More details GH #2616
1123%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1124sed -i -e 's|/usr/sbin/kamailio|/usr/sbin/kamailio --atexit=no|' pkg/kamailio/obs/kamailio.service
1125%endif
1126
1127
1128%build
1129ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}
1130%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1131export FREERADIUS=1
1132%endif
1133make cfg prefix=/usr \
1134    basedir=%{buildroot} \
1135    cfg_prefix=%{buildroot} \
1136    doc_prefix=%{buildroot} \
1137    doc_dir=%{_docdir}/kamailio/ \
1138    cfg_target=%{_sysconfdir}/kamailio/ modules_dirs="modules"
1139make
1140make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1141    jabber ndb_cassandra osp" \
1142%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1143    FREERADIUS=1 \
1144%endif
1145    group_include="kstandard kautheph kberkeley kcarrierroute \
1146%if %{with cnxcc}
1147    kcnxcc \
1148%endif
1149    kcpl \
1150%if %{with dnssec}
1151    kdnssec \
1152%endif
1153%if %{with evapi}
1154    kev \
1155%endif
1156%if %{with geoip}
1157    kgeoip \
1158%endif
1159    kgzcompress \
1160%if %{with http_async_client}
1161    khttp_async \
1162%endif
1163    kxhttp_prom \
1164%if %{with ims}
1165    kims \
1166%endif
1167%if %{with jansson}
1168    kjansson \
1169%endif
1170%if %{with json}
1171    kjson \
1172%endif
1173    kjsonrpcs \
1174%if %{with kazoo}
1175    kkazoo \
1176%endif
1177%if %{with rabbitmq}
1178    krabbitmq \
1179%endif
1180    kldap
1181%if %{with lua}
1182    klua \
1183%endif
1184%if %{with memcached}
1185    kmemcached \
1186%endif
1187%if %{with xmlrpc}
1188    kmi_xmlrpc \
1189%endif
1190%if %{with mongodb}
1191    kmongodb \
1192%endif
1193    kmysql koutbound \
1194%if %{with perl}
1195    kperl \
1196%endif
1197%if %{with phonenum}
1198    kphonenum \
1199%endif
1200    kpostgres kpresence kpython \
1201%if %{with python3}
1202    kpython3 \
1203%endif
1204    kradius \
1205%if %{with redis}
1206    kredis \
1207%endif
1208%if %{with ruby}
1209    kruby \
1210%endif
1211%if %{with sctp}
1212    ksctp \
1213%endif
1214    ksnmpstats ksqlite \
1215%if "%{?_unitdir}" != ""
1216    ksystemd \
1217%endif
1218    ktls kunixodbc kutils \
1219%if %{with websocket}
1220    kwebsocket \
1221%endif
1222    kxml kxmpp kuuid"
1223
1224make utils
1225
1226
1227
1228%install
1229rm -rf %{buildroot}
1230
1231make install
1232make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1233    iptrtpproxy jabber osp" \
1234%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1235    FREERADIUS=1 \
1236%endif
1237    group_include="kstandard kautheph kberkeley kcarrierroute \
1238%if %{with cnxcc}
1239    kcnxcc \
1240%endif
1241    kcpl \
1242%if %{with dnssec}
1243    kdnssec \
1244%endif
1245%if %{with evapi}
1246    kev \
1247%endif
1248%if %{with geoip}
1249    kgeoip \
1250%endif
1251    kgzcompress \
1252%if %{with http_async_client}
1253    khttp_async \
1254%endif
1255    kxhttp_prom \
1256%if %{with ims}
1257    kims \
1258%endif
1259%if %{with jansson}
1260    kjansson \
1261%endif
1262%if %{with json}
1263    kjson \
1264%endif
1265    kjsonrpcs \
1266%if %{with kazoo}
1267    kkazoo \
1268%endif
1269%if %{with rabbitmq}
1270    krabbitmq \
1271%endif
1272    kldap \
1273%if %{with lua}
1274    klua \
1275%endif
1276%if %{with memcached}
1277    kmemcached \
1278%endif
1279%if %{with xmlrpc}
1280    kmi_xmlrpc \
1281%endif
1282%if %{with mongodb}
1283    kmongodb \
1284%endif
1285    kmysql koutbound \
1286%if %{with perl}
1287    kperl \
1288%endif
1289%if %{with phonenum}
1290    kphonenum \
1291%endif
1292    kpostgres kpresence kpython \
1293%if %{with python3}
1294    kpython3 \
1295%endif
1296    kradius \
1297%if %{with redis}
1298    kredis \
1299%endif
1300%if %{with ruby}
1301    kruby \
1302%endif
1303%if %{with sctp}
1304    ksctp \
1305%endif
1306    ksnmpstats ksqlite \
1307%if "%{?_unitdir}" != ""
1308    ksystemd \
1309%endif
1310    ktls kunixodbc kutils \
1311%if %{with websocket}
1312    kwebsocket \
1313%endif
1314    kxml kxmpp kuuid"
1315
1316make install-cfg-pkg
1317
1318install -d %{buildroot}%{_sharedstatedir}/kamailio
1319
1320%if "%{?_unitdir}" == ""
1321# On RedHat 6 like
1322install -d %{buildroot}%{_var}/run/kamailio
1323install -d %{buildroot}%{_sysconfdir}/rc.d/init.d
1324install -m755 pkg/kamailio/%{dist_name}/%{dist_version}/kamailio.init \
1325        %{buildroot}%{_sysconfdir}/rc.d/init.d/kamailio
1326%else
1327# systemd
1328install -d %{buildroot}%{_unitdir}
1329install -Dpm 0644 pkg/kamailio/%{dist_name}/%{dist_version}/kamailio.service %{buildroot}%{_unitdir}/kamailio.service
1330install -Dpm 0644 pkg/kamailio/%{dist_name}/%{dist_version}/sipcapture.service %{buildroot}%{_unitdir}/sipcapture.service
1331install -Dpm 0644 pkg/kamailio/%{dist_name}/%{dist_version}/kamailio.tmpfiles %{buildroot}%{_tmpfilesdir}/kamailio.conf
1332install -Dpm 0644 pkg/kamailio/%{dist_name}/%{dist_version}/sipcapture.tmpfiles %{buildroot}%{_tmpfilesdir}/sipcapture.conf
1333%endif
1334
1335%if 0%{?suse_version}
1336install -d %{buildroot}%{_fillupdir}
1337install -m644 pkg/kamailio/%{dist_name}/%{dist_version}/kamailio.sysconfig \
1338        %{buildroot}%{_fillupdir}/sysconfig.kamailio
1339install -m644 pkg/kamailio/%{dist_name}/%{dist_version}/sipcapture.sysconfig \
1340        %{buildroot}%{_fillupdir}/sysconfig.sipcapture
1341%else
1342install -d %{buildroot}%{_sysconfdir}/sysconfig
1343install -m644 pkg/kamailio/%{dist_name}/%{dist_version}/kamailio.sysconfig \
1344        %{buildroot}%{_sysconfdir}/sysconfig/kamailio
1345install -m644 pkg/kamailio/%{dist_name}/%{dist_version}/sipcapture.sysconfig \
1346        %{buildroot}%{_sysconfdir}/sysconfig/sipcapture
1347%endif
1348
1349%if 0%{?suse_version}
1350%py_compile -O %{buildroot}%{_libdir}/kamailio/kamctl/dbtextdb
1351%endif
1352%if 0%{?fedora} || 0%{?rhel} == 8
1353%py_byte_compile %{__python2} %{buildroot}%{_libdir}/kamailio/kamctl/dbtextdb
1354%endif
1355
1356# Removing devel files
1357rm -f %{buildroot}%{_libdir}/kamailio/lib*.so
1358
1359%pre
1360if ! /usr/bin/id kamailio &>/dev/null; then
1361       /usr/sbin/useradd --system \
1362                         --user-group \
1363                         --shell /bin/false \
1364                         --comment "Kamailio SIP Server" \
1365                         --home-dir %{_rundir}/kamailio kamailio || \
1366                %logmsg "Unexpected error adding user \"kamailio\". Aborting installation."
1367fi
1368
1369%clean
1370rm -rf %{buildroot}
1371
1372
1373%post
1374%if "%{?_unitdir}" == ""
1375/sbin/chkconfig --add kamailio
1376%else
1377%tmpfiles_create kamailio.conf
1378/usr/bin/systemctl -q enable kamailio.service
1379%endif
1380
1381
1382%if "%{?_unitdir}" != ""
1383%post sipcapture-daemon-config
1384%tmpfiles_create sipcapture.conf
1385/usr/bin/systemctl -q enable sipcapture.service
1386%endif
1387
1388
1389%preun
1390if [ $1 = 0 ]; then
1391%if "%{?_unitdir}" == ""
1392    /sbin/service kamailio stop > /dev/null 2>&1
1393    /sbin/chkconfig --del kamailio
1394%else
1395    %{?systemd_preun kamailio.service}
1396%endif
1397fi
1398
1399%if "%{?_unitdir}" == ""
1400%postun
1401%{?systemd_postun kamailio.service}
1402%endif
1403
1404%files
1405%defattr(-,root,root)
1406%dir %{_docdir}/kamailio
1407%doc %{_docdir}/kamailio/INSTALL
1408%doc %{_docdir}/kamailio/README
1409
1410%dir %{_docdir}/kamailio/modules
1411%doc %{_docdir}/kamailio/modules/README.acc
1412%doc %{_docdir}/kamailio/modules/README.acc_diameter
1413%doc %{_docdir}/kamailio/modules/README.alias_db
1414%doc %{_docdir}/kamailio/modules/README.app_jsdt
1415%doc %{_docdir}/kamailio/modules/README.async
1416%doc %{_docdir}/kamailio/modules/README.auth
1417%doc %{_docdir}/kamailio/modules/README.auth_db
1418%doc %{_docdir}/kamailio/modules/README.auth_diameter
1419%doc %{_docdir}/kamailio/modules/README.avp
1420%doc %{_docdir}/kamailio/modules/README.avpops
1421%doc %{_docdir}/kamailio/modules/README.benchmark
1422%doc %{_docdir}/kamailio/modules/README.blst
1423%doc %{_docdir}/kamailio/modules/README.call_control
1424%doc %{_docdir}/kamailio/modules/README.cfg_db
1425%doc %{_docdir}/kamailio/modules/README.cfg_rpc
1426%doc %{_docdir}/kamailio/modules/README.cfgutils
1427%doc %{_docdir}/kamailio/modules/README.corex
1428%doc %{_docdir}/kamailio/modules/README.counters
1429%doc %{_docdir}/kamailio/modules/README.ctl
1430%doc %{_docdir}/kamailio/modules/README.db_cluster
1431%doc %{_docdir}/kamailio/modules/README.db_flatstore
1432%doc %{_docdir}/kamailio/modules/README.db_text
1433%doc %{_docdir}/kamailio/modules/README.db2_ops
1434%doc %{_docdir}/kamailio/modules/README.debugger
1435%doc %{_docdir}/kamailio/modules/README.dialog
1436%doc %{_docdir}/kamailio/modules/README.dispatcher
1437%doc %{_docdir}/kamailio/modules/README.diversion
1438%doc %{_docdir}/kamailio/modules/README.dlgs
1439%doc %{_docdir}/kamailio/modules/README.dmq
1440%doc %{_docdir}/kamailio/modules/README.domain
1441%doc %{_docdir}/kamailio/modules/README.domainpolicy
1442%doc %{_docdir}/kamailio/modules/README.drouting
1443%doc %{_docdir}/kamailio/modules/README.enum
1444%doc %{_docdir}/kamailio/modules/README.exec
1445%doc %{_docdir}/kamailio/modules/README.group
1446%doc %{_docdir}/kamailio/modules/README.htable
1447%doc %{_docdir}/kamailio/modules/README.imc
1448%doc %{_docdir}/kamailio/modules/README.ipops
1449%doc %{_docdir}/kamailio/modules/README.kemix
1450%doc %{_docdir}/kamailio/modules/README.kex
1451%doc %{_docdir}/kamailio/modules/README.malloc_test
1452%doc %{_docdir}/kamailio/modules/README.mangler
1453%doc %{_docdir}/kamailio/modules/README.matrix
1454%doc %{_docdir}/kamailio/modules/README.maxfwd
1455%doc %{_docdir}/kamailio/modules/README.mediaproxy
1456%doc %{_docdir}/kamailio/modules/README.mohqueue
1457%doc %{_docdir}/kamailio/modules/README.mqueue
1458%doc %{_docdir}/kamailio/modules/README.msilo
1459%doc %{_docdir}/kamailio/modules/README.msrp
1460%doc %{_docdir}/kamailio/modules/README.mtree
1461%doc %{_docdir}/kamailio/modules/README.nat_traversal
1462%doc %{_docdir}/kamailio/modules/README.nathelper
1463%doc %{_docdir}/kamailio/modules/README.p_usrloc
1464%doc %{_docdir}/kamailio/modules/README.path
1465%doc %{_docdir}/kamailio/modules/README.pdb
1466%doc %{_docdir}/kamailio/modules/README.pdt
1467%doc %{_docdir}/kamailio/modules/README.permissions
1468%doc %{_docdir}/kamailio/modules/README.pike
1469%doc %{_docdir}/kamailio/modules/README.pipelimit
1470%doc %{_docdir}/kamailio/modules/README.prefix_route
1471%doc %{_docdir}/kamailio/modules/README.print
1472%doc %{_docdir}/kamailio/modules/README.print_lib
1473%doc %{_docdir}/kamailio/modules/README.pv
1474%doc %{_docdir}/kamailio/modules/README.pv_headers
1475%doc %{_docdir}/kamailio/modules/README.pua_rpc
1476%doc %{_docdir}/kamailio/modules/README.qos
1477%doc %{_docdir}/kamailio/modules/README.ratelimit
1478%doc %{_docdir}/kamailio/modules/README.registrar
1479%doc %{_docdir}/kamailio/modules/README.rr
1480%doc %{_docdir}/kamailio/modules/README.rtimer
1481%doc %{_docdir}/kamailio/modules/README.rtpproxy
1482%doc %{_docdir}/kamailio/modules/README.rtpengine
1483%doc %{_docdir}/kamailio/modules/README.sanity
1484%doc %{_docdir}/kamailio/modules/README.sca
1485%doc %{_docdir}/kamailio/modules/README.sdpops
1486%doc %{_docdir}/kamailio/modules/README.seas
1487%doc %{_docdir}/kamailio/modules/README.sipcapture
1488%doc %{_docdir}/kamailio/modules/README.sipt
1489%doc %{_docdir}/kamailio/modules/README.siptrace
1490%doc %{_docdir}/kamailio/modules/README.siputils
1491%doc %{_docdir}/kamailio/modules/README.sl
1492%doc %{_docdir}/kamailio/modules/README.sms
1493%doc %{_docdir}/kamailio/modules/README.smsops
1494%doc %{_docdir}/kamailio/modules/README.speeddial
1495%doc %{_docdir}/kamailio/modules/README.sqlops
1496%doc %{_docdir}/kamailio/modules/README.ss7ops
1497%doc %{_docdir}/kamailio/modules/README.sst
1498%doc %{_docdir}/kamailio/modules/README.statistics
1499%doc %{_docdir}/kamailio/modules/README.stun
1500%doc %{_docdir}/kamailio/modules/README.textops
1501%doc %{_docdir}/kamailio/modules/README.textopsx
1502%doc %{_docdir}/kamailio/modules/README.timer
1503%doc %{_docdir}/kamailio/modules/README.tm
1504%doc %{_docdir}/kamailio/modules/README.tmrec
1505%doc %{_docdir}/kamailio/modules/README.tmx
1506%doc %{_docdir}/kamailio/modules/README.topoh
1507%doc %{_docdir}/kamailio/modules/README.uac
1508%doc %{_docdir}/kamailio/modules/README.uac_redirect
1509%doc %{_docdir}/kamailio/modules/README.uid_auth_db
1510%doc %{_docdir}/kamailio/modules/README.uid_avp_db
1511%doc %{_docdir}/kamailio/modules/README.uid_domain
1512%doc %{_docdir}/kamailio/modules/README.uid_gflags
1513%doc %{_docdir}/kamailio/modules/README.uid_uri_db
1514%doc %{_docdir}/kamailio/modules/README.uri_db
1515%doc %{_docdir}/kamailio/modules/README.userblacklist
1516%doc %{_docdir}/kamailio/modules/README.usrloc
1517%doc %{_docdir}/kamailio/modules/README.xhttp
1518%doc %{_docdir}/kamailio/modules/README.xhttp_prom
1519%doc %{_docdir}/kamailio/modules/README.xhttp_rpc
1520%doc %{_docdir}/kamailio/modules/README.xlog
1521%doc %{_docdir}/kamailio/modules/README.xprint
1522%doc %{_docdir}/kamailio/modules/README.jsonrpcs
1523%doc %{_docdir}/kamailio/modules/README.nosip
1524%doc %{_docdir}/kamailio/modules/README.tsilo
1525%doc %{_docdir}/kamailio/modules/README.call_obj
1526%doc %{_docdir}/kamailio/modules/README.evrexec
1527%doc %{_docdir}/kamailio/modules/README.keepalive
1528%doc %{_docdir}/kamailio/modules/README.log_custom
1529%doc %{_docdir}/kamailio/modules/README.statsc
1530%doc %{_docdir}/kamailio/modules/README.topos
1531%doc %{_docdir}/kamailio/modules/README.cfgt
1532%if "%{?_unitdir}" != ""
1533%doc %{_docdir}/kamailio/modules/README.log_systemd
1534%doc %{_docdir}/kamailio/modules/README.systemdops
1535%endif
1536
1537%dir %attr(-,kamailio,kamailio) %{_sysconfdir}/kamailio
1538%config(noreplace) %{_sysconfdir}/kamailio/dictionary.kamailio
1539%config(noreplace) %{_sysconfdir}/kamailio/kamailio.cfg
1540%config(noreplace) %{_sysconfdir}/kamailio/kamctlrc
1541%config(noreplace) %{_sysconfdir}/kamailio/pi_framework.xml
1542%config(noreplace) %{_sysconfdir}/kamailio/tls.cfg
1543%dir %attr(-,kamailio,kamailio) %{_sharedstatedir}/kamailio
1544%if 0%{?suse_version}
1545%{_fillupdir}/sysconfig.kamailio
1546%else
1547%config %{_sysconfdir}/sysconfig/kamailio
1548%endif
1549%if "%{?_unitdir}" == ""
1550%config %{_sysconfdir}/rc.d/init.d/*
1551%dir %attr(-,kamailio,kamailio) %{_var}/run/kamailio
1552%else
1553%{_unitdir}/kamailio.service
1554%{_tmpfilesdir}/kamailio.conf
1555%endif
1556
1557%dir %{_libdir}/kamailio
1558%{_libdir}/kamailio/libprint.so.1
1559%{_libdir}/kamailio/libprint.so.1.2
1560%{_libdir}/kamailio/libsrdb1.so.1
1561%{_libdir}/kamailio/libsrdb1.so.1.0
1562%{_libdir}/kamailio/libsrdb2.so.1
1563%{_libdir}/kamailio/libsrdb2.so.1.0
1564%{_libdir}/kamailio/libtrie.so.1
1565%{_libdir}/kamailio/libtrie.so.1.0
1566
1567%dir %{_libdir}/kamailio/modules
1568%{_libdir}/kamailio/modules/acc.so
1569%{_libdir}/kamailio/modules/acc_diameter.so
1570%{_libdir}/kamailio/modules/alias_db.so
1571%{_libdir}/kamailio/modules/app_jsdt.so
1572%{_libdir}/kamailio/modules/async.so
1573%{_libdir}/kamailio/modules/auth.so
1574%{_libdir}/kamailio/modules/auth_db.so
1575%{_libdir}/kamailio/modules/auth_diameter.so
1576%{_libdir}/kamailio/modules/avp.so
1577%{_libdir}/kamailio/modules/avpops.so
1578%{_libdir}/kamailio/modules/benchmark.so
1579%{_libdir}/kamailio/modules/blst.so
1580%{_libdir}/kamailio/modules/call_control.so
1581%{_libdir}/kamailio/modules/cfg_db.so
1582%{_libdir}/kamailio/modules/cfg_rpc.so
1583%{_libdir}/kamailio/modules/cfgutils.so
1584%{_libdir}/kamailio/modules/corex.so
1585%{_libdir}/kamailio/modules/counters.so
1586%{_libdir}/kamailio/modules/ctl.so
1587%{_libdir}/kamailio/modules/db_cluster.so
1588%{_libdir}/kamailio/modules/db_flatstore.so
1589%{_libdir}/kamailio/modules/db_text.so
1590%{_libdir}/kamailio/modules/db2_ops.so
1591%{_libdir}/kamailio/modules/debugger.so
1592%{_libdir}/kamailio/modules/dialog.so
1593%{_libdir}/kamailio/modules/dispatcher.so
1594%{_libdir}/kamailio/modules/diversion.so
1595%{_libdir}/kamailio/modules/dlgs.so
1596%{_libdir}/kamailio/modules/dmq.so
1597%{_libdir}/kamailio/modules/domain.so
1598%{_libdir}/kamailio/modules/domainpolicy.so
1599%{_libdir}/kamailio/modules/drouting.so
1600%{_libdir}/kamailio/modules/enum.so
1601%{_libdir}/kamailio/modules/exec.so
1602%{_libdir}/kamailio/modules/group.so
1603%{_libdir}/kamailio/modules/htable.so
1604%{_libdir}/kamailio/modules/imc.so
1605%{_libdir}/kamailio/modules/ipops.so
1606%{_libdir}/kamailio/modules/kemix.so
1607%{_libdir}/kamailio/modules/kex.so
1608%{_libdir}/kamailio/modules/malloc_test.so
1609%{_libdir}/kamailio/modules/mangler.so
1610%{_libdir}/kamailio/modules/matrix.so
1611%{_libdir}/kamailio/modules/maxfwd.so
1612%{_libdir}/kamailio/modules/mediaproxy.so
1613%{_libdir}/kamailio/modules/mohqueue.so
1614%{_libdir}/kamailio/modules/mqueue.so
1615%{_libdir}/kamailio/modules/msilo.so
1616%{_libdir}/kamailio/modules/msrp.so
1617%{_libdir}/kamailio/modules/mtree.so
1618%{_libdir}/kamailio/modules/nat_traversal.so
1619%{_libdir}/kamailio/modules/nathelper.so
1620%{_libdir}/kamailio/modules/p_usrloc.so
1621%{_libdir}/kamailio/modules/path.so
1622%{_libdir}/kamailio/modules/pdb.so
1623%{_libdir}/kamailio/modules/pdt.so
1624%{_libdir}/kamailio/modules/permissions.so
1625%{_libdir}/kamailio/modules/pike.so
1626%{_libdir}/kamailio/modules/pipelimit.so
1627%{_libdir}/kamailio/modules/prefix_route.so
1628%{_libdir}/kamailio/modules/print.so
1629%{_libdir}/kamailio/modules/print_lib.so
1630%{_libdir}/kamailio/modules/pua_rpc.so
1631%{_libdir}/kamailio/modules/pv.so
1632%{_libdir}/kamailio/modules/pv_headers.so
1633%{_libdir}/kamailio/modules/qos.so
1634%{_libdir}/kamailio/modules/ratelimit.so
1635%{_libdir}/kamailio/modules/registrar.so
1636%{_libdir}/kamailio/modules/rr.so
1637%{_libdir}/kamailio/modules/rtimer.so
1638%{_libdir}/kamailio/modules/rtpproxy.so
1639%{_libdir}/kamailio/modules/rtpengine.so
1640%{_libdir}/kamailio/modules/sanity.so
1641%{_libdir}/kamailio/modules/sca.so
1642%{_libdir}/kamailio/modules/sdpops.so
1643%{_libdir}/kamailio/modules/seas.so
1644%{_libdir}/kamailio/modules/sipcapture.so
1645%{_libdir}/kamailio/modules/sipt.so
1646%{_libdir}/kamailio/modules/siptrace.so
1647%{_libdir}/kamailio/modules/siputils.so
1648%{_libdir}/kamailio/modules/sl.so
1649%{_libdir}/kamailio/modules/sms.so
1650%{_libdir}/kamailio/modules/smsops.so
1651%{_libdir}/kamailio/modules/speeddial.so
1652%{_libdir}/kamailio/modules/sqlops.so
1653%{_libdir}/kamailio/modules/ss7ops.so
1654%{_libdir}/kamailio/modules/sst.so
1655%{_libdir}/kamailio/modules/statistics.so
1656%{_libdir}/kamailio/modules/stun.so
1657%{_libdir}/kamailio/modules/textops.so
1658%{_libdir}/kamailio/modules/textopsx.so
1659%{_libdir}/kamailio/modules/timer.so
1660%{_libdir}/kamailio/modules/tm.so
1661%{_libdir}/kamailio/modules/tmrec.so
1662%{_libdir}/kamailio/modules/tmx.so
1663%{_libdir}/kamailio/modules/topoh.so
1664%{_libdir}/kamailio/modules/uac.so
1665%{_libdir}/kamailio/modules/uac_redirect.so
1666%{_libdir}/kamailio/modules/uid_auth_db.so
1667%{_libdir}/kamailio/modules/uid_avp_db.so
1668%{_libdir}/kamailio/modules/uid_domain.so
1669%{_libdir}/kamailio/modules/uid_gflags.so
1670%{_libdir}/kamailio/modules/uid_uri_db.so
1671%{_libdir}/kamailio/modules/uri_db.so
1672%{_libdir}/kamailio/modules/userblacklist.so
1673%{_libdir}/kamailio/modules/usrloc.so
1674%{_libdir}/kamailio/modules/xhttp.so
1675%{_libdir}/kamailio/modules/xhttp_prom.so
1676%{_libdir}/kamailio/modules/xhttp_rpc.so
1677%{_libdir}/kamailio/modules/xlog.so
1678%{_libdir}/kamailio/modules/xprint.so
1679%{_libdir}/kamailio/modules/jsonrpcs.so
1680%{_libdir}/kamailio/modules/nosip.so
1681%{_libdir}/kamailio/modules/tsilo.so
1682%{_libdir}/kamailio/modules/call_obj.so
1683%{_libdir}/kamailio/modules/evrexec.so
1684%{_libdir}/kamailio/modules/keepalive.so
1685%{_libdir}/kamailio/modules/log_custom.so
1686%{_libdir}/kamailio/modules/statsc.so
1687%{_libdir}/kamailio/modules/topos.so
1688%{_libdir}/kamailio/modules/cfgt.so
1689%if "%{?_unitdir}" != ""
1690%{_libdir}/kamailio/modules/log_systemd.so
1691%{_libdir}/kamailio/modules/systemdops.so
1692%endif
1693
1694%{_sbindir}/kamailio
1695%{_sbindir}/kamctl
1696%{_sbindir}/kamdbctl
1697%{_sbindir}/kamcmd
1698
1699%dir %{_libdir}/kamailio/kamctl
1700%{_libdir}/kamailio/kamctl/kamctl.base
1701%{_libdir}/kamailio/kamctl/kamctl.ctlbase
1702%{_libdir}/kamailio/kamctl/kamctl.dbtext
1703%{_libdir}/kamailio/kamctl/kamctl.rpcfifo
1704%{_libdir}/kamailio/kamctl/kamctl.ser
1705%{_libdir}/kamailio/kamctl/kamctl.sqlbase
1706%{_libdir}/kamailio/kamctl/kamdbctl.base
1707%{_libdir}/kamailio/kamctl/kamdbctl.dbtext
1708
1709%dir %{_libdir}/kamailio/kamctl/dbtextdb
1710%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.py
1711%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyc
1712%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyo
1713
1714%{_mandir}/man5/*
1715%{_mandir}/man8/*
1716
1717%dir %{_datadir}/kamailio
1718%dir %{_datadir}/kamailio/dbtext
1719%dir %{_datadir}/kamailio/dbtext/kamailio
1720%{_datadir}/kamailio/dbtext/kamailio/*
1721
1722
1723%if %{with jansson}
1724%files      acc_json
1725%defattr(-,root,root)
1726%doc %{_docdir}/kamailio/modules/README.acc_json
1727%{_libdir}/kamailio/modules/acc_json.so
1728%endif
1729
1730
1731%files      auth-ephemeral
1732%defattr(-,root,root)
1733%doc %{_docdir}/kamailio/modules/README.auth_ephemeral
1734%{_libdir}/kamailio/modules/auth_ephemeral.so
1735
1736
1737%files      auth-xkeys
1738%defattr(-,root,root)
1739%doc %{_docdir}/kamailio/modules/README.auth_xkeys
1740%{_libdir}/kamailio/modules/auth_xkeys.so
1741
1742
1743%files      bdb
1744%defattr(-,root,root)
1745%doc %{_docdir}/kamailio/modules/README.db_berkeley
1746%{_sbindir}/kambdb_recover
1747%{_libdir}/kamailio/modules/db_berkeley.so
1748%{_libdir}/kamailio/kamctl/kamctl.db_berkeley
1749%{_libdir}/kamailio/kamctl/kamdbctl.db_berkeley
1750%dir %{_datadir}/kamailio/db_berkeley
1751%{_datadir}/kamailio/db_berkeley/*
1752
1753
1754%files      carrierroute
1755%defattr(-,root,root)
1756%{_docdir}/kamailio/modules/README.carrierroute
1757%{_libdir}/kamailio/modules/carrierroute.so
1758
1759
1760%if %{with cnxcc}
1761%files      cnxcc
1762%defattr(-,root,root)
1763%{_docdir}/kamailio/modules/README.cnxcc
1764%{_libdir}/kamailio/modules/cnxcc.so
1765%endif
1766
1767
1768%files      cpl
1769%defattr(-,root,root)
1770%{_docdir}/kamailio/modules/README.cplc
1771%{_libdir}/kamailio/modules/cplc.so
1772
1773
1774%files      crypto
1775%defattr(-,root,root)
1776%doc %{_docdir}/kamailio/modules/README.crypto
1777%{_libdir}/kamailio/modules/crypto.so
1778
1779
1780%files      dialplan
1781%defattr(-,root,root)
1782%doc %{_docdir}/kamailio/modules/README.dialplan
1783%{_libdir}/kamailio/modules/dialplan.so
1784
1785
1786%files      dmq_userloc
1787%defattr(-,root,root)
1788%doc %{_docdir}/kamailio/modules/README.dmq_usrloc
1789%{_libdir}/kamailio/modules/dmq_usrloc.so
1790
1791
1792%if %{with dnssec}
1793%files      dnssec
1794%defattr(-,root,root)
1795%doc %{_docdir}/kamailio/modules/README.dnssec
1796%{_libdir}/kamailio/modules/dnssec.so
1797%endif
1798
1799
1800%if %{with evapi}
1801%files      evapi
1802%defattr(-,root,root)
1803%doc %{_docdir}/kamailio/modules/README.evapi
1804%{_libdir}/kamailio/modules/evapi.so
1805%endif
1806
1807
1808%if %{with geoip}
1809%files      geoip
1810%defattr(-,root,root)
1811%doc %{_docdir}/kamailio/modules/README.geoip
1812%{_libdir}/kamailio/modules/geoip.so
1813%endif
1814
1815
1816%files      gzcompress
1817%defattr(-,root,root)
1818%doc %{_docdir}/kamailio/modules/README.gzcompress
1819%{_libdir}/kamailio/modules/gzcompress.so
1820
1821
1822%if %{with http_async_client}
1823%files      http_async_client
1824%defattr(-,root,root)
1825%doc %{_docdir}/kamailio/modules/README.http_async_client
1826%{_libdir}/kamailio/modules/http_async_client.so
1827%endif
1828
1829%files      http_client
1830%defattr(-,root,root)
1831%doc %{_docdir}/kamailio/modules/README.http_client
1832%{_libdir}/kamailio/modules/http_client.so
1833
1834%if %{with ims}
1835%files      ims
1836%defattr(-,root,root)
1837%{_libdir}/kamailio/libkamailio_ims.so.0
1838%{_libdir}/kamailio/libkamailio_ims.so.0.1
1839
1840%doc %{_docdir}/kamailio/modules/README.cdp
1841%doc %{_docdir}/kamailio/modules/README.cdp_avp
1842%doc %{_docdir}/kamailio/modules/README.ims_auth
1843%doc %{_docdir}/kamailio/modules/README.ims_charging
1844%doc %{_docdir}/kamailio/modules/README.ims_dialog
1845%doc %{_docdir}/kamailio/modules/README.ims_diameter_server
1846%doc %{_docdir}/kamailio/modules/README.ims_icscf
1847%doc %{_docdir}/kamailio/modules/README.ims_ipsec_pcscf
1848%doc %{_docdir}/kamailio/modules/README.ims_isc
1849%doc %{_docdir}/kamailio/modules/README.ims_ocs
1850%doc %{_docdir}/kamailio/modules/README.ims_qos
1851%doc %{_docdir}/kamailio/modules/README.ims_registrar_pcscf
1852%doc %{_docdir}/kamailio/modules/README.ims_registrar_scscf
1853%doc %{_docdir}/kamailio/modules/README.ims_usrloc_pcscf
1854%doc %{_docdir}/kamailio/modules/README.ims_usrloc_scscf
1855%{_libdir}/kamailio/modules/cdp.so
1856%{_libdir}/kamailio/modules/cdp_avp.so
1857%{_libdir}/kamailio/modules/ims_auth.so
1858%{_libdir}/kamailio/modules/ims_charging.so
1859%{_libdir}/kamailio/modules/ims_dialog.so
1860%{_libdir}/kamailio/modules/ims_diameter_server.so
1861%{_libdir}/kamailio/modules/ims_icscf.so
1862%{_libdir}/kamailio/modules/ims_ipsec_pcscf.so
1863%{_libdir}/kamailio/modules/ims_isc.so
1864%{_libdir}/kamailio/modules/ims_ocs.so
1865%{_libdir}/kamailio/modules/ims_qos.so
1866%{_libdir}/kamailio/modules/ims_registrar_pcscf.so
1867%{_libdir}/kamailio/modules/ims_registrar_scscf.so
1868%{_libdir}/kamailio/modules/ims_usrloc_pcscf.so
1869%{_libdir}/kamailio/modules/ims_usrloc_scscf.so
1870%endif
1871
1872
1873%if %{with jansson}
1874%files      jansson
1875%defattr(-,root,root)
1876%doc %{_docdir}/kamailio/modules/README.jansson
1877%doc %{_docdir}/kamailio/modules/README.janssonrpcc
1878%{_libdir}/kamailio/modules/jansson.so
1879%{_libdir}/kamailio/modules/janssonrpcc.so
1880%endif
1881
1882
1883%if %{with json}
1884%files      json
1885%defattr(-,root,root)
1886%doc %{_docdir}/kamailio/modules/README.json
1887%doc %{_docdir}/kamailio/modules/README.jsonrpcc
1888%{_libdir}/kamailio/modules/json.so
1889%{_libdir}/kamailio/modules/jsonrpcc.so
1890%endif
1891
1892
1893%if %{with kazoo}
1894%files      kazoo
1895%defattr(-,root,root)
1896%doc %{_docdir}/kamailio/modules/README.kazoo
1897%{_libdir}/kamailio/modules/kazoo.so
1898%endif
1899
1900%files      lcr
1901%defattr(-,root,root)
1902%doc %{_docdir}/kamailio/modules/README.lcr
1903%{_libdir}/kamailio/modules/lcr.so
1904
1905
1906%files      ldap
1907%defattr(-,root,root)
1908%doc %{_docdir}/kamailio/modules/README.db2_ldap
1909%doc %{_docdir}/kamailio/modules/README.h350
1910%doc %{_docdir}/kamailio/modules/README.ldap
1911%{_libdir}/kamailio/modules/db2_ldap.so
1912%{_libdir}/kamailio/modules/h350.so
1913%{_libdir}/kamailio/modules/ldap.so
1914
1915%files      lost
1916%defattr(-,root,root)
1917%doc %{_docdir}/kamailio/modules/README.lost
1918%{_libdir}/kamailio/modules/lost.so
1919
1920
1921%if %{with lua}
1922%files      lua
1923%defattr(-,root,root)
1924%doc %{_docdir}/kamailio/modules/README.app_lua
1925%doc %{_docdir}/kamailio/modules/README.app_lua_sr
1926%{_libdir}/kamailio/modules/app_lua.so
1927%{_libdir}/kamailio/modules/app_lua_sr.so
1928%endif
1929
1930
1931%if %{with memcached}
1932%files      memcached
1933%defattr(-,root,root)
1934%doc %{_docdir}/kamailio/modules/README.memcached
1935%{_libdir}/kamailio/modules/memcached.so
1936%endif
1937
1938
1939%if %{with mongodb}
1940%files      mongodb
1941%defattr(-,root,root)
1942%doc %{_docdir}/kamailio/modules/README.db_mongodb
1943%doc %{_docdir}/kamailio/modules/README.ndb_mongodb
1944%{_libdir}/kamailio/modules/db_mongodb.so
1945%{_libdir}/kamailio/modules/ndb_mongodb.so
1946%endif
1947
1948
1949%files      mysql
1950%defattr(-,root,root)
1951%doc %{_docdir}/kamailio/modules/README.db_mysql
1952%{_libdir}/kamailio/modules/db_mysql.so
1953%{_libdir}/kamailio/kamctl/kamctl.mysql
1954%{_libdir}/kamailio/kamctl/kamdbctl.mysql
1955%dir %{_datadir}/kamailio/mysql
1956%{_datadir}/kamailio/mysql/*
1957
1958
1959%files      outbound
1960%defattr(-,root,root)
1961%doc %{_docdir}/kamailio/modules/README.outbound
1962%{_libdir}/kamailio/modules/outbound.so
1963
1964
1965%if %{with perl}
1966%files      perl
1967%defattr(-,root,root)
1968%doc %{_docdir}/kamailio/modules/README.app_perl
1969%doc %{_docdir}/kamailio/modules/README.db_perlvdb
1970%{_libdir}/kamailio/modules/app_perl.so
1971%{_libdir}/kamailio/modules/db_perlvdb.so
1972%dir %{_libdir}/kamailio/perl
1973%{_libdir}/kamailio/perl/Kamailio.pm
1974%dir %{_libdir}/kamailio/perl/Kamailio
1975%{_libdir}/kamailio/perl/Kamailio/Constants.pm
1976%{_libdir}/kamailio/perl/Kamailio/Message.pm
1977%{_libdir}/kamailio/perl/Kamailio/VDB.pm
1978%dir %{_libdir}/kamailio/perl/Kamailio/LDAPUtils
1979%{_libdir}/kamailio/perl/Kamailio/LDAPUtils/LDAPConf.pm
1980%{_libdir}/kamailio/perl/Kamailio/LDAPUtils/LDAPConnection.pm
1981%dir %{_libdir}/kamailio/perl/Kamailio/Utils
1982%{_libdir}/kamailio/perl/Kamailio/Utils/Debug.pm
1983%{_libdir}/kamailio/perl/Kamailio/Utils/PhoneNumbers.pm
1984%dir %{_libdir}/kamailio/perl/Kamailio/VDB
1985%{_libdir}/kamailio/perl/Kamailio/VDB/Column.pm
1986%{_libdir}/kamailio/perl/Kamailio/VDB/Pair.pm
1987%{_libdir}/kamailio/perl/Kamailio/VDB/ReqCond.pm
1988%{_libdir}/kamailio/perl/Kamailio/VDB/Result.pm
1989%{_libdir}/kamailio/perl/Kamailio/VDB/VTab.pm
1990%{_libdir}/kamailio/perl/Kamailio/VDB/Value.pm
1991%dir %{_libdir}/kamailio/perl/Kamailio/VDB/Adapter
1992%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/AccountingSIPtrace.pm
1993%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/Alias.pm
1994%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/Auth.pm
1995%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/Describe.pm
1996%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/Speeddial.pm
1997%{_libdir}/kamailio/perl/Kamailio/VDB/Adapter/TableVersions.pm
1998%endif
1999
2000
2001%if %{with phonenum}
2002%files      phonenum
2003%defattr(-,root,root)
2004%doc %{_docdir}/kamailio/modules/README.phonenum
2005%{_libdir}/kamailio/modules/phonenum.so
2006%endif
2007
2008
2009%files      postgresql
2010%defattr(-,root,root)
2011%doc %{_docdir}/kamailio/modules/README.db_postgres
2012%{_libdir}/kamailio/modules/db_postgres.so
2013%{_libdir}/kamailio/kamctl/kamctl.pgsql
2014%{_libdir}/kamailio/kamctl/kamdbctl.pgsql
2015%dir %{_datadir}/kamailio/postgres
2016%{_datadir}/kamailio/postgres/*
2017
2018
2019%files      presence
2020%defattr(-,root,root)
2021%doc %{_docdir}/kamailio/modules/README.presence
2022%doc %{_docdir}/kamailio/modules/README.presence_conference
2023%doc %{_docdir}/kamailio/modules/README.presence_dialoginfo
2024%doc %{_docdir}/kamailio/modules/README.presence_mwi
2025%doc %{_docdir}/kamailio/modules/README.presence_profile
2026%doc %{_docdir}/kamailio/modules/README.presence_reginfo
2027%doc %{_docdir}/kamailio/modules/README.presence_xml
2028%doc %{_docdir}/kamailio/modules/README.pua
2029%doc %{_docdir}/kamailio/modules/README.pua_bla
2030%doc %{_docdir}/kamailio/modules/README.pua_dialoginfo
2031%if %{with json}
2032%doc %{_docdir}/kamailio/modules/README.pua_json
2033%endif
2034%doc %{_docdir}/kamailio/modules/README.pua_reginfo
2035%doc %{_docdir}/kamailio/modules/README.pua_usrloc
2036%doc %{_docdir}/kamailio/modules/README.pua_xmpp
2037%doc %{_docdir}/kamailio/modules/README.rls
2038%doc %{_docdir}/kamailio/modules/README.xcap_client
2039%doc %{_docdir}/kamailio/modules/README.xcap_server
2040%{_libdir}/kamailio/modules/presence.so
2041%{_libdir}/kamailio/modules/presence_conference.so
2042%{_libdir}/kamailio/modules/presence_dialoginfo.so
2043%{_libdir}/kamailio/modules/presence_mwi.so
2044%{_libdir}/kamailio/modules/presence_profile.so
2045%{_libdir}/kamailio/modules/presence_reginfo.so
2046%{_libdir}/kamailio/modules/presence_xml.so
2047%{_libdir}/kamailio/modules/pua.so
2048%{_libdir}/kamailio/modules/pua_bla.so
2049%{_libdir}/kamailio/modules/pua_dialoginfo.so
2050%if %{with json}
2051%{_libdir}/kamailio/modules/pua_json.so
2052%endif
2053%{_libdir}/kamailio/modules/pua_reginfo.so
2054%{_libdir}/kamailio/modules/pua_usrloc.so
2055%{_libdir}/kamailio/modules/pua_xmpp.so
2056%{_libdir}/kamailio/modules/rls.so
2057%{_libdir}/kamailio/modules/xcap_client.so
2058%{_libdir}/kamailio/modules/xcap_server.so
2059
2060
2061%files      python
2062%defattr(-,root,root)
2063%doc %{_docdir}/kamailio/modules/README.app_python
2064%{_libdir}/kamailio/modules/app_python.so
2065%if %{with python3}
2066%doc %{_docdir}/kamailio/modules/README.app_python3
2067%{_libdir}/kamailio/modules/app_python3.so
2068%endif
2069
2070
2071%if %{with rabbitmq}
2072%files      rabbitmq
2073%defattr(-,root,root)
2074%doc %{_docdir}/kamailio/modules/README.rabbitmq
2075%{_libdir}/kamailio/modules/rabbitmq.so
2076%endif
2077
2078
2079%files      radius
2080%defattr(-,root,root)
2081%doc %{_docdir}/kamailio/modules/README.acc_radius
2082%doc %{_docdir}/kamailio/modules/README.auth_radius
2083%doc %{_docdir}/kamailio/modules/README.misc_radius
2084%doc %{_docdir}/kamailio/modules/README.peering
2085%{_libdir}/kamailio/modules/acc_radius.so
2086%{_libdir}/kamailio/modules/auth_radius.so
2087%{_libdir}/kamailio/modules/misc_radius.so
2088%{_libdir}/kamailio/modules/peering.so
2089
2090
2091%if %{with redis}
2092%files      redis
2093%defattr(-,root,root)
2094%doc %{_docdir}/kamailio/modules/README.db_redis
2095%doc %{_docdir}/kamailio/modules/README.ndb_redis
2096%doc %{_docdir}/kamailio/modules/README.topos_redis
2097%{_libdir}/kamailio/modules/db_redis.so
2098%{_libdir}/kamailio/modules/ndb_redis.so
2099%{_libdir}/kamailio/modules/topos_redis.so
2100%dir %{_datadir}/kamailio/db_redis
2101%{_datadir}/kamailio/db_redis/*
2102%endif
2103
2104
2105%files      regex
2106%defattr(-,root,root)
2107%doc %{_docdir}/kamailio/modules/README.regex
2108%{_libdir}/kamailio/modules/regex.so
2109
2110
2111%files      rtjson
2112%defattr(-,root,root)
2113%doc %{_docdir}/kamailio/modules/README.rtjson
2114%{_libdir}/kamailio/modules/rtjson.so
2115
2116
2117%files      sipcapture-daemon-config
2118%defattr(-,root,root)
2119%config(noreplace) %{_sysconfdir}/kamailio/kamailio-sipcapture.cfg
2120%if 0%{?suse_version}
2121%{_fillupdir}/sysconfig.sipcapture
2122%else
2123%config(noreplace) %{_sysconfdir}/sysconfig/sipcapture
2124%endif
2125%if "%{?_unitdir}" != ""
2126%{_unitdir}/sipcapture.service
2127%{_tmpfilesdir}/sipcapture.conf
2128%endif
2129
2130
2131%if %{with ruby}
2132%files      ruby
2133%defattr(-,root,root)
2134%doc %{_docdir}/kamailio/modules/README.app_ruby
2135%{_libdir}/kamailio/modules/app_ruby.so
2136%endif
2137
2138
2139%if %{with sctp}
2140%files      sctp
2141%defattr(-,root,root)
2142%doc %{_docdir}/kamailio/modules/README.sctp
2143%{_libdir}/kamailio/modules/sctp.so
2144%endif
2145
2146
2147%files      secfilter
2148%defattr(-,root,root)
2149%doc %{_docdir}/kamailio/modules/README.secfilter
2150%{_libdir}/kamailio/modules/secfilter.so
2151
2152
2153%files      sipdump
2154%defattr(-,root,root)
2155%doc %{_docdir}/kamailio/modules/README.sipdump
2156%{_libdir}/kamailio/modules/sipdump.so
2157
2158
2159%files      sipjson
2160%defattr(-,root,root)
2161%doc %{_docdir}/kamailio/modules/README.sipjson
2162%{_libdir}/kamailio/modules/sipjson.so
2163
2164
2165%files      snmpstats
2166%defattr(-,root,root)
2167%{_docdir}/kamailio/modules/README.snmpstats
2168%{_libdir}/kamailio/modules/snmpstats.so
2169%{_datadir}/snmp/mibs/KAMAILIO-MIB
2170%{_datadir}/snmp/mibs/KAMAILIO-REG-MIB
2171%{_datadir}/snmp/mibs/KAMAILIO-SIP-COMMON-MIB
2172%{_datadir}/snmp/mibs/KAMAILIO-SIP-SERVER-MIB
2173%{_datadir}/snmp/mibs/KAMAILIO-TC
2174
2175
2176%files      statsd
2177%defattr(-,root,root)
2178%{_docdir}/kamailio/modules/README.statsd
2179%{_libdir}/kamailio/modules/statsd.so
2180
2181
2182%files          sqlang
2183%defattr(-,root,root)
2184%doc %{_docdir}/kamailio/modules/README.app_sqlang
2185%{_libdir}/kamailio/modules/app_sqlang.so
2186
2187
2188%files      sqlite
2189%defattr(-,root,root)
2190%doc %{_docdir}/kamailio/modules/README.db_sqlite
2191%{_libdir}/kamailio/modules/db_sqlite.so
2192%{_libdir}/kamailio/kamctl/kamctl.sqlite
2193%{_libdir}/kamailio/kamctl/kamdbctl.sqlite
2194%dir %{_datadir}/kamailio/db_sqlite
2195%{_datadir}/kamailio/db_sqlite/*
2196
2197
2198%files      tls
2199%defattr(-,root,root)
2200%dir %{_libdir}/kamailio/openssl_mutex_shared
2201%doc %{_docdir}/kamailio/modules/README.auth_identity
2202%doc %{_docdir}/kamailio/modules/README.tls
2203%{_libdir}/kamailio/modules/auth_identity.so
2204%{_libdir}/kamailio/modules/tls.so
2205%{_libdir}/kamailio/openssl_mutex_shared/openssl_mutex_shared.so
2206
2207
2208%files      tcpops
2209%defattr(-,root,root)
2210%doc %{_docdir}/kamailio/modules/README.tcpops
2211%{_libdir}/kamailio/modules/tcpops.so
2212
2213
2214%files      unixodbc
2215%defattr(-,root,root)
2216%doc %{_docdir}/kamailio/modules/README.db_unixodbc
2217%{_libdir}/kamailio/modules/db_unixodbc.so
2218
2219
2220%files      utils
2221%defattr(-,root,root)
2222%{_docdir}/kamailio/modules/README.utils
2223%{_libdir}/kamailio/modules/utils.so
2224
2225
2226%if %{with websocket}
2227%files      websocket
2228%defattr(-,root,root)
2229%doc %{_docdir}/kamailio/modules/README.websocket
2230%{_libdir}/kamailio/modules/websocket.so
2231%endif
2232
2233
2234%files      xhttp-pi
2235%defattr(-,root,root)
2236%doc %{_docdir}/kamailio/modules/README.xhttp_pi
2237%{_libdir}/kamailio/modules/xhttp_pi.so
2238%dir %{_datadir}/kamailio/xhttp_pi
2239%{_datadir}/kamailio/xhttp_pi/*
2240
2241
2242%files      xmlops
2243%defattr(-,root,root)
2244%doc %{_docdir}/kamailio/modules/README.xmlops
2245%{_libdir}/kamailio/modules/xmlops.so
2246
2247
2248%if %{with xmlrpc}
2249%files      xmlrpc
2250%defattr(-,root,root)
2251%doc %{_docdir}/kamailio/modules/README.xmlrpc
2252%{_libdir}/kamailio/modules/xmlrpc.so
2253%endif
2254
2255
2256%files      xmpp
2257%defattr(-,root,root)
2258%doc %{_docdir}/kamailio/modules/README.xmpp
2259%{_libdir}/kamailio/modules/xmpp.so
2260
2261
2262%files          uuid
2263%defattr(-,root,root)
2264%doc %{_docdir}/kamailio/modules/README.uuid
2265%{_libdir}/kamailio/modules/uuid.so
2266
2267
2268%changelog
2269* Sat Aug 31 2019 Sergey Safarov <s.safarov@gmail.com> 5.3.0-dev7
2270  - Packaged kemix, lost and xhttp_prom modules
2271* Sat Mar 30 2019 Sergey Safarov <s.safarov@gmail.com> 5.3.0-0
2272  - Added support of openSUSE:Leap:15.0, openSUSE:Leap:15.1 and Fedora 30 dists
2273* Thu Feb 21 2019 Sergey Safarov <s.safarov@gmail.com> 5.3.0-0
2274  - Added secfilter package
2275* Tue Dec 11 2018 Sergey Safarov <s.safarov@gmail.com> 5.2.0-1
2276  - Added Ruby package
2277* Sun Nov 04 2018 Sergey Safarov <s.safarov@gmail.com> 5.2.0-0
2278  - removed packaging for Fedora 25, 26 as End Of Life
2279* Sat Sep 02 2017 Sergey Safarov <s.safarov@gmail.com>
2280  - added packaging for Fedora 26 and openSUSE Leap 42.3
2281  - removed packaging for Fedora 24 and openSUSE Leap 42.1 as End Of Life
2282  - rewrited SPEC file to support Fedora, RHEL, CentOS, openSUSE distrs
2283* Mon Jul 31 2017 Mititelu Stefan <stefan.mititelu92@gmail.com>
2284  - added rabbitmq module
2285* Wed Apr 26 2017 Carsten Bock <carsten@ng-voice.co,>
2286  - added ims_diameter_server module
2287  - added topos_redis module
2288  - added call_obj module
2289  - added evrexec module
2290  - added keepalive module
2291  - added app_sqlang module
2292* Thu Mar 09 2017 Federico Cabiddu <federico.cabiddu@gmail.com>
2293  - added jansson package
2294* Sat Feb 04 2017 Federico Cabiddu <federico.cabiddu@gmail.com>
2295  - added http_async_client package
2296  - fix http_client package
2297* Fri Nov 04 2016 Marcel Weinberg <marcel@ng-voice.com>
2298  - Updated to Kamailio version 5.0 and CentOS / RHEL 7.2
2299  - added new modules available with Kamailio 5.x
2300    - cfgt
2301    - crypto
2302    - http_client
2303    - log_custom
2304    - smsops
2305    - statsc
2306    - topos
2307  - removed dialog_ng references and added ims_dialog to replace dialog_ng
2308  - removed java module which requires libgcj
2309    - libgcj is no longer supported by RHEL / CentOS (Version >= 7)
2310    - it's recommended to replace libgcj as dependency
2311  - added the ims_registrar_pcscf module
2312* Tue Dec 3 2013 Peter Dunkley <peter.dunkley@crocodilertc.net>
2313  - Updated version to 4.2.0
2314* Mon Oct 7 2013 Peter Dunkley <peter.dunkley@crocodilertc.net>
2315  - Consolidating changelog for 4.1.0 into a single entry...
2316  - Added new modules to main package:
2317    - cnxcc
2318    - gzcompress
2319    - mohqueue
2320    - rtpproxy-ng
2321    - sipt
2322    - stun (STUN functionality moved from compile time in core to own module)
2323  - Added new modules to other packages:
2324    - ims_charging module to ims package
2325  - Added new packages for new modules:
2326    - app_java
2327    - auth_ephemeral
2328    - sctp (SCTP functionality moved from compile time in core to own module)
2329  - Moved existing modules to different packages:
2330    - auth_identity to tls package (previously not built for CentOS)
2331    - cdp and cdp_avp to ims package
2332    - dialog_ng to main package
2333    - memcached to own package (previously not built for CentOS)
2334    - mi_xmlrpc to own package (previously not built for CentOS)
2335    - tls to own package
2336  - Added packages for (new and existing) modules that require EPEL:
2337    - carrierroute in own package
2338    - dnssec in own package
2339    - geoip in own package
2340    - json and jsonrpc-c in new json package
2341    - redis in own package
2342    - acc_radius, auth_radius, misc_radius, and peering in new radius package
2343  - Removed Fedora stuff as I am only maintaining this for CentOS now
2344  - Refactored .spec
2345  - Updated make commands to match updated module groups
2346  - Updated version to 4.1.0
2347* Mon Mar 11 2013 Peter Dunkley <peter.dunkley@crocodilertc.net>
2348  - Consolidating changelog for 4.0.0 into a single entry...
2349  - Added new modules to main package:
2350    - corex
2351    - sca
2352  - Added new packages for new modules:
2353    - cdp (cdp, cdp_avp)
2354    - ims (dialog_ng, ims_auth, ims_icscf, ims_isc, ims_qos,
2355      ims_registrar_pcscf, ims_registrar_scscf, ims_usrloc_pcscf,
2356      ims_usrloc_scscf)
2357    - outbound
2358    - websocket
2359    - xhttp_pi
2360  - Moved existing modules to different packages:
2361    - Various SER modules added to main package (avp, db2_ops, mangler, timer,
2362      uid_auth_db, uid_avp_db, uid_domain, uid_gflags, uid_uri_db, print,
2363      print_lib, xprint)
2364    - db2_ldap SER module added to ldap package
2365    - tls to main package (as OpenSSL was needed in core for STUN)
2366  - Moved modules from modules_k/ to modules/
2367  - Renamed perl modules
2368  - Added installation of auth.7.gz for Fedora now that manpages are built for
2369    Fedora
2370  - SCTP and STUN now included in this build
2371  - Refactored .spec
2372  - Updated ver to 4.0.0
2373* Mon Jun 18 2012 Peter Dunkley <peter.dunkley@crocodilertc.net>
2374  - Consolidating changelog for 3.3.0 into a single entry...
2375  - See revision control for details this far back
2376
2377