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