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