%define majver %(echo %version | cut -d. -f1-2) %define with_video 1 %define with_gtk 1 Name: linphone Version: 3.12.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: https://github.com/BelledonneCommunications/linphone-desktop.git/%{version}/linphone-%{version}.tar.bz2 #Source: https://github.com/BelledonneCommunications/linphone.git/%{version}/linphone-%{version}.tar.bz2 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 Patch5: linphone-3.12-configure-version.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: libbctoolbox-devel BuildRequires: libbcunit-devel BuildRequires: libbelle-sip-devel BuildRequires: libblkid-devel BuildRequires: libbsd-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: libmount-devel BuildRequires: libnotify-devel BuildRequires: libogg-devel BuildRequires: libopus-devel BuildRequires: libortp-devel BuildRequires: libpango-devel BuildRequires: libpcap-devel BuildRequires: libpcre-devel BuildRequires: libpng-devel BuildRequires: libpolarssl-devel BuildRequires: libpulseaudio-devel BuildRequires: libreadline-devel BuildRequires: libselinux-devel BuildRequires: libsepol-devel BuildRequires: libspeex-devel BuildRequires: libsqlite-devel BuildRequires: libstdc++6-devel BuildRequires: libswscale-ffmpeg-devel BuildRequires: libtermcap-devel BuildRequires: libthai-devel BuildRequires: libtheora-devel BuildRequires: libudev-devel BuildRequires: libupnp-devel BuildRequires: libuuid-devel BuildRequires: libv4l-devel BuildRequires: libvpx-devel BuildRequires: libxcb-devel BuildRequires: libxml2-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: libmediastreamer-devel >= 2.16.1-1mamba BuildRequires: libpulseaudio-devel >= 9.0-1mamba BuildRequires: libortp-devel >= 0.23 BuildRequires: desktop-file-utils BuildRequires: perl-XML-Parser BuildRequires: docbook-utils BuildRequires: intltool BuildRequires: libjson-c-devel >= 0.12 BuildRequires: libpolarssl-devel >= 1.3.8 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 %patch5 -p1 touch include/gitversion.h %build ./autogen.sh %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 \ CFLAGS="%{optflags} -Wno-error=misleading-indentation" # --with-readline %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall %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* %{_bindir}/lp-sendmsg %{_bindir}/lp-test-ecc %{_bindir}/lp-autoanswer %{_bindir}/liblinphone_tester %{_bindir}/lpc2xml_test %{_bindir}/xml2lpc_test %{_libdir}/liblinphone.so.* %{_libdir}/liblinphonetester.so.* %dir %{_datadir}/linphone %{_datadir}/linphone/* %dir %{_datadir}/liblinphone_tester %{_datadir}/liblinphone_tester/* %{_datadir}/appdata/linphone.appdata.xml %{_datadir}/applications/linphone.desktop %{_datadir}/applications/audio-assistant.desktop %{_datadir}/icons/hicolor/48x48/actions/linphone-*.png %{_datadir}/icons/hicolor/48x48/apps/linphone.png %{_datadir}/icons/hicolor/48x48/status/linphone-*.png %{_datadir}/icons/hicolor/scalable/actions/*.svg %{_datadir}/icons/hicolor/scalable/status/*.svg %{_datadir}/pixmaps/linphone/* %dir %{_datadir}/sounds/linphone %{_datadir}/sounds/linphone/* %{_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) %dir %{_includedir}/linphone %{_includedir}/linphone/*.h %{_libdir}/liblinphone.la %{_libdir}/liblinphone.so %{_libdir}/liblinphonetester.la %{_libdir}/liblinphonetester.so %{_libdir}/pkgconfig/linphone.pc #%dir %{_datadir}/tutorials/linphone #%{_datadir}/tutorials/linphone/* %doc BUGS ChangeLog NEWS README* TODO %changelog * Thu Nov 30 2017 Silvan Calarco 3.12.0-1mamba - update to 3.12.0 * Tue Nov 28 2017 Silvan Calarco 3.9.1-4mamba - rebuilt by autoport with build requirements: libmediastreamer-devel>=2.16.1-1mamba * Sat Jun 25 2016 Automatic Build System 3.9.1-3mamba - rebuilt by autoport with build requirements: libpulseaudio-devel>=9.0-1mamba * Mon Apr 25 2016 Silvan Calarco 3.9.1-2mamba - rebuilt by autoport with build requirements: libpulseaudio-devel>=8.0-1mamba * Thu Jan 28 2016 Automatic Build System 3.9.1-1mamba - automatic version update by autodist * Wed Jul 29 2015 Silvan Calarco 3.8.5-1mamba - update to 3.8.5 * Sun Mar 15 2015 Silvan Calarco 3.7.0-4mamba - rebuilt by autoport with build requirements: libpulseaudio-devel>=6.0-1mamba * Tue Nov 04 2014 Silvan Calarco 3.7.0-3mamba - rebuilt with libpolarssl 1.3.8 * Fri Jul 04 2014 Automatic Build System 3.7.0-2mamba - arm: rebuilt with libjson-c 0.12 * 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