]>
Commit | Line | Data |
---|---|---|
91565b21 JK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without mysql # mysql support | |
4 | %bcond_without pgsql # PostgreSQL support | |
1385cae0 | 5 | %bcond_without sqlite # Sqlite3 support |
91565b21 JK |
6 | %bcond_without odbc # ODBC support |
7 | %bcond_without radius # radius support | |
39033727 | 8 | %bcond_without carrierroute # carrierroute support |
e12422e8 | 9 | %bcond_without ldap # LDAP support |
91565b21 | 10 | %bcond_with osp # ETSI OSP VoIP Peering support |
d186c54b | 11 | %bcond_without geoip # GeoIP |
bb55e231 MM |
12 | %bcond_without json # json support |
13 | %bcond_without memcached # memcached support | |
b229b45a JK |
14 | %bcond_without microhttpd # httpd support |
15 | %bcond_without redis # Redis support | |
8ef526a2 | 16 | %bcond_with couchbase # couchbase support |
e9d1362e | 17 | %bcond_with mongodb # mongodb support |
5a482e4a | 18 | %bcond_with sngtc # Sangoma transcoding module support |
1385cae0 | 19 | %bcond_without rabbitmq # Rabbit MQ support |
b3ea057a | 20 | |
91565b21 | 21 | Summary: SIP proxy, redirect and registrar server |
8533d516 | 22 | Summary(pl.UTF-8): Serwer SIP przekazujący (proxy), przekierowujący i rejestrujący |
91565b21 | 23 | Name: opensips |
1385cae0 | 24 | Version: 2.4.0 |
71fd1a37 | 25 | Release: 7 |
91565b21 JK |
26 | License: GPL v2 |
27 | Group: Networking/Daemons | |
8533d516 | 28 | Source0: http://opensips.org/pub/opensips/%{version}/%{name}-%{version}.tar.gz |
1385cae0 | 29 | # Source0-md5: 0aafe11a30d9724784922667fb98b303 |
91565b21 JK |
30 | Source1: %{name}.init |
31 | Source2: %{name}.sysconfig | |
3a565fc3 | 32 | Source3: %{name}.service |
f274b6d5 JR |
33 | Patch0: x32.patch |
34 | Patch1: make.patch | |
427b8fed | 35 | Patch2: json-c-0.14.patch |
91565b21 | 36 | URL: http://www.opensips.org/ |
d186c54b | 37 | %{?with_geoip:BuildRequires: GeoIP-devel} |
91565b21 | 38 | %{?with_osp:BuildRequires: OSPToolkit} |
1385cae0 | 39 | %{?with_sngtc:BuildRequires: TODO-SNGTC-BRs} |
91565b21 | 40 | BuildRequires: bison |
b3ea057a | 41 | BuildRequires: curl-devel |
91565b21 JK |
42 | BuildRequires: expat-devel |
43 | BuildRequires: flex | |
b229b45a | 44 | %{?with_redis:BuildRequires: hiredis-devel} |
bb55e231 | 45 | %{?with_json:BuildRequires: json-c-devel} |
39033727 | 46 | %{?with_carrierroute:BuildRequires: libconfuse-devel} |
1385cae0 | 47 | %{?with_couchbase:BuildRequires: libcouchbase-devel} |
bb55e231 | 48 | %{?with_memcached:BuildRequires: libmemcached-devel} |
395b4eda | 49 | %{?with_microhttpd:BuildRequires: libmicrohttpd-devel} |
5a482e4a | 50 | %{?with_mongodb:BuildRequires: libmongo-client-devel} |
91565b21 | 51 | %{?with_pgsql:BuildRequires: libpqxx-devel} |
f124c287 | 52 | BuildRequires: libsctp-devel |
d410466d | 53 | BuildRequires: libuuid-devel |
91565b21 | 54 | BuildRequires: libxml2-devel |
7a62a277 | 55 | BuildRequires: libxslt-progs |
56 | #BuildRequires: lynx | |
91565b21 JK |
57 | %{?with_mysql:BuildRequires: mysql-devel} |
58 | BuildRequires: net-snmp-devel | |
e12422e8 | 59 | %{?with_ldap:BuildRequires: openldap-devel} |
91565b21 | 60 | BuildRequires: openssl-devel |
7a62a277 | 61 | BuildRequires: pcre-devel |
91565b21 | 62 | BuildRequires: perl-devel |
7a62a277 | 63 | BuildRequires: perl-tools-devel |
1385cae0 | 64 | %{?with_rabbitmq:BuildRequires: rabbitmq-c-devel} |
91565b21 | 65 | %{?with_radius:BuildRequires: radiusclient-ng-devel} |
7a62a277 | 66 | BuildRequires: rpm-pythonprov |
3a565fc3 | 67 | BuildRequires: rpmbuild(macros) >= 1.671 |
1385cae0 | 68 | %{?with_sqlite:BuildRequires: sqlite3-devel} |
7a62a277 | 69 | #BuildRequires: subversion |
91565b21 | 70 | %{?with_odbc:BuildRequires: unixODBC-devel} |
7a62a277 | 71 | BuildRequires: which |
91565b21 JK |
72 | #BuildRequires: xmlrpc-c-devel >= 1.10.0 |
73 | BuildRequires: zlib-devel | |
74 | Requires(post,preun): /sbin/chkconfig | |
75 | Requires: rc-scripts | |
3a565fc3 | 76 | Requires: systemd-units >= 38 |
cee7c8ca | 77 | Suggests: python-modules |
91565b21 JK |
78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
79 | ||
80 | # mi_xmlrpc requires xmlrpc-c-devel in version 1.9 only | |
b229b45a JK |
81 | # cachedb_cassandra requires 'protocol/TBinaryProtocol.h' |
82 | # lua: lua.h | |
1385cae0 | 83 | %define exclude_modules mi_xmlrpc db_oracle cachedb_cassandra lua |
91565b21 JK |
84 | |
85 | %description | |
86 | OpenSIPS (Open SIP Server) is a mature Open Source implementation of a | |
87 | SIP server. OpenSIPS is more than a SIP proxy/router as it includes | |
88 | application-level functionalities. OpenSIPS, as a SIP server, is the | |
89 | core component of any SIP-based VoIP solution. With a very flexible | |
90 | and customizable routing engine, OpenSIPS 'unifies voice, video, IM | |
91 | and presence services in a highly efficient way, thanks to its | |
92 | scalable (modular) design. | |
93 | ||
8533d516 JB |
94 | %description -l pl.UTF-8 |
95 | OpenSIPS (Open SIP Server) to dojrzała, mająca otwarte źródła | |
96 | implementacja serwera SIP. OpenSIPS to więcej niż proxy/router SIP, | |
97 | jako że zawiera funkcje na poziomie aplikacji. OpenSIPS, jako serwer | |
98 | SIP, jest głównym składnikiem dowolnego rozwiązania VoIP opartego na | |
99 | SIP. Z bardzo elastycznym i konfigurowalnym silnikiem trasującym, | |
100 | łączy usługi głosowe, wideo, komunikatorów oraz obecności w bardzo | |
101 | wydajny sposób, dzięki skalowalnej, modularnej budowie. | |
102 | ||
91565b21 JK |
103 | %package mysql |
104 | Summary: openSIPS MySQL module | |
105 | Summary(pl.UTF-8): Moduł MySQL do openSIPS | |
106 | Group: Networking/Daemons | |
107 | Requires: %{name} = %{version}-%{release} | |
108 | ||
109 | %description mysql | |
110 | MySQL module for openSIPS. | |
111 | ||
112 | %description mysql -l pl.UTF-8 | |
113 | Moduł MySQL do openSIPS. | |
114 | ||
115 | %package postgres | |
116 | Summary: openSIPS PostgreSQL module | |
117 | Summary(pl.UTF-8): Moduł PostgreSQL do openSIPS | |
118 | Group: Networking/Daemons | |
119 | Requires: %{name} = %{version}-%{release} | |
120 | ||
121 | %description postgres | |
122 | PostgreSQL module for openSIPS. | |
123 | ||
124 | %description postgres -l pl.UTF-8 | |
125 | Moduł PostgreSQL do openSIPS. | |
126 | ||
1385cae0 JR |
127 | %package sqlite3 |
128 | Summary: openSIPS Sqlite3 module | |
129 | Summary(pl.UTF-8): Moduł Sqlite3 do openSIPS | |
130 | Group: Networking/Daemons | |
131 | Requires: %{name} = %{version}-%{release} | |
132 | ||
133 | %description sqlite3 | |
134 | Sqlite3 module for openSIPS. | |
135 | ||
136 | %description sqlite3 -l pl.UTF-8 | |
137 | Moduł Sqlite3 do openSIPS. | |
138 | ||
bb55e231 MM |
139 | %package json |
140 | Summary: openSIPS JSON module | |
141 | Summary(pl.UTF-8): Moduł JSON do openSIPS | |
142 | Group: Networking/Daemons | |
143 | Requires: %{name} = %{version}-%{release} | |
144 | ||
145 | %description json | |
146 | JSON module for openSIPS. | |
147 | ||
148 | %description json -l pl.UTF-8 | |
149 | Moduł JSON do openSIPS. | |
150 | ||
1385cae0 JR |
151 | %package cgrates |
152 | Summary: openSIPS CGRateS module | |
153 | Summary(pl.UTF-8): Moduł CGRateS do openSIPS | |
154 | Group: Networking/Daemons | |
155 | Requires: %{name} = %{version}-%{release} | |
156 | ||
157 | %description cgrates | |
158 | CGRateS module for openSIPS. | |
159 | ||
160 | %description cgrates -l pl.UTF-8 | |
161 | Moduł CGRateS do openSIPS. | |
162 | ||
bb55e231 MM |
163 | %package memcached |
164 | Summary: openSIPS memcached module | |
165 | Summary(pl.UTF-8): Moduł memcached do openSIPS | |
166 | Group: Networking/Daemons | |
167 | Requires: %{name} = %{version}-%{release} | |
168 | ||
169 | %description memcached | |
170 | Memcached module for openSIPS. | |
171 | ||
172 | %description memcached -l pl.UTF-8 | |
173 | Moduł memcached do openSIPS. | |
174 | ||
91565b21 JK |
175 | %package radius |
176 | Summary: openSIPS Radius module | |
177 | Summary(pl.UTF-8): Moduł Radius do openSIPS | |
178 | Group: Networking/Daemons | |
179 | Requires: %{name} = %{version}-%{release} | |
180 | ||
181 | %description radius | |
182 | Radius module for openSIPS. | |
183 | ||
184 | %description radius -l pl.UTF-8 | |
185 | Moduł Radius do openSIPS. | |
186 | ||
187 | %package odbc | |
188 | Summary: openSIPS ODBC module | |
189 | Summary(pl.UTF-8): Moduł ODBC do openSIPS | |
190 | Group: Networking/Daemons | |
191 | Requires: %{name} = %{version}-%{release} | |
192 | ||
193 | %description odbc | |
194 | ODBC module for openSIPS. | |
195 | ||
196 | %description odbc -l pl.UTF-8 | |
197 | Moduł ODBC do openSIPS. | |
198 | ||
199 | %package perl | |
200 | Summary: openSIPS perl and perlvdb modules | |
201 | Summary(pl.UTF-8): Moduły perl i perlvdb do openSIPS | |
202 | Group: Networking/Daemons | |
203 | Requires: %{name} = %{version}-%{release} | |
204 | ||
205 | %description perl | |
206 | Perl modules (perl & perlvdb) for openSIPS. | |
207 | ||
208 | %description perl -l pl.UTF-8 | |
209 | Moduły perl i perlvdb do openSIPS. | |
210 | ||
211 | %package xmpp | |
212 | Summary: openSIPS XMPP/Jabber modules | |
213 | Summary(pl.UTF-8): Moduły XMPP/Jabber do openSIPS | |
214 | Group: Networking/Daemons | |
215 | Requires: %{name} = %{version}-%{release} | |
216 | Obsoletes: opensips-jabber | |
217 | ||
218 | %description xmpp | |
219 | XMPP/Jabber modules for openSIPS. | |
220 | ||
221 | %description xmpp -l pl.UTF-8 | |
222 | Moduły XMPP/Jabber do openSIPS. | |
223 | ||
d186c54b JK |
224 | %package ldap |
225 | Summary: openSIPS LDAP and H350 modules | |
226 | Summary(pl.UTF-8): Moduły LDAP i H350 do openSIPS | |
227 | Group: Networking/Daemons | |
228 | Requires: %{name} = %{version}-%{release} | |
229 | ||
230 | %description ldap | |
b3ea057a | 231 | LDAP and H350 modules for openSIPS. |
d186c54b JK |
232 | |
233 | %description ldap -l pl.UTF-8 | |
234 | Moduły LDAP i H350 do openSIPS. | |
235 | ||
236 | %package carrierroute | |
237 | Summary: openSIPS Carrierroute module | |
238 | Summary(pl.UTF-8): Moduł Carrierroute do openSIPS | |
239 | Group: Networking/Daemons | |
240 | Requires: %{name} = %{version}-%{release} | |
241 | ||
242 | %description carrierroute | |
243 | Carrierroute module for openSIPS. | |
244 | ||
245 | %description carrierroute -l pl.UTF-8 | |
246 | Moduł Carrierroute do openSIPS. | |
247 | ||
248 | %package osp | |
249 | Summary: openSIPS OSP module | |
250 | Summary(pl.UTF-8): Moduł OSP do openSIPS | |
251 | Group: Networking/Daemons | |
252 | Requires: %{name} = %{version}-%{release} | |
253 | ||
254 | %description osp | |
255 | OSP module for openSIPS. | |
256 | ||
257 | %description osp -l pl.UTF-8 | |
258 | Moduł OSP do openSIPS. | |
259 | ||
260 | %package mmgeoip | |
261 | Summary: openSIPS MaxMind GeoIP module | |
262 | Summary(pl.UTF-8): Moduł MaxMind GeoIP do openSIPS | |
263 | Group: Networking/Daemons | |
264 | Requires: %{name} = %{version}-%{release} | |
265 | ||
266 | %description mmgeoip | |
267 | MaxMind GeoIP module for openSIPS. | |
268 | ||
269 | %description mmgeoip -l pl.UTF-8 | |
270 | Moduł MaxMind GeoIP do openSIPS. | |
271 | ||
91565b21 JK |
272 | %package snmpstats |
273 | Summary: openSIPS SNMP statistics module | |
274 | Summary(pl.UTF-8): Moduł do statystyk SNMP do openSIPS | |
275 | Group: Networking/Daemons | |
276 | Requires: %{name} = %{version}-%{release} | |
277 | ||
278 | %description snmpstats | |
279 | openSIPS SNMP statistics module. | |
280 | ||
281 | %description snmpstats -l pl.UTF-8 | |
282 | Moduł do statystyk SNMP do openSIPS. | |
283 | ||
b3ea057a | 284 | %package -n mibs-%{name} |
91565b21 JK |
285 | Summary: MIBs for openSIPS |
286 | Summary(pl.UTF-8): MIB-y dla openSIPS | |
287 | Group: Applications/System | |
b3ea057a | 288 | Requires: mibs-dirs |
96b7d304 | 289 | Requires: mibs-net-snmp |
b3ea057a | 290 | Obsoletes: opensips-mibs |
91565b21 | 291 | |
b3ea057a | 292 | %description -n mibs-%{name} |
91565b21 JK |
293 | MIBs for openSIPS. |
294 | ||
b3ea057a | 295 | %description -n mibs-%{name} -l pl.UTF-8 |
91565b21 JK |
296 | MIB-y dla openSIPS. |
297 | ||
b229b45a JK |
298 | %package redis |
299 | Summary: Redis interface for openSIPS | |
300 | Summary(pl.UTF-8): Moduł Redis do openSIPS | |
301 | Group: Networking/Daemons | |
302 | Requires: %{name} = %{version}-%{release} | |
303 | ||
304 | %description redis | |
305 | Redis interface for openSIPS. | |
306 | ||
307 | %description redis -l pl.UTF-8 | |
308 | Moduł Redis do openSIPS. | |
309 | ||
310 | %package httpd | |
311 | Summary: HTTP interface to openSIPS | |
312 | Summary(pl.UTF-8): Interfejs HTTP do openSIPS | |
313 | Group: Networking/Daemons | |
314 | Requires: %{name} = %{version}-%{release} | |
315 | ||
316 | %description httpd | |
317 | HTTP interface to openSIPS. | |
318 | ||
319 | %description httpd -l pl.UTF-8 | |
320 | Interfejs HTTP do openSIPS. | |
321 | ||
1385cae0 JR |
322 | %package rabbitmq |
323 | Summary: RabbitMQ interface to openSIPS | |
324 | Summary(pl.UTF-8): Interfejs RabbitMQ do openSIPS | |
325 | Group: Networking/Daemons | |
326 | Requires: %{name} = %{version}-%{release} | |
327 | ||
328 | %description rabbitmq | |
329 | RabbitMQ interface to openSIPS. | |
330 | ||
331 | %description rabbitmq -l pl.UTF-8 | |
332 | Interfejs RabbitMQ do openSIPS. | |
333 | ||
91565b21 | 334 | %prep |
5a482e4a | 335 | %setup -q |
f274b6d5 JR |
336 | %patch0 -p1 |
337 | %patch1 -p1 | |
427b8fed | 338 | %patch2 -p1 |
91565b21 | 339 | |
3463c3dc JR |
340 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \ |
341 | scripts/dbtextdb/dbtextdb.py | |
342 | ||
91565b21 JK |
343 | %build |
344 | exclude_modules="%{exclude_modules}" | |
b229b45a JK |
345 | %if %{without redis} |
346 | exclude_modules="$exclude_modules cachedb_redis" | |
347 | %endif | |
e12422e8 JK |
348 | %if %{without ldap} |
349 | exclude_modules="$exclude_modules h350 ldap" | |
350 | %endif | |
39033727 JK |
351 | %if %{without carrierroute} |
352 | exclude_modules="$exclude_modules carrierroute" | |
353 | %endif | |
91565b21 JK |
354 | %if %{without osp} |
355 | exclude_modules="$exclude_modules osp" | |
356 | %endif | |
b229b45a JK |
357 | %if %{without microhttpd} |
358 | exclude_modules="$exclude_modules httpd" | |
359 | %endif | |
91565b21 | 360 | %if %{without mysql} |
e151e7fa | 361 | exclude_modules="$exclude_modules db_mysql" |
91565b21 JK |
362 | %endif |
363 | %if %{without pgsql} | |
e151e7fa | 364 | exclude_modules="$exclude_modules db_postgres" |
91565b21 | 365 | %endif |
1385cae0 JR |
366 | %if %{without sqlite} |
367 | exclude_modules="$exclude_modules db_sqlite" | |
368 | %endif | |
91565b21 | 369 | %if %{without odbc} |
e151e7fa | 370 | exclude_modules="$exclude_modules db_unixodbc" |
91565b21 | 371 | %endif |
d186c54b JK |
372 | %if %{without geoip} |
373 | exclude_modules="$exclude_modules mmgeoip" | |
374 | %endif | |
91565b21 | 375 | %if %{without radius} |
bb55e231 MM |
376 | exclude_modules="$exclude_modules aaa_radius" |
377 | %endif | |
378 | %if %{without json} | |
379 | exclude_modules="$exclude_modules json" | |
1385cae0 | 380 | exclude_modules="$exclude_modules cgrates" |
bb55e231 MM |
381 | %endif |
382 | %if %{without memcached} | |
57aba727 | 383 | exclude_modules="$exclude_modules cachedb_memcached" |
91565b21 | 384 | %endif |
5a482e4a MM |
385 | %if %{without couchbase} |
386 | exclude_modules="$exclude_modules cachedb_couchbase" | |
387 | %endif | |
388 | %if %{without mongodb} | |
389 | exclude_modules="$exclude_modules cachedb_mongodb" | |
390 | %endif | |
391 | %if %{without sngtc} | |
392 | exclude_modules="$exclude_modules sngtc" | |
393 | %endif | |
1385cae0 JR |
394 | %if %{without rabbitmq} |
395 | exclude_modules="$exclude_modules rabbitmq" | |
396 | %endif | |
91565b21 | 397 | echo "$exclude_modules" > exclude_modules |
8533d516 | 398 | LDFLAGS="%{rpmldflags}" \ |
91565b21 | 399 | %{__make} all \ |
a2934690 | 400 | Q= \ |
91565b21 | 401 | exclude_modules="$exclude_modules" \ |
f274b6d5 JR |
402 | prefix=%{_prefix} \ |
403 | PREFIX=%{_prefix} \ | |
404 | LIBDIR=%{_lib} \ | |
d410466d | 405 | cfg_prefix=$RPM_BUILD_ROOT \ |
d9974d19 JR |
406 | cfg_target=%{_sysconfdir}/opensips/ \ |
407 | RADIUSCLIENT=RADIUSCLIENT \ | |
91565b21 | 408 | CC="%{__cc}" \ |
a2934690 | 409 | CC_EXTRA_OPTS="-I/usr/include/ncurses" \ |
e10550a7 | 410 | CFLAGS="%{rpmcflags} -Wcast-align" |
91565b21 JK |
411 | |
412 | %install | |
413 | rm -rf $RPM_BUILD_ROOT | |
3a565fc3 JK |
414 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/{ser,sysconfig,rc.d/init.d} \ |
415 | -d $RPM_BUILD_ROOT%{systemdunitdir} | |
91565b21 JK |
416 | |
417 | exclude_modules="$(cat exclude_modules)" | |
b713461a | 418 | %{__make} install -j1 \ |
a2934690 | 419 | Q= \ |
91565b21 | 420 | exclude_modules="$exclude_modules" \ |
f274b6d5 JR |
421 | prefix=%{_prefix} \ |
422 | PREFIX=%{_prefix} \ | |
423 | LIBDIR=%{_lib} \ | |
424 | BASEDIR=$RPM_BUILD_ROOT \ | |
d410466d JR |
425 | cfg_prefix=$RPM_BUILD_ROOT \ |
426 | cfg_target=%{_sysconfdir}/opensips/ \ | |
b3ea057a | 427 | INSTALLMIBDIR=$RPM_BUILD_ROOT%{_datadir}/mibs |
91565b21 JK |
428 | |
429 | for i in modules/*; do \ | |
430 | i=$(basename $i) | |
431 | [ -f modules/$i/README ] && cp -f modules/$i/README README.$i; \ | |
432 | done | |
433 | ||
e257f07a | 434 | # contains the same files we install in %doc |
551f7076 | 435 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
91565b21 JK |
436 | |
437 | #cd doc/serdev | |
438 | #docbook2html serdev.sgml | |
439 | #rm -f serdev.sgml | |
440 | #cd ../seruser | |
441 | #docbook2html seruser.sgml | |
442 | #rm -f seruser.sgml | |
443 | #cd ../.. | |
444 | ||
1385cae0 JR |
445 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/opensips |
446 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/opensips | |
447 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/opensips.service | |
91565b21 JK |
448 | |
449 | %clean | |
450 | rm -rf $RPM_BUILD_ROOT | |
451 | ||
452 | %post | |
453 | /sbin/chkconfig --add opensips | |
b3ea057a | 454 | %service opensips restart "SIP Daemon" |
3a565fc3 | 455 | %systemd_post opensips.service |
91565b21 JK |
456 | |
457 | %preun | |
3a565fc3 | 458 | %systemd_preun opensips.service |
91565b21 JK |
459 | if [ "$1" = "0" ]; then |
460 | %service opensips stop | |
461 | /sbin/chkconfig --del opensips | |
462 | fi | |
463 | ||
3a565fc3 JK |
464 | %postun |
465 | %systemd_reload | |
466 | ||
467 | %triggerpostun -- %{name} < 2.1.0-0.2 | |
468 | %systemd_trigger opensips.service | |
469 | ||
91565b21 JK |
470 | %files |
471 | %defattr(644,root,root,755) | |
e257f07a | 472 | %doc README* AUTHORS CREDITS ChangeLog INSTALL NEWS scripts examples |
91565b21 JK |
473 | %attr(755,root,root) %{_sbindir}/* |
474 | %dir %{_sysconfdir}/opensips | |
475 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/opensips.cfg | |
476 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/opensipsctlrc | |
d186c54b | 477 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/osipsconsolerc |
f274b6d5 JR |
478 | %dir %attr(700,root,root) %{_sysconfdir}/opensips/tls |
479 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/README | |
480 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/ca.conf | |
481 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/request.conf | |
482 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/user.conf | |
483 | %dir %attr(700,root,root) %{_sysconfdir}/opensips/tls/rootCA | |
484 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/rootCA/cacert.pem | |
485 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/rootCA/index.txt | |
486 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/rootCA/serial | |
487 | %dir %attr(700,root,root) %{_sysconfdir}/opensips/tls/rootCA/certs | |
488 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/rootCA/certs/01.pem | |
489 | %dir %attr(700,root,root) %{_sysconfdir}/opensips/tls/rootCA/private | |
490 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/rootCA/private/cakey.pem | |
491 | %dir %attr(700,root,root) %{_sysconfdir}/opensips/tls/user | |
492 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/user/user-calist.pem | |
493 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/user/user-cert.pem | |
494 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/user/user-cert_req.pem | |
495 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/tls/user/user-privkey.pem | |
91565b21 JK |
496 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/opensips |
497 | %attr(754,root,root) /etc/rc.d/init.d/opensips | |
3a565fc3 | 498 | %{systemdunitdir}/opensips.service |
91565b21 | 499 | %dir %{_libdir}/opensips |
cee7c8ca JK |
500 | %dir %{_libdir}/opensips/opensipsctl |
501 | %{_libdir}/opensips/opensipsctl/*.* | |
502 | %dir %{_libdir}/opensips/opensipsctl/dbtextdb | |
503 | %attr(755,root,root) %{_libdir}/opensips/opensipsctl/dbtextdb/dbtextdb.py | |
91565b21 JK |
504 | %dir %{_libdir}/opensips/modules |
505 | # explict list here, no globs please (to avoid mistakes) | |
506 | %attr(755,root,root) %{_libdir}/opensips/modules/acc.so | |
507 | %attr(755,root,root) %{_libdir}/opensips/modules/alias_db.so | |
bb55e231 | 508 | %attr(755,root,root) %{_libdir}/opensips/modules/auth_aaa.so |
91565b21 | 509 | %attr(755,root,root) %{_libdir}/opensips/modules/auth_db.so |
1385cae0 | 510 | %attr(755,root,root) %{_libdir}/opensips/modules/auth.so |
91565b21 | 511 | %attr(755,root,root) %{_libdir}/opensips/modules/avpops.so |
bb55e231 MM |
512 | %attr(755,root,root) %{_libdir}/opensips/modules/b2b_entities.so |
513 | %attr(755,root,root) %{_libdir}/opensips/modules/b2b_logic.so | |
5a482e4a | 514 | %attr(755,root,root) %{_libdir}/opensips/modules/b2b_sca.so |
91565b21 | 515 | %attr(755,root,root) %{_libdir}/opensips/modules/benchmark.so |
b229b45a | 516 | %attr(755,root,root) %{_libdir}/opensips/modules/cachedb_local.so |
5a482e4a MM |
517 | %attr(755,root,root) %{_libdir}/opensips/modules/cachedb_sql.so |
518 | %attr(755,root,root) %{_libdir}/opensips/modules/call_center.so | |
d186c54b | 519 | %attr(755,root,root) %{_libdir}/opensips/modules/call_control.so |
91565b21 | 520 | %attr(755,root,root) %{_libdir}/opensips/modules/cfgutils.so |
1385cae0 JR |
521 | %attr(755,root,root) %{_libdir}/opensips/modules/clusterer.so |
522 | %attr(755,root,root) %{_libdir}/opensips/modules/compression.so | |
523 | %attr(755,root,root) %{_libdir}/opensips/modules/cpl_c.so | |
91565b21 | 524 | %attr(755,root,root) %{_libdir}/opensips/modules/db_berkeley.so |
5a482e4a | 525 | %attr(755,root,root) %{_libdir}/opensips/modules/db_cachedb.so |
91565b21 | 526 | %attr(755,root,root) %{_libdir}/opensips/modules/db_flatstore.so |
bb55e231 | 527 | %attr(755,root,root) %{_libdir}/opensips/modules/db_http.so |
91565b21 | 528 | %attr(755,root,root) %{_libdir}/opensips/modules/db_text.so |
bb55e231 | 529 | %attr(755,root,root) %{_libdir}/opensips/modules/db_virtual.so |
91565b21 JK |
530 | %attr(755,root,root) %{_libdir}/opensips/modules/dialog.so |
531 | %attr(755,root,root) %{_libdir}/opensips/modules/dialplan.so | |
532 | %attr(755,root,root) %{_libdir}/opensips/modules/dispatcher.so | |
533 | %attr(755,root,root) %{_libdir}/opensips/modules/diversion.so | |
b229b45a | 534 | %attr(755,root,root) %{_libdir}/opensips/modules/dns_cache.so |
91565b21 | 535 | %attr(755,root,root) %{_libdir}/opensips/modules/domainpolicy.so |
1385cae0 | 536 | %attr(755,root,root) %{_libdir}/opensips/modules/domain.so |
d186c54b | 537 | %attr(755,root,root) %{_libdir}/opensips/modules/drouting.so |
5a482e4a | 538 | %attr(755,root,root) %{_libdir}/opensips/modules/emergency.so |
91565b21 | 539 | %attr(755,root,root) %{_libdir}/opensips/modules/enum.so |
210f5757 | 540 | %attr(755,root,root) %{_libdir}/opensips/modules/event_datagram.so |
1385cae0 JR |
541 | %attr(755,root,root) %{_libdir}/opensips/modules/event_flatstore.so |
542 | %attr(755,root,root) %{_libdir}/opensips/modules/event_jsonrpc.so | |
5a482e4a | 543 | %attr(755,root,root) %{_libdir}/opensips/modules/event_route.so |
1385cae0 JR |
544 | %attr(755,root,root) %{_libdir}/opensips/modules/event_routing.so |
545 | %attr(755,root,root) %{_libdir}/opensips/modules/event_virtual.so | |
5a482e4a | 546 | %attr(755,root,root) %{_libdir}/opensips/modules/event_xmlrpc.so |
91565b21 | 547 | %attr(755,root,root) %{_libdir}/opensips/modules/exec.so |
1385cae0 JR |
548 | %attr(755,root,root) %{_libdir}/opensips/modules/fraud_detection.so |
549 | %attr(755,root,root) %{_libdir}/opensips/modules/freeswitch_scripting.so | |
550 | %attr(755,root,root) %{_libdir}/opensips/modules/freeswitch.so | |
91565b21 JK |
551 | %attr(755,root,root) %{_libdir}/opensips/modules/gflags.so |
552 | %attr(755,root,root) %{_libdir}/opensips/modules/group.so | |
d186c54b | 553 | %attr(755,root,root) %{_libdir}/opensips/modules/identity.so |
91565b21 | 554 | %attr(755,root,root) %{_libdir}/opensips/modules/imc.so |
1385cae0 | 555 | %attr(755,root,root) %{_libdir}/opensips/modules/jsonrpc.so |
d186c54b | 556 | %attr(755,root,root) %{_libdir}/opensips/modules/load_balancer.so |
91565b21 | 557 | %attr(755,root,root) %{_libdir}/opensips/modules/mangler.so |
5a482e4a | 558 | %attr(755,root,root) %{_libdir}/opensips/modules/mathops.so |
91565b21 JK |
559 | %attr(755,root,root) %{_libdir}/opensips/modules/maxfwd.so |
560 | %attr(755,root,root) %{_libdir}/opensips/modules/mediaproxy.so | |
561 | %attr(755,root,root) %{_libdir}/opensips/modules/mi_datagram.so | |
1385cae0 | 562 | %attr(755,root,root) %{_libdir}/opensips/modules/mid_registrar.so |
91565b21 | 563 | %attr(755,root,root) %{_libdir}/opensips/modules/mi_fifo.so |
5a482e4a MM |
564 | %attr(755,root,root) %{_libdir}/opensips/modules/mi_json.so |
565 | %attr(755,root,root) %{_libdir}/opensips/modules/mi_xmlrpc_ng.so | |
91565b21 | 566 | %attr(755,root,root) %{_libdir}/opensips/modules/msilo.so |
91565b21 | 567 | %attr(755,root,root) %{_libdir}/opensips/modules/nathelper.so |
1385cae0 | 568 | %attr(755,root,root) %{_libdir}/opensips/modules/nat_traversal.so |
91565b21 | 569 | %attr(755,root,root) %{_libdir}/opensips/modules/options.so |
91565b21 | 570 | %attr(755,root,root) %{_libdir}/opensips/modules/path.so |
bb55e231 | 571 | %attr(755,root,root) %{_libdir}/opensips/modules/peering.so |
91565b21 | 572 | %attr(755,root,root) %{_libdir}/opensips/modules/permissions.so |
5a482e4a | 573 | %attr(755,root,root) %{_libdir}/opensips/modules/pi_http.so |
1385cae0 | 574 | %attr(755,root,root) %{_libdir}/opensips/modules/pike.so |
bb55e231 | 575 | %attr(755,root,root) %{_libdir}/opensips/modules/presence_callinfo.so |
d186c54b | 576 | %attr(755,root,root) %{_libdir}/opensips/modules/presence_dialoginfo.so |
91565b21 | 577 | %attr(755,root,root) %{_libdir}/opensips/modules/presence_mwi.so |
1385cae0 | 578 | %attr(755,root,root) %{_libdir}/opensips/modules/presence.so |
d186c54b | 579 | %attr(755,root,root) %{_libdir}/opensips/modules/presence_xcapdiff.so |
91565b21 | 580 | %attr(755,root,root) %{_libdir}/opensips/modules/presence_xml.so |
1385cae0 JR |
581 | %attr(755,root,root) %{_libdir}/opensips/modules/proto_bin.so |
582 | %attr(755,root,root) %{_libdir}/opensips/modules/proto_hep.so | |
5a482e4a MM |
583 | %attr(755,root,root) %{_libdir}/opensips/modules/proto_sctp.so |
584 | %attr(755,root,root) %{_libdir}/opensips/modules/proto_tls.so | |
585 | %attr(755,root,root) %{_libdir}/opensips/modules/proto_ws.so | |
1385cae0 | 586 | %attr(755,root,root) %{_libdir}/opensips/modules/proto_wss.so |
91565b21 | 587 | %attr(755,root,root) %{_libdir}/opensips/modules/pua_bla.so |
d186c54b | 588 | %attr(755,root,root) %{_libdir}/opensips/modules/pua_dialoginfo.so |
91565b21 | 589 | %attr(755,root,root) %{_libdir}/opensips/modules/pua_mi.so |
1385cae0 | 590 | %attr(755,root,root) %{_libdir}/opensips/modules/pua.so |
91565b21 | 591 | %attr(755,root,root) %{_libdir}/opensips/modules/pua_usrloc.so |
210f5757 | 592 | %attr(755,root,root) %{_libdir}/opensips/modules/python.so |
d186c54b | 593 | %attr(755,root,root) %{_libdir}/opensips/modules/qos.so |
91565b21 | 594 | %attr(755,root,root) %{_libdir}/opensips/modules/ratelimit.so |
d186c54b | 595 | %attr(755,root,root) %{_libdir}/opensips/modules/regex.so |
91565b21 | 596 | %attr(755,root,root) %{_libdir}/opensips/modules/registrar.so |
5a482e4a | 597 | %attr(755,root,root) %{_libdir}/opensips/modules/rest_client.so |
91565b21 JK |
598 | %attr(755,root,root) %{_libdir}/opensips/modules/rls.so |
599 | %attr(755,root,root) %{_libdir}/opensips/modules/rr.so | |
5a482e4a | 600 | %attr(755,root,root) %{_libdir}/opensips/modules/rtpengine.so |
210f5757 | 601 | %attr(755,root,root) %{_libdir}/opensips/modules/rtpproxy.so |
5a482e4a | 602 | %attr(755,root,root) %{_libdir}/opensips/modules/script_helper.so |
1385cae0 | 603 | %attr(755,root,root) %{_libdir}/opensips/modules/seas.so |
d186c54b | 604 | %attr(755,root,root) %{_libdir}/opensips/modules/signaling.so |
b229b45a | 605 | %attr(755,root,root) %{_libdir}/opensips/modules/sipcapture.so |
1385cae0 | 606 | %attr(755,root,root) %{_libdir}/opensips/modules/sip_i.so |
b229b45a | 607 | %attr(755,root,root) %{_libdir}/opensips/modules/sipmsgops.so |
1385cae0 | 608 | %attr(755,root,root) %{_libdir}/opensips/modules/siprec.so |
91565b21 JK |
609 | %attr(755,root,root) %{_libdir}/opensips/modules/siptrace.so |
610 | %attr(755,root,root) %{_libdir}/opensips/modules/sl.so | |
611 | %attr(755,root,root) %{_libdir}/opensips/modules/sms.so | |
612 | %attr(755,root,root) %{_libdir}/opensips/modules/speeddial.so | |
1385cae0 | 613 | %attr(755,root,root) %{_libdir}/opensips/modules/sql_cacher.so |
91565b21 JK |
614 | %attr(755,root,root) %{_libdir}/opensips/modules/sst.so |
615 | %attr(755,root,root) %{_libdir}/opensips/modules/statistics.so | |
bb55e231 | 616 | %attr(755,root,root) %{_libdir}/opensips/modules/stun.so |
91565b21 | 617 | %attr(755,root,root) %{_libdir}/opensips/modules/textops.so |
1385cae0 | 618 | %attr(755,root,root) %{_libdir}/opensips/modules/tls_mgm.so |
91565b21 | 619 | %attr(755,root,root) %{_libdir}/opensips/modules/tm.so |
5a482e4a | 620 | %attr(755,root,root) %{_libdir}/opensips/modules/topology_hiding.so |
210f5757 | 621 | %attr(755,root,root) %{_libdir}/opensips/modules/uac_auth.so |
91565b21 | 622 | %attr(755,root,root) %{_libdir}/opensips/modules/uac_redirect.so |
210f5757 | 623 | %attr(755,root,root) %{_libdir}/opensips/modules/uac_registrant.so |
1385cae0 | 624 | %attr(755,root,root) %{_libdir}/opensips/modules/uac.so |
91565b21 | 625 | %attr(755,root,root) %{_libdir}/opensips/modules/uri.so |
91565b21 JK |
626 | %attr(755,root,root) %{_libdir}/opensips/modules/userblacklist.so |
627 | %attr(755,root,root) %{_libdir}/opensips/modules/usrloc.so | |
628 | %attr(755,root,root) %{_libdir}/opensips/modules/xcap_client.so | |
1385cae0 JR |
629 | %attr(755,root,root) %{_libdir}/opensips/modules/xcap.so |
630 | %attr(755,root,root) %{_libdir}/opensips/modules/xml.so | |
91565b21 JK |
631 | %dir %{_datadir}/%{name} |
632 | %{_datadir}/%{name}/db_berkeley | |
633 | %{_datadir}/%{name}/dbtext | |
b229b45a | 634 | %{_datadir}/%{name}/menuconfig_templates |
f274b6d5 | 635 | %{_datadir}/%{name}/pi_http |
91565b21 JK |
636 | %{_mandir}/man*/* |
637 | ||
638 | %files xmpp | |
639 | %defattr(644,root,root,755) | |
640 | %attr(755,root,root) %{_libdir}/opensips/modules/jabber.so | |
641 | %attr(755,root,root) %{_libdir}/opensips/modules/xmpp.so | |
642 | %attr(755,root,root) %{_libdir}/opensips/modules/pua_xmpp.so | |
643 | ||
644 | %if %{with mysql} | |
645 | %files mysql | |
646 | %defattr(644,root,root,755) | |
647 | %attr(755,root,root) %{_libdir}/opensips/modules/db_mysql.so | |
648 | %{_datadir}/%{name}/mysql | |
649 | %endif | |
650 | ||
651 | %if %{with pgsql} | |
652 | %files postgres | |
653 | %defattr(644,root,root,755) | |
654 | %attr(755,root,root) %{_libdir}/opensips/modules/db_postgres.so | |
655 | %{_datadir}/%{name}/postgres | |
656 | %endif | |
657 | ||
1385cae0 JR |
658 | %if %{with sqlite} |
659 | %files sqlite3 | |
660 | %defattr(644,root,root,755) | |
661 | %attr(755,root,root) %{_libdir}/opensips/modules/db_sqlite.so | |
662 | %{_datadir}/opensips/sqlite | |
663 | %endif | |
664 | ||
bb55e231 MM |
665 | %if %{with json} |
666 | %files json | |
667 | %defattr(644,root,root,755) | |
668 | %attr(755,root,root) %{_libdir}/opensips/modules/json.so | |
669 | %endif | |
670 | ||
1385cae0 JR |
671 | %if %{with json} |
672 | %files cgrates | |
673 | %defattr(644,root,root,755) | |
674 | %attr(755,root,root) %{_libdir}/opensips/modules/cgrates.so | |
675 | %endif | |
676 | ||
bb55e231 MM |
677 | %if %{with memcached} |
678 | %files memcached | |
679 | %defattr(644,root,root,755) | |
b229b45a | 680 | %attr(755,root,root) %{_libdir}/opensips/modules/cachedb_memcached.so |
bb55e231 MM |
681 | %endif |
682 | ||
91565b21 JK |
683 | %if %{with radius} |
684 | %files radius | |
685 | %defattr(644,root,root,755) | |
d186c54b | 686 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/opensips/dictionary.opensips |
bb55e231 | 687 | %attr(755,root,root) %{_libdir}/opensips/modules/aaa_radius.so |
91565b21 JK |
688 | %endif |
689 | ||
690 | %if %{with odbc} | |
691 | %files odbc | |
692 | %defattr(644,root,root,755) | |
693 | %attr(755,root,root) %{_libdir}/opensips/modules/db_unixodbc.so | |
694 | %endif | |
695 | ||
d186c54b JK |
696 | %if %{with geoip} |
697 | %files mmgeoip | |
698 | %defattr(644,root,root,755) | |
699 | %attr(755,root,root) %{_libdir}/opensips/modules/mmgeoip.so | |
700 | %endif | |
701 | ||
702 | %if %{with ldap} | |
703 | %files ldap | |
704 | %defattr(644,root,root,755) | |
705 | %attr(755,root,root) %{_libdir}/opensips/modules/h350.so | |
706 | %attr(755,root,root) %{_libdir}/opensips/modules/ldap.so | |
707 | %endif | |
708 | ||
709 | %if %{with carrierroute} | |
710 | %files carrierroute | |
711 | %defattr(644,root,root,755) | |
712 | %attr(755,root,root) %{_libdir}/opensips/modules/carrierroute.so | |
713 | %endif | |
714 | ||
715 | %if %{with osp} | |
716 | %files osp | |
717 | %defattr(644,root,root,755) | |
718 | %attr(755,root,root) %{_libdir}/opensips/modules/osp.so | |
719 | %endif | |
720 | ||
91565b21 JK |
721 | %files snmpstats |
722 | %defattr(644,root,root,755) | |
723 | %attr(755,root,root) %{_libdir}/opensips/modules/snmpstats.so | |
724 | ||
725 | %files perl | |
726 | %defattr(644,root,root,755) | |
5a482e4a | 727 | %attr(755,root,root) %{_libdir}/opensips/modules/db_perlvdb.so |
91565b21 | 728 | %attr(755,root,root) %{_libdir}/opensips/modules/perl.so |
6f967f50 | 729 | %{_libdir}/opensips/perl |
91565b21 | 730 | |
b3ea057a | 731 | %files -n mibs-%{name} |
91565b21 | 732 | %defattr(644,root,root,755) |
b3ea057a | 733 | %{_datadir}/mibs/* |
b229b45a JK |
734 | |
735 | %if %{with redis} | |
736 | %files redis | |
737 | %defattr(644,root,root,755) | |
738 | %attr(755,root,root) %{_libdir}/opensips/modules/cachedb_redis.so | |
739 | %endif | |
740 | ||
741 | %if %{with microhttpd} | |
742 | %files httpd | |
743 | %defattr(644,root,root,755) | |
744 | %attr(755,root,root) %{_libdir}/opensips/modules/httpd.so | |
745 | %attr(755,root,root) %{_libdir}/opensips/modules/mi_http.so | |
746 | %endif | |
1385cae0 JR |
747 | |
748 | %if %{with rabbitmq} | |
749 | %files rabbitmq | |
750 | %defattr(644,root,root,755) | |
d410466d | 751 | %attr(755,root,root) %{_libdir}/opensips/modules/event_rabbitmq.so |
1385cae0 JR |
752 | %attr(755,root,root) %{_libdir}/opensips/modules/rabbitmq.so |
753 | %endif |