%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
+%bcond_with verbose
#
%define _spandsp_version 0.0.2pre26
#
Patch13: %{name}-zhone.patch
# http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/bristuff
Patch14: %{name}-bristuff.patch
+Patch15: %{name}-bristuff-libpri.patch
URL: http://www.asterisk.org/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc >= 5:3.4
BuildRequires: iksemel-devel
BuildRequires: imap-static
-BuildRequires: libpri-devel >= 1.2.4
BuildRequires: mysql-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel >= 0.9.7d
%if %{with bristuff}
BuildRequires: libgsmat-devel
BuildRequires: libpri-bristuff-devel >= 1.2.4
-Requires: libpri-bristuff
+%else
+BuildRequires: libpri-devel >= 1.2.4
%endif
Requires(post,preun): /sbin/chkconfig
Requires: rc-scripts
%{?with_bluetooth:%patch12 -p1}
%{?with_zhonehack:%patch13 -p1}
-%{?with_bristuff:%patch14 -p1}
+%if %{with bristuff}
+%patch14 -p1
+%patch15 -p1
+%endif
sed -i -e "s#/usr/lib/#/usr/%{_lib}/#g#" Makefile
cp -f .cleancount .lastclean
%{__make} -j1 -C menuselect \
+ %{?with_verbose:NOISY_BUILD=yes} \
CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}"
%{__make} -j1 \
+ %{?with_verbose:NOISY_BUILD=yes} \
CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}" \
CHANNEL_LIBS+=chan_bluetooth.so || :
# rerun needed; asterisk want's that
%{__make} -j1 \
+ %{?with_verbose:NOISY_BUILD=yes} \
CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}" \
CHANNEL_LIBS+=chan_bluetooth.so