--- /dev/null
+--- opal-3.10.9/opal.m4.orig 2013-02-01 20:14:24.184072390 +0100
++++ opal-3.10.9/opal.m4 2013-02-01 20:53:31.337356800 +0100
+@@ -292,7 +292,7 @@
+ OSTYPE=`$PKG_CONFIG ptlib --variable=ostype`
+
+ PTLIB_VERSION=`$PKG_CONFIG ptlib --modversion`
+- PTLIB_CFLAGS=`$PKG_CONFIG ptlib --cflags`
++ PTLIB_CFLAGS=`$PKG_CONFIG ptlib --cflags | sed -e 's, *-fno-exceptions,,'`
+ PTLIB_CXXFLAGS=`$PKG_CONFIG ptlib --variable=cxxflags`
+ PTLIB_LIBS=`$PKG_CONFIG ptlib --libs`
+
+@@ -311,6 +311,7 @@
+ OSTYPE=`$PKG_CONFIG ptlib --variable=ostype`
+
+ PTLIB_VERSION=`$PKG_CONFIG ptlib --modversion`
++ PTLIB_CFLAGS=`$PKG_CONFIG ptlib --cflags | sed -e 's, *-fno-exceptions,,'`
+ PTLIB_CXXFLAGS=`$PKG_CONFIG ptlib --variable=cxxflags`
+ DEBUG_LIBS=`$PKG_CONFIG ptlib --define-variable=suffix=_d --libs`
+ RELEASE_LIBS="$PTLIB_LIBS"
# SBC plugin is missing bluez_sbc subdir
# fix static libname (libopal_s.a)
# MPEG4 rate control correction requires libavcodec sources
-# VPB support (--enable-libvpb, needs exceptions enabled in ptlib, BR: libvpb)
# NOTE: IPv6 support requires IPv6 support in ptlib
#
# WARNING: opal version should match Ekiga and ptlib versions
%bcond_with sip_fax_only # minimal build for t38modem + SIP
%bcond_without celt # CELT codec support
%bcond_without srtp # SRTP protocol support (mutually exclusive with zrtp)
-%bcond_with zrtp # ZRTP protocol support [TODO: libzrtp[3]]
+%bcond_with zrtp # ZRTP protocol support (mutually exclusive with zrtp; broken as of 3.10.9)
%bcond_without capi # CAPI support
%bcond_with vpb # Voicetronix VPB support
%bcond_with java # Java JNI support
Patch2: %{name}-sh.patch
Patch3: %{name}-libilbc.patch
Patch4: %{name}-ah.patch
+Patch5: %{name}-exceptions.patch
URL: http://www.opalvoip.org/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
%{?with_celt:BuildRequires: celt-devel}
BuildRequires: expat-devel
BuildRequires: libstdc++-devel
+%{?with_zrtp:BuildRequires: libzrtp-devel}
BuildRequires: pkgconfig
BuildRequires: ptlib-devel >= 1:2.10.9
BuildRequires: sed >= 4.0
%{?with_java:BuildRequires: jdk}
BuildRequires: libgsm-devel
BuildRequires: libtheora-devel
-%{?with_vpb:BuildRequires: libvpb-devel}
+%{?with_vpb:BuildRequires: vpb-devel}
# ABI 0.102
BuildRequires: libx264-devel >= 0.1.3-1.20101031_2245.1
BuildRequires: webrtc-libilbc-devel
Requires: %{name} = %{version}-%{release}
%{?with_capi:Requires: capi4k-utils-devel}
Requires: libstdc++-devel
+%{?with_zrtp:Requires: libzrtp-devel}
Requires: ptlib-devel >= 1:2.10.9
Requires: speex-devel >= 1:1.2
%{?with_srtp:Requires: srtp-devel}
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%{?with_vpb:%patch5 -p1}
%build
PWLIBDIR=%{_prefix}; export PWLIBDIR
%{?with_ruby:--enable-ruby} \
%{!?with_srtp:--disable-srtp} \
%{?with_vpb:--enable-vpb} \
- %{?with_zrtp:--enable-zrtp}
+%if %{with zrtp}
+ --enable-zrtp \
+ --with-bn-includedir=/usr/include \
+ --with-bn-libdir=%{_libdir} \
+ --with-zrtp-includedir=/usr/include/libzrtp \
+ --with-zrtp-libdir=%{_libdir}
+%endif
%endif
%{__make} %{?debug:debug}%{!?debug:opt} \
%attr(755,root,root) %{_libdir}/opal-%{version}/fax/spandsp_ptplugin.so
%dir %{_libdir}/opal-%{version}/lid
%attr(755,root,root) %{_libdir}/opal-%{version}/lid/ixj_lid_pwplugin.so
-#%attr(755,root,root) %{_libdir}/opal-%{version}/lid/vpb_lid_pwplugin.so
+%{?with_vpb:%attr(755,root,root) %{_libdir}/opal-%{version}/lid/vpb_ptplugin.so}
%endif
%files devel