]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - chan_misdn (BR: mISDNuser-devel 1.x, needs update for 2.0) | |
3 | # - ffmpeg: sws_getContext now in libswscale, not avcodec | |
4 | # - gmime: reverse version check order, use gmime-2.6 by default | |
5 | # - nbs (libnbs, nbs.h) | |
6 | # - ss7 >= 2.0 (libss7, libssh.h) | |
7 | # - openr2 (libopenr2, libopenr2.h) | |
8 | # - pwlib+openh323 | |
9 | # - vpb (libvpb, vpbapi.h) | |
10 | # - make package for moh sound files | |
11 | # - build res_ari_mailboxes as an alternative for voicemail subpackages | |
12 | # - +x missing: | |
13 | # ldd: warning: you do not have execution permission for `/usr/lib/libasteriskssl.so.1' | |
14 | # | |
15 | # Conditional build: | |
16 | %bcond_with corosync # res_corosync module (broken in 12.0.0) | |
17 | %bcond_without sqlite2 # build without old sqlite support | |
18 | %bcond_without oss # build without OSS audio support (SDL dependency) | |
19 | %bcond_without tds # build without TDS support | |
20 | %bcond_without ilbc # build without iLBC codec support | |
21 | %bcond_without ldap # build without LDAP support | |
22 | %bcond_without portaudio # build without PortAudio support | |
23 | %bcond_without bluetooth # build without PortAudio support | |
24 | %bcond_without jack # build without JACK support | |
25 | %bcond_without mysql # build without MySQL support | |
26 | %bcond_without pgsql # build without PostgreSQL support | |
27 | %bcond_without odbc # build without ODBC support | |
28 | %bcond_without radius # build without Radius support | |
29 | %bcond_without pjsip # build without PJSIP stack | |
30 | %bcond_without opus_vp8 # build without Opus codec and VP8 passthrough | |
31 | ||
32 | %bcond_without apidocs # disable apidocs building | |
33 | %bcond_without verbose # verbose build | |
34 | ||
35 | %define opus_commit 058319d6ad464c79bbea71cf589883af62a18548 | |
36 | ||
37 | Summary: Asterisk PBX | |
38 | Summary(pl.UTF-8): Centralka (PBX) Asterisk | |
39 | Name: asterisk | |
40 | Version: 13.11.2 | |
41 | Release: 1 | |
42 | License: GPL v2 | |
43 | Group: Applications/System | |
44 | Source0: http://downloads.digium.com/pub/asterisk/releases/%{name}-%{version}.tar.gz | |
45 | # Source0-md5: 6162f342bb434098fb8c559e25802576 | |
46 | Source1: %{name}.init | |
47 | Source2: %{name}.sysconfig | |
48 | Source3: %{name}.tmpfiles | |
49 | Source4: %{name}.logrotate | |
50 | Source5: %{name}.service | |
51 | # menuselect.* -> make menuconfig; choose options; copy resulting files here | |
52 | Source6: menuselect.makedeps | |
53 | Source7: menuselect.makeopts | |
54 | # https://github.com/seanbright/asterisk-opus/ | |
55 | Source8: https://github.com/seanbright/asterisk-opus/archive/%{opus_commit}/asterisk-opus-%{opus_commit}.tar.gz | |
56 | # Source8-md5: 2cc55d2036ee4b7e5a44ea5e2d7280f3 | |
57 | Patch0: lua51-path.patch | |
58 | Patch1: %{name}-ppc.patch | |
59 | Patch2: FHS-paths.patch | |
60 | Patch3: pld-banner.patch | |
61 | Patch4: lpc10-system.patch | |
62 | Patch5: %{name}-histedit.patch | |
63 | Patch6: x32.patch | |
64 | Patch7: %{name}-ilbc.patch | |
65 | Patch8: asterisk-opus.patch | |
66 | URL: http://www.asterisk.org/ | |
67 | BuildRequires: OSPToolkit-devel >= 4.0.0 | |
68 | %{?with_oss:BuildRequires: SDL-devel} | |
69 | %{?with_oss:BuildRequires: SDL_image-devel} | |
70 | BuildRequires: alsa-lib-devel | |
71 | BuildRequires: autoconf >= 2.60 | |
72 | BuildRequires: automake | |
73 | # libbfd (used only for debug builds?) | |
74 | #BuildRequires: binutils-devel | |
75 | BuildRequires: bison >= 2 | |
76 | %{?with_bluetooth:BuildRequires: bluez-libs-devel} | |
77 | %{?with_corosync:BuildRequires: corosync-devel >= 2.0.0} | |
78 | BuildRequires: curl-devel >= 7.10.1 | |
79 | BuildRequires: dahdi-linux-devel | |
80 | BuildRequires: dahdi-tools-devel >= 2.0.0 | |
81 | BuildRequires: doxygen | |
82 | BuildRequires: flex | |
83 | %{?with_tds:BuildRequires: freetds-devel >= 0.63} | |
84 | BuildRequires: gawk | |
85 | BuildRequires: gcc >= 5:3.4 | |
86 | # TODO: switch to 2.6 | |
87 | BuildRequires: gmime22-devel | |
88 | BuildRequires: iksemel-devel | |
89 | BuildRequires: imap-devel | |
90 | %{?with_jack:BuildRequires: jack-audio-connection-kit-devel} | |
91 | BuildRequires: jansson-devel | |
92 | BuildRequires: libcap-devel | |
93 | BuildRequires: libedit-devel | |
94 | BuildRequires: libgsm-devel | |
95 | BuildRequires: libical-devel | |
96 | BuildRequires: libogg-devel | |
97 | BuildRequires: libpri-devel >= 1.4.6 | |
98 | BuildRequires: libresample-devel | |
99 | BuildRequires: libtiff-devel | |
100 | BuildRequires: libuuid-devel | |
101 | BuildRequires: libvorbis-devel | |
102 | BuildRequires: libxml2-devel >= 2.0 | |
103 | BuildRequires: libxslt-devel | |
104 | BuildRequires: lpc10-devel | |
105 | BuildRequires: lua51-devel >= 5.1 | |
106 | #BuildRequires: mISDNuser-devel < 2 | |
107 | %{?with_mysql:BuildRequires: mysql-devel} | |
108 | BuildRequires: ncurses-devel | |
109 | BuildRequires: neon-devel | |
110 | BuildRequires: net-snmp-devel | |
111 | BuildRequires: newt-devel | |
112 | %{?with_ldap:BuildRequires: openldap-devel} | |
113 | BuildRequires: openssl-devel >= 0.9.7d | |
114 | BuildRequires: opus-devel | |
115 | BuildRequires: pam-devel | |
116 | %{?with_pjsip:BuildRequires: pjproject-devel >= 2.3} | |
117 | BuildRequires: pkgconfig | |
118 | BuildRequires: popt-devel | |
119 | %{?with_portaudio:BuildRequires: portaudio-devel >= 19} | |
120 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
121 | %{?with_radius:BuildRequires: radiusclient-ng-devel} | |
122 | BuildRequires: rpmbuild(macros) >= 1.671 | |
123 | BuildRequires: sed >= 4.0 | |
124 | BuildRequires: spandsp-devel >= 0.0.5 | |
125 | BuildRequires: speex-devel | |
126 | BuildRequires: speexdsp-devel | |
127 | %{?with_sqlite2:BuildRequires: sqlite-devel >= 2} | |
128 | BuildRequires: sqlite3-devel | |
129 | BuildRequires: srtp-devel | |
130 | Requires(post,preun,postun): systemd-units >= 38 | |
131 | Requires: systemd-units >= 0.38 | |
132 | %{?with_odbc:BuildRequires: unixODBC-devel} | |
133 | BuildRequires: uriparser-devel | |
134 | %{?with_ilbc:BuildRequires: webrtc-libilbc-devel >= 2} | |
135 | BuildRequires: xorg-lib-libX11-devel | |
136 | BuildRequires: zlib-devel | |
137 | Requires(post,preun): /sbin/chkconfig | |
138 | Requires(postun): /usr/sbin/groupdel | |
139 | Requires(postun): /usr/sbin/userdel | |
140 | Requires(pre): /bin/id | |
141 | Requires(pre): /usr/bin/getgid | |
142 | Requires(pre): /usr/sbin/groupadd | |
143 | Requires(pre): /usr/sbin/useradd | |
144 | Requires: rc-scripts | |
145 | Provides: group(asterisk) | |
146 | Provides: user(asterisk) | |
147 | Conflicts: logrotate < 3.8.0 | |
148 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
149 | ||
150 | # references symbols in the asterisk binary | |
151 | %define skip_post_check_so libasteriskssl.so.* | |
152 | ||
153 | %define _noautoprovfiles %{_libdir}/asterisk/modules/.* | |
154 | ||
155 | %description | |
156 | Asterisk is an Open Source PBX and telephony development platform that | |
157 | can both replace a conventional PBX and act as a platform for | |
158 | developing custom telephony applications for delivering dynamic | |
159 | content over a telephone similarly to how one can deliver dynamic | |
160 | content through a web browser using CGI and a web server. | |
161 | ||
162 | Asterisk talks to a variety of telephony hardware including BRI, PRI, | |
163 | POTS, and IP telephony clients using the Inter-Asterisk eXchange | |
164 | protocol (e.g. gnophone or miniphone). For more information and a | |
165 | current list of supported hardware, see http://www.asterisk.org/. | |
166 | ||
167 | %description -l pl.UTF-8 | |
168 | Asterisk to wolnodostępna centralka (PBX) i platforma programistyczna | |
169 | dla telefonii, mogąca zastąpić konwencjonalne PBX-y oraz służyć jako | |
170 | platforma do rozwijania własnych aplikacji telefonicznych do | |
171 | przekazywania dynamicznej treści przez telefon, podobnie jak można | |
172 | przekazywać dynamiczną treść przez przeglądarkę WWW przy użyciu CGI i | |
173 | serwera WWW. | |
174 | ||
175 | Asterisk współpracuje z wielorakim sprzętem telefonicznym, w tym BRI, | |
176 | PRI, POTS oraz klienty telefonii IP używające protokołu Inter-Asterisk | |
177 | eXchange (np. gnophone lub miniphone). Więcej informacji i listę | |
178 | obsługiwanego sprzętu można znaleźć pod http://www.asterisk.org/. | |
179 | ||
180 | %package devel | |
181 | Summary: Header files for Asterisk platform | |
182 | Summary(pl.UTF-8): Pliki nagłówkowe platformy Asterisk | |
183 | Group: Development | |
184 | ||
185 | %description devel | |
186 | Header files for Asterisk development platform. | |
187 | ||
188 | %description devel -l pl.UTF-8 | |
189 | Pliki nagłówkowe platformy programistycznej Asterisk. | |
190 | ||
191 | %package utils | |
192 | Summary: Various utilities for Asterisk | |
193 | Summary(pl.UTF-8): Różne narzędzia dla Asteriska | |
194 | Group: Applications/Networking | |
195 | ||
196 | %description utils | |
197 | Various utilities built with Asterisk. | |
198 | ||
199 | %description utils -l pl.UTF-8 | |
200 | Różne narzędzia budowane z Asteriskiem. | |
201 | ||
202 | %package astman | |
203 | Summary: Astman - a text mode Manager for Asterisk | |
204 | Summary(pl.UTF-8): Astman - tekstowy zarządca Asteriska | |
205 | Group: Applications/Networking | |
206 | ||
207 | %description astman | |
208 | Astman is a text mode Manager for Asterisk. | |
209 | ||
210 | Astman connects to Asterisk by TCP, so you can run Astman on a | |
211 | completely different computer than your Asterisk computer. | |
212 | ||
213 | %description astman -l pl.UTF-8 | |
214 | Astman to tekstowy zarządca dla Asteriska. | |
215 | ||
216 | Łączy się z Asteriskiem po TCP, dzięki czemu można uruchamiać Astmana | |
217 | na innym komputerze, niż działa Asterisk. | |
218 | ||
219 | %package alsa | |
220 | Summary: Module for Asterisk that uses ALSA sound drivers | |
221 | Summary(pl.UTF-8): Moduł Asteriska wykorzystujący sterowniki dźwięku ALSA | |
222 | Group: Applications/Networking | |
223 | Requires: %{name} = %{version}-%{release} | |
224 | ||
225 | %description alsa | |
226 | Module for Asterisk that uses ALSA sound drivers. | |
227 | ||
228 | %description alsa -l pl.UTF-8 | |
229 | Moduł Asteriska wykorzystujący sterowniki dźwięku ALSA. | |
230 | ||
231 | %package bluetooth | |
232 | Summary: chan_mobile - Bluetooth mobile phone interface for Asterisk | |
233 | Summary(pl.UTF-8): chan_mobile - interfejs telefonów komórkowych Bluetooth dla Asteriska | |
234 | Group: Applications/Networking | |
235 | Requires: %{name} = %{version}-%{release} | |
236 | ||
237 | %description bluetooth | |
238 | The chan_mobile Asterisk module allows one to pair a mobile phone with | |
239 | the Asterisk PBX via Bluetooth. | |
240 | ||
241 | %description bluetooth -l pl.UTF-8 | |
242 | Moduł Asteriska chan_mobile pozwala na sparowanie telefonu komórkowego | |
243 | z centralką Asterisk poprzez Bluetooth. | |
244 | ||
245 | %package calendar | |
246 | Summary: Calendar modules for Asterisk | |
247 | Summary(pl.UTF-8): Moduły kalendarza dla Asteriska | |
248 | Group: Applications/Networking | |
249 | Requires: %{name} = %{version}-%{release} | |
250 | ||
251 | %description calendar | |
252 | Calendar modules for Asterisk. | |
253 | ||
254 | %description calendar -l pl.UTF-8 | |
255 | Moduły kalendarza dla Asteriska. | |
256 | ||
257 | %package curl | |
258 | Summary: Modules for Asterisk that use cURL library | |
259 | Summary(pl.UTF-8): Moduły Asteriska wykorzystujące bibliotekę cURL | |
260 | Group: Applications/Networking | |
261 | Requires: %{name} = %{version}-%{release} | |
262 | ||
263 | %description curl | |
264 | Modules for Asterisk that use cURL library. | |
265 | ||
266 | %description curl -l pl.UTF-8 | |
267 | Moduły Asteriska wykorzystujące bibliotekę cURL. | |
268 | ||
269 | %package dahdi | |
270 | Summary: Modules for Asterisk that use DAHDI | |
271 | Summary(pl.UTF-8): Moduły Asteriska wykorzystujące DAHDI | |
272 | Group: Applications/Networking | |
273 | Requires(pre): /usr/sbin/usermod | |
274 | Requires: %{name} = %{version}-%{release} | |
275 | Requires: dahdi-tools >= 2.0.0 | |
276 | ||
277 | %description dahdi | |
278 | Modules for Asterisk that use DAHDI. | |
279 | ||
280 | %description dahdi -l pl.UTF-8 | |
281 | Moduły Asteriska wykorzystujące DAHDI. | |
282 | ||
283 | %package fax | |
284 | Summary: FAX applications for Asterisk | |
285 | Summary(pl.UTF-8): Aplikacje faksowe dla Asteriska | |
286 | Group: Applications/Networking | |
287 | Requires: %{name} = %{version}-%{release} | |
288 | ||
289 | %description fax | |
290 | FAX applications for Asterisk. | |
291 | ||
292 | %description fax -l pl.UTF-8 | |
293 | Aplikacje faksowe dla Asteriska. | |
294 | ||
295 | %package festival | |
296 | Summary: Festival application for Asterisk | |
297 | Summary(pl.UTF-8): Aplikacja Festival dla Asteriska | |
298 | Group: Applications/Networking | |
299 | Requires: %{name} = %{version}-%{release} | |
300 | Requires: festival | |
301 | ||
302 | %description festival | |
303 | Application for the Asterisk PBX that uses Festival to convert text to | |
304 | speech. | |
305 | ||
306 | %description festival -l pl.UTF-8 | |
307 | Aplikacja dla centralki Asterisk wykorzystująca bibliotekę Festival do | |
308 | przekształcenia tekstu na mowę. | |
309 | ||
310 | %package gsm | |
311 | Summary: Support GSM audio encoding/decoding | |
312 | Summary(pl.UTF-8): Obsługa kodowania/dekodowania dźwięku GSM | |
313 | Group: Applications/Networking | |
314 | Requires: %{name} = %{version}-%{release} | |
315 | ||
316 | %description gsm | |
317 | Support GSM audio encoding/decoding. | |
318 | ||
319 | %description gsm -l pl.UTF-8 | |
320 | Obsługa kodowania/dekodowania dźwięku GSM. | |
321 | ||
322 | %package http | |
323 | Summary: HTTP Server Support | |
324 | Summary(pl.UTF-8): Obsługa serwera HTTP | |
325 | Group: Applications/Networking | |
326 | Requires: %{name} = %{version}-%{release} | |
327 | ||
328 | %description http | |
329 | HTTP Server Support. | |
330 | ||
331 | %description http -l pl.UTF-8 | |
332 | Obsługa serwera HTTP. | |
333 | ||
334 | %package ices | |
335 | Summary: Stream audio from Asterisk to an IceCast server | |
336 | Summary(pl.UTF-8): Przesyłanie strumienia dźwięku z Asteriska do serwera IceCast | |
337 | Group: Applications/Networking | |
338 | Requires: %{name} = %{version}-%{release} | |
339 | Requires: ices | |
340 | Obsoletes: asterisk < 1.4.18-1 | |
341 | Conflicts: asterisk < 1.4.18-1 | |
342 | ||
343 | %description ices | |
344 | Stream audio from Asterisk to an IceCast server. | |
345 | ||
346 | %description ices -l pl.UTF-8 | |
347 | Przesyłanie strumienia dźwięku z Asteriska do serwera IceCast. | |
348 | ||
349 | %package ilbc | |
350 | Summary: iLBC codec for Asterisk | |
351 | Summary(pl.UTF-8): Kodek iLBC dla Asteriska | |
352 | Group: Applications/Networking | |
353 | Requires: %{name} = %{version}-%{release} | |
354 | ||
355 | %description ilbc | |
356 | Support iLBC audio encoding/decoding. | |
357 | ||
358 | %description ilbc -l pl.UTF-8 | |
359 | Obsługa kodowania/dekodowania dźwięku iLBC. | |
360 | ||
361 | %package jabber | |
362 | Summary: Jabber/XMPP resources for Asterisk | |
363 | Summary(pl.UTF-8): Zasoby Jabbera/XMPP dla Asteriska | |
364 | Group: Applications/Networking | |
365 | Requires: %{name} = %{version}-%{release} | |
366 | ||
367 | %description jabber | |
368 | Jabber/XMPP resources for Asterisk. | |
369 | ||
370 | %description jabber -l pl.UTF-8 | |
371 | Zasoby Jabbera/XMPP dla Asteriska. | |
372 | ||
373 | %package jack | |
374 | Summary: JACK resources for Asterisk | |
375 | Summary(pl.UTF-8): Zasoby JACK dla Asteriska | |
376 | Group: Applications/Networking | |
377 | Requires: %{name} = %{version}-%{release} | |
378 | ||
379 | %description jack | |
380 | JACK resources for Asterisk. | |
381 | ||
382 | %description jack -l pl.UTF-8 | |
383 | Zasoby JACK dla Asteriska. | |
384 | ||
385 | %package lua | |
386 | Summary: Lua resources for Asterisk | |
387 | Summary(pl.UTF-8): Zasoby Lua dla Asteriska | |
388 | Group: Applications/Networking | |
389 | Requires: %{name} = %{version}-%{release} | |
390 | ||
391 | %description lua | |
392 | Lua resources for Asterisk. | |
393 | ||
394 | %description lua -l pl.UTF-8 | |
395 | Zasoby Lua dla Asteriska. | |
396 | ||
397 | %package ldap | |
398 | Summary: LDAP resources for Asterisk | |
399 | Summary(pl.UTF-8): Zasoby LDAP dla Asteriska | |
400 | Group: Applications/Networking | |
401 | Requires: %{name} = %{version}-%{release} | |
402 | ||
403 | %description ldap | |
404 | LDAP resources for Asterisk. | |
405 | ||
406 | %description ldap -l pl.UTF-8 | |
407 | Zasoby LDAP dla Asteriska. | |
408 | ||
409 | %package ldap-fds | |
410 | Summary: LDAP resources for Asterisk and the Fedora Directory Server | |
411 | Summary(pl.UTF-8): Zasoby LDAP dla Asteriska oraz serwera usług katalogowych Fedora Directory Server | |
412 | Group: Applications/Networking | |
413 | Requires: %{name} = %{version}-%{release} | |
414 | Requires: %{name}-ldap = %{version}-%{release} | |
415 | Requires: fedora-ds-base | |
416 | ||
417 | %description ldap-fds | |
418 | LDAP resources for Asterisk and the Fedora Directory Server. | |
419 | ||
420 | %description ldap-fds -l pl.UTF-8 | |
421 | Zasoby LDAP dla Asteriska oraz serwera usług katalogowych Fedora | |
422 | Directory Server. | |
423 | ||
424 | %package lpc10 | |
425 | Summary: LPC-10 2400 bps Voice Codec support | |
426 | Summary(pl.UTF-8): Obsługa kodeka głosu LPC-10 2400 bps | |
427 | Group: Applications/Networking | |
428 | Requires: %{name} = %{version}-%{release} | |
429 | ||
430 | %description lpc10 | |
431 | LPC-10 2400 bps Voice Codec support | |
432 | ||
433 | %description lpc10 -l pl.UTF-8 | |
434 | Obsługa kodeka głosu LPC-10 2400 bps. | |
435 | ||
436 | %package minivm | |
437 | Summary: MiniVM application for Asterisk | |
438 | Summary(pl.UTF-8): Aplikacja MiniVM dla Asteriska | |
439 | Group: Applications/Networking | |
440 | Requires: %{name} = %{version}-%{release} | |
441 | ||
442 | %description minivm | |
443 | MiniVM application for Asterisk. | |
444 | ||
445 | %description minivm -l pl.UTF-8 | |
446 | Aplikacja MiniVM dla Asteriska. | |
447 | ||
448 | %package mysql | |
449 | Summary: Asterisk modules that use MySQL | |
450 | Summary(pl.UTF-8): Moduły Asteriska wykorzystujące MySQL | |
451 | Group: Applications/Networking | |
452 | Requires: %{name} = %{version}-%{release} | |
453 | ||
454 | %description mysql | |
455 | Asterisk modules that use MySQL. | |
456 | ||
457 | %description mysql -l pl.UTF-8 | |
458 | Moduły Asteriska wykorzystujące MySQL. | |
459 | ||
460 | %package odbc | |
461 | Summary: Applications for Asterisk that use ODBC (except voicemail) | |
462 | Summary(pl.UTF-8): Aplikacje Asteriska wykorzystujące ODBC (z wyjątkiem voicemail) | |
463 | Group: Applications/Networking | |
464 | Requires: %{name} = %{version}-%{release} | |
465 | ||
466 | %description odbc | |
467 | Applications for Asterisk that use ODBC (except voicemail). | |
468 | ||
469 | %description odbc -l pl.UTF-8 | |
470 | Aplikacje Asteriska wykorzystujące ODBC (z wyjątkiem voicemail). | |
471 | ||
472 | %package osp | |
473 | Summary: Module for Asterisk that uses Open Settlement Protocol (OSP) Applications | |
474 | Summary(pl.UTF-8): Moduł Asteriska wykorzystujący aplikacje OSP (Open Settlement Protocol) | |
475 | Group: Applications/Networking | |
476 | Requires: %{name} = %{version}-%{release} | |
477 | ||
478 | %description osp | |
479 | Open Settlement Protocol (OSP) Applications. | |
480 | ||
481 | %description osp -l pl.UTF-8 | |
482 | Aplikacje protokołu OSP (Open Settlement Protocol). | |
483 | ||
484 | %package oss | |
485 | Summary: Module for Asterisk that uses OSS sound drivers | |
486 | Summary(pl.UTF-8): Moduł Asteriska wykorzystujący sterowniki dźwięku OSS | |
487 | Group: Applications/Networking | |
488 | Requires: %{name} = %{version}-%{release} | |
489 | ||
490 | %description oss | |
491 | Module for Asterisk that uses OSS sound drivers. | |
492 | ||
493 | %description oss -l pl.UTF-8 | |
494 | Moduł Asteriska wykorzystujący sterowniki dźwięku OSS. | |
495 | ||
496 | %package pjsip | |
497 | Summary: PJSIP Asterisk modules | |
498 | Summary(pl.UTF-8): Moduły Asteriska PJSIP | |
499 | Group: Applications/Networking | |
500 | Requires: %{name} = %{version}-%{release} | |
501 | ||
502 | %description pjsip | |
503 | The chan_pjsip and res_pjsip* modules provided by this package provide | |
504 | the new SIP driver for Asterisk, based on the PJSIP stack, to replace | |
505 | the old, badly designed and quite buggy chan_sip module. | |
506 | ||
507 | %description pjsip -l pl.UTF-8 | |
508 | Moduły chan_pjsip oraz res_pjsip* zawarte w tym pakiecie dostarczają | |
509 | nowy sterownik SIP dla Asteriska, oparty na stosie PJSIP, który ma | |
510 | zastąpić stary, źle zaprojektowany i zawierający błędy moduł chan_sip. | |
511 | ||
512 | %package portaudio | |
513 | Summary: Module for Asterisk that uses the PortAudio library | |
514 | Summary(pl.UTF-8): Moduł Asteriska wykorzystujący bibliotekę PortAudio | |
515 | Group: Applications/Networking | |
516 | Requires: %{name} = %{version}-%{release} | |
517 | ||
518 | %description portaudio | |
519 | Module for Asterisk that uses the PortAudio library. | |
520 | ||
521 | %description portaudio -l pl.UTF-8 | |
522 | Moduł Asteriska wykorzystującye bibliotekę PortAudio. | |
523 | ||
524 | %package postgresql | |
525 | Summary: Applications for Asterisk that use PostgreSQL | |
526 | Summary(pl.UTF-8): Aplikacje Asteriska wykorzystujące PostgreSQL | |
527 | Group: Applications/Networking | |
528 | Requires: %{name} = %{version}-%{release} | |
529 | ||
530 | %description postgresql | |
531 | Applications for Asterisk that use PostgreSQL. | |
532 | ||
533 | %description postgresql -l pl.UTF-8 | |
534 | Aplikacje Asteriska wykorzystujące PostgreSQL. | |
535 | ||
536 | %package radius | |
537 | Summary: Applications for Asterisk that use RADIUS | |
538 | Summary(pl.UTF-8): Aplikacje Asteriska wykorzystujące bibliotekę RADIUS | |
539 | Group: Applications/Networking | |
540 | Requires: %{name} = %{version}-%{release} | |
541 | ||
542 | %description radius | |
543 | Applications for Asterisk that use RADIUS. | |
544 | ||
545 | %description radius -l pl.UTF-8 | |
546 | Aplikacje Asteriska wykorzystujące bibliotekę RADIUS. | |
547 | ||
548 | %package resample | |
549 | Summary: resample codec | |
550 | Summary(pl.UTF-8): Kodek resample | |
551 | Group: Applications/Networking | |
552 | Requires: %{name} = %{version}-%{release} | |
553 | ||
554 | %description resample | |
555 | resample codec. | |
556 | ||
557 | %description resample -l pl.UTF-8 | |
558 | Kodek resample. | |
559 | ||
560 | %package skinny | |
561 | Summary: Module for Asterisk that supportsthe SCCP/Skinny protocol | |
562 | Summary(pl.UTF-8): Moduł Asteriska obsługujący protokół SCCP/Skinny | |
563 | Group: Applications/Networking | |
564 | Requires: %{name} = %{version}-%{release} | |
565 | ||
566 | %description skinny | |
567 | Module for Asterisk that supports the SCCP/Skinny protocol. | |
568 | ||
569 | %description skinny -l pl.UTF-8 | |
570 | Moduł Asteriska obsługujący protokół SCCP/Skinny. | |
571 | ||
572 | %package snmp | |
573 | Summary: Module that enables SNMP monitoring of Asterisk | |
574 | Summary(pl.UTF-8): Moduł pozwalający na monitorowanie Asteriska przez SNMP | |
575 | Group: Applications/Networking | |
576 | Requires: %{name} = %{version}-%{release} | |
577 | Requires: mibs-dirs | |
578 | ||
579 | %description snmp | |
580 | Module that enables SNMP monitoring of Asterisk. | |
581 | ||
582 | %description snmp -l pl.UTF-8 | |
583 | Moduł pozwalający na monitorowanie Asteriska przez SNMP. | |
584 | ||
585 | %package speex | |
586 | Summary: Speex codec support | |
587 | Summary(pl.UTF-8): Obsługa kodeka Speex | |
588 | Group: Applications/Networking | |
589 | Requires: %{name} = %{version}-%{release} | |
590 | ||
591 | %description speex | |
592 | Speex codec support. | |
593 | ||
594 | %description speex -l pl.UTF-8 | |
595 | Obsługa kodeka Speex. | |
596 | ||
597 | %package sqlite2 | |
598 | Summary: SQLite 2 module for Asterisk | |
599 | Summary(pl.UTF-8): Moduł SQLite 2 dla Asteriska | |
600 | Group: Applications/Networking | |
601 | Requires: %{name} = %{version}-%{release} | |
602 | ||
603 | %description sqlite2 | |
604 | SQLite 2 module for Asterisk. | |
605 | ||
606 | %description sqlite2 -l pl.UTF-8 | |
607 | Moduł SQLite 2 dla Asteriska. | |
608 | ||
609 | %package sqlite3 | |
610 | Summary: SQLite 3 modules for Asterisk | |
611 | Summary(pl.UTF-8): Moduły SQLite 3 dla Asteriska | |
612 | Group: Applications/Networking | |
613 | Requires: %{name} = %{version}-%{release} | |
614 | Obsoletes: asterisk-sqlite < 12.0.0 | |
615 | ||
616 | %description sqlite3 | |
617 | SQLite 3 modules for Asterisk. | |
618 | ||
619 | %description sqlite3 -l pl.UTF-8 | |
620 | Moduły SQLite 3 dla Asteriska. | |
621 | ||
622 | %package tds | |
623 | Summary: Modules for Asterisk that use FreeTDS | |
624 | Summary(pl.UTF-8): Moduły Asteriska wykorzystujące FreeTDS | |
625 | Group: Applications/Networking | |
626 | Requires: %{name} = %{version}-%{release} | |
627 | ||
628 | %description tds | |
629 | Modules for Asterisk that use FreeTDS. | |
630 | ||
631 | %description tds -l pl.UTF-8 | |
632 | Moduły Asteriska wykorzystujące FreeTDS. | |
633 | ||
634 | %package unistim | |
635 | Summary: Unistim channel for Asterisk | |
636 | Summary(pl.UTF-8): Kanał Unistim dla Asteriska | |
637 | Group: Applications/Networking | |
638 | Requires: %{name} = %{version}-%{release} | |
639 | ||
640 | %description unistim | |
641 | Unistim channel for Asterisk | |
642 | ||
643 | %description unistim -l pl.UTF-8 | |
644 | Kanał Unistim dla Asteriska. | |
645 | ||
646 | %package voicemail | |
647 | Summary: Common Voicemail Modules for Asterisk | |
648 | Summary(pl.UTF-8): Wspólne moduły Voicemail (poczty głosowej) dla Asteriska | |
649 | Group: Applications/Networking | |
650 | Requires: %{name} = %{version}-%{release} | |
651 | Requires: %{name}-voicemail-implementation = %{version}-%{release} | |
652 | Requires: /usr/lib/sendmail | |
653 | Requires: sox | |
654 | ||
655 | %description voicemail | |
656 | Common Voicemail Modules for Asterisk. | |
657 | ||
658 | %description voicemail -l pl.UTF-8 | |
659 | Wspólne moduły Voicemail (poczty głosowej) dla Asteriska. | |
660 | ||
661 | %package voicemail-imap | |
662 | Summary: Store voicemail on an IMAP server | |
663 | Summary(pl.UTF-8): Przechowywanie poczty głosowej na serwerze IMAP | |
664 | Group: Applications/Networking | |
665 | Requires: %{name} = %{version}-%{release} | |
666 | Requires: %{name}-voicemail = %{version}-%{release} | |
667 | Provides: %{name}-voicemail-implementation = %{version}-%{release} | |
668 | ||
669 | %description voicemail-imap | |
670 | Voicemail implementation for Asterisk that stores voicemail on an IMAP | |
671 | server. | |
672 | ||
673 | %description voicemail-imap -l pl.UTF-8 | |
674 | Implementacja poczty głosowej (Voicemail) dla Asteriska przechowująca | |
675 | pocztę na serwerze IMAP. | |
676 | ||
677 | %package voicemail-odbc | |
678 | Summary: Store voicemail in a database using ODBC | |
679 | Summary(pl.UTF-8): Przechowywanie poczty głosowej w bazie danych poprzez ODBC | |
680 | Group: Applications/Networking | |
681 | Requires: %{name} = %{version}-%{release} | |
682 | Requires: %{name}-voicemail = %{version}-%{release} | |
683 | Provides: %{name}-voicemail-implementation = %{version}-%{release} | |
684 | ||
685 | %description voicemail-odbc | |
686 | Voicemail implementation for Asterisk that uses ODBC to store | |
687 | voicemail in a database. | |
688 | ||
689 | %description voicemail-odbc -l pl.UTF-8 | |
690 | Implementacja poczty głosowej (Voicemail) dla Asteriska wykorzystująca | |
691 | ODBC do przechowywania poczty w bazie danych. | |
692 | ||
693 | %package voicemail-plain | |
694 | Summary: Store voicemail on the local filesystem | |
695 | Summary(pl.UTF-8): Przechowywanie poczty głosowej na lokalnym systemie plików | |
696 | Group: Applications/Networking | |
697 | Requires: %{name} = %{version}-%{release} | |
698 | Requires: %{name}-voicemail = %{version}-%{release} | |
699 | Provides: %{name}-voicemail-implementation = %{version}-%{release} | |
700 | ||
701 | %description voicemail-plain | |
702 | Voicemail implementation for Asterisk that stores voicemail on the | |
703 | local filesystem. | |
704 | ||
705 | %description voicemail-plain -l pl.UTF-8 | |
706 | Implementacja poczty głosowej (Voicemail) dla Asteriska przechowująca | |
707 | pocztę na lokalnym systemie plików. | |
708 | ||
709 | %package vorbis | |
710 | Summary: Ogg Vorbis format support | |
711 | Summary(pl.UTF-8): Obsługa formatu Ogg Vorbis | |
712 | Group: Applications/Networking | |
713 | Requires: %{name} = %{version}-%{release} | |
714 | ||
715 | %description vorbis | |
716 | Ogg Vorbis format support. | |
717 | ||
718 | %description vorbis -l pl.UTF-8 | |
719 | Obsługa formatu Ogg Vorbis. | |
720 | ||
721 | # define apidocs as last package, as it is the biggest one | |
722 | %package apidocs | |
723 | Summary: API documentation for Asterisk | |
724 | Summary(pl.UTF-8): Dokumentacja API Asteriska | |
725 | Group: Documentation | |
726 | %if "%{_rpmversion}" >= "5" | |
727 | BuildArch: noarch | |
728 | %endif | |
729 | ||
730 | %description apidocs | |
731 | API documentation for Asterisk. | |
732 | ||
733 | %description apidocs -l pl.UTF-8 | |
734 | Dokumentacja API Asteriska. | |
735 | ||
736 | %prep | |
737 | %setup -q -a 8 | |
738 | %patch0 -p1 | |
739 | %patch1 -p1 | |
740 | %patch2 -p1 | |
741 | %patch3 -p1 | |
742 | %patch4 -p1 | |
743 | %patch5 -p1 | |
744 | %patch6 -p1 | |
745 | %patch7 -p1 | |
746 | ||
747 | %if %{with opus_vp8} | |
748 | %patch8 -p1 | |
749 | ||
750 | cp -a asterisk-opus-%{opus_commit}/codecs/* codecs | |
751 | cp -a asterisk-opus-%{opus_commit}/formats/* formats | |
752 | %endif | |
753 | ||
754 | # Fixup makefile so sound archives aren't downloaded/installed | |
755 | %{__sed} -i -e 's/^all:.*$/all:/' sounds/Makefile | |
756 | %{__sed} -i -e 's/^install:.*$/install:/' sounds/Makefile | |
757 | ||
758 | # avoid using these | |
759 | %{__rm} -r main/editline codecs/gsm codecs/lpc10 | |
760 | ||
761 | %build | |
762 | %{__aclocal} -I autoconf $(find third-party/ -maxdepth 1 -type d -printf "-I %p ") | |
763 | %{__autoheader} | |
764 | %{__autoconf} | |
765 | ||
766 | export ASTCFLAGS="%{rpmcflags}" | |
767 | export ASTLDFLAGS="%{rpmldflags}" | |
768 | export WGET="/bin/true" | |
769 | ||
770 | # be sure to invoke ./configure with our flags | |
771 | cd menuselect | |
772 | %{__aclocal} -I ../autoconf | |
773 | %{__autoheader} | |
774 | %{__autoconf} | |
775 | # we need just plain cli for building | |
776 | %configure \ | |
777 | --without-newt \ | |
778 | --without-gtk2 \ | |
779 | --without-curses \ | |
780 | --without-ncurses | |
781 | cd .. | |
782 | ||
783 | %configure \ | |
784 | %{__without oss SDL_image} \ | |
785 | %{__without bluetooth bluetooth} \ | |
786 | --without-gtk2 \ | |
787 | --with-gnu-ld \ | |
788 | --with-gsm=/usr \ | |
789 | %{__without ilbc ilbc} \ | |
790 | --with-imap=system \ | |
791 | %{__without jack jack} \ | |
792 | %{__without ldap ldap} \ | |
793 | --with-lpc10=/usr \ | |
794 | %{__without mysql mysqlclient} \ | |
795 | %{__without oss oss} \ | |
796 | %{__without pjsip pjproject} \ | |
797 | %{__without portaudio portaudio} \ | |
798 | %{__without pgsql postgres} \ | |
799 | %{__without radius radius} \ | |
800 | %{__without oss sdl} \ | |
801 | %{__without tds tds} \ | |
802 | %{__without odbc unixodbc} | |
803 | ||
804 | cp -f .cleancount .lastclean | |
805 | ||
806 | %{__make} menuselect/menuselect | |
807 | %{__make} menuselect-tree | |
808 | ||
809 | cp %{SOURCE6} . | |
810 | cp %{SOURCE7} . | |
811 | ||
812 | %if %{without corosync} | |
813 | menuselect/menuselect --disable res_corosync menuselect.makeopts | |
814 | %endif | |
815 | %if %{without sqlite2} | |
816 | menuselect/menuselect --disable res_config_sqlite menuselect.makeopts | |
817 | %endif | |
818 | %if %{without oss} | |
819 | menuselect/menuselect --disable chan_oss menuselect.makeopts | |
820 | %endif | |
821 | %if %{without tds} | |
822 | menuselect/menuselect --disable cdr_tds --disable cel_tds menuselect.makeopts | |
823 | %endif | |
824 | %if %{without ilbc} | |
825 | menuselect/menuselect --disable codec_ilbc --disable format_ilbc menuselect.makeopts | |
826 | %endif | |
827 | %if %{without ldap} | |
828 | menuselect/menuselect --disable res_config_ldap menuselect.makeopts | |
829 | %endif | |
830 | %if %{without bluetooth} | |
831 | menuselect/menuselect --disable chan_mobile menuselect.makeopts | |
832 | %endif | |
833 | %if %{without jack} | |
834 | menuselect/menuselect --disable app_jack menuselect.makeopts | |
835 | %endif | |
836 | %if %{without mysql} | |
837 | menuselect/menuselect --disable res_config_mysql --disable app_mysql --disable cdr_mysql menuselect.makeopts | |
838 | %endif | |
839 | %if %{without pgsql} | |
840 | menuselect/menuselect --disable res_config_pgsql --disable cdr_pgsql --disable cel_pgsql menuselect.makeopts | |
841 | %endif | |
842 | %if %{without odbc} | |
843 | menuselect/menuselect --disable res_odbc --disable res_config_odbc --disable cdr_odbc --disable cdr_adaptive_odbc --disable cel_odbc menuselect.makeopts | |
844 | %endif | |
845 | %if %{without radius} | |
846 | menuselect/menuselect --disable cdr_radius --disable cel_radius menuselect.makeopts | |
847 | %endif | |
848 | %if %{without pjsip} | |
849 | menuselect/menuselect --disable res_pjsip --disable chan_pjsip menuselect.makeopts | |
850 | %endif | |
851 | ||
852 | %{__sed} -i -e 's/^MENUSELECT_OPTS_app_voicemail=.*$/MENUSELECT_OPTS_app_voicemail=FILE_STORAGE/' menuselect.makeopts | |
853 | ||
854 | menuselect/menuselect --enable app_voicemail menuselect.makeopts | |
855 | ||
856 | # workaround for build failing with asterisk-devel not installed | |
857 | ln -s libasteriskssl.so.1 ./main/libasteriskssl.so | |
858 | ||
859 | %{__make} DEBUG= \ | |
860 | OPTIMIZE= \ | |
861 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
862 | ASTDATADIR=%{_datadir}/asterisk \ | |
863 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
864 | ASTDBDIR=%{_localstatedir}/spool/asterisk \ | |
865 | %{?with_verbose:NOISY_BUILD=yes} \ | |
866 | ||
867 | %{__rm} apps/app_voicemail.o | |
868 | %{__mv} apps/app_voicemail.so apps/app_voicemail_plain.so | |
869 | ||
870 | %{__sed} -i -e 's/^MENUSELECT_OPTS_app_voicemail=.*$/MENUSELECT_OPTS_app_voicemail=IMAP_STORAGE/' menuselect.makeopts | |
871 | %{__make} DEBUG= \ | |
872 | OPTIMIZE= \ | |
873 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
874 | ASTDATADIR=%{_datadir}/asterisk \ | |
875 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
876 | ASTDBDIR=%{_localstatedir}/spool/asterisk \ | |
877 | %{?with_verbose:NOISY_BUILD=yes} \ | |
878 | ||
879 | %{__rm} apps/app_voicemail.o | |
880 | %{__mv} apps/app_voicemail.so apps/app_voicemail_imap.so | |
881 | ||
882 | %if %{with odbc} | |
883 | %{__sed} -i -e 's/^MENUSELECT_OPTS_app_voicemail=.*$/MENUSELECT_OPTS_app_voicemail=ODBC_STORAGE/' menuselect.makeopts | |
884 | %{__make} DEBUG= \ | |
885 | OPTIMIZE= \ | |
886 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
887 | ASTDATADIR=%{_datadir}/asterisk \ | |
888 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
889 | ASTDBDIR=%{_localstatedir}/spool/asterisk \ | |
890 | %{?with_verbose:NOISY_BUILD=yes} \ | |
891 | ||
892 | %{__rm} apps/app_voicemail.o | |
893 | %{__mv} apps/app_voicemail.so apps/app_voicemail_odbc.so | |
894 | %endif | |
895 | ||
896 | # so that these modules don't get built again during the install phase | |
897 | touch apps/app_voicemail.o | |
898 | touch apps/app_voicemail.so | |
899 | ||
900 | %if %{with apidocs} | |
901 | %{__make} progdocs \ | |
902 | DEBUG= \ | |
903 | OPTIMIZE= \ | |
904 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
905 | ASTDATADIR=%{_datadir}/asterisk \ | |
906 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
907 | ASTDBDIR=%{_localstatedir}/spool/asterisk \ | |
908 | %{?with_verbose:NOISY_BUILD=yes} \ | |
909 | %endif | |
910 | ||
911 | %install | |
912 | rm -rf $RPM_BUILD_ROOT | |
913 | install -d $RPM_BUILD_ROOT{/var/{log/asterisk/cdr-csv,spool/asterisk/monitor},/etc/{rc.d/init.d,sysconfig,logrotate.d}} \ | |
914 | $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir},%{_mandir}/man1} | |
915 | ||
916 | export ASTCFLAGS="%{rpmcflags}" | |
917 | ||
918 | %{__make} -j1 install \ | |
919 | DEBUG= \ | |
920 | OPTIMIZE= \ | |
921 | DESTDIR=$RPM_BUILD_ROOT \ | |
922 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
923 | ASTDATADIR=%{_datadir}/asterisk \ | |
924 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
925 | ASTDBDIR=%{_localstatedir}/spool/asterisk | |
926 | ||
927 | %{__make} -j1 samples \ | |
928 | DEBUG= \ | |
929 | OPTIMIZE= \ | |
930 | DESTDIR=$RPM_BUILD_ROOT \ | |
931 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
932 | ASTDATADIR=%{_datadir}/asterisk \ | |
933 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
934 | ASTDBDIR=%{_localstatedir}/spool/asterisk | |
935 | ||
936 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/asterisk/modules/app_voicemail.so | |
937 | install -D -p apps/app_voicemail_imap.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules | |
938 | %if %{with odbc} | |
939 | install -D -p apps/app_voicemail_odbc.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules | |
940 | %endif | |
941 | install -D -p apps/app_voicemail_plain.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules | |
942 | ||
943 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
944 | cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
945 | cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
946 | install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service | |
947 | ||
948 | install %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf | |
949 | ||
950 | # create some directories that need to be packaged | |
951 | install -d $RPM_BUILD_ROOT%{_datadir}/asterisk/moh | |
952 | install -d $RPM_BUILD_ROOT%{_datadir}/asterisk/sounds | |
953 | ln -s %{_localstatedir}/lib/asterisk/licenses $RPM_BUILD_ROOT%{_datadir}/asterisk/licenses | |
954 | ||
955 | install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/asterisk/licenses | |
956 | install -d $RPM_BUILD_ROOT%{_localstatedir}/log/asterisk/cdr-custom | |
957 | install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/asterisk/festival | |
958 | install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/asterisk/monitor | |
959 | install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/asterisk/outgoing | |
960 | install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/asterisk/uploads | |
961 | ||
962 | install utils/astman.1 $RPM_BUILD_ROOT%{_mandir}/man1/astman.1 | |
963 | ||
964 | # Don't package the sample voicemail user | |
965 | %{__rm} -r $RPM_BUILD_ROOT%{_localstatedir}/spool/asterisk/voicemail/default | |
966 | ||
967 | # Don't package example phone provision configs | |
968 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/asterisk/phoneprov/* | |
969 | ||
970 | # we're not using safe_asterisk | |
971 | %{__rm} $RPM_BUILD_ROOT%{_sbindir}/safe_asterisk | |
972 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/safe_asterisk.8* | |
973 | ||
974 | %if %{with apidocs} | |
975 | find doc/api -name '*.map' -size 0 -delete | |
976 | %endif | |
977 | ||
978 | # remove configuration files for components never built | |
979 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/{app_skel,config_test,misdn,ooh323,test_sorcery}.conf | |
980 | ||
981 | # remove configuration files for disabled optional components | |
982 | %if %{without corosync} | |
983 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/res_corosync.conf | |
984 | %endif | |
985 | %if %{without sqlite2} | |
986 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/res_config_sqlite.conf | |
987 | %endif | |
988 | %if %{without oss} | |
989 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/oss.conf | |
990 | %endif | |
991 | %if %{without tds} | |
992 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/{cdr,cel}_tds.conf | |
993 | %endif | |
994 | %if %{without ldap} | |
995 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/res_ldap.conf | |
996 | %endif | |
997 | %if %{without portaudio} | |
998 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/console.conf | |
999 | %endif | |
1000 | %if %{without bluetooth} | |
1001 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/chan_mobile.conf | |
1002 | %endif | |
1003 | %if %{without mysql} | |
1004 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/res_config_mysql.conf | |
1005 | %endif | |
1006 | %if %{without pgsql} | |
1007 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/{cdr,cel,res}_pgsql.conf | |
1008 | %endif | |
1009 | %if %{without odbc} | |
1010 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/{cdr{,_adaptive},cel,func,res}_odbc.conf | |
1011 | %endif | |
1012 | %if %{without pjsip} | |
1013 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/pjsip{,_notify}.conf | |
1014 | %endif | |
1015 | ||
1016 | %{__rm} -r $RPM_BUILD_ROOT/usr/include/asterisk/doxygen | |
1017 | ||
1018 | %clean | |
1019 | rm -rf $RPM_BUILD_ROOT | |
1020 | ||
1021 | %pre | |
1022 | %groupadd -g 188 asterisk | |
1023 | %useradd -u 188 -r -s /sbin/nologin -d /var/lib/asterisk -M -c 'Asterisk User' -g asterisk asterisk | |
1024 | ||
1025 | %postun | |
1026 | if [ "$1" = 0 ]; then | |
1027 | %userremove asterisk | |
1028 | %groupremove asterisk | |
1029 | fi | |
1030 | %systemd_reload | |
1031 | ||
1032 | %post | |
1033 | /sbin/ldconfig | |
1034 | /sbin/chkconfig --add asterisk | |
1035 | # use -n (NOOP) as restart would be breaking all current calls. | |
1036 | %service -n asterisk restart "Asterisk daemon" | |
1037 | %systemd_post %{name}.service | |
1038 | ||
1039 | %preun | |
1040 | if [ "$1" = "0" ]; then | |
1041 | %service asterisk stop | |
1042 | /sbin/chkconfig --del asterisk | |
1043 | fi | |
1044 | %systemd_preun %{name}.service | |
1045 | ||
1046 | %triggerpostun -- %{name} < 1.6.1.12-0.1 | |
1047 | # chown to asterisk previously root owned files | |
1048 | # loose one (not one that cames from rpm), as we're not trying to split the | |
1049 | # hair with file permission bits. | |
1050 | chown -R asterisk:asterisk /var/spool/asterisk | |
1051 | chown -R asterisk:asterisk /var/lib/asterisk | |
1052 | ||
1053 | %triggerpostun -- %{name} < 12.0.0 | |
1054 | %systemd_trigger %{name}.service | |
1055 | ||
1056 | %files | |
1057 | %defattr(644,root,root,755) | |
1058 | %doc README *.txt ChangeLog BUGS CREDITS configs | |
1059 | %doc doc/asterisk.sgml | |
1060 | ||
1061 | %attr(755,root,root) %{_sbindir}/astcanary | |
1062 | %attr(755,root,root) %{_sbindir}/astdb2bdb | |
1063 | %attr(755,root,root) %{_sbindir}/astdb2sqlite3 | |
1064 | %attr(755,root,root) %{_sbindir}/asterisk | |
1065 | %attr(755,root,root) %{_sbindir}/astgenkey | |
1066 | %attr(755,root,root) %{_sbindir}/astversion | |
1067 | %attr(755,root,root) %{_sbindir}/autosupport | |
1068 | %attr(755,root,root) %{_sbindir}/rasterisk | |
1069 | %{_mandir}/man8/astdb2bdb.8* | |
1070 | %{_mandir}/man8/astdb2sqlite3.8* | |
1071 | %{_mandir}/man8/asterisk.8* | |
1072 | %{_mandir}/man8/astgenkey.8* | |
1073 | %{_mandir}/man8/autosupport.8* | |
1074 | ||
1075 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
1076 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} | |
1077 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} | |
1078 | %{systemdunitdir}/%{name}.service | |
1079 | ||
1080 | %attr(750,root,asterisk) %dir %{_sysconfdir}/asterisk | |
1081 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/acl.conf | |
1082 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/adsi.conf | |
1083 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/agents.conf | |
1084 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/alarmreceiver.conf | |
1085 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/amd.conf | |
1086 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/ari.conf | |
1087 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/asterisk.adsi | |
1088 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/asterisk.conf | |
1089 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/ccss.conf | |
1090 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr.conf | |
1091 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_custom.conf | |
1092 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_manager.conf | |
1093 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_syslog.conf | |
1094 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel.conf | |
1095 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel_custom.conf | |
1096 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cli.conf | |
1097 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cli_aliases.conf | |
1098 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cli_permissions.conf | |
1099 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/codecs.conf | |
1100 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/confbridge.conf | |
1101 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dnsmgr.conf | |
1102 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dsp.conf | |
1103 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dundi.conf | |
1104 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/enum.conf | |
1105 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/extconfig.conf | |
1106 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/extensions.ael | |
1107 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/extensions.conf | |
1108 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/features.conf | |
1109 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/followme.conf | |
1110 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/iax.conf | |
1111 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/iaxprov.conf | |
1112 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/indications.conf | |
1113 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/logger.conf | |
1114 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/manager.conf | |
1115 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/mgcp.conf | |
1116 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/modules.conf | |
1117 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/musiconhold.conf | |
1118 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/muted.conf | |
1119 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/phone.conf | |
1120 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/phoneprov.conf | |
1121 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/queuerules.conf | |
1122 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/queues.conf | |
1123 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_parking.conf | |
1124 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_pktccops.conf | |
1125 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_stun_monitor.conf | |
1126 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/rtp.conf | |
1127 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/say.conf | |
1128 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/sip*.conf | |
1129 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/sla.conf | |
1130 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/smdi.conf | |
1131 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/sorcery.conf | |
1132 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/ss7.timers | |
1133 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/stasis.conf | |
1134 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/statsd.conf | |
1135 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/telcordia-1.adsi | |
1136 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/udptl.conf | |
1137 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/users.conf | |
1138 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/vpb.conf | |
1139 | ||
1140 | %{_libdir}/libasteriskssl.so.1 | |
1141 | ||
1142 | %dir %{_libdir}/asterisk | |
1143 | %dir %{_libdir}/asterisk/modules | |
1144 | ||
1145 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_adsiprog.so | |
1146 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_agent_pool.so | |
1147 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_alarmreceiver.so | |
1148 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_amd.so | |
1149 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_authenticate.so | |
1150 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_bridgewait.so | |
1151 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_cdr.so | |
1152 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_celgenuserevent.so | |
1153 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_chanisavail.so | |
1154 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_channelredirect.so | |
1155 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_chanspy.so | |
1156 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_confbridge.so | |
1157 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_controlplayback.so | |
1158 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_db.so | |
1159 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_dial.so | |
1160 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_dictate.so | |
1161 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_directed_pickup.so | |
1162 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_directory.so | |
1163 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_disa.so | |
1164 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_dumpchan.so | |
1165 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_echo.so | |
1166 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_exec.so | |
1167 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_externalivr.so | |
1168 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_followme.so | |
1169 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_forkcdr.so | |
1170 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_getcpeid.so | |
1171 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_image.so | |
1172 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_macro.so | |
1173 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_milliwatt.so | |
1174 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_mixmonitor.so | |
1175 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_morsecode.so | |
1176 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_mp3.so | |
1177 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_nbscat.so | |
1178 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_originate.so | |
1179 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_playback.so | |
1180 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_playtones.so | |
1181 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_privacy.so | |
1182 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_queue.so | |
1183 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_read.so | |
1184 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_readexten.so | |
1185 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_record.so | |
1186 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_saycounted.so | |
1187 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_sayunixtime.so | |
1188 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_senddtmf.so | |
1189 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_sendtext.so | |
1190 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_setcallerid.so | |
1191 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_sms.so | |
1192 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_softhangup.so | |
1193 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_speech_utils.so | |
1194 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_stack.so | |
1195 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_stasis.so | |
1196 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_system.so | |
1197 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_talkdetect.so | |
1198 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_test.so | |
1199 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_transfer.so | |
1200 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_url.so | |
1201 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_userevent.so | |
1202 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_verbose.so | |
1203 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_waitforring.so | |
1204 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_waitforsilence.so | |
1205 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_waituntil.so | |
1206 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_while.so | |
1207 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_zapateller.so | |
1208 | %attr(755,root,root) %{_libdir}/asterisk/modules/bridge_builtin_features.so | |
1209 | %attr(755,root,root) %{_libdir}/asterisk/modules/bridge_builtin_interval_features.so | |
1210 | %attr(755,root,root) %{_libdir}/asterisk/modules/bridge_holding.so | |
1211 | %attr(755,root,root) %{_libdir}/asterisk/modules/bridge_native_rtp.so | |
1212 | %attr(755,root,root) %{_libdir}/asterisk/modules/bridge_simple.so | |
1213 | %attr(755,root,root) %{_libdir}/asterisk/modules/bridge_softmix.so | |
1214 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_csv.so | |
1215 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_custom.so | |
1216 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_manager.so | |
1217 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_syslog.so | |
1218 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_custom.so | |
1219 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_manager.so | |
1220 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_bridge_media.so | |
1221 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_iax2.so | |
1222 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_mgcp.so | |
1223 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_multicast_rtp.so | |
1224 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_phone.so | |
1225 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_rtp.so | |
1226 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_sip.so | |
1227 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_a_mu.so | |
1228 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_adpcm.so | |
1229 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_alaw.so | |
1230 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_g722.so | |
1231 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_g726.so | |
1232 | %if %{with opus_vp8} | |
1233 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_opus.so | |
1234 | %endif | |
1235 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_ulaw.so | |
1236 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_g719.so | |
1237 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_g723.so | |
1238 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_g726.so | |
1239 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_g729.so | |
1240 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_h263.so | |
1241 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_h264.so | |
1242 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_jpeg.so | |
1243 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_pcm.so | |
1244 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_siren14.so | |
1245 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_siren7.so | |
1246 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_sln.so | |
1247 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_vox.so | |
1248 | %if %{with opus_vp8} | |
1249 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_vp8.so | |
1250 | %endif | |
1251 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_wav.so | |
1252 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_aes.so | |
1253 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_audiohookinherit.so | |
1254 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_base64.so | |
1255 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_blacklist.so | |
1256 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_callcompletion.so | |
1257 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_callerid.so | |
1258 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_cdr.so | |
1259 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_channel.so | |
1260 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_config.so | |
1261 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_cut.so | |
1262 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_db.so | |
1263 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_devstate.so | |
1264 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_dialgroup.so | |
1265 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_dialplan.so | |
1266 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_enum.so | |
1267 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_env.so | |
1268 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_extstate.so | |
1269 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_frame_trace.so | |
1270 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_global.so | |
1271 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_groupcount.so | |
1272 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_hangupcause.so | |
1273 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_holdintercept.so | |
1274 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_iconv.so | |
1275 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_jitterbuffer.so | |
1276 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_lock.so | |
1277 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_logic.so | |
1278 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_math.so | |
1279 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_md5.so | |
1280 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_module.so | |
1281 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_periodic_hook.so | |
1282 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_pitchshift.so | |
1283 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_presencestate.so | |
1284 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_rand.so | |
1285 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_realtime.so | |
1286 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_sha1.so | |
1287 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_shell.so | |
1288 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_sorcery.so | |
1289 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_sprintf.so | |
1290 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_srv.so | |
1291 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_strings.so | |
1292 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_sysinfo.so | |
1293 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_talkdetect.so | |
1294 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_timeout.so | |
1295 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_uri.so | |
1296 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_version.so | |
1297 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_volume.so | |
1298 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_ael.so | |
1299 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_config.so | |
1300 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_dundi.so | |
1301 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_loopback.so | |
1302 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_realtime.so | |
1303 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_spool.so | |
1304 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_adsi.so | |
1305 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ael_share.so | |
1306 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_agi.so | |
1307 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari.so | |
1308 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari_applications.so | |
1309 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari_asterisk.so | |
1310 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari_bridges.so | |
1311 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari_channels.so | |
1312 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari_device_states.so | |
1313 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari_endpoints.so | |
1314 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari_events.so | |
1315 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari_model.so | |
1316 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari_playbacks.so | |
1317 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari_recordings.so | |
1318 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ari_sounds.so | |
1319 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_chan_stats.so | |
1320 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_clialiases.so | |
1321 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_clioriginate.so | |
1322 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_convert.so | |
1323 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_crypto.so | |
1324 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_endpoint_stats.so | |
1325 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_format_attr_celt.so | |
1326 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_format_attr_h263.so | |
1327 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_format_attr_h264.so | |
1328 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_format_attr_opus.so | |
1329 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_format_attr_silk.so | |
1330 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_format_attr_siren14.so | |
1331 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_format_attr_siren7.so | |
1332 | %if %{with opus_vp8} | |
1333 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_format_attr_vp8.so | |
1334 | %endif | |
1335 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_http_websocket.so | |
1336 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_limit.so | |
1337 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_manager_devicestate.so | |
1338 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_manager_presencestate.so | |
1339 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_monitor.so | |
1340 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_mutestream.so | |
1341 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_musiconhold.so | |
1342 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_mwi_external.so | |
1343 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_mwi_external_ami.so | |
1344 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_parking.so | |
1345 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_phoneprov.so | |
1346 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pktccops.so | |
1347 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_realtime.so | |
1348 | # res_rtp_asterisk.so pulls some pjproject libs, but it still looks like a core module | |
1349 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_rtp_asterisk.so | |
1350 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_rtp_multicast.so | |
1351 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_security_log.so | |
1352 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_smdi.so | |
1353 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_sorcery_astdb.so | |
1354 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_sorcery_config.so | |
1355 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_sorcery_memory.so | |
1356 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_sorcery_memory_cache.so | |
1357 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_sorcery_realtime.so | |
1358 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_speech.so | |
1359 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_srtp.so | |
1360 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_stasis.so | |
1361 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_stasis_answer.so | |
1362 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_stasis_device_state.so | |
1363 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_stasis_playback.so | |
1364 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_stasis_recording.so | |
1365 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_stasis_snoop.so | |
1366 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_stun_monitor.so | |
1367 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_timing_pthread.so | |
1368 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_timing_timerfd.so | |
1369 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_statsd.so | |
1370 | %{systemdtmpfilesdir}/%{name}.conf | |
1371 | ||
1372 | %dir %{_datadir}/asterisk | |
1373 | %dir %{_datadir}/asterisk/agi-bin | |
1374 | %dir %{_datadir}/asterisk/firmware | |
1375 | %dir %{_datadir}/asterisk/firmware/iax | |
1376 | %dir %{_datadir}/asterisk/images | |
1377 | %dir %{_datadir}/asterisk/moh | |
1378 | %dir %{_datadir}/asterisk/sounds | |
1379 | %dir %attr(750,root,asterisk) %{_datadir}/asterisk/keys | |
1380 | # no need to protect publicly downloaded and packaged .pub | |
1381 | #%{_datadir}/asterisk/keys/*.pub | |
1382 | %{_datadir}/asterisk/images/*.jpg | |
1383 | %{_datadir}/asterisk/phoneprov | |
1384 | %{_datadir}/asterisk/licenses | |
1385 | ||
1386 | %dir %{_datadir}/asterisk/documentation | |
1387 | %{_datadir}/asterisk/documentation/appdocsxml.dtd | |
1388 | %{_datadir}/asterisk/documentation/appdocsxml.xslt | |
1389 | %{_datadir}/asterisk/documentation/core-en_US.xml | |
1390 | ||
1391 | %dir %{_datadir}/asterisk/rest-api | |
1392 | %{_datadir}/asterisk/rest-api/*.json | |
1393 | ||
1394 | %attr(770,root,asterisk) %dir %{_localstatedir}/lib/asterisk | |
1395 | %dir %attr(750,root,asterisk) %{_localstatedir}/lib/asterisk/licenses | |
1396 | ||
1397 | %attr(770,root,asterisk) %dir %{_localstatedir}/log/asterisk | |
1398 | %attr(770,root,asterisk) %dir %{_localstatedir}/log/asterisk/cdr-csv | |
1399 | %attr(770,root,asterisk) %dir %{_localstatedir}/log/asterisk/cdr-custom | |
1400 | ||
1401 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk | |
1402 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/monitor | |
1403 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/outgoing | |
1404 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/tmp | |
1405 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/uploads | |
1406 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/voicemail | |
1407 | ||
1408 | %attr(775,root,asterisk) %dir %{_localstatedir}/run/asterisk | |
1409 | ||
1410 | %files devel | |
1411 | %defattr(644,root,root,755) | |
1412 | %attr(755,root,root) %{_libdir}/libasteriskssl.so | |
1413 | %dir %{_includedir}/asterisk | |
1414 | %{_includedir}/asterisk/*.h | |
1415 | %{_includedir}/asterisk.h | |
1416 | ||
1417 | %if %{with apidocs} | |
1418 | %files apidocs | |
1419 | %defattr(644,root,root,755) | |
1420 | %doc doc/api/* | |
1421 | %endif | |
1422 | ||
1423 | %files utils | |
1424 | %defattr(644,root,root,755) | |
1425 | %attr(755,root,root) %{_sbindir}/aelparse | |
1426 | %attr(755,root,root) %{_sbindir}/conf2ael | |
1427 | %attr(755,root,root) %{_sbindir}/muted | |
1428 | %attr(755,root,root) %{_sbindir}/smsq | |
1429 | %attr(755,root,root) %{_sbindir}/stereorize | |
1430 | %attr(755,root,root) %{_sbindir}/streamplayer | |
1431 | ||
1432 | %files astman | |
1433 | %defattr(644,root,root,755) | |
1434 | %attr(755,root,root) %{_sbindir}/astman | |
1435 | %{_mandir}/man1/astman.1* | |
1436 | ||
1437 | %files alsa | |
1438 | %defattr(644,root,root,755) | |
1439 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/alsa.conf | |
1440 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_alsa.so | |
1441 | ||
1442 | %if %{with bluetooth} | |
1443 | %files bluetooth | |
1444 | %defattr(644,root,root,755) | |
1445 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/chan_mobile.conf | |
1446 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_mobile.so | |
1447 | %endif | |
1448 | ||
1449 | %files calendar | |
1450 | %defattr(644,root,root,755) | |
1451 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/calendar.conf | |
1452 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_calendar.so | |
1453 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_calendar_caldav.so | |
1454 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_calendar_ews.so | |
1455 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_calendar_exchange.so | |
1456 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_calendar_icalendar.so | |
1457 | ||
1458 | %files curl | |
1459 | %defattr(644,root,root,755) | |
1460 | %doc contrib/scripts/dbsep.cgi | |
1461 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dbsep.conf | |
1462 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_curl.conf | |
1463 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_curl.so | |
1464 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_curl.so | |
1465 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_curl.so | |
1466 | ||
1467 | %files dahdi | |
1468 | %defattr(644,root,root,755) | |
1469 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/meetme.conf | |
1470 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/chan_dahdi.conf | |
1471 | %{_datadir}/dahdi/span_config.d/40-asterisk | |
1472 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_dahdiras.so | |
1473 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_flash.so | |
1474 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_meetme.so | |
1475 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_page.so | |
1476 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_dahdi.so | |
1477 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_dahdi.so | |
1478 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_timing_dahdi.so | |
1479 | ||
1480 | %files fax | |
1481 | %defattr(644,root,root,755) | |
1482 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_fax.conf | |
1483 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_fax.so | |
1484 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_fax_spandsp.so | |
1485 | ||
1486 | %files festival | |
1487 | %defattr(644,root,root,755) | |
1488 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/festival.conf | |
1489 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/festival | |
1490 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_festival.so | |
1491 | ||
1492 | %files gsm | |
1493 | %defattr(644,root,root,755) | |
1494 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_gsm.so | |
1495 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_gsm.so | |
1496 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_wav_gsm.so | |
1497 | ||
1498 | %files http | |
1499 | %defattr(644,root,root,755) | |
1500 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/http.conf | |
1501 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_http_post.so | |
1502 | %{_datadir}/asterisk/static-http | |
1503 | ||
1504 | %files ices | |
1505 | %defattr(644,root,root,755) | |
1506 | %doc contrib/asterisk-ices.xml | |
1507 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_ices.so | |
1508 | ||
1509 | %if %{with ilbc} | |
1510 | %files ilbc | |
1511 | %defattr(644,root,root,755) | |
1512 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_ilbc.so | |
1513 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_ilbc.so | |
1514 | %endif | |
1515 | ||
1516 | %files jabber | |
1517 | %defattr(644,root,root,755) | |
1518 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/motif.conf | |
1519 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/xmpp.conf | |
1520 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_motif.so | |
1521 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_xmpp.so | |
1522 | ||
1523 | %if %{with jack} | |
1524 | %files jack | |
1525 | %defattr(644,root,root,755) | |
1526 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_jack.so | |
1527 | %endif | |
1528 | ||
1529 | %files lua | |
1530 | %defattr(644,root,root,755) | |
1531 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/extensions.lua | |
1532 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_lua.so | |
1533 | ||
1534 | %if %{with ldap} | |
1535 | %files ldap | |
1536 | %defattr(644,root,root,755) | |
1537 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_ldap.conf | |
1538 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_ldap.so | |
1539 | ||
1540 | %if 0 | |
1541 | %files ldap-fds | |
1542 | %defattr(644,root,root,755) | |
1543 | %{_sysconfdir}/dirsrv/schema/99asterisk.ldif | |
1544 | %endif | |
1545 | %endif | |
1546 | ||
1547 | %files lpc10 | |
1548 | %defattr(644,root,root,755) | |
1549 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_lpc10.so | |
1550 | ||
1551 | %files minivm | |
1552 | %defattr(644,root,root,755) | |
1553 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/extensions_minivm.conf | |
1554 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/minivm.conf | |
1555 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_minivm.so | |
1556 | ||
1557 | %if %{with mysql} | |
1558 | %files mysql | |
1559 | %defattr(644,root,root,755) | |
1560 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/app_mysql.conf | |
1561 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_mysql.conf | |
1562 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_config_mysql.conf | |
1563 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_mysql.so | |
1564 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_mysql.so | |
1565 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_mysql.so | |
1566 | %endif | |
1567 | ||
1568 | %if %{with odbc} | |
1569 | %files odbc | |
1570 | %defattr(644,root,root,755) | |
1571 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_adaptive_odbc.conf | |
1572 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_odbc.conf | |
1573 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel_odbc.conf | |
1574 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/func_odbc.conf | |
1575 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_odbc.conf | |
1576 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_adaptive_odbc.so | |
1577 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_odbc.so | |
1578 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_odbc.so | |
1579 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_odbc.so | |
1580 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_odbc.so | |
1581 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_odbc.so | |
1582 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_odbc_transaction.so | |
1583 | %endif | |
1584 | ||
1585 | %files osp | |
1586 | %defattr(644,root,root,755) | |
1587 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/osp.conf | |
1588 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_osplookup.so | |
1589 | ||
1590 | %if %{with oss} | |
1591 | %files oss | |
1592 | %defattr(644,root,root,755) | |
1593 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/oss.conf | |
1594 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_oss.so | |
1595 | %endif | |
1596 | ||
1597 | %if %{with pjsip} | |
1598 | %files pjsip | |
1599 | %defattr(644,root,root,755) | |
1600 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/pjproject.conf | |
1601 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/pjsip.conf | |
1602 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/pjsip_notify.conf | |
1603 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/pjsip_wizard.conf | |
1604 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/hep.conf | |
1605 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_pjsip.so | |
1606 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_pjsip_aor.so | |
1607 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_pjsip_contact.so | |
1608 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_pjsip_endpoint.so | |
1609 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_hep.so | |
1610 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_hep_pjsip.so | |
1611 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_hep_rtcp.so | |
1612 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjproject.so | |
1613 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_acl.so | |
1614 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_authenticator_digest.so | |
1615 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_caller_id.so | |
1616 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_config_wizard.so | |
1617 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_dialog_info_body_generator.so | |
1618 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_diversion.so | |
1619 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_dlg_options.so | |
1620 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_dtmf_info.so | |
1621 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_empty_info.so | |
1622 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_endpoint_identifier_anonymous.so | |
1623 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_endpoint_identifier_ip.so | |
1624 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_endpoint_identifier_user.so | |
1625 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_exten_state.so | |
1626 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_header_funcs.so | |
1627 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_history.so | |
1628 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_logger.so | |
1629 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_messaging.so | |
1630 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_multihomed.so | |
1631 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_mwi_body_generator.so | |
1632 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_mwi.so | |
1633 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_nat.so | |
1634 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_notify.so | |
1635 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_one_touch_record_info.so | |
1636 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_outbound_authenticator_digest.so | |
1637 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_outbound_publish.so | |
1638 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_outbound_registration.so | |
1639 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_path.so | |
1640 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_phoneprov_provider.so | |
1641 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_pidf_body_generator.so | |
1642 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_pidf_digium_body_supplement.so | |
1643 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_pidf_eyebeam_body_supplement.so | |
1644 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_publish_asterisk.so | |
1645 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_pubsub.so | |
1646 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_refer.so | |
1647 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_registrar_expire.so | |
1648 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_registrar.so | |
1649 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_rfc3326.so | |
1650 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_sdp_rtp.so | |
1651 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_send_to_voicemail.so | |
1652 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_session.so | |
1653 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_sips_contact.so | |
1654 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip.so | |
1655 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_t38.so | |
1656 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_transport_management.so | |
1657 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_transport_websocket.so | |
1658 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pjsip_xpidf_body_generator.so | |
1659 | %endif | |
1660 | ||
1661 | %if %{with portaudio} | |
1662 | %files portaudio | |
1663 | %defattr(644,root,root,755) | |
1664 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/console.conf | |
1665 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_console.so | |
1666 | %endif | |
1667 | ||
1668 | %if %{with pgsql} | |
1669 | %files postgresql | |
1670 | %defattr(644,root,root,755) | |
1671 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_pgsql.conf | |
1672 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel_pgsql.conf | |
1673 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_pgsql.conf | |
1674 | %doc contrib/realtime/postgresql/postgresql_cdr.sql | |
1675 | %doc contrib/realtime/postgresql/postgresql_config.sql | |
1676 | %doc contrib/realtime/postgresql/postgresql_voicemail.sql | |
1677 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_pgsql.so | |
1678 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_pgsql.so | |
1679 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_pgsql.so | |
1680 | %endif | |
1681 | ||
1682 | %if %{with radius} | |
1683 | %files radius | |
1684 | %defattr(644,root,root,755) | |
1685 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_radius.so | |
1686 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_radius.so | |
1687 | %endif | |
1688 | ||
1689 | %files resample | |
1690 | %defattr(644,root,root,755) | |
1691 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_resample.so | |
1692 | ||
1693 | %files skinny | |
1694 | %defattr(644,root,root,755) | |
1695 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/skinny.conf | |
1696 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_skinny.so | |
1697 | ||
1698 | %files snmp | |
1699 | %defattr(644,root,root,755) | |
1700 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_snmp.conf | |
1701 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_snmp.so | |
1702 | ||
1703 | %files speex | |
1704 | %defattr(644,root,root,755) | |
1705 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_speex.so | |
1706 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_speex.so | |
1707 | ||
1708 | %if %{with sqlite2} | |
1709 | %files sqlite2 | |
1710 | %defattr(644,root,root,755) | |
1711 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_config_sqlite.conf | |
1712 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_sqlite.so | |
1713 | %endif | |
1714 | ||
1715 | %files sqlite3 | |
1716 | %defattr(644,root,root,755) | |
1717 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_sqlite3_custom.conf | |
1718 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel_sqlite3_custom.conf | |
1719 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_config_sqlite3.conf | |
1720 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_sqlite3_custom.so | |
1721 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_sqlite3_custom.so | |
1722 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_sqlite3.so | |
1723 | ||
1724 | %if %{with tds} | |
1725 | %files tds | |
1726 | %defattr(644,root,root,755) | |
1727 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_tds.conf | |
1728 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel_tds.conf | |
1729 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_tds.so | |
1730 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_tds.so | |
1731 | %endif | |
1732 | ||
1733 | %files unistim | |
1734 | %defattr(644,root,root,755) | |
1735 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/unistim.conf | |
1736 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_unistim.so | |
1737 | ||
1738 | ||
1739 | %files voicemail | |
1740 | %defattr(644,root,root,755) | |
1741 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/voicemail.conf | |
1742 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_vmcount.so | |
1743 | ||
1744 | %files voicemail-imap | |
1745 | %defattr(644,root,root,755) | |
1746 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_voicemail_imap.so | |
1747 | ||
1748 | %if %{with odbc} | |
1749 | %files voicemail-odbc | |
1750 | %defattr(644,root,root,755) | |
1751 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_voicemail_odbc.so | |
1752 | %endif | |
1753 | ||
1754 | %files voicemail-plain | |
1755 | %defattr(644,root,root,755) | |
1756 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_voicemail_plain.so | |
1757 | ||
1758 | %files vorbis | |
1759 | %defattr(644,root,root,755) | |
1760 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_ogg_vorbis.so |