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