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