# Conditional build:
%bcond_with rxfax # without rx (also tx :-D) fax
%bcond_with bluetooth # without bluetooth support (NFT)
+%bcond_with zhone # zhone hack
%define _spandsp_version 0.0.2pre26
#
Summary: Asterisk PBX
Summary(pl.UTF-8): Centralka (PBX) Asterisk
Name: asterisk
-Version: 1.4.4
-Release: 2
+Version: 1.4.11
+Release: 1
License: GPL v2
Group: Applications/System
Source0: http://ftp.digium.com/pub/asterisk/releases/%{name}-%{version}.tar.gz
-# Source0-md5: 90f6a2ea5113ad26de393517576a1ede
+# Source0-md5: 3ba9b399fedc68de4845b1c5603d167c
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: http://ftp.digium.com/pub/telephony/sounds/releases/asterisk-core-sounds-en-gsm-1.4.6.tar.gz
%prep
%setup -q -n %{name}-%{version}
+
+%{?with_zhone:sed -i -e 's|.*#define.*ZHONE_HACK.*|#define ZHONE_HACK 1|g' channels/chan_zap.c}
+
#%patch1 -p1
#%patch2 -p1
#%patch3 -p1