]> git.pld-linux.org Git - packages/asterisk.git/blobdiff - asterisk.spec
- use external libedit
[packages/asterisk.git] / asterisk.spec
index a47dfbbef9432eac47b805307c153dcfdad2e8fc..668abb3bdd4f9b4f8895db92b7214e74ef6e3566 100644 (file)
 Summary:       Asterisk PBX
 Summary(pl.UTF-8):     Centralka (PBX) Asterisk
 Name:          asterisk
-Version:       1.4.41
+Version:       1.4.44
 Release:       1%{?with_bristuff:.bristuff}
 License:       GPL v2
 Group:         Applications/System
-Source0:       http://downloads.digium.com/pub/asterisk/%{name}-%{version}.tar.gz
-# Source0-md5: e7f507a9a216a8859ed192de27666d29
+Source0:       http://downloads.digium.com/pub/asterisk/releases/%{name}-%{version}.tar.gz
+# Source0-md5: 31daa6d5702f58bea1448e9ef45c9c8e
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       http://downloads.digium.com/pub/telephony/sounds/releases/asterisk-core-sounds-en-gsm-1.4.6.tar.gz
@@ -39,6 +39,7 @@ Patch0:               %{name}-m4.patch
 Patch1:                %{name}-configure.patch
 Patch2:                %{name}-no_k6_on_sparc.patch
 Patch3:                %{name}-lib.patch
+Patch4:                %{name}-external-libedit.patch
 Source10:      http://soft-switch.org/downloads/spandsp/spandsp-%{_spandsp_version}/asterisk-1.2.x/app_txfax.c
 # Source10-md5:        8c8fcb263b76897022b4c28052a7b439
 Source11:      http://soft-switch.org/downloads/spandsp/spandsp-%{_spandsp_version}/asterisk-1.2.x/app_rxfax.c
@@ -68,6 +69,7 @@ BuildRequires:        gawk
 BuildRequires: gcc >= 5:3.4
 BuildRequires: iksemel-devel
 BuildRequires: imap-static
+BuildRequires: libedit-devel
 BuildRequires: mysql-devel
 BuildRequires: ncurses-devel
 BuildRequires: openssl-devel >= 0.9.7d
@@ -156,6 +158,7 @@ Pliki przykładowe dla centralki Asterisk.
 #%patch6 -p1
 #%patch7 -p1
 #%patch9 -p1
+%patch4 -p1
 
 %if %{with rxfax}
 cd apps
@@ -189,8 +192,9 @@ rm -f pbx/.depend
 %{__autoheader}
 %{__autoconf}
 
+CPPFLAGS="%{rpmcppflags} -I/usr/include/imap"; export CPPFLAGS
 %if %{with h323}
-CPPFLAGS="-I/usr/include/openh323"; export CPPFLAGS
+CPPFLAGS="$CPPFLAGS -I/usr/include/openh323"; export CPPFLAGS
 %endif
 %configure \
 %if %{with zaptel}
This page took 0.026255 seconds and 4 git commands to generate.