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