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