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