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