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