%bcond_with bluetooth # without bluetooth support (NFT)
%bcond_with zhone # zhone hack
%bcond_with zhone_hack # huge hack workarounding broken zhone channel banks
+%bcond_with bristuff # BRIstuff (Junghanns.NET BRI adapters) support
#
%define _spandsp_version 0.0.2pre26
#
Patch11: %{name}-fix-ptlib.patch
Patch12: %{name}-chan_bluetooth.patch
Patch13: %{name}-zhone.patch
+Patch14: %{name}-bristuff.patch
URL: http://www.asterisk.org/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: zlib-devel
BuildRequires: openh323-devel
BuildRequires: pwlib-devel
+%if %{with bristuff}
+BuildRequires: libpri-bristuff-devel >= 1.2.4
+Requires: libpri-bristuff
+%endif
Requires(post,preun): /sbin/chkconfig
Requires: rc-scripts
%requires_eq openh323
%patch11 -p1
-%if %{with bluetooth}
-%patch12 -p1
-%endif
-
-%patch13 -p1
+%{?with_bluetooth:%patch12 -p1}
+%{?with_zhonehack:%patch13 -p1}
+%{?with_bristuff:%patch14 -p1}
sed -i -e "s#/usr/lib/#/usr/%{_lib}/#g#" Makefile