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