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