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