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