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