%define majver %(echo %version | cut -d. -f1-2) %define with_video 1 %define with_gtk 1 Name: linphone Version: 3.7.0 Release: 1mamba Summary: Phone anywhere in the whole world by using the Internet. Group: Graphical Desktop/Applications/Internet Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.linphone.org/ Source: http://www.mirrorservice.org/sites/download.savannah.gnu.org/releases/linphone/%{majver}.x/sources/linphone-%{version}.tar.gz Patch0: linphone-3.1.2-mediastreamer2-gsm_c.patch Patch1: linphone-3.3.1-gtk-glade-libortp.patch Patch2: linphone-3.4.1-browser.patch Patch3: %{name}-3.4.3-kernel-2.6.38.patch Patch4: %{name}-3.4.3-doxygen.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libGL-devel BuildRequires: libGLU-devel BuildRequires: libX11-devel BuildRequires: libXau-devel BuildRequires: libXdmcp-devel BuildRequires: libXext-devel BuildRequires: libXv-devel BuildRequires: libalsa-devel BuildRequires: libantlr3c-devel BuildRequires: libatk-devel BuildRequires: libavcodec-ffmpeg-devel BuildRequires: libavutil-ffmpeg-devel BuildRequires: libbelle-sip-devel BuildRequires: libbzip2-devel BuildRequires: libcairo-devel BuildRequires: libexpat-devel BuildRequires: libffi-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libgcc BuildRequires: libgdk-pixbuf-devel BuildRequires: libglew-devel BuildRequires: libglib-devel BuildRequires: libgraphite2-devel BuildRequires: libgsm-devel BuildRequires: libgtk2-devel BuildRequires: libharfbuzz-devel BuildRequires: libjpeg-devel BuildRequires: liblzma-devel BuildRequires: libmediastreamer-devel BuildRequires: libnotify-devel BuildRequires: libogg-devel BuildRequires: libopus-devel BuildRequires: libortp-devel BuildRequires: libpango-devel BuildRequires: libpcre-devel BuildRequires: libpng-devel BuildRequires: libpolarssl-devel BuildRequires: libpulseaudio-devel BuildRequires: libreadline-devel BuildRequires: libselinux-devel BuildRequires: libsepol-devel BuildRequires: libsoup-devel BuildRequires: libspeex-devel BuildRequires: libsqlite-devel BuildRequires: libstdc++6-devel BuildRequires: libswscale-ffmpeg-devel BuildRequires: libtheora-devel BuildRequires: libupnp-devel BuildRequires: libv4l-devel BuildRequires: libvpx-devel BuildRequires: libxcb-devel BuildRequires: libxml2-devel BuildRequires: libz-devel BuildRequires: udev-devel ## AUTOBUILDREQ-END BuildRequires: libmediastreamer-devel >= 2.10.0 BuildRequires: libortp-devel >= 0.23 BuildRequires: desktop-file-utils BuildRequires: perl-XML-Parser BuildRequires: docbook-utils BuildRequires: intltool BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Linphone is mostly sip compliant. It works successfully with these implementations: * eStara softphone (commercial software for windows) * Pingtel phones (with DNS enabled and VLAN QOS support disabled). * Hotsip, a free of charge phone for Windows. * Vocal, an open source SIP stack from Vovida that includes a SIP proxy that works with linphone since version 0.7.1. * Siproxd is a free sip proxy being developped by Thomas Ries because he would like to have linphone working behind his firewall. Siproxd is simple to setup and works perfectly with linphone. * Partysip aims at being a generic and fully functionnal SIP proxy. Visit the web page for more details on its functionalities. Linphone may work also with other sip phones, but this has not been tested yet. %package devel Summary: Devel package for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Provides: linphone-static Obsoletes: linphone-static %description devel Linphone is an internet phone or Voice Over IP phone (VoIP). This package contains libraries and header files need for development. %prep %setup -q #%patch0 -p1 #%patch1 -p1 %patch2 -p1 #cd mediastreamer2 #%patch3 -p1 #cd .. #%patch4 -p1 #touch -r aclocal.m4 configure* #touch -r mediastreamer2/aclocal.m4 mediastreamer2/configure* #touch -r oRTP/aclocal.m4 oRTP/configure* for f in share/cs/*.1; do /usr/bin/iconv -f iso-8859-2 -t utf-8 -o $f.new $f sed -i -e 's/Encoding: ISO-8859-2/Encoding: UTF-8/' $f.new mv $f.new $f done for f in ChangeLog AUTHORS; do /usr/bin/iconv -f iso-8859-1 -t utf-8 -o $f.new $f mv $f.new $f done %build %configure \ --disable-rpath \ --enable-ipv6 \ --enable-truespeech \ --enable-console_ui=yes \ %if %with_gtk --enable-gtk_ui=yes \ %endif %if %with_video --enable-video \ --with-ffmpeg=%{_prefix} \ --with-sdl=%{_prefix} \ %else --disable-video \ %endif --enable-alsa \ --enable-strict \ --enable-external-mediastreamer \ --enable-external-ortp # --with-readline %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall rm -rf %{buildroot}%{_docdir}/mediastreamer rm -f %{buildroot}%{_datadir}/linphone/COPYING %find_lang %{name} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %{_bindir}/linphone* %{_libdir}/liblinphone.so.* %{_datadir}/applications/linphone.desktop %dir %{_datadir}/linphone %{_datadir}/linphone/*.ui %{_datadir}/linphone/*.png %{_datadir}/linphone/rootca.pem %{_datadir}/pixmaps/linphone/* %{_datadir}/sounds/linphone/*.wav %{_datadir}/sounds/linphone/rings %{_mandir}/man1/linphone.1* %{_mandir}/man1/linphonec.1* %{_mandir}/man1/linphonecsh.1* %{_mandir}/man1/sipomatic.1* %lang(cs) %{_mandir}/cs/man1/linphone.1* %lang(cs) %{_mandir}/cs/man1/linphonec.1* %lang(cs) %{_mandir}/cs/man1/sipomatic.1* %doc AUTHORS COPYING %files devel %defattr(-,root,root) %{_bindir}/lp-gen-wrappers %{_bindir}/lpc2xml_test %{_bindir}/xml2lpc_test %dir %{_includedir}/linphone %{_includedir}/linphone/*.h %{_libdir}/liblinphone.la %{_libdir}/liblinphone.so %{_libdir}/pkgconfig/linphone.pc %dir %{_datadir}/tutorials/linphone %{_datadir}/tutorials/linphone/* %doc BUGS ChangeLog NEWS README* TODO %changelog * Fri Mar 07 2014 Silvan Calarco 3.7.0-1mamba - update to 3.7.0 - rebuilt with pulseaudio 4.0 * Wed Jun 26 2013 Silvan Calarco 3.6.1-2mamba - rebuilt with libosip2 and libeXosip2 3.6.0 * Thu Jun 20 2013 Automatic Build System 3.6.1-1mamba - update to 3.6.1 * Tue Sep 04 2012 Silvan Calarco 3.5.2-2mamba - rebuilt with external mediastreamer * Sun Aug 19 2012 Automatic Build System 3.5.2-1mamba - automatic version update by autodist * Fri Dec 09 2011 Silvan Calarco 3.4.3-2mamba - rebuilt with ffmpeg 0.8.7 * Sat Jun 25 2011 Automatic Build System 3.4.3-1mamba - automatic update by autodist * Fri Mar 04 2011 Automatic Build System 3.4.2-1mamba - automatic update by autodist * Wed Jul 07 2010 Automatic Build System 3.3.2-1mamba - automatic update by autodist * Mon Jun 14 2010 Silvan Calarco 3.3.1-1mamba - update to 3.3.1 * Wed May 06 2009 gil 3.1.2-1mamba - package created by autospec