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