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