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