File wengophone.spec of Package wengophone
#
# spec file for package WengoPhone NG (Version 2.1.1)
#
# Copyright (c) 2007 Andreas Schneider.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
# Packmangroup: Multimedia
# Packmanpackagename: Wengophone
# Packman: Andreas Schneider
%define _releaseversion 2.1.1
%define _with_portaudio 0
BuildRequires: SDL-devel boost-devel cmake curl-devel doxygen e2fsprogs-devel
BuildRequires: gcc-c++ gnutls-devel kdebase3-devel libqt4-devel libsamplerate-devel
BuildRequires: libsndfile-devel openssl-devel speex-devel
BuildRequires: update-desktop-files xorg-x11-devel
#%if %{_with_portaudio}
BuildRequires: portaudio-devel
#%endif
# Packman
#BuildRequires: libffmpeg0-devel
Name: wengophone
URL: http://www.openwengo.org/
License: GPL
Group: Productivity/Telephony/H323/Clients
Summary: SIP Softphone with video and chat features
Version: 2.1.1
Release: 0.pm.4
Source: %{name}-%{_releaseversion}.tar.bz2
Patch: wengophone_qt4_crashes.patch
Patch1: owautoconf.diff
Patch2: owffmpeg-internal.diff
#Requires: libqt4 >= 4.2 libffmpeg0
Requires: libqt4 >= 4.2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
WengoPhone is a Voice over IP application based on standard protocols
like SIP and RTP. It enables voice, video and text chat between two
clients. Features include a contact list with presence and status,
call history and NAT traversal capability.
In conjunction with other services, WengoPhone can be used to call
regular PSTN lines and/or send SMS messages to cell phones.
Authors:
--------
Laurent Almeras
Philippe Bernery
David Ferlier
Julien Gilli
Tanguy Krotoff
Vadim Lebedev
Mathieu Stute
Jerome Wagner
%debug_package
%prep
%setup -q -n %{name}-%{_releaseversion}
%patch -p4
%patch1 -p0
%patch2 -p0
%build
pushd build
CFLAGS="%{optflags}" \
CXXFLAGS="%{optflags}" \
cmake \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
%if %{_lib} == lib64
-DLIB_SUFFIX=64 \
%endif
%if %{_with_portaudio}
-DOWSOUND_PORTAUDIO_SUPPORT=ON \
%else
-DOWSOUND_PORTAUDIO_SUPPORT=OFF \
%endif
-DPORTAUDIO_INTERNAL=OFF \
-DFFMPEG_INTERNAL=ON \
-DSPEEX_INTERNAL=OFF \
-DSAMPLERATE_INTERNAL=OFF \
-DCURL_INTERNAL=OFF \
%{_builddir}/%{name}-%{_releaseversion}
%__make %{?jobs:-j%jobs} VERBOSE=1
%__make lupdate
popd build
%install
pushd build
%makeinstall
popd build
%if %{?suse_update_desktop_file:1}0
%suse_update_desktop_file -r %{name} Network Telephony
%endif
%__install -d "%{buildroot}%{_sysconfdir}/ld.so.conf.d"
echo "%{_libdir}/wengophone" > "%{buildroot}%{_sysconfdir}/ld.so.conf.d/wengophone.conf"
%clean
%{__rm} -rf %{buildroot}
%post
%{run_ldconfig}
%files
%defattr(-,root,root)
%{_bindir}/qtwengophone
%{_libdir}/wengophone/libowwebcam.so
%{_libdir}/wengophone/libcoredumper.so
%{_libdir}/wengophone/libphapi.so
%{_libdir}/wengophone/libphapiutil.so
%{_libdir}/wengophone/libphamrplugin.so
%{_libdir}/wengophone/libphspeexplugin.so
%{_libdir}/wengophone/libsfp-plugin.so
%{_datadir}/wengophone
%{_datadir}/icons/hicolor
%{_datadir}/applications/wengophone.desktop
%{_sysconfdir}/ld.so.conf.d/wengophone.conf
%changelog -n wengophone