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