]>
Commit | Line | Data |
---|---|---|
8ac733fc | 1 | # TODO: |
fa052d68 | 2 | # - check/fix build with our h323. Does anybody still use H.323, anyway? |
8ac733fc | 3 | # - cgi-bin package - separate, because of suid-root |
0893acfb | 4 | # - use shared versions of LIBILBC:=ilbc/libilbc.a (ilbc not enabled currently) |
dd54f70d | 5 | # - CFLAGS passing |
1a59be60 | 6 | # - make package for moh sound files |
a0bbadbf ER |
7 | # - likely odbc and imap broken (identical code, some #define not working, etc): |
8 | # *** WARNING: identical binaries are copied, not linked: | |
9 | # %attr(755,root,root) %{_libdir}/asterisk/modules/app_directory_odbc.so | |
10 | # and /usr/lib64/asterisk/modules/app_directory_imap.so | |
11 | # *** WARNING: identical binaries are copied, not linked: | |
12 | # %attr(755,root,root) %{_libdir}/asterisk/modules/app_directory_plain.so | |
13 | # and /usr/lib64/asterisk/modules/app_directory_imap.so | |
750e5644 | 14 | # - ncurses dep gone for good (replaced by libedit)? |
1b6f7009 ER |
15 | # - missing/failed features: |
16 | # $ grep =0 build_tools/menuselect-deps | |
f9d8a083 | 17 | # NBS=0 AST_EXT_LIB_SETUP([NBS], [Network Broadcast Sound], [nbs]) |
f9d8a083 ER |
18 | # SS7=0 AST_EXT_LIB_SETUP([SS7], [ISDN SS7], [ss7]) |
19 | # VPBAPI=0 AST_EXT_LIB_SETUP([VPB], [Voicetronix API], [vpb]) | |
4fa818dd | 20 | # - %attr(755,root,root) %{_libdir}/asterisk/modules/chan_usbradio.so |
fb0589cb JB |
21 | # |
22 | # Conditional build: | |
fa052d68 | 23 | %bcond_with h323 # without h323 support |
839d3bea | 24 | %bcond_with verbose # res_corosync module (broken in 12.0.0) |
750e5644 ER |
25 | %bcond_without apidocs # disable apidocs building |
26 | %bcond_without verbose # verbose build | |
0adeb087 | 27 | |
334d264b | 28 | %define rel 0.1 |
8ac733fc | 29 | Summary: Asterisk PBX |
3dd43888 | 30 | Summary(pl.UTF-8): Centralka (PBX) Asterisk |
8ac733fc | 31 | Name: asterisk |
334d264b | 32 | Version: 12.0.0 |
b178e809 | 33 | Release: %{rel} |
8ac733fc PG |
34 | License: GPL v2 |
35 | Group: Applications/System | |
8c1b5e50 | 36 | Source0: http://downloads.digium.com/pub/asterisk/releases/%{name}-%{version}.tar.gz |
334d264b | 37 | # Source0-md5: 1226dabeba5637e6114936ea9e916b88 |
48b81789 PG |
38 | Source1: %{name}.init |
39 | Source2: %{name}.sysconfig | |
27944e5a | 40 | Source3: %{name}.tmpfiles |
046a2286 | 41 | Source5: %{name}.logrotate |
3116fec3 AM |
42 | # menuselect.* -> make menuconfig; choose options; copy resulting files here |
43 | Source12: menuselect.makedeps | |
44 | Source13: menuselect.makeopts | |
ba762f24 | 45 | Patch0: mxml-system.patch |
8c44d5b7 | 46 | Patch1: lua51-path.patch |
707c94d9 JK |
47 | Patch2: %{name}-lib.patch |
48 | Patch3: %{name}-ppc.patch | |
49 | Patch4: FHS-paths.patch | |
50 | Patch5: pld-banner.patch | |
51 | Patch6: lpc10-system.patch | |
8c7a2ffa | 52 | URL: http://www.asterisk.org/ |
1dac8036 | 53 | BuildRequires: OSPToolkit-devel >= 4.0.0 |
7e588411 | 54 | BuildRequires: SDL_image-devel |
8c1b5e50 | 55 | BuildRequires: alsa-lib-devel |
7605fc79 AM |
56 | BuildRequires: autoconf |
57 | BuildRequires: automake | |
7346b8fc | 58 | BuildRequires: bison |
3116fec3 | 59 | BuildRequires: bluez-libs-devel |
839d3bea | 60 | %{?with_corosync:BuildRequires: corosync-devel >= 2.0.0} |
7e588411 | 61 | BuildRequires: curl-devel |
8e72a4f9 | 62 | BuildRequires: dahdi-linux-devel |
a149dc9c | 63 | BuildRequires: dahdi-tools-devel >= 2.0.0 |
1b7ef3a2 | 64 | BuildRequires: doxygen |
8e72a4f9 | 65 | BuildRequires: freetds-devel >= 0.63 |
7346b8fc | 66 | BuildRequires: gawk |
19b2566c | 67 | BuildRequires: gcc >= 5:3.4 |
8e72a4f9 | 68 | BuildRequires: gmime22-devel |
d925c006 | 69 | BuildRequires: gtk+2-devel |
7605fc79 | 70 | BuildRequires: iksemel-devel |
6889aefb | 71 | BuildRequires: imap-devel |
8c1b5e50 | 72 | BuildRequires: jack-audio-connection-kit-devel |
1dac8036 | 73 | BuildRequires: jansson-devel |
8e72a4f9 | 74 | BuildRequires: libcap-devel |
5d89ea99 | 75 | BuildRequires: libedit-devel |
1b6f7009 | 76 | BuildRequires: libgsm-devel |
d579563d | 77 | BuildRequires: libical-devel |
8c1b5e50 | 78 | BuildRequires: libogg-devel |
4fa818dd | 79 | BuildRequires: libresample-devel |
1dac8036 | 80 | BuildRequires: libuuid-devel |
7e588411 | 81 | BuildRequires: libvorbis-devel |
d925c006 | 82 | BuildRequires: libxml2-devel |
1dac8036 | 83 | BuildRequires: libxslt-devel |
1b6f7009 | 84 | BuildRequires: lpc10-devel |
8c44d5b7 | 85 | BuildRequires: lua51-devel |
ba762f24 | 86 | BuildRequires: mxml-devel |
82475f50 PG |
87 | BuildRequires: mysql-devel |
88 | BuildRequires: ncurses-devel | |
f6b38539 | 89 | BuildRequires: neon-devel |
8c1b5e50 AM |
90 | BuildRequires: net-snmp-devel |
91 | BuildRequires: newt-devel | |
7525849f | 92 | %if %{with h323} |
4642ade3 | 93 | BuildRequires: h323plus-devel >= 1.24.0 |
7525849f | 94 | %endif |
8c1b5e50 | 95 | BuildRequires: openldap-devel |
12ec33bf | 96 | BuildRequires: openssl-devel >= 0.9.7d |
8e72a4f9 | 97 | BuildRequires: pam-devel |
1dac8036 | 98 | BuildRequires: pjproject-devel |
8e72a4f9 | 99 | BuildRequires: pkgconfig |
8c1b5e50 | 100 | BuildRequires: popt-devel |
a149dc9c | 101 | BuildRequires: portaudio-devel >= 19 |
8e72a4f9 | 102 | BuildRequires: postgresql-devel |
7525849f | 103 | %if %{with h323} |
4642ade3 | 104 | BuildRequires: ptlib-devel |
7525849f | 105 | %endif |
8e72a4f9 | 106 | BuildRequires: radiusclient-ng-devel |
fa4054d8 | 107 | BuildRequires: rpmbuild(macros) >= 1.268 |
591f7fb9 | 108 | BuildRequires: sed >= 4.0 |
1b6f7009 | 109 | BuildRequires: spandsp-devel >= 0.0.5 |
fa4054d8 | 110 | BuildRequires: speex-devel |
8e72a4f9 | 111 | BuildRequires: sqlite-devel |
8c1b5e50 | 112 | BuildRequires: sqlite3-devel |
b89d2618 | 113 | BuildRequires: srtp-devel |
8e72a4f9 | 114 | BuildRequires: unixODBC-devel |
1dac8036 | 115 | BuildRequires: uriparser-devel |
7e588411 | 116 | BuildRequires: xorg-lib-libX11-devel |
8e72a4f9 | 117 | BuildRequires: zlib-devel |
a149dc9c | 118 | BuildRequires: libpri-devel >= 1.4.6 |
a149dc9c | 119 | %if %{with fc} |
a149dc9c ER |
120 | BuildRequires: libss7-devel >= 1.0.1 |
121 | BuildRequires: libtool-ltdl-devel | |
122 | BuildRequires: libusb-devel | |
123 | BuildRequires: lm_sensors-devel | |
a149dc9c | 124 | %endif |
db3e4bef JR |
125 | Requires(post,preun): /sbin/chkconfig |
126 | Requires(postun): /usr/sbin/groupdel | |
127 | Requires(postun): /usr/sbin/userdel | |
128 | Requires(pre): /bin/id | |
129 | Requires(pre): /usr/bin/getgid | |
130 | Requires(pre): /usr/sbin/groupadd | |
131 | Requires(pre): /usr/sbin/useradd | |
fa4054d8 | 132 | Requires: rc-scripts |
db3e4bef JR |
133 | Provides: group(asterisk) |
134 | Provides: user(asterisk) | |
135 | Conflicts: logrotate < 3.8.0 | |
8ac733fc PG |
136 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
137 | ||
138 | %description | |
139 | Asterisk is an Open Source PBX and telephony development platform that | |
140 | can both replace a conventional PBX and act as a platform for | |
141 | developing custom telephony applications for delivering dynamic | |
142 | content over a telephone similarly to how one can deliver dynamic | |
143 | content through a web browser using CGI and a web server. | |
144 | ||
145 | Asterisk talks to a variety of telephony hardware including BRI, PRI, | |
146 | POTS, and IP telephony clients using the Inter-Asterisk eXchange | |
147 | protocol (e.g. gnophone or miniphone). For more information and a | |
8c7a2ffa | 148 | current list of supported hardware, see http://www.asterisk.org/. |
de95e0fb | 149 | |
82de9d0d JR |
150 | %description -l pl.UTF-8 |
151 | Asterisk to wolnodostępna centralka (PBX) i platforma programistyczna | |
152 | dla telefonii, mogąca zastąpić konwencjonalne PBX-y oraz służyć jako | |
153 | platforma do rozwijania własnych aplikacji telefonicznych do | |
154 | przekazywania dynamicznej treści przez telefon, podobnie jak można | |
155 | przekazywać dynamiczną treść przez przeglądarkę WWW przy użyciu CGI i | |
de95e0fb JB |
156 | serwera WWW. |
157 | ||
82de9d0d JR |
158 | Asterisk współpracuje z wielorakim sprzętem telefonicznym, w tym BRI, |
159 | PRI, POTS oraz klienty telefonii IP używające protokołu Inter-Asterisk | |
160 | eXchange (np. gnophone lub miniphone). Więcej informacji i listę | |
161 | obsługiwanego sprzętu można znaleźć pod http://www.asterisk.org/. | |
8ac733fc PG |
162 | |
163 | %package devel | |
de95e0fb | 164 | Summary: Header files for Asterisk platform |
3dd43888 | 165 | Summary(pl.UTF-8): Pliki nagłówkowe platformy Asterisk |
8ac733fc | 166 | Group: Development |
8ac733fc PG |
167 | |
168 | %description devel | |
de95e0fb | 169 | Header files for Asterisk development platform. |
8ac733fc | 170 | |
82de9d0d JR |
171 | %description devel -l pl.UTF-8 |
172 | Pliki nagłówkowe platformy programistycznej Asterisk. | |
8ac733fc | 173 | |
a149dc9c ER |
174 | %package ais |
175 | Summary: Modules for Asterisk that use OpenAIS | |
176 | Group: Applications/Networking | |
177 | Requires: %{name} = %{version}-%{release} | |
178 | ||
179 | %description ais | |
180 | Modules for Asterisk that use OpenAIS. | |
181 | ||
182 | %package alsa | |
183 | Summary: Modules for Asterisk that use Alsa sound drivers | |
184 | Group: Applications/Networking | |
185 | Requires: %{name} = %{version}-%{release} | |
186 | ||
187 | %description alsa | |
188 | Modules for Asterisk that use Alsa sound drivers. | |
189 | ||
622100af ER |
190 | %package astman |
191 | Summary: Astman is a text mode Manager for Asterisk | |
192 | Group: Applications/Networking | |
193 | ||
194 | %description astman | |
195 | Astman is a text mode Manager for Asterisk. | |
196 | ||
197 | Astman connects to Asterisk by TCP, so you can run Astman on a | |
198 | completely different computer than your Asterisk computer. | |
199 | ||
a149dc9c ER |
200 | %package curl |
201 | Summary: Modules for Asterisk that use cURL | |
202 | Group: Applications/Networking | |
203 | Requires: %{name} = %{version}-%{release} | |
204 | ||
205 | %description curl | |
206 | Modules for Asterisk that use cURL. | |
207 | ||
208 | %package dahdi | |
209 | Summary: Modules for Asterisk that use DAHDI | |
210 | Group: Applications/Networking | |
211 | Requires(pre): /usr/sbin/usermod | |
212 | Requires: %{name} = %{version}-%{release} | |
213 | Requires: dahdi-tools >= 2.0.0 | |
214 | ||
215 | %description dahdi | |
216 | Modules for Asterisk that use DAHDI. | |
217 | ||
218 | %package fax | |
219 | Summary: FAX applications for Asterisk | |
220 | Group: Applications/Networking | |
221 | Requires: %{name} = %{version}-%{release} | |
222 | ||
223 | %description fax | |
224 | FAX applications for Asterisk | |
225 | ||
226 | %package festival | |
227 | Summary: Festival application for Asterisk | |
228 | Group: Applications/Networking | |
229 | Requires: %{name} = %{version}-%{release} | |
230 | Requires: festival | |
231 | ||
232 | %description festival | |
233 | Application for the Asterisk PBX that uses Festival to convert text to | |
234 | speech. | |
235 | ||
622100af ER |
236 | %package gsm |
237 | Summary: Support GSM audio encoding/decoding | |
238 | Group: Applications/Networking | |
239 | Requires: %{name} = %{version}-%{release} | |
240 | ||
241 | %description gsm | |
242 | Support GSM audio encoding/decoding. | |
243 | ||
91beb87f | 244 | %package h323 |
4fb7c436 | 245 | Summary: H.323 protocol support for Asterisk |
91beb87f ER |
246 | Group: Applications/Networking |
247 | Requires: %{name} = %{version}-%{release} | |
248 | ||
249 | %description h323 | |
1b6f7009 ER |
250 | This channel driver (chan_h323) provides support for the H.323 |
251 | protocol for Asterisk. This is an implementation originally | |
252 | contributed by NuFone and nowdays maintained and distributed by | |
253 | Digium, Inc. Hence, it is considered the official H.323 chanel driver. | |
91beb87f | 254 | |
622100af ER |
255 | %package http |
256 | Summary: HTTP Server Support | |
257 | Group: Applications/Networking | |
258 | Requires: %{name} = %{version}-%{release} | |
259 | ||
260 | %description http | |
261 | HTTP Server Support. | |
262 | ||
a149dc9c ER |
263 | %package ices |
264 | Summary: Stream audio from Asterisk to an IceCast server | |
265 | Group: Applications/Networking | |
266 | Requires: %{name} = %{version}-%{release} | |
267 | Requires: ices | |
268 | Obsoletes: asterisk < 1.4.18-1 | |
269 | Conflicts: asterisk < 1.4.18-1 | |
270 | ||
271 | %description ices | |
272 | Stream audio from Asterisk to an IceCast server. | |
273 | ||
274 | %package jabber | |
275 | Summary: Jabber/XMPP resources for Asterisk | |
276 | Group: Applications/Networking | |
277 | Requires: %{name} = %{version}-%{release} | |
278 | ||
279 | %description jabber | |
280 | Jabber/XMPP resources for Asterisk. | |
281 | ||
282 | %package jack | |
283 | Summary: JACK resources for Asterisk | |
284 | Group: Applications/Networking | |
285 | Requires: %{name} = %{version}-%{release} | |
286 | ||
287 | %description jack | |
288 | JACK resources for Asterisk. | |
289 | ||
290 | %package lua | |
291 | Summary: Lua resources for Asterisk | |
292 | Group: Applications/Networking | |
293 | Requires: %{name} = %{version}-%{release} | |
294 | ||
295 | %description lua | |
296 | Lua resources for Asterisk. | |
297 | ||
298 | %package ldap | |
299 | Summary: LDAP resources for Asterisk | |
300 | Group: Applications/Networking | |
301 | Requires: %{name} = %{version}-%{release} | |
302 | ||
303 | %description ldap | |
304 | LDAP resources for Asterisk. | |
305 | ||
306 | %package ldap-fds | |
307 | Summary: LDAP resources for Asterisk and the Fedora Directory Server | |
308 | Group: Applications/Networking | |
309 | Requires: %{name} = %{version}-%{release} | |
310 | Requires: %{name}-ldap = %{version}-%{release} | |
311 | Requires: fedora-ds-base | |
312 | ||
313 | %description ldap-fds | |
314 | LDAP resources for Asterisk and the Fedora Directory Server. | |
315 | ||
622100af ER |
316 | %package lpc10 |
317 | Summary: LPC-10 2400 bps Voice Codec support | |
318 | Group: Applications/Networking | |
319 | Requires: %{name} = %{version}-%{release} | |
320 | ||
321 | %description lpc10 | |
322 | LPC-10 2400 bps Voice Codec support | |
323 | ||
a149dc9c ER |
324 | %package minivm |
325 | Summary: MiniVM applicaton for Asterisk | |
326 | Group: Applications/Networking | |
327 | Requires: %{name} = %{version}-%{release} | |
328 | ||
329 | %description minivm | |
330 | MiniVM application for Asterisk. | |
331 | ||
332 | %package odbc | |
333 | Summary: Applications for Asterisk that use ODBC (except voicemail) | |
334 | Group: Applications/Networking | |
335 | Requires: %{name} = %{version}-%{release} | |
336 | ||
337 | %description odbc | |
338 | Applications for Asterisk that use ODBC (except voicemail) | |
339 | ||
385eff93 ER |
340 | %package osp |
341 | Summary: Modules for Asterisk that use Open Settlement Protocol (OSP) Applications | |
342 | Group: Applications/Networking | |
343 | Requires: %{name} = %{version}-%{release} | |
344 | ||
345 | %description osp | |
346 | Open Settlement Protocol (OSP) Applications. | |
347 | ||
a149dc9c ER |
348 | %package oss |
349 | Summary: Modules for Asterisk that use OSS sound drivers | |
350 | Group: Applications/Networking | |
351 | Requires: %{name} = %{version}-%{release} | |
352 | ||
353 | %description oss | |
354 | Modules for Asterisk that use OSS sound drivers. | |
355 | ||
356 | %package portaudio | |
357 | Summary: Modules for Asterisk that use the portaudio library | |
358 | Group: Applications/Networking | |
359 | Requires: %{name} = %{version}-%{release} | |
360 | ||
361 | %description portaudio | |
362 | Modules for Asterisk that use the portaudio library. | |
363 | ||
364 | %package postgresql | |
365 | Summary: Applications for Asterisk that use PostgreSQL | |
366 | Group: Applications/Networking | |
367 | Requires: %{name} = %{version}-%{release} | |
368 | ||
369 | %description postgresql | |
370 | Applications for Asterisk that use PostgreSQL. | |
371 | ||
372 | %package radius | |
373 | Summary: Applications for Asterisk that use RADIUS | |
374 | Group: Applications/Networking | |
375 | Requires: %{name} = %{version}-%{release} | |
376 | ||
377 | %description radius | |
378 | Applications for Asterisk that use RADIUS. | |
379 | ||
622100af ER |
380 | %package resample |
381 | Summary: resample codec | |
382 | Group: Applications/Networking | |
383 | Requires: %{name} = %{version}-%{release} | |
384 | ||
385 | %description resample | |
386 | resample codec. | |
387 | ||
a149dc9c ER |
388 | %package skinny |
389 | Summary: Modules for Asterisk that support the SCCP/Skinny protocol | |
390 | Group: Applications/Networking | |
391 | Requires: %{name} = %{version}-%{release} | |
392 | ||
393 | %description skinny | |
394 | Modules for Asterisk that support the SCCP/Skinny protocol. | |
395 | ||
396 | %package snmp | |
397 | Summary: Module that enables SNMP monitoring of Asterisk | |
398 | Group: Applications/Networking | |
399 | Requires: %{name} = %{version}-%{release} | |
750e5644 | 400 | Requires: mibs-dirs |
a149dc9c ER |
401 | |
402 | %description snmp | |
403 | Module that enables SNMP monitoring of Asterisk. | |
404 | ||
622100af ER |
405 | %package speex |
406 | Summary: Speex codec support | |
407 | Group: Applications/Networking | |
408 | Requires: %{name} = %{version}-%{release} | |
409 | ||
410 | %description speex | |
411 | Speex codec support. | |
412 | ||
a149dc9c ER |
413 | %package sqlite |
414 | Summary: Sqlite modules for Asterisk | |
415 | Group: Applications/Networking | |
416 | Requires: %{name} = %{version}-%{release} | |
417 | ||
418 | %description sqlite | |
419 | Sqlite modules for Asterisk. | |
420 | ||
421 | %package tds | |
422 | Summary: Modules for Asterisk that use FreeTDS | |
423 | Group: Applications/Networking | |
424 | Requires: %{name} = %{version}-%{release} | |
425 | ||
426 | %description tds | |
427 | Modules for Asterisk that use FreeTDS. | |
428 | ||
429 | %package unistim | |
430 | Summary: Unistim channel for Asterisk | |
431 | Group: Applications/Networking | |
432 | Requires: %{name} = %{version}-%{release} | |
433 | ||
434 | %description unistim | |
435 | Unistim channel for Asterisk | |
436 | ||
a149dc9c ER |
437 | %package voicemail |
438 | Summary: Common Voicemail Modules for Asterisk | |
439 | Group: Applications/Networking | |
440 | Requires: %{name} = %{version}-%{release} | |
441 | Requires: %{name}-voicemail-implementation = %{version}-%{release} | |
442 | Requires: /usr/lib/sendmail | |
443 | Requires: sox | |
444 | ||
445 | %description voicemail | |
446 | Common Voicemail Modules for Asterisk. | |
447 | ||
448 | %package voicemail-imap | |
449 | Summary: Store voicemail on an IMAP server | |
450 | Group: Applications/Networking | |
451 | Requires: %{name} = %{version}-%{release} | |
452 | Requires: %{name}-voicemail = %{version}-%{release} | |
453 | Provides: %{name}-voicemail-implementation = %{version}-%{release} | |
454 | ||
455 | %description voicemail-imap | |
456 | Voicemail implementation for Asterisk that stores voicemail on an IMAP | |
457 | server. | |
458 | ||
459 | %package voicemail-odbc | |
460 | Summary: Store voicemail in a database using ODBC | |
461 | Group: Applications/Networking | |
462 | Requires: %{name} = %{version}-%{release} | |
463 | Requires: %{name}-voicemail = %{version}-%{release} | |
464 | Provides: %{name}-voicemail-implementation = %{version}-%{release} | |
465 | ||
466 | %description voicemail-odbc | |
467 | Voicemail implementation for Asterisk that uses ODBC to store | |
468 | voicemail in a database. | |
469 | ||
470 | %package voicemail-plain | |
471 | Summary: Store voicemail on the local filesystem | |
472 | Group: Applications/Networking | |
473 | Requires: %{name} = %{version}-%{release} | |
474 | Requires: %{name}-voicemail = %{version}-%{release} | |
475 | Provides: %{name}-voicemail-implementation = %{version}-%{release} | |
476 | ||
477 | %description voicemail-plain | |
478 | Voicemail implementation for Asterisk that stores voicemail on the | |
479 | local filesystem. | |
480 | ||
622100af ER |
481 | %package vorbis |
482 | Summary: Ogg Vorbis format support | |
483 | Group: Applications/Networking | |
484 | Requires: %{name} = %{version}-%{release} | |
485 | ||
486 | %description vorbis | |
487 | Ogg Vorbis format support. | |
488 | ||
a5be3e03 ER |
489 | # define apidocs as last package, as it is the biggest one |
490 | %package apidocs | |
491 | Summary: API documentation for Asterisk | |
492 | Group: Documentation | |
0195c89b ER |
493 | %if "%{_rpmversion}" >= "5" |
494 | BuildArch: noarch | |
495 | %endif | |
a5be3e03 ER |
496 | |
497 | %description apidocs | |
498 | API documentation for Asterisk. | |
499 | ||
8ac733fc | 500 | %prep |
8e72a4f9 | 501 | %setup -q |
ba762f24 | 502 | %patch0 -p1 |
8c44d5b7 | 503 | %patch1 -p1 |
707c94d9 | 504 | %patch2 -p1 |
5d89ea99 | 505 | %patch3 -p1 |
0303e2bb | 506 | %patch4 -p1 |
707c94d9 JK |
507 | %patch5 -p1 |
508 | %patch6 -p1 | |
36a72b9c | 509 | |
a149dc9c ER |
510 | # Fixup makefile so sound archives aren't downloaded/installed |
511 | %{__sed} -i -e 's/^all:.*$/all:/' sounds/Makefile | |
512 | %{__sed} -i -e 's/^install:.*$/install:/' sounds/Makefile | |
513 | ||
1b6f7009 ER |
514 | # avoid using these |
515 | rm -rf imap menuselect/mxml main/editline codecs/gsm codecs/lpc10 | |
6db22ae5 | 516 | |
3116fec3 AM |
517 | install %{SOURCE12} . |
518 | install %{SOURCE13} . | |
519 | ||
520 | %if %{without h323} | |
521 | sed -i -e 's#\(MENUSELECT_ADDONS=.*\)#\1 chan_ooh323#g' menuselect.makeopts | |
522 | %endif | |
839d3bea JK |
523 | %if %{without corosync} |
524 | sed -i -e 's#\(MENUSELECT_RES=.*\)#\1 res_corosync#g' menuselect.makeopts | |
525 | %endif | |
3116fec3 | 526 | |
8ac733fc | 527 | %build |
dd54f70d | 528 | rm -f pbx/.depend |
3074f789 | 529 | |
8c1b5e50 | 530 | %{__aclocal} -I autoconf |
6cd0c1d6 | 531 | %{__autoheader} |
7605fc79 AM |
532 | %{__autoconf} |
533 | ||
a149dc9c | 534 | export ASTCFLAGS="%{rpmcflags}" |
8c44d5b7 | 535 | export ASTLDFLAGS="%{rpmldflags}" |
8e72a4f9 | 536 | export WGET="/bin/true" |
6889aefb ER |
537 | |
538 | # be sure to invoke ./configure with our flags | |
6889aefb | 539 | cd menuselect |
4fb7c436 | 540 | %{__aclocal} -I ../autoconf |
6889aefb ER |
541 | %{__autoheader} |
542 | %{__autoconf} | |
4fb7c436 ER |
543 | # we need just plain cli for building |
544 | %configure \ | |
545 | --without-newt \ | |
546 | --without-gtk2 \ | |
547 | --without-curses \ | |
548 | --without-ncurses | |
6889aefb ER |
549 | cd .. |
550 | ||
6db22ae5 | 551 | %configure \ |
6889aefb ER |
552 | --with-imap=system \ |
553 | --with-gsm=/usr \ | |
e3a22b69 | 554 | %{!?with_h323:--without-h323} \ |
707c94d9 | 555 | --with-lpc10=/usr |
7605fc79 AM |
556 | |
557 | cp -f .cleancount .lastclean | |
558 | ||
a149dc9c ER |
559 | %{__make} DEBUG= \ |
560 | OPTIMIZE= \ | |
561 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
562 | ASTDATADIR=%{_datadir}/asterisk \ | |
563 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
564 | ASTDBDIR=%{_localstatedir}/spool/asterisk \ | |
fd02d532 | 565 | %{?with_verbose:NOISY_BUILD=yes} \ |
e621aa3e | 566 | |
a149dc9c ER |
567 | rm apps/app_voicemail.o apps/app_directory.o |
568 | mv apps/app_voicemail.so apps/app_voicemail_plain.so | |
569 | mv apps/app_directory.so apps/app_directory_plain.so | |
570 | ||
571 | %{__sed} -i -e 's/^MENUSELECT_OPTS_app_voicemail=.*$/MENUSELECT_OPTS_app_voicemail=IMAP_STORAGE/' menuselect.makeopts | |
572 | %{__make} DEBUG= \ | |
573 | OPTIMIZE= \ | |
574 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
575 | ASTDATADIR=%{_datadir}/asterisk \ | |
576 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
577 | ASTDBDIR=%{_localstatedir}/spool/asterisk \ | |
578 | %{?with_verbose:NOISY_BUILD=yes} \ | |
579 | ||
580 | rm apps/app_voicemail.o apps/app_directory.o | |
581 | mv apps/app_voicemail.so apps/app_voicemail_imap.so | |
582 | mv apps/app_directory.so apps/app_directory_imap.so | |
583 | ||
584 | %{__sed} -i -e 's/^MENUSELECT_OPTS_app_voicemail=.*$/MENUSELECT_OPTS_app_voicemail=ODBC_STORAGE/' menuselect.makeopts | |
585 | %{__make} DEBUG= \ | |
586 | OPTIMIZE= \ | |
587 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
588 | ASTDATADIR=%{_datadir}/asterisk \ | |
589 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
590 | ASTDBDIR=%{_localstatedir}/spool/asterisk \ | |
591 | %{?with_verbose:NOISY_BUILD=yes} \ | |
592 | ||
593 | rm apps/app_voicemail.o apps/app_directory.o | |
594 | mv apps/app_voicemail.so apps/app_voicemail_odbc.so | |
595 | mv apps/app_directory.so apps/app_directory_odbc.so | |
596 | ||
597 | # so that these modules don't get built again during the install phase | |
598 | touch apps/app_voicemail.o apps/app_directory.o | |
599 | touch apps/app_voicemail.so apps/app_directory.so | |
600 | ||
750e5644 | 601 | %if %{with apidocs} |
a149dc9c ER |
602 | %{__make} progdocs \ |
603 | DEBUG= \ | |
604 | OPTIMIZE= \ | |
605 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
606 | ASTDATADIR=%{_datadir}/asterisk \ | |
607 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
608 | ASTDBDIR=%{_localstatedir}/spool/asterisk \ | |
609 | %{?with_verbose:NOISY_BUILD=yes} \ | |
750e5644 | 610 | %endif |
a149dc9c | 611 | |
8ac733fc PG |
612 | %install |
613 | rm -rf $RPM_BUILD_ROOT | |
27944e5a JR |
614 | install -d $RPM_BUILD_ROOT{/var/{log/asterisk/cdr-csv,spool/asterisk/monitor},/etc/{rc.d/init.d,sysconfig,logrotate.d}} \ |
615 | $RPM_BUILD_ROOT/usr/lib/tmpfiles.d | |
8729ab54 | 616 | |
a9098aee | 617 | export ASTCFLAGS="%{rpmcflags}" |
7605fc79 | 618 | |
e5ecac90 | 619 | %{__make} -j1 install \ |
a9098aee ER |
620 | DEBUG= \ |
621 | OPTIMIZE= \ | |
622 | DESTDIR=$RPM_BUILD_ROOT \ | |
623 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
624 | ASTDATADIR=%{_datadir}/asterisk \ | |
625 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
626 | ASTDBDIR=%{_localstatedir}/spool/asterisk | |
48b81789 | 627 | |
e5ecac90 | 628 | %{__make} -j1 samples \ |
a9098aee ER |
629 | DEBUG= \ |
630 | OPTIMIZE= \ | |
631 | DESTDIR=$RPM_BUILD_ROOT \ | |
632 | ASTVARRUNDIR=%{_localstatedir}/run/asterisk \ | |
633 | ASTDATADIR=%{_datadir}/asterisk \ | |
634 | ASTVARLIBDIR=%{_datadir}/asterisk \ | |
635 | ASTDBDIR=%{_localstatedir}/spool/asterisk | |
636 | ||
637 | rm $RPM_BUILD_ROOT%{_libdir}/asterisk/modules/app_directory.so | |
638 | rm $RPM_BUILD_ROOT%{_libdir}/asterisk/modules/app_voicemail.so | |
639 | install -D -p apps/app_directory_imap.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules | |
640 | install -D -p apps/app_voicemail_imap.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules | |
641 | install -D -p apps/app_directory_odbc.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules | |
642 | install -D -p apps/app_voicemail_odbc.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules | |
643 | install -D -p apps/app_directory_plain.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules | |
644 | install -D -p apps/app_voicemail_plain.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules | |
645 | ||
646 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
647 | cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
648 | cp -a %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
a9098aee | 649 | |
27944e5a JR |
650 | install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf |
651 | ||
a9098aee ER |
652 | # create some directories that need to be packaged |
653 | install -d $RPM_BUILD_ROOT%{_datadir}/asterisk/moh | |
654 | install -d $RPM_BUILD_ROOT%{_datadir}/asterisk/sounds | |
4479f94d ER |
655 | ln -s %{_localstatedir}/lib/asterisk/licenses $RPM_BUILD_ROOT%{_datadir}/asterisk/licenses |
656 | ||
657 | install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/asterisk/licenses | |
a9098aee ER |
658 | install -d $RPM_BUILD_ROOT%{_localstatedir}/log/asterisk/cdr-custom |
659 | install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/asterisk/festival | |
660 | install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/asterisk/monitor | |
661 | install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/asterisk/outgoing | |
662 | install -d $RPM_BUILD_ROOT%{_localstatedir}/spool/asterisk/uploads | |
663 | ||
664 | # We're not going to package any of the sample AGI scripts | |
665 | rm -f $RPM_BUILD_ROOT%{_datadir}/asterisk/agi-bin/* | |
666 | ||
667 | # Don't package the sample voicemail user | |
668 | rm -rf $RPM_BUILD_ROOT%{_localstatedir}/spool/asterisk/voicemail/default | |
669 | ||
670 | # Don't package example phone provision configs | |
671 | rm -rf $RPM_BUILD_ROOT%{_datadir}/asterisk/phoneprov/* | |
672 | ||
673 | # these are compiled with -O0 and thus include unfortified code. | |
674 | rm -rf $RPM_BUILD_ROOT%{_sbindir}/hashtest | |
675 | rm -rf $RPM_BUILD_ROOT%{_sbindir}/hashtest2 | |
676 | ||
622100af ER |
677 | # we're not using safe_asterisk |
678 | rm -f $RPM_BUILD_ROOT%{_sbindir}/safe_asterisk | |
679 | rm -f $RPM_BUILD_ROOT%{_mandir}/man8/safe_asterisk.8* | |
680 | ||
a9098aee ER |
681 | rm -rf $RPM_BUILD_ROOT%{_datadir}/asterisk/firmware/iax/* |
682 | ||
750e5644 | 683 | %if %{with apidocs} |
a9098aee | 684 | find doc/api/html -name '*.map' -size 0 -delete |
750e5644 | 685 | %endif |
0adeb087 | 686 | |
858a15d0 | 687 | #fixme |
3116fec3 | 688 | rm $RPM_BUILD_ROOT/etc/asterisk/{app_mysql,cdr_mysql,chan_mobile,misdn%{!?with_h323:,chan_ooh323},res_pktccops,h323}.conf |
e3a22b69 | 689 | |
858a15d0 | 690 | rm -fr $RPM_BUILD_ROOT/usr/include/asterisk/doxygen |
691 | ||
de95e0fb JB |
692 | %clean |
693 | rm -rf $RPM_BUILD_ROOT | |
694 | ||
a149dc9c ER |
695 | %pre |
696 | %groupadd -g 188 asterisk | |
697 | %useradd -u 188 -r -s /sbin/nologin -d /var/lib/asterisk -M -c 'Asterisk User' -g asterisk asterisk | |
698 | ||
699 | %postun | |
700 | if [ "$1" = 0 ]; then | |
a149dc9c | 701 | %userremove asterisk |
1a59be60 | 702 | %groupremove asterisk |
a149dc9c ER |
703 | fi |
704 | ||
80067fcb PG |
705 | %post |
706 | /sbin/chkconfig --add asterisk | |
a149dc9c ER |
707 | # use -n (NOOP) as restart would be breaking all current calls. |
708 | %service -n asterisk restart "Asterisk daemon" | |
80067fcb PG |
709 | |
710 | %preun | |
711 | if [ "$1" = "0" ]; then | |
fa4054d8 | 712 | %service asterisk stop |
80067fcb PG |
713 | /sbin/chkconfig --del asterisk |
714 | fi | |
715 | ||
1a59be60 ER |
716 | %triggerpostun -- %{name} < 1.6.1.12-0.1 |
717 | # chown to asterisk previously root owned files | |
718 | # loose one (not one that cames from rpm), as we're not trying to split the | |
719 | # hair with file permission bits. | |
720 | chown -R asterisk:asterisk /var/spool/asterisk | |
721 | chown -R asterisk:asterisk /var/lib/asterisk | |
722 | ||
8ac733fc PG |
723 | %files |
724 | %defattr(644,root,root,755) | |
8639c8ed | 725 | %doc README *.txt ChangeLog BUGS CREDITS configs |
858a15d0 | 726 | %doc doc/asterisk.sgml |
80ca5bbe | 727 | |
e5ecac90 | 728 | #%attr(755,root,root) %{_sbindir}/aelparse |
80ca5bbe | 729 | %attr(755,root,root) %{_sbindir}/astcanary |
3116fec3 AM |
730 | %attr(755,root,root) %{_sbindir}/astdb2bdb |
731 | %attr(755,root,root) %{_sbindir}/astdb2sqlite3 | |
80ca5bbe ER |
732 | %attr(755,root,root) %{_sbindir}/asterisk |
733 | %attr(755,root,root) %{_sbindir}/astgenkey | |
80ca5bbe | 734 | %attr(755,root,root) %{_sbindir}/autosupport |
e5ecac90 AM |
735 | #%attr(755,root,root) %{_sbindir}/conf2ael |
736 | #%attr(755,root,root) %{_sbindir}/muted | |
80ca5bbe | 737 | %attr(755,root,root) %{_sbindir}/rasterisk |
e5ecac90 AM |
738 | #%attr(755,root,root) %{_sbindir}/refcounter |
739 | #%attr(755,root,root) %{_sbindir}/smsq | |
740 | #%attr(755,root,root) %{_sbindir}/stereorize | |
741 | #%attr(755,root,root) %{_sbindir}/streamplayer | |
80ca5bbe ER |
742 | %{_mandir}/man8/asterisk.8* |
743 | %{_mandir}/man8/astgenkey.8* | |
744 | %{_mandir}/man8/autosupport.8* | |
80ca5bbe | 745 | |
87a2b1b8 | 746 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
046a2286 | 747 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
87a2b1b8 | 748 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
a149dc9c ER |
749 | |
750 | %attr(750,root,asterisk) %dir %{_sysconfdir}/asterisk | |
751 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/adsi.conf | |
e5ecac90 | 752 | #%attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/adtranvofr.conf |
a149dc9c ER |
753 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/agents.conf |
754 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/alarmreceiver.conf | |
755 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/amd.conf | |
756 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/asterisk.adsi | |
757 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/asterisk.conf | |
e3a22b69 | 758 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/calendar.conf |
19aa7a49 | 759 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/ccss.conf |
a149dc9c ER |
760 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr.conf |
761 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_custom.conf | |
762 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_manager.conf | |
19aa7a49 | 763 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_syslog.conf |
f6b38539 AM |
764 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel.conf |
765 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel_custom.conf | |
a149dc9c | 766 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cli.conf |
6bcc6351 ER |
767 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cli_aliases.conf |
768 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cli_permissions.conf | |
a149dc9c | 769 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/codecs.conf |
3116fec3 | 770 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/confbridge.conf |
a149dc9c ER |
771 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dnsmgr.conf |
772 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dsp.conf | |
773 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dundi.conf | |
774 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/enum.conf | |
775 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/extconfig.conf | |
776 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/extensions.ael | |
777 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/extensions.conf | |
778 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/features.conf | |
779 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/followme.conf | |
a149dc9c ER |
780 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/iax.conf |
781 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/iaxprov.conf | |
782 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/indications.conf | |
783 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/logger.conf | |
784 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/manager.conf | |
785 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/mgcp.conf | |
786 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/modules.conf | |
787 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/musiconhold.conf | |
788 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/muted.conf | |
a149dc9c ER |
789 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/phone.conf |
790 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/phoneprov.conf | |
791 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/queuerules.conf | |
792 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/queues.conf | |
3116fec3 | 793 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_config_mysql.conf |
f6b38539 | 794 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_stun_monitor.conf |
a149dc9c ER |
795 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/rtp.conf |
796 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/say.conf | |
797 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/sip*.conf | |
798 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/sla.conf | |
799 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/smdi.conf | |
800 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/telcordia-1.adsi | |
801 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/udptl.conf | |
802 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/users.conf | |
803 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/vpb.conf | |
804 | ||
8ac733fc PG |
805 | %dir %{_libdir}/asterisk |
806 | %dir %{_libdir}/asterisk/modules | |
a149dc9c ER |
807 | |
808 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_adsiprog.so | |
809 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_alarmreceiver.so | |
810 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_amd.so | |
811 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_authenticate.so | |
812 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_cdr.so | |
f6b38539 | 813 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_celgenuserevent.so |
a149dc9c ER |
814 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_chanisavail.so |
815 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_channelredirect.so | |
816 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_chanspy.so | |
6bcc6351 | 817 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_confbridge.so |
a149dc9c ER |
818 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_controlplayback.so |
819 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_db.so | |
820 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_dial.so | |
821 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_dictate.so | |
822 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_directed_pickup.so | |
823 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_disa.so | |
824 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_dumpchan.so | |
825 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_echo.so | |
826 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_exec.so | |
827 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_externalivr.so | |
828 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_followme.so | |
829 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_forkcdr.so | |
830 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_getcpeid.so | |
831 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_image.so | |
832 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_macro.so | |
833 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_milliwatt.so | |
834 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_mixmonitor.so | |
835 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_morsecode.so | |
750e5644 | 836 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_mp3.so |
a149dc9c | 837 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_nbscat.so |
6bcc6351 | 838 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_originate.so |
a149dc9c ER |
839 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_parkandannounce.so |
840 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_playback.so | |
6bcc6351 | 841 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_playtones.so |
a149dc9c ER |
842 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_privacy.so |
843 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_queue.so | |
9ae79e90 | 844 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_read.so |
a149dc9c | 845 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_readexten.so |
a149dc9c ER |
846 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_record.so |
847 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_sayunixtime.so | |
848 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_senddtmf.so | |
849 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_sendtext.so | |
a149dc9c ER |
850 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_sms.so |
851 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_softhangup.so | |
852 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_speech_utils.so | |
853 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_stack.so | |
854 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_system.so | |
855 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_talkdetect.so | |
856 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_test.so | |
857 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_transfer.so | |
858 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_url.so | |
859 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_userevent.so | |
860 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_verbose.so | |
861 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_waitforring.so | |
862 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_waitforsilence.so | |
863 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_waituntil.so | |
864 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_while.so | |
865 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_zapateller.so | |
6bcc6351 ER |
866 | %attr(755,root,root) %{_libdir}/asterisk/modules/bridge_builtin_features.so |
867 | %attr(755,root,root) %{_libdir}/asterisk/modules/bridge_multiplexed.so | |
868 | %attr(755,root,root) %{_libdir}/asterisk/modules/bridge_simple.so | |
869 | %attr(755,root,root) %{_libdir}/asterisk/modules/bridge_softmix.so | |
a149dc9c ER |
870 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_csv.so |
871 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_custom.so | |
872 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_manager.so | |
f6b38539 AM |
873 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_syslog.so |
874 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_custom.so | |
875 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_manager.so | |
a149dc9c | 876 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_agent.so |
6bcc6351 | 877 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_bridge.so |
a149dc9c ER |
878 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_iax2.so |
879 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_local.so | |
3116fec3 | 880 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_mobile.so |
a149dc9c | 881 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_mgcp.so |
f6b38539 | 882 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_multicast_rtp.so |
a149dc9c ER |
883 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_phone.so |
884 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_sip.so | |
9ae79e90 | 885 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_a_mu.so |
a149dc9c ER |
886 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_adpcm.so |
887 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_alaw.so | |
a149dc9c ER |
888 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_g722.so |
889 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_g726.so | |
0f0650bc | 890 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_ilbc.so |
a149dc9c | 891 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_ulaw.so |
f6b38539 | 892 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_g719.so |
a149dc9c ER |
893 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_g723.so |
894 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_g726.so | |
895 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_g729.so | |
a149dc9c ER |
896 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_h263.so |
897 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_h264.so | |
750e5644 | 898 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_ilbc.so |
a149dc9c | 899 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_jpeg.so |
a149dc9c | 900 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_pcm.so |
6bcc6351 ER |
901 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_siren14.so |
902 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_siren7.so | |
750e5644 | 903 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_sln.so |
a149dc9c | 904 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_vox.so |
a149dc9c | 905 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_wav.so |
6bcc6351 | 906 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_aes.so |
a149dc9c ER |
907 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_audiohookinherit.so |
908 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_base64.so | |
909 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_blacklist.so | |
f6b38539 | 910 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_callcompletion.so |
a149dc9c ER |
911 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_callerid.so |
912 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_cdr.so | |
913 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_channel.so | |
914 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_config.so | |
915 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_cut.so | |
916 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_db.so | |
917 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_devstate.so | |
918 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_dialgroup.so | |
919 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_dialplan.so | |
920 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_enum.so | |
921 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_env.so | |
922 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_extstate.so | |
f6b38539 | 923 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_frame_trace.so |
a149dc9c ER |
924 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_global.so |
925 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_groupcount.so | |
926 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_iconv.so | |
3116fec3 | 927 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_jitterbuffer.so |
a149dc9c ER |
928 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_lock.so |
929 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_logic.so | |
930 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_math.so | |
931 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_md5.so | |
932 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_module.so | |
f6b38539 | 933 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_pitchshift.so |
a149dc9c ER |
934 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_rand.so |
935 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_realtime.so | |
936 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_sha1.so | |
937 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_shell.so | |
6bcc6351 | 938 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_sprintf.so |
f6b38539 | 939 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_srv.so |
a149dc9c ER |
940 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_strings.so |
941 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_sysinfo.so | |
942 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_timeout.so | |
943 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_uri.so | |
944 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_version.so | |
945 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_volume.so | |
946 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_ael.so | |
947 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_config.so | |
948 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_dundi.so | |
949 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_loopback.so | |
950 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_realtime.so | |
951 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_spool.so | |
952 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_adsi.so | |
953 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_ael_share.so | |
954 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_agi.so | |
f6b38539 | 955 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_calendar.so |
e3a22b69 JK |
956 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_calendar_caldav.so |
957 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_calendar_ews.so | |
958 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_calendar_exchange.so | |
959 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_calendar_icalendar.so | |
3116fec3 | 960 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_mysql.so |
6bcc6351 | 961 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_clialiases.so |
a149dc9c ER |
962 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_clioriginate.so |
963 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_convert.so | |
964 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_crypto.so | |
3116fec3 AM |
965 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_format_attr_celt.so |
966 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_format_attr_silk.so | |
a149dc9c ER |
967 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_limit.so |
968 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_monitor.so | |
f6b38539 | 969 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_mutestream.so |
a149dc9c ER |
970 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_musiconhold.so |
971 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_phoneprov.so | |
0f0650bc | 972 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_pktccops.so |
a149dc9c | 973 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_realtime.so |
f6b38539 AM |
974 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_rtp_asterisk.so |
975 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_rtp_multicast.so | |
976 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_security_log.so | |
a149dc9c ER |
977 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_smdi.so |
978 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_speech.so | |
b89d2618 | 979 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_srtp.so |
f6b38539 | 980 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_stun_monitor.so |
a149dc9c | 981 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_timing_pthread.so |
6bcc6351 | 982 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_timing_timerfd.so |
a149dc9c ER |
983 | #%attr(755,root,root) %{_libdir}/asterisk/modules/test_dlinklists.so |
984 | #%attr(755,root,root) %{_libdir}/asterisk/modules/test_heap.so | |
27944e5a | 985 | /usr/lib/tmpfiles.d/%{name}.conf |
46bc3da8 | 986 | |
80ca5bbe ER |
987 | %dir %{_datadir}/asterisk |
988 | %dir %{_datadir}/asterisk/agi-bin | |
989 | %dir %{_datadir}/asterisk/firmware | |
990 | %dir %{_datadir}/asterisk/firmware/iax | |
991 | %dir %{_datadir}/asterisk/images | |
992 | %dir %{_datadir}/asterisk/moh | |
993 | %dir %{_datadir}/asterisk/sounds | |
994 | %dir %attr(750,root,asterisk) %{_datadir}/asterisk/keys | |
1a59be60 | 995 | # no need to protect publicly downloaded and packaged .pub |
e5ecac90 | 996 | #%{_datadir}/asterisk/keys/*.pub |
80ca5bbe | 997 | %{_datadir}/asterisk/images/*.jpg |
80ca5bbe | 998 | %{_datadir}/asterisk/phoneprov |
4479f94d | 999 | %{_datadir}/asterisk/licenses |
80ca5bbe | 1000 | |
6b3f4b56 JK |
1001 | %dir %{_datadir}/asterisk/documentation |
1002 | %{_datadir}/asterisk/documentation/appdocsxml.dtd | |
1003 | %{_datadir}/asterisk/documentation/core-en_US.xml | |
1004 | ||
80ca5bbe | 1005 | %attr(770,root,asterisk) %dir %{_localstatedir}/lib/asterisk |
4479f94d | 1006 | %dir %attr(750,root,asterisk) %{_localstatedir}/lib/asterisk/licenses |
80ca5bbe ER |
1007 | |
1008 | %attr(770,root,asterisk) %dir %{_localstatedir}/log/asterisk | |
1009 | %attr(770,root,asterisk) %dir %{_localstatedir}/log/asterisk/cdr-csv | |
1010 | %attr(770,root,asterisk) %dir %{_localstatedir}/log/asterisk/cdr-custom | |
1011 | ||
1012 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk | |
1013 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/monitor | |
1014 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/outgoing | |
1015 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/tmp | |
1016 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/uploads | |
1017 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/voicemail | |
1018 | ||
1019 | %attr(775,root,asterisk) %dir %{_localstatedir}/run/asterisk | |
8ac733fc | 1020 | |
a149dc9c ER |
1021 | %files devel |
1022 | %defattr(644,root,root,755) | |
a149dc9c ER |
1023 | %dir %{_includedir}/asterisk |
1024 | %{_includedir}/asterisk/*.h | |
1025 | %{_includedir}/asterisk.h | |
1026 | ||
750e5644 | 1027 | %if %{with apidocs} |
a149dc9c ER |
1028 | %files apidocs |
1029 | %defattr(644,root,root,755) | |
a9098aee | 1030 | %doc doc/api/html/* |
750e5644 | 1031 | %endif |
a149dc9c | 1032 | |
a149dc9c ER |
1033 | %files alsa |
1034 | %defattr(644,root,root,755) | |
1035 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/alsa.conf | |
1036 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_alsa.so | |
1037 | ||
e5ecac90 AM |
1038 | #%files astman |
1039 | #%defattr(644,root,root,755) | |
1040 | #%attr(755,root,root) %{_sbindir}/astman | |
622100af | 1041 | |
a149dc9c ER |
1042 | %files curl |
1043 | %defattr(644,root,root,755) | |
1044 | %doc contrib/scripts/dbsep.cgi | |
1045 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dbsep.conf | |
19aa7a49 | 1046 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_curl.conf |
a149dc9c ER |
1047 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_curl.so |
1048 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_curl.so | |
1049 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_curl.so | |
1050 | ||
1051 | %files dahdi | |
8ac733fc | 1052 | %defattr(644,root,root,755) |
a149dc9c ER |
1053 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/meetme.conf |
1054 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/chan_dahdi.conf | |
3116fec3 | 1055 | #%attr(755,root,root) %{_libdir}/asterisk/modules/app_dahdibarge.so |
a149dc9c | 1056 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_dahdiras.so |
e5ecac90 | 1057 | #%attr(755,root,root) %{_libdir}/asterisk/modules/app_dahdiscan.so |
9ae79e90 ER |
1058 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_flash.so |
1059 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_meetme.so | |
1060 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_page.so | |
a149dc9c ER |
1061 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_dahdi.so |
1062 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_dahdi.so | |
1063 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_timing_dahdi.so | |
1064 | ||
a149dc9c ER |
1065 | %files fax |
1066 | %defattr(644,root,root,755) | |
e5ecac90 AM |
1067 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_fax.conf |
1068 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_fax.so | |
1069 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_fax_spandsp.so | |
a149dc9c ER |
1070 | |
1071 | %files festival | |
1072 | %defattr(644,root,root,755) | |
1073 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/festival.conf | |
4fa818dd | 1074 | %attr(770,root,asterisk) %dir %{_localstatedir}/spool/asterisk/festival |
a149dc9c | 1075 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_festival.so |
91beb87f | 1076 | |
622100af ER |
1077 | %files gsm |
1078 | %defattr(644,root,root,755) | |
1079 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_gsm.so | |
1080 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_gsm.so | |
1081 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_wav_gsm.so | |
1082 | ||
71cb50a4 | 1083 | %if %{with h323} |
91beb87f ER |
1084 | %files h323 |
1085 | %defattr(644,root,root,755) | |
3116fec3 AM |
1086 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/chan_ooh323.conf |
1087 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_ooh323.so | |
7525849f | 1088 | %endif |
a149dc9c | 1089 | |
622100af ER |
1090 | %files http |
1091 | %defattr(644,root,root,755) | |
1092 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/http.conf | |
1093 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_http_post.so | |
1094 | %{_datadir}/asterisk/static-http | |
1095 | ||
a149dc9c ER |
1096 | %files ices |
1097 | %defattr(644,root,root,755) | |
1098 | %doc contrib/asterisk-ices.xml | |
1099 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_ices.so | |
1100 | ||
1101 | %files jabber | |
1102 | %defattr(644,root,root,755) | |
a149dc9c ER |
1103 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/gtalk.conf |
1104 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/jabber.conf | |
1105 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/jingle.conf | |
1106 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_gtalk.so | |
1107 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_jingle.so | |
1108 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_jabber.so | |
1109 | ||
1110 | %files jack | |
1111 | %defattr(644,root,root,755) | |
4fa818dd | 1112 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_jack.so |
a149dc9c ER |
1113 | |
1114 | %files lua | |
1115 | %defattr(644,root,root,755) | |
1116 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/extensions.lua | |
8c44d5b7 | 1117 | %attr(755,root,root) %{_libdir}/asterisk/modules/pbx_lua.so |
a149dc9c ER |
1118 | |
1119 | %files ldap | |
1120 | %defattr(644,root,root,755) | |
a149dc9c ER |
1121 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_ldap.conf |
1122 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_ldap.so | |
1123 | ||
4fa818dd | 1124 | %if 0 |
a149dc9c ER |
1125 | %files ldap-fds |
1126 | %defattr(644,root,root,755) | |
4fa818dd ER |
1127 | %{_sysconfdir}/dirsrv/schema/99asterisk.ldif |
1128 | %endif | |
a149dc9c | 1129 | |
622100af ER |
1130 | %files lpc10 |
1131 | %defattr(644,root,root,755) | |
1132 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_lpc10.so | |
1133 | ||
a149dc9c ER |
1134 | %files minivm |
1135 | %defattr(644,root,root,755) | |
1136 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/extensions_minivm.conf | |
1137 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/minivm.conf | |
1138 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_minivm.so | |
1139 | ||
a149dc9c ER |
1140 | %files odbc |
1141 | %defattr(644,root,root,755) | |
1142 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_adaptive_odbc.conf | |
1143 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_odbc.conf | |
19aa7a49 | 1144 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel_odbc.conf |
a149dc9c ER |
1145 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/func_odbc.conf |
1146 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_odbc.conf | |
1147 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_adaptive_odbc.so | |
1148 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_odbc.so | |
19aa7a49 | 1149 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_odbc.so |
a149dc9c ER |
1150 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_odbc.so |
1151 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_odbc.so | |
1152 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_odbc.so | |
1153 | ||
8639c8ed AM |
1154 | %files osp |
1155 | %defattr(644,root,root,755) | |
1156 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/osp.conf | |
1157 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_osplookup.so | |
385eff93 | 1158 | |
a149dc9c ER |
1159 | %files oss |
1160 | %defattr(644,root,root,755) | |
1161 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/oss.conf | |
1162 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_oss.so | |
1163 | ||
1164 | %files portaudio | |
1165 | %defattr(644,root,root,755) | |
1166 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/console.conf | |
1167 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_console.so | |
1168 | ||
1169 | %files postgresql | |
1170 | %defattr(644,root,root,755) | |
1171 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_pgsql.conf | |
19aa7a49 | 1172 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel_pgsql.conf |
a149dc9c | 1173 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_pgsql.conf |
8639c8ed | 1174 | %doc contrib/realtime/postgresql/realtime.sql |
a149dc9c | 1175 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_pgsql.so |
19aa7a49 | 1176 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_pgsql.so |
a149dc9c ER |
1177 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_pgsql.so |
1178 | ||
1179 | %files radius | |
1180 | %defattr(644,root,root,755) | |
1181 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_radius.so | |
19aa7a49 | 1182 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_radius.so |
a149dc9c | 1183 | |
622100af ER |
1184 | %files resample |
1185 | %defattr(644,root,root,755) | |
1186 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_resample.so | |
1187 | ||
a149dc9c ER |
1188 | %files skinny |
1189 | %defattr(644,root,root,755) | |
1190 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/skinny.conf | |
1191 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_skinny.so | |
1192 | ||
1193 | %files snmp | |
1194 | %defattr(644,root,root,755) | |
a149dc9c ER |
1195 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_snmp.conf |
1196 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_snmp.so | |
a149dc9c | 1197 | |
622100af ER |
1198 | %files speex |
1199 | %defattr(644,root,root,755) | |
1200 | %attr(755,root,root) %{_libdir}/asterisk/modules/codec_speex.so | |
1201 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_speex.so | |
1202 | ||
a149dc9c ER |
1203 | %files sqlite |
1204 | %defattr(644,root,root,755) | |
1205 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_sqlite3_custom.conf | |
19aa7a49 | 1206 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel_sqlite3_custom.conf |
6bcc6351 | 1207 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/res_config_sqlite.conf |
a149dc9c | 1208 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_sqlite3_custom.so |
3116fec3 | 1209 | #%attr(755,root,root) %{_libdir}/asterisk/modules/cdr_sqlite.so |
19aa7a49 | 1210 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_sqlite3_custom.so |
750e5644 | 1211 | %attr(755,root,root) %{_libdir}/asterisk/modules/res_config_sqlite.so |
a149dc9c ER |
1212 | |
1213 | %files tds | |
1214 | %defattr(644,root,root,755) | |
1215 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cdr_tds.conf | |
19aa7a49 | 1216 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/cel_tds.conf |
a149dc9c | 1217 | %attr(755,root,root) %{_libdir}/asterisk/modules/cdr_tds.so |
19aa7a49 | 1218 | %attr(755,root,root) %{_libdir}/asterisk/modules/cel_tds.so |
a149dc9c ER |
1219 | |
1220 | %files unistim | |
1221 | %defattr(644,root,root,755) | |
a149dc9c ER |
1222 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/unistim.conf |
1223 | %attr(755,root,root) %{_libdir}/asterisk/modules/chan_unistim.so | |
1224 | ||
a149dc9c ER |
1225 | |
1226 | %files voicemail | |
1227 | %defattr(644,root,root,755) | |
1228 | %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/voicemail.conf | |
1229 | %attr(755,root,root) %{_libdir}/asterisk/modules/func_vmcount.so | |
1230 | ||
1231 | %files voicemail-imap | |
1232 | %defattr(644,root,root,755) | |
a9098aee ER |
1233 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_directory_imap.so |
1234 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_voicemail_imap.so | |
a149dc9c ER |
1235 | |
1236 | %files voicemail-odbc | |
1237 | %defattr(644,root,root,755) | |
a9098aee ER |
1238 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_directory_odbc.so |
1239 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_voicemail_odbc.so | |
a149dc9c ER |
1240 | |
1241 | %files voicemail-plain | |
1242 | %defattr(644,root,root,755) | |
a9098aee ER |
1243 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_directory_plain.so |
1244 | %attr(755,root,root) %{_libdir}/asterisk/modules/app_voicemail_plain.so | |
622100af ER |
1245 | |
1246 | %files vorbis | |
1247 | %defattr(644,root,root,755) | |
1248 | %attr(755,root,root) %{_libdir}/asterisk/modules/format_ogg_vorbis.so |