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