]> git.pld-linux.org Git - packages/asterisk.git/blame - asterisk.spec
1.4 on HEAD, 1.2 on ASTERISK_1_2
[packages/asterisk.git] / asterisk.spec
CommitLineData
8ac733fc
PG
1# TODO:
2# - cgi-bin package - separate, because of suid-root
ac237e7b 3# - separate plugins into packages
80067fcb 4# - use shared versions of lpc10, gsm,...
dd54f70d 5# - CFLAGS passing
7605fc79
AM
6# - fix bluetooth patch
7# - package commandline tools (aelparse etc.)
fb0589cb
JB
8#
9# Conditional build:
7605fc79
AM
10%bcond_with rxfax # without rx (also tx :-D) fax
11%bcond_with bluetooth # without bluetooth support (NFT)
496d7f51 12
cfc5e383 13%define _spandsp_version 0.0.2pre26
fb0589cb 14#
8ac733fc 15Summary: Asterisk PBX
de95e0fb 16Summary(pl): Centralka (PBX) Asterisk
8ac733fc 17Name: asterisk
7605fc79
AM
18Version: 1.4.0
19Release: 1
8ac733fc
PG
20License: GPL v2
21Group: Applications/System
7605fc79
AM
22Source0: http://ftp.digium.com/pub/asterisk/releases/%{name}-%{version}.tar.gz
23# Source0-md5: b4586be9bf00d438d6a53d408ba247d4
48b81789
PG
24Source1: %{name}.init
25Source2: %{name}.sysconfig
7605fc79
AM
26Source3: http://ftp.digium.com/pub/telephony/sounds/releases/asterisk-core-sounds-en-gsm-1.4.1.tar.gz
27# Source3-md5: 0ad81081773609a26d7d58d2086fd902
28Source4: http://ftp.digium.com/pub/telephony/sounds/asterisk-moh-freeplay-wav.tar.gz
29# Source4-md5: e523fc2b4ac524f45da7815e97780540
30Patch1: %{name}-configure.patch
93f9bb41 31Patch2: %{name}-no_k6_on_sparc.patch
5658cdd6 32Patch3: %{name}-lib.patch
8d0a3e58 33Patch8: %{name}-awk.patch
496d7f51 34Source10: http://soft-switch.org/downloads/spandsp/spandsp-%{_spandsp_version}/asterisk-1.2.x/app_txfax.c
19b2566c 35# Source10-md5: 8c8fcb263b76897022b4c28052a7b439
496d7f51 36Source11: http://soft-switch.org/downloads/spandsp/spandsp-%{_spandsp_version}/asterisk-1.2.x/app_rxfax.c
19b2566c
AM
37# Source11-md5: ab6983b51c412883545b36993d704999
38# http://soft-switch.org/downloads/spandsp/spandsp-%{_spandsp_version}/asterisk-1.2.x/apps_Makefile.patch
39Patch10: %{name}-txfax-Makefile.patch
7605fc79
AM
40Patch11: %{name}-fix-ptlib.patch
41Patch12: %{name}-chan_bluetooth.patch
8c7a2ffa 42URL: http://www.asterisk.org/
7605fc79
AM
43BuildRequires: autoconf
44BuildRequires: automake
7346b8fc 45BuildRequires: bison
7605fc79 46%{?with_bluetooth:BuildRequires: bluez-devel}
8a8cbd07 47BuildRequires: freetds >= 0.63
7346b8fc 48BuildRequires: gawk
19b2566c 49BuildRequires: gcc >= 5:3.4
7605fc79
AM
50BuildRequires: iksemel-devel
51BuildRequires: libpri-devel >= 1.2.4
82475f50
PG
52BuildRequires: mysql-devel
53BuildRequires: ncurses-devel
12ec33bf 54BuildRequires: openssl-devel >= 0.9.7d
fa4054d8 55BuildRequires: rpmbuild(macros) >= 1.268
591f7fb9 56BuildRequires: sed >= 4.0
848838a0 57BuildRequires: spandsp-devel < 1:0.0.3
fa4054d8 58BuildRequires: spandsp-devel >= 1:0.0.2-0.pre20.1
7605fc79 59%{?with_rxfax:BuildRequires: spandsp-devel-%{_spandsp_version}}
fa4054d8 60BuildRequires: speex-devel
405b262e 61BuildRequires: unixODBC-devel
7605fc79 62BuildRequires: zaptel-devel >= 1.2.10
82475f50 63BuildRequires: zlib-devel
7605fc79
AM
64BuildRequires: openh323-devel
65BuildRequires: pwlib-devel
b9bcfe5b 66Requires(post,preun): /sbin/chkconfig
fa4054d8 67Requires: rc-scripts
7605fc79
AM
68%requires_eq openh323
69%requires_eq pwlib
8ac733fc
PG
70BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
71
72%description
73Asterisk is an Open Source PBX and telephony development platform that
74can both replace a conventional PBX and act as a platform for
75developing custom telephony applications for delivering dynamic
76content over a telephone similarly to how one can deliver dynamic
77content through a web browser using CGI and a web server.
78
79Asterisk talks to a variety of telephony hardware including BRI, PRI,
80POTS, and IP telephony clients using the Inter-Asterisk eXchange
81protocol (e.g. gnophone or miniphone). For more information and a
8c7a2ffa 82current list of supported hardware, see http://www.asterisk.org/.
de95e0fb
JB
83
84%description -l pl
85