]>
Commit | Line | Data |
---|---|---|
91565b21 JK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without mysql # mysql support | |
4 | %bcond_without pgsql # PostgreSQL support | |
5 | %bcond_without odbc # ODBC support | |
6 | %bcond_without radius # radius support | |
39033727 | 7 | %bcond_without carrierroute # carrierroute support |
e12422e8 | 8 | %bcond_without ldap # LDAP support |
91565b21 | 9 | %bcond_with osp # ETSI OSP VoIP Peering support |
d186c54b | 10 | %bcond_without geoip # GeoIP |
bb55e231 MM |
11 | %bcond_without json # json support |
12 | %bcond_without memcached # memcached support | |
b229b45a JK |
13 | %bcond_without microhttpd # httpd support |
14 | %bcond_without redis # Redis support | |
8ef526a2 | 15 | %bcond_with couchbase # couchbase support |
5a482e4a MM |
16 | %bcond_without mongodb # mongodb support |
17 | %bcond_with sngtc # Sangoma transcoding module support | |
b3ea057a | 18 | |
f274b6d5 JR |
19 | %ifarch x32 |
20 | %undefine with_mongodb | |
21 | %endif | |
91565b21 JK |
22 | Summary: SIP proxy, redirect and registrar server |
23 | Summary(pl.UTF-8): Serwer SIP rejestrujący, przekierowujący i robiący proxy | |
24 | Name: opensips | |
f274b6d5 JR |
25 | Version: 2.1.1 |
26 | Release: 1 | |
91565b21 JK |
27 | License: GPL v2 |
28 | Group: Networking/Daemons | |
5a482e4a | 29 | Source0: http://opensips.org/pub/opensips/%{version}/src/%{name}-%{version}.tar.gz |
f274b6d5 | 30 | # Source0-md5: ea7b3d394eb7461e172af4b900f19b70 |
91565b21 JK |
31 | Source1: %{name}.init |
32 | Source2: %{name}.sysconfig | |
3a565fc3 | 33 | Source3: %{name}.service |
f274b6d5 JR |
34 | Patch0: x32.patch |
35 | Patch1: make.patch | |
91565b21 | 36 | URL: http://www.opensips.org/ |
5a482e4a | 37 | %{?with_sngtc:BuildRequires: TODO-SNGTC-BRs} |
d186c54b | 38 | %{?with_geoip:BuildRequires: GeoIP-devel} |
91565b21 JK |
39 | %{?with_osp:BuildRequires: OSPToolkit} |
40 | BuildRequires: bison | |
b3ea057a | 41 | BuildRequires: curl-devel |
91565b21 JK |
42 | BuildRequires: expat-devel |
43 | BuildRequires: flex | |
b229b45a | 44 | %{?with_redis:BuildRequires: hiredis-devel} |
bb55e231 | 45 | %{?with_json:BuildRequires: json-c-devel} |
5a482e4a | 46 | %{?with_couchbase:BuildRequires: libcouchbase-devel} |
39033727 | 47 | %{?with_carrierroute:BuildRequires: libconfuse-devel} |
bb55e231 | 48 | %{?with_memcached:BuildRequires: libmemcached-devel} |
395b4eda | 49 | %{?with_microhttpd:BuildRequires: libmicrohttpd-devel} |
5a482e4a | 50 | %{?with_mongodb:BuildRequires: libmongo-client-devel} |
91565b21 | 51 | %{?with_pgsql:BuildRequires: libpqxx-devel} |
f124c287 | 52 | BuildRequires: libsctp-devel |
91565b21 | 53 | BuildRequires: libxml2-devel |
7a62a277 | 54 | BuildRequires: libxslt-progs |
55 | #BuildRequires: lynx | |
91565b21 JK |
56 | %{?with_mysql:BuildRequires: mysql-devel} |
57 | BuildRequires: net-snmp-devel | |
e12422e8 | 58 | %{?with_ldap:BuildRequires: openldap-devel} |
91565b21 | 59 | BuildRequires: openssl-devel |
7a62a277 | 60 | BuildRequires: pcre-devel |
91565b21 | 61 | BuildRequires: perl-devel |
7a62a277 | 62 | BuildRequires: perl-tools-devel |
91565b21 | 63 | %{?with_radius:BuildRequires: radiusclient-ng-devel} |
7a62a277 | 64 | BuildRequires: rpm-pythonprov |
3a565fc3 | 65 | BuildRequires: rpmbuild(macros) >= 1.671 |
7a62a277 | 66 | #BuildRequires: subversion |
91565b21 | 67 | %{?with_odbc:BuildRequires: unixODBC-devel} |
7a62a277 | 68 | BuildRequires: which |
91565b21 JK |
69 | #BuildRequires: xmlrpc-c-devel >= 1.10.0 |
70 | BuildRequires: zlib-devel | |
71 | Requires(post,preun): /sbin/chkconfig | |
72 | Requires: rc-scripts | |
3a565fc3 | 73 | Requires: systemd-units >= 38 |
cee7c8ca | 74 | Suggests: python-modules |
91565b21 JK |
75 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
76 | ||
77 | # mi_xmlrpc requires xmlrpc-c-devel in version 1.9 only | |
b229b45a JK |
78 | # event_rabbitmq requires 'amqp.h' |
79 | # cachedb_cassandra requires 'protocol/TBinaryProtocol.h' | |
80 | # lua: lua.h | |
81 | %define exclude_modules mi_xmlrpc db_oracle event_rabbitmq cachedb_cassandra lua | |
91565b21 JK |
82 | |
83 | %description | |
84 | OpenSIPS (Open SIP Server) is a mature Open Source implementation of a | |
85 | SIP server. OpenSIPS is more than a SIP proxy/router as it includes | |
86 | application-level functionalities. OpenSIPS, as a SIP server, is the | |
87 | core component of any SIP-based VoIP solution. With a very flexible | |
88 | and customizable routing engine, OpenSIPS 'unifies voice, video, IM | |
89 | and presence services in a highly efficient way, thanks to its | |
90 | scalable (modular) design. | |
91 | ||
92 | %package mysql | |
93 | Summary: openSIPS MySQL module | |
94 | Summary(pl.UTF-8): Moduł MySQL do openSIPS | |
95 | Group: Networking/Daemons | |
96 | Requires: %{name} = %{version}-%{release} | |
97 | ||
98 | %description mysql | |
99 | MySQL module for openSIPS. | |
100 | ||
101 | %description mysql -l pl.UTF-8 | |
102 | Moduł MySQL do openSIPS. | |
103 | ||
104 | %package postgres | |
105 | Summary: openSIPS PostgreSQL module | |
106 | Summary(pl.UTF-8): Moduł PostgreSQL do openSIPS | |
107 | Group: Networking/Daemons | |
108 | Requires: %{name} = %{version}-%{release} | |
109 | ||
110 | %description postgres | |
111 | PostgreSQL module for openSIPS. | |
112 | ||
113 | %description postgres -l pl.UTF-8 | |
114 | Moduł PostgreSQL do openSIPS. | |
115 | ||
bb55e231 MM |
116 | %package json |
117 | Summary: openSIPS JSON module | |
118 | Summary(pl.UTF-8): Moduł JSON do openSIPS | |
119 | Group: Networking/Daemons | |
120 | Requires: %{name} = %{version}-%{release} | |
121 | ||
122 | %description json | |
123 | JSON module for openSIPS. | |
124 | ||
125 | %description json -l pl.UTF-8 | |
126 | Moduł JSON do openSIPS. | |
127 | ||
128 | %package memcached | |
129 | Summary: openSIPS memcached module | |
130 | Summary(pl.UTF-8): Moduł memcached do openSIPS | |
131 | Group: Networking/Daemons | |
132 | Requires: %{name} = %{version}-%{release} | |
133 | ||
134 | %description memcached | |
135 | Memcached module for openSIPS. | |
136 | ||
137 | %description memcached -l pl.UTF-8 | |
138 | Moduł memcached do openSIPS. | |
139 | ||
91565b21 JK |
140 | %package radius |
141 | Summary: openSIPS Radius module | |
142 | Summary(pl.UTF-8): Moduł Radius do openSIPS | |
143 | Group: Networking/Daemons | |
144 | Requires: %{name} = %{version}-%{release} | |
145 | ||
146 | %description radius | |
147 | Radius module for openSIPS. | |
148 | ||
149 | %description radius -l pl.UTF-8 | |
150 | Moduł Radius do openSIPS. | |
151 | ||
152 | %package odbc | |
153 | Summary: openSIPS ODBC module | |
154 | Summary(pl.UTF-8): Moduł ODBC do openSIPS | |
155 | Group: Networking/Daemons | |
156 | Requires: %{name} = %{version}-%{release} | |
157 | ||
158 | %description odbc | |
159 | ODBC module for openSIPS. | |
160 | ||
161 | %description odbc -l pl.UTF-8 | |
162 | Moduł ODBC do openSIPS. | |
163 | ||
164 | %package perl | |
165 | Summary: openSIPS perl and perlvdb modules | |
166 | Summary(pl.UTF-8): Moduły perl i perlvdb do openSIPS | |
167 | Group: Networking/Daemons | |
168 | Requires: %{name} = %{version}-%{release} | |
169 | ||
170 | %description perl | |
171 | Perl modules (perl & perlvdb) for openSIPS. | |
172 | ||
173 | %description perl -l pl.UTF-8 | |
174 | Moduły perl i perlvdb do openSIPS. | |
175 | ||
176 | %package xmpp | |
177 | Summary: openSIPS XMPP/Jabber modules | |
178 | Summary(pl.UTF-8): Moduły XMPP/Jabber do openSIPS | |
179 | Group: Networking/Daemons | |
180 | Requires: %{name} = %{version}-%{release} | |
181 | Obsoletes: opensips-jabber | |
182 | ||
183 | %description xmpp | |
184 | XMPP/Jabber modules for openSIPS. | |
185 | ||
186 | %description xmpp -l pl.UTF-8 | |
187 | Moduły XMPP/Jabber do openSIPS. | |
188 | ||
d186c54b JK |
189 | %package ldap |
190 | Summary: openSIPS LDAP and H350 modules | |
191 | Summary(pl.UTF-8): Moduły LDAP i H350 do openSIPS | |
192 | Group: Networking/Daemons | |
193 | Requires: %{name} = %{version}-%{release} | |
194 | ||
195 | %description ldap | |
b3ea057a | 196 | LDAP and H350 modules for openSIPS. |
d186c54b JK |
197 | |
198 | %description ldap -l pl.UTF-8 | |
199 | Moduły LDAP i H350 do openSIPS. | |
200 | ||
201 | %package carrierroute | |
202 | Summary: openSIPS Carrierroute module | |
203 | Summary(pl.UTF-8): Moduł Carrierroute do openSIPS | |
204 | Group: Networking/Daemons | |
205 | Requires: %{name} = %{version}-%{release} | |
206 | ||
207 | %description carrierroute | |
208 | Carrierroute module for openSIPS. | |
209 | ||
210 | %description carrierroute -l pl.UTF-8 | |
211 | Moduł Carrierroute do openSIPS. | |
212 | ||
213 | %package osp | |
214 | Summary: openSIPS OSP module | |
215 | Summary(pl.UTF-8): Moduł OSP do openSIPS | |
216 | Group: Networking/Daemons | |
217 | Requires: %{name} = %{version}-%{release} | |
218 | ||
219 | %description osp | |
220 | OSP module for openSIPS. | |
221 | ||
222 | %description osp -l pl.UTF-8 | |
223 | Moduł OSP do openSIPS. | |
224 | ||
225 | %package mmgeoip | |
226 | Summary: openSIPS MaxMind GeoIP module | |
227 | Summary(pl.UTF-8): Moduł MaxMind GeoIP do openSIPS | |
228 | Group: Networking/Daemons | |
229 | Requires: %{name} = %{version}-%{release} | |
230 | ||
231 | %description mmgeoip | |
232 | MaxMind GeoIP module for openSIPS. | |
233 | ||
234 | %description mmgeoip -l pl.UTF-8 | |
235 | Moduł MaxMind GeoIP do openSIPS. | |
236 | ||
91565b21 JK |
237 | %package snmpstats |
238 | Summary: openSIPS SNMP statistics module | |
239 | Summary(pl.UTF-8): Moduł do statystyk SNMP do openSIPS | |
240 | Group: Networking/Daemons | |
241 | Requires: %{name} = %{version}-%{release} | |
242 | ||
243 | %description snmpstats | |
244 | openSIPS SNMP statistics module. | |
245 | ||
246 | %description snmpstats -l pl.UTF-8 | |
247 | Moduł do statystyk SNMP do openSIPS. | |
248 | ||
b3ea057a | 249 | %package -n mibs-%{name} |
91565b21 JK |
250 | Summary: MIBs for openSIPS |
251 | Summary(pl.UTF-8): MIB-y dla openSIPS | |
252 | Group: Applications/System | |
b3ea057a | 253 | Requires: mibs-dirs |
96b7d304 | 254 | Requires: mibs-net-snmp |
b3ea057a | 255 | Obsoletes: opensips-mibs |
91565b21 | 256 | |
b3ea057a | 257 | %description -n mibs-%{name} |
91565b21 JK |
258 | MIBs for openSIPS. |
259 | ||
b3ea057a | 260 | %description -n mibs-%{name} -l pl.UTF-8 |
91565b21 JK |
261 | MIB-y dla openSIPS. |
262 | ||
b229b45a JK |
263 | %package redis |
264 | Summary: Redis interface for openSIPS | |
265 | Summary(pl.UTF-8): Moduł Redis do openSIPS | |
266 | Group: Networking/Daemons | |
267 | Requires: %{name} = %{version}-%{release} | |
268 | ||
269 | %description redis | |
270 | Redis interface for openSIPS. | |
271 | ||
272 | %description redis -l pl.UTF-8 | |
273 | Moduł Redis do openSIPS. | |
274 | ||
275 | %package httpd | |
276 | Summary: HTTP interface to openSIPS | |
277 | Summary(pl.UTF-8): Interfejs HTTP do openSIPS | |
278 | Group: Networking/Daemons | |
279 | Requires: %{name} = %{version}-%{release} | |
280 | ||
281 | %description httpd | |
282 | HTTP interface to openSIPS. | |
283 | ||
284 | %description httpd -l pl.UTF-8 | |
285 | Interfejs HTTP do openSIPS. | |
286 | ||
91565b21 | 287 | %prep |
5a482e4a | 288 | %setup -q |
f274b6d5 JR |
289 | %patch0 -p1 |
290 | %patch1 -p1 | |
91565b21 | 291 | |
91565b21 JK |
292 | %build |
293 | exclude_modules="%{exclude_modules}" | |
b229b45a JK |
294 | %if %{without redis} |
295 | exclude_modules="$exclude_modules cachedb_redis" | |
296 | %endif | |
e12422e8 JK |
297 | %if %{without ldap} |
298 | exclude_modules="$exclude_modules h350 ldap" | |
299 | %endif | |
39033727 JK |
300 | %if %{without carrierroute} |
301 | exclude_modules="$exclude_modules carrierroute" | |
302 | %endif | |
91565b21 JK |
303 | %if %{without osp} |
304 | exclude_modules="$exclude_modules osp" | |
305 | %endif | |
b229b45a JK |
306 | %if %{without microhttpd} |
307 | exclude_modules="$exclude_modules httpd" | |
308 | %endif | |
91565b21 | 309 | %if %{without mysql} |
e151e7fa | 310 | exclude_modules="$exclude_modules db_mysql" |
91565b21 JK |
311 | %endif |
312 | %if %{without pgsql} | |
e151e7fa | 313 | exclude_modules="$exclude_modules db_postgres" |
91565b21 JK |
314 | %endif |
315 | %if %{without odbc} | |
e151e7fa | 316 | exclude_modules="$exclude_modules db_unixodbc" |
91565b21 | 317 | %endif |
d186c54b JK |
318 | %if %{without geoip} |
319 | exclude_modules="$exclude_modules mmgeoip" | |
320 | %endif | |
91565b21 | 321 | %if %{without radius} |
bb55e231 MM |
322 | exclude_modules="$exclude_modules aaa_radius" |
323 | %endif | |
324 | %if %{without json} | |
325 | exclude_modules="$exclude_modules json" | |
326 | %endif | |
327 | %if %{without memcached} | |
57aba727 | 328 | exclude_modules="$exclude_modules cachedb_memcached" |
91565b21 | 329 | %endif |
5a482e4a MM |
330 | %if %{without couchbase} |
331 | exclude_modules="$exclude_modules cachedb_couchbase" | |
332 | %endif | |
333 | %if %{without mongodb} | |
334 | exclude_modules="$exclude_modules cachedb_mongodb" | |
335 | %endif | |
336 | %if %{without sngtc} | |
337 | exclude_modules="$exclude_modules sngtc" | |
338 | %endif | |
91565b21 JK |
339 | echo "$exclude_modules" > exclude_modules |
340 | %{__make} all \ | |
a2934690 | 341 | Q= \ |
91565b21 | 342 | exclude_modules="$exclude_modules" \ |
f274b6d5 JR |
343 | prefix=%{_prefix} \ |
344 | PREFIX=%{_prefix} \ | |
345 | LIBDIR=%{_lib} \ | |
91565b21 JK |
346 | cfg-prefix=$RPM_BUILD_ROOT \ |
347 | cfg-target=/etc/opensips/ \ | |
348 | CC="%{__cc}" \ | |
a2934690 | 349 | CC_EXTRA_OPTS="-I/usr/include/ncurses" \ |
e10550a7 | 350 | CFLAGS="%{rpmcflags} -Wcast-align" |
91565b21 JK |
351 | |
352 | %install | |
353 | rm -rf $RPM_BUILD_ROOT | |
3a565fc3 JK |
354 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/{ser,sysconfig,rc.d/init.d} \ |
355 | -d $RPM_BUILD_ROOT%{systemdunitdir} | |
91565b21 JK |
356 | |
357 | exclude_modules="$(cat exclude_modules)" | |
b713461a | 358 | %{__make} install -j1 \ |
a2934690 | 359 | Q= \ |
91565b21 | 360 | exclude_modules="$exclude_modules" \ |
f274b6d5 JR |
361 | prefix=%{_prefix} \ |
362 | PREFIX=%{_prefix} \ | |
363 | LIBDIR=%{_lib} \ | |
364 | BASEDIR=$RPM_BUILD_ROOT \ | |
91565b21 | 365 | cfg-prefix=$RPM_BUILD_ROOT \ |
b3ea057a ER |
366 | cfg-target=/etc/opensips/ \ |
367 | INSTALLMIBDIR=$RPM_BUILD_ROOT%{_datadir}/mibs | |
91565b21 JK |
368 | |
369 | for i in modules/*; do \ | |
370 | i=$(basename $i) | |
371 | [ -f modules/$i/README ] && cp -f modules/$i/README README.$i; \ | |
372 | done | |
373 | ||
e257f07a | 374 | # contains the same files we install in %doc |
551f7076 | 375 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
91565b21 JK |
376 | |
377 | #cd doc/serdev | |
378 | #docbook2html serdev.sgml | |
379 | #rm -f serdev.sgml | |
380 | #cd ../seruser | |
381 | #docbook2html seruser.sgml | |
382 | #rm -f seruser.sgml | |
383 | #cd ../.. | |
384 | ||
385 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/opensips | |
386 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/opensips | |
3a565fc3 | 387 | install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/opensips.service |
91565b21 JK |
388 | |
389 | %clean | |
390 | rm -rf $RPM_BUILD_ROOT | |
391 | ||
392 | %post | |
393 | /sbin/chkconfig --add opensips | |
b3ea057a | 394 | %service opensips restart "SIP Daemon" |
3a565fc3 | 395 | %systemd_post opensips.service |
91565b21 JK |
396 | |
397 | %preun | |
3a565fc3 | 398 | %systemd_preun opensips.service |
91565b21 JK |
399 | if [ "$1" = "0" ]; then |
400 | %service opensips stop | |
401 | /sbin/chkconfig --del opensips | |
402 | fi | |
403 | ||
3a565fc3 JK |
404 | %postun |
405 | %systemd_reload | |
406 | ||
407 | %triggerpostun -- %{name} < 2.1.0-0.2 | |
408 | %systemd_trigger opensips.service | |
409 | ||
91565b21 JK |
410 | %files |
411 | %defattr(644,root,root,755) | |
e257f07a | 412 | %doc README* AUTHORS CREDITS ChangeLog INSTALL NEWS scripts examples |
91565b21 JK |
413 | %attr(755,root,root) %{_sbindir}/* |
414 | %dir %{_sysconfdir}/opensips | |
415 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/opensips.cfg | |
416 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/opensipsctlrc | |
d186c54b | 417 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/osipsconsolerc |
f274b6d5 JR |
418 | %dir %attr(700,root,root) %{_sysconfdir}/opensips/tls |
419 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/README | |
420 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/ca.conf | |
421 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/request.conf | |
422 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/user.conf | |
423 | %dir %attr(700,root,root) %{_sysconfdir}/opensips/tls/rootCA | |
424 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/rootCA/cacert.pem | |
425 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/rootCA/index.txt | |
426 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/rootCA/serial | |
427 | %dir %attr(700,root,root) %{_sysconfdir}/opensips/tls/rootCA/certs | |
428 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/rootCA/certs/01.pem | |
429 | %dir %attr(700,root,root) %{_sysconfdir}/opensips/tls/rootCA/private | |
430 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/rootCA/private/cakey.pem | |
431 | %dir %attr(700,root,root) %{_sysconfdir}/opensips/tls/user | |
432 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/user/user-calist.pem | |
433 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/user/user-cert.pem | |
434 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/user/user-cert_req.pem | |
435 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/user/user-privkey.pem | |
91565b21 JK |
436 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/opensips |
437 | %attr(754,root,root) /etc/rc.d/init.d/opensips | |
3a565fc3 | 438 | %{systemdunitdir}/opensips.service |
91565b21 | 439 | %dir %{_libdir}/opensips |
cee7c8ca JK |
440 | %dir %{_libdir}/opensips/opensipsctl |
441 | %{_libdir}/opensips/opensipsctl/*.* | |
442 | %dir %{_libdir}/opensips/opensipsctl/dbtextdb | |
443 | %attr(755,root,root) %{_libdir}/opensips/opensipsctl/dbtextdb/dbtextdb.py | |
91565b21 JK |
444 | %dir %{_libdir}/opensips/modules |
445 | # explict list here, no globs please (to avoid mistakes) | |
446 | %attr(755,root,root) %{_libdir}/opensips/modules/acc.so | |
447 | %attr(755,root,root) %{_libdir}/opensips/modules/alias_db.so | |
448 | %attr(755,root,root) %{_libdir}/opensips/modules/auth.so | |
bb55e231 | 449 | %attr(755,root,root) %{_libdir}/opensips/modules/auth_aaa.so |
91565b21 | 450 | %attr(755,root,root) %{_libdir}/opensips/modules/auth_db.so |
91565b21 | 451 | %attr(755,root,root) %{_libdir}/opensips/modules/avpops.so |
bb55e231 MM |
452 | %attr(755,root,root) %{_libdir}/opensips/modules/b2b_entities.so |
453 | %attr(755,root,root) %{_libdir}/opensips/modules/b2b_logic.so | |
5a482e4a | 454 | %attr(755,root,root) %{_libdir}/opensips/modules/b2b_sca.so |
91565b21 | 455 | %attr(755,root,root) %{_libdir}/opensips/modules/benchmark.so |
b229b45a | 456 | %attr(755,root,root) %{_libdir}/opensips/modules/cachedb_local.so |
5a482e4a MM |
457 | %attr(755,root,root) %{_libdir}/opensips/modules/cachedb_sql.so |
458 | %attr(755,root,root) %{_libdir}/opensips/modules/call_center.so | |
d186c54b | 459 | %attr(755,root,root) %{_libdir}/opensips/modules/call_control.so |
5a482e4a | 460 | %attr(755,root,root) %{_libdir}/opensips/modules/compression.so |
91565b21 JK |
461 | %attr(755,root,root) %{_libdir}/opensips/modules/cfgutils.so |
462 | %attr(755,root,root) %{_libdir}/opensips/modules/cpl-c.so | |
463 | %attr(755,root,root) %{_libdir}/opensips/modules/db_berkeley.so | |
5a482e4a | 464 | %attr(755,root,root) %{_libdir}/opensips/modules/db_cachedb.so |
91565b21 | 465 | %attr(755,root,root) %{_libdir}/opensips/modules/db_flatstore.so |
bb55e231 | 466 | %attr(755,root,root) %{_libdir}/opensips/modules/db_http.so |
91565b21 | 467 | %attr(755,root,root) %{_libdir}/opensips/modules/db_text.so |
bb55e231 | 468 | %attr(755,root,root) %{_libdir}/opensips/modules/db_virtual.so |
91565b21 JK |
469 | %attr(755,root,root) %{_libdir}/opensips/modules/dialog.so |
470 | %attr(755,root,root) %{_libdir}/opensips/modules/dialplan.so | |
471 | %attr(755,root,root) %{_libdir}/opensips/modules/dispatcher.so | |
472 | %attr(755,root,root) %{_libdir}/opensips/modules/diversion.so | |
b229b45a | 473 | %attr(755,root,root) %{_libdir}/opensips/modules/dns_cache.so |
91565b21 JK |
474 | %attr(755,root,root) %{_libdir}/opensips/modules/domain.so |
475 | %attr(755,root,root) %{_libdir}/opensips/modules/domainpolicy.so | |
d186c54b | 476 | %attr(755,root,root) %{_libdir}/opensips/modules/drouting.so |
5a482e4a | 477 | %attr(755,root,root) %{_libdir}/opensips/modules/emergency.so |
91565b21 | 478 | %attr(755,root,root) %{_libdir}/opensips/modules/enum.so |
210f5757 | 479 | %attr(755,root,root) %{_libdir}/opensips/modules/event_datagram.so |
5a482e4a MM |
480 | %attr(755,root,root) %{_libdir}/opensips/modules/event_route.so |
481 | %attr(755,root,root) %{_libdir}/opensips/modules/event_xmlrpc.so | |
91565b21 JK |
482 | %attr(755,root,root) %{_libdir}/opensips/modules/exec.so |
483 | %attr(755,root,root) %{_libdir}/opensips/modules/gflags.so | |
484 | %attr(755,root,root) %{_libdir}/opensips/modules/group.so | |
5a482e4a | 485 | %attr(755,root,root) %{_libdir}/opensips/modules/fraud_detection.so |
d186c54b | 486 | %attr(755,root,root) %{_libdir}/opensips/modules/identity.so |
91565b21 | 487 | %attr(755,root,root) %{_libdir}/opensips/modules/imc.so |
d186c54b | 488 | %attr(755,root,root) %{_libdir}/opensips/modules/load_balancer.so |
91565b21 | 489 | %attr(755,root,root) %{_libdir}/opensips/modules/mangler.so |
5a482e4a | 490 | %attr(755,root,root) %{_libdir}/opensips/modules/mathops.so |
91565b21 JK |
491 | %attr(755,root,root) %{_libdir}/opensips/modules/maxfwd.so |
492 | %attr(755,root,root) %{_libdir}/opensips/modules/mediaproxy.so | |
493 | %attr(755,root,root) %{_libdir}/opensips/modules/mi_datagram.so | |
494 | %attr(755,root,root) %{_libdir}/opensips/modules/mi_fifo.so | |
5a482e4a MM |
495 | %attr(755,root,root) %{_libdir}/opensips/modules/mi_json.so |
496 | %attr(755,root,root) %{_libdir}/opensips/modules/mi_xmlrpc_ng.so | |
91565b21 JK |
497 | %attr(755,root,root) %{_libdir}/opensips/modules/msilo.so |
498 | %attr(755,root,root) %{_libdir}/opensips/modules/nat_traversal.so | |
499 | %attr(755,root,root) %{_libdir}/opensips/modules/nathelper.so | |
500 | %attr(755,root,root) %{_libdir}/opensips/modules/options.so | |
91565b21 JK |
501 | %attr(755,root,root) %{_libdir}/opensips/modules/path.so |
502 | %attr(755,root,root) %{_libdir}/opensips/modules/pdt.so | |
bb55e231 | 503 | %attr(755,root,root) %{_libdir}/opensips/modules/peering.so |
91565b21 JK |
504 | %attr(755,root,root) %{_libdir}/opensips/modules/permissions.so |
505 | %attr(755,root,root) %{_libdir}/opensips/modules/pike.so | |
5a482e4a | 506 | %attr(755,root,root) %{_libdir}/opensips/modules/pi_http.so |
91565b21 | 507 | %attr(755,root,root) %{_libdir}/opensips/modules/presence.so |
bb55e231 | 508 | %attr(755,root,root) %{_libdir}/opensips/modules/presence_callinfo.so |
d186c54b | 509 | %attr(755,root,root) %{_libdir}/opensips/modules/presence_dialoginfo.so |
91565b21 | 510 | %attr(755,root,root) %{_libdir}/opensips/modules/presence_mwi.so |
d186c54b | 511 | %attr(755,root,root) %{_libdir}/opensips/modules/presence_xcapdiff.so |
91565b21 | 512 | %attr(755,root,root) %{_libdir}/opensips/modules/presence_xml.so |
5a482e4a MM |
513 | %attr(755,root,root) %{_libdir}/opensips/modules/proto_sctp.so |
514 | %attr(755,root,root) %{_libdir}/opensips/modules/proto_tls.so | |
515 | %attr(755,root,root) %{_libdir}/opensips/modules/proto_ws.so | |
91565b21 JK |
516 | %attr(755,root,root) %{_libdir}/opensips/modules/pua.so |
517 | %attr(755,root,root) %{_libdir}/opensips/modules/pua_bla.so | |
d186c54b | 518 | %attr(755,root,root) %{_libdir}/opensips/modules/pua_dialoginfo.so |
91565b21 JK |
519 | %attr(755,root,root) %{_libdir}/opensips/modules/pua_mi.so |
520 | %attr(755,root,root) %{_libdir}/opensips/modules/pua_usrloc.so | |
210f5757 | 521 | %attr(755,root,root) %{_libdir}/opensips/modules/python.so |
d186c54b | 522 | %attr(755,root,root) %{_libdir}/opensips/modules/qos.so |
91565b21 | 523 | %attr(755,root,root) %{_libdir}/opensips/modules/ratelimit.so |
d186c54b | 524 | %attr(755,root,root) %{_libdir}/opensips/modules/regex.so |
91565b21 | 525 | %attr(755,root,root) %{_libdir}/opensips/modules/registrar.so |
5a482e4a | 526 | %attr(755,root,root) %{_libdir}/opensips/modules/rest_client.so |
91565b21 JK |
527 | %attr(755,root,root) %{_libdir}/opensips/modules/rls.so |
528 | %attr(755,root,root) %{_libdir}/opensips/modules/rr.so | |
5a482e4a | 529 | %attr(755,root,root) %{_libdir}/opensips/modules/rtpengine.so |
210f5757 | 530 | %attr(755,root,root) %{_libdir}/opensips/modules/rtpproxy.so |
91565b21 | 531 | %attr(755,root,root) %{_libdir}/opensips/modules/seas.so |
5a482e4a | 532 | %attr(755,root,root) %{_libdir}/opensips/modules/script_helper.so |
d186c54b | 533 | %attr(755,root,root) %{_libdir}/opensips/modules/signaling.so |
b229b45a JK |
534 | %attr(755,root,root) %{_libdir}/opensips/modules/sipcapture.so |
535 | %attr(755,root,root) %{_libdir}/opensips/modules/sipmsgops.so | |
91565b21 JK |
536 | %attr(755,root,root) %{_libdir}/opensips/modules/siptrace.so |
537 | %attr(755,root,root) %{_libdir}/opensips/modules/sl.so | |
538 | %attr(755,root,root) %{_libdir}/opensips/modules/sms.so | |
539 | %attr(755,root,root) %{_libdir}/opensips/modules/speeddial.so | |
540 | %attr(755,root,root) %{_libdir}/opensips/modules/sst.so | |
541 | %attr(755,root,root) %{_libdir}/opensips/modules/statistics.so | |
bb55e231 | 542 | %attr(755,root,root) %{_libdir}/opensips/modules/stun.so |
91565b21 | 543 | %attr(755,root,root) %{_libdir}/opensips/modules/textops.so |
91565b21 | 544 | %attr(755,root,root) %{_libdir}/opensips/modules/tm.so |
5a482e4a | 545 | %attr(755,root,root) %{_libdir}/opensips/modules/topology_hiding.so |
91565b21 | 546 | %attr(755,root,root) %{_libdir}/opensips/modules/uac.so |
210f5757 | 547 | %attr(755,root,root) %{_libdir}/opensips/modules/uac_auth.so |
91565b21 | 548 | %attr(755,root,root) %{_libdir}/opensips/modules/uac_redirect.so |
210f5757 | 549 | %attr(755,root,root) %{_libdir}/opensips/modules/uac_registrant.so |
91565b21 | 550 | %attr(755,root,root) %{_libdir}/opensips/modules/uri.so |
91565b21 JK |
551 | %attr(755,root,root) %{_libdir}/opensips/modules/userblacklist.so |
552 | %attr(755,root,root) %{_libdir}/opensips/modules/usrloc.so | |
5a482e4a | 553 | %attr(755,root,root) %{_libdir}/opensips/modules/xcap.so |
91565b21 | 554 | %attr(755,root,root) %{_libdir}/opensips/modules/xcap_client.so |
91565b21 JK |
555 | %dir %{_datadir}/%{name} |
556 | %{_datadir}/%{name}/db_berkeley | |
557 | %{_datadir}/%{name}/dbtext | |
b229b45a | 558 | %{_datadir}/%{name}/menuconfig_templates |
f274b6d5 | 559 | %{_datadir}/%{name}/pi_http |
91565b21 JK |
560 | %{_mandir}/man*/* |
561 | ||
562 | %files xmpp | |
563 | %defattr(644,root,root,755) | |
564 | %attr(755,root,root) %{_libdir}/opensips/modules/jabber.so | |
565 | %attr(755,root,root) %{_libdir}/opensips/modules/xmpp.so | |
566 | %attr(755,root,root) %{_libdir}/opensips/modules/pua_xmpp.so | |
567 | ||
568 | %if %{with mysql} | |
569 | %files mysql | |
570 | %defattr(644,root,root,755) | |
571 | %attr(755,root,root) %{_libdir}/opensips/modules/db_mysql.so | |
572 | %{_datadir}/%{name}/mysql | |
573 | %endif | |
574 | ||
575 | %if %{with pgsql} | |
576 | %files postgres | |
577 | %defattr(644,root,root,755) | |
578 | %attr(755,root,root) %{_libdir}/opensips/modules/db_postgres.so | |
579 | %{_datadir}/%{name}/postgres | |
580 | %endif | |
581 | ||
bb55e231 MM |
582 | %if %{with json} |
583 | %files json | |
584 | %defattr(644,root,root,755) | |
585 | %attr(755,root,root) %{_libdir}/opensips/modules/json.so | |
586 | %endif | |
587 | ||
588 | %if %{with memcached} | |
589 | %files memcached | |
590 | %defattr(644,root,root,755) | |
b229b45a | 591 | %attr(755,root,root) %{_libdir}/opensips/modules/cachedb_memcached.so |
bb55e231 MM |
592 | %endif |
593 | ||
91565b21 JK |
594 | %if %{with radius} |
595 | %files radius | |
596 | %defattr(644,root,root,755) | |
d186c54b | 597 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/dictionary.opensips |
bb55e231 | 598 | %attr(755,root,root) %{_libdir}/opensips/modules/aaa_radius.so |
91565b21 JK |
599 | %endif |
600 | ||
601 | %if %{with odbc} | |
602 | %files odbc | |
603 | %defattr(644,root,root,755) | |
604 | %attr(755,root,root) %{_libdir}/opensips/modules/db_unixodbc.so | |
605 | %endif | |
606 | ||
d186c54b JK |
607 | %if %{with geoip} |
608 | %files mmgeoip | |
609 | %defattr(644,root,root,755) | |
610 | %attr(755,root,root) %{_libdir}/opensips/modules/mmgeoip.so | |
611 | %endif | |
612 | ||
613 | %if %{with ldap} | |
614 | %files ldap | |
615 | %defattr(644,root,root,755) | |
616 | %attr(755,root,root) %{_libdir}/opensips/modules/h350.so | |
617 | %attr(755,root,root) %{_libdir}/opensips/modules/ldap.so | |
618 | %endif | |
619 | ||
620 | %if %{with carrierroute} | |
621 | %files carrierroute | |
622 | %defattr(644,root,root,755) | |
623 | %attr(755,root,root) %{_libdir}/opensips/modules/carrierroute.so | |
624 | %endif | |
625 | ||
626 | %if %{with osp} | |
627 | %files osp | |
628 | %defattr(644,root,root,755) | |
629 | %attr(755,root,root) %{_libdir}/opensips/modules/osp.so | |
630 | %endif | |
631 | ||
91565b21 JK |
632 | %files snmpstats |
633 | %defattr(644,root,root,755) | |
634 | %attr(755,root,root) %{_libdir}/opensips/modules/snmpstats.so | |
635 | ||
636 | %files perl | |
637 | %defattr(644,root,root,755) | |
5a482e4a | 638 | %attr(755,root,root) %{_libdir}/opensips/modules/db_perlvdb.so |
91565b21 | 639 | %attr(755,root,root) %{_libdir}/opensips/modules/perl.so |
91565b21 | 640 | |
b3ea057a | 641 | %files -n mibs-%{name} |
91565b21 | 642 | %defattr(644,root,root,755) |
b3ea057a | 643 | %{_datadir}/mibs/* |
b229b45a JK |
644 | |
645 | %if %{with redis} | |
646 | %files redis | |
647 | %defattr(644,root,root,755) | |
648 | %attr(755,root,root) %{_libdir}/opensips/modules/cachedb_redis.so | |
649 | %endif | |
650 | ||
651 | %if %{with microhttpd} | |
652 | %files httpd | |
653 | %defattr(644,root,root,755) | |
654 | %attr(755,root,root) %{_libdir}/opensips/modules/httpd.so | |
655 | %attr(755,root,root) %{_libdir}/opensips/modules/mi_http.so | |
656 | %endif |