[packages/linphone/DEVEL-4.2] - updated to 4.2.5, qt based now (Obsoletes also linphoneqt) - old patches outdated - added no-sdk p

qboosh qboosh at pld-linux.org
Sat Jul 17 22:32:03 CEST 2021


commit de8a8fd97cbeaaee3ab8503c2790303029715c1f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jul 17 22:35:05 2021 +0200

    - updated to 4.2.5, qt based now (Obsoletes also linphoneqt)
    - old patches outdated
    - added no-sdk patch to allow build with preinstalled libs
    - cmake patch to fix liblinphone detection issues

 bctoolbox-4.5.patch          |  11 -
 build.patch                  |  11 -
 cxx.patch                    |  10 -
 linphone-cmake.patch         |  33 +++
 linphone-cxx-autotools.patch | 129 -----------
 linphone-no-rebuild.patch    |  12 -
 linphone-no-sdk.patch        |  77 +++++++
 linphone-sh.patch            |  33 ---
 linphone.spec                | 522 +++++++------------------------------------
 9 files changed, 193 insertions(+), 645 deletions(-)
---
diff --git a/linphone.spec b/linphone.spec
index e2d19b0..bf1a151 100644
--- a/linphone.spec
+++ b/linphone.spec
@@ -1,476 +1,120 @@
-# TODO:
-# - --enable-tunnel (BR: pkgconfig(tunnel) >= 0.6.0)
-# - switch from polarssl to mbedtls (upstream forgot? bctoolbox uses mbedtls)
-# - fill in dependencies for !system_ortp, !system_mediastreamer
-# - check if all this configure option I've set are really needed
-# - separate libraries that do not require gnome into subpackages for Jingle support in kopete
-# - if system_mediastreamerpackages copies for "libmediastreamer.so.1", "libortp.so.8" libraries
-#   those should be installed to private path and LD_LIBARY_PATH setup with wrappers.
-#   without doing so do not stbr it to Th!
-#
-# Conditional build:
-%bcond_without	ldap			# LDAP support
-%bcond_without	openssl			# SSL support
-%bcond_without	static_libs		# static libraries
-%bcond_without	system_ortp		# use custom ortp
-%bcond_without	system_mediastreamer	# use custom mediastreamer
-%bcond_without	zrtp			# ZRTP support
-
 Summary:	Linphone Internet Phone
 Summary(pl.UTF-8):	Linphone - telefon internetowy
 Name:		linphone
-Version:	3.12.0
-Release:	9
-License:	GPL v2+
+Version:	4.2.5
+Release:	1
+License:	GPL v3+ or proprietary
 Group:		Applications/Communications
-Source0:	http://linphone.org/releases/sources/linphone/%{name}-%{version}.tar.gz
-# Source0-md5:	8292dbaa0a5d0a448dcbbee125e947e4
-Patch0:		%{name}-sh.patch
-Patch1:		build.patch
-Patch2:		%{name}-cxx-autotools.patch
-Patch3:		%{name}-no-rebuild.patch
-Patch4:		bctoolbox-4.5.patch
-Patch5:		cxx.patch
+#Source0Download: https://gitlab.linphone.org/BC/public/linphone-desktop/-/tags
+Source0:	https://gitlab.linphone.org/BC/public/linphone-desktop/-/archive/%{version}/linphone-desktop-%{version}.tar.bz2
+# Source0-md5:	ecab72769c693d6e9cb632bb2ba42d22
+Patch0:		%{name}-no-sdk.patch
+Patch1:		%{name}-cmake.patch
+#Patch0:		%{name}-sh.patch
+#Patch1:		build.patch
+#Patch2:		%{name}-cxx-autotools.patch
+#Patch3:		%{name}-no-rebuild.patch
+#Patch4:		bctoolbox-4.5.patch
+#Patch5:		cxx.patch
 URL:		http://www.linphone.org/
-BuildRequires:	autoconf >= 2.50
-BuildRequires:	automake >= 1:1.9
+BuildRequires:	Qt5Concurrent-devel >= 5.12
+BuildRequires:	Qt5Core-devel >= 5.12
+BuildRequires:	Qt5DBus-devel >= 5.12
+BuildRequires:	Qt5Gui-devel >= 5.12
+BuildRequires:	Qt5Network-devel >= 5.12
+BuildRequires:	Qt5Quick-devel >= 5.12
+BuildRequires:	Qt5Quick-controls2-devel >= 5.12
+# optional
+BuildRequires:	Qt5Speech-devel >= 5.12
+BuildRequires:	Qt5Svg-devel >= 5.12
+BuildRequires:	Qt5Widgets-devel >= 5.12
 BuildRequires:	bctoolbox-devel >= 0.0.3
 BuildRequires:	belcard-devel
-BuildRequires:	belle-sip-devel >= 1.5.0
-%{?with_zrtp:BuildRequires:	bzrtp-devel >= 1.0.0}
-%{?with_ldap:BuildRequires:	cyrus-sasl-devel >= 2}
+BuildRequires:	cmake >= 3.1
 BuildRequires:	doxygen
-BuildRequires:	gettext-tools
-BuildRequires:	glib2-devel >= 1:2.26.0
-BuildRequires:	gtk+2-devel >= 2:2.22.0
-BuildRequires:	intltool >= 0.40
-BuildRequires:	libnotify-devel >= 0.7.0
-BuildRequires:	libstdc++-devel
-BuildRequires:	libtool >= 2:2
-BuildRequires:	libupnp-devel >= 1.6
-BuildRequires:	libxml2-devel >= 2.0
-%{?with_system_mediastreamer:BuildRequires:	mediastreamer-devel >= 2.12.1}
-BuildRequires:	ncurses-devel
-%{?with_ldap:BuildRequires:	openldap-devel}
-%{?with_openssl:BuildRequires:	openssl-devel >= 0.9.8}
-%{?with_system_ortp:BuildRequires:	ortp-devel >= 0.24.0}
+BuildRequires:	liblinphone-devel >= 4.5
+BuildRequires:	liblinphone-c++-devel >= 4.5
+BuildRequires:	libstdc++-devel >= 6:4.7
+BuildRequires:	mediastreamer-devel >= 4.5.22-1
+BuildRequires:	ortp-devel >= 4.5.15-1
 BuildRequires:	pkgconfig
-BuildRequires:	polarssl-devel >= 1.3
-# to generate C++ wrappers
-BuildRequires:	python-pystache
-BuildRequires:	readline-devel
-BuildRequires:	rpmbuild(macros) >= 1.98
-BuildRequires:	speex-devel >= 1:1.1.6
-BuildRequires:	sqlite3-devel >= 3.7.0
-BuildRequires:	udev-devel
-BuildRequires:	xorg-lib-libX11-devel
-BuildRequires:	xorg-lib-libXv-devel
-BuildRequires:	zlib-devel >= 1.2.3
-%if %{without system_mediastreamer}
-BuildRequires:	libgsm-devel >= 1.0.10
-BuildRequires:	pulseaudio-devel
-BuildRequires:	speexdsp-devel >= 1.2-beta3
-%endif
-Requires:	%{name}-libs = %{version}-%{release}
-Requires:	libnotify >= 0.7.0
+BuildRequires:	qt5-build >= 5.12
+BuildRequires:	qt5-linguist >= 5.12
+BuildRequires:	rpmbuild(macros) >= 1.605
+Obsoletes:	linphoneqt < 4.2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%if %{without system_ortp}
-%define		_noautoreq_1	libortp\.so.*
-%endif
-%if %{without system_mediastreamer}
-%define		_noautoreq_2	libmediastreamer\.so.*
-%endif
-
-%define		_noautoreq	%{?_noautoreq_1} %{?_noautoreq_2}
-%define		_noautoprov	%{?_noautoreq}
-
-%define		filterout	-Werror=format-security
-
 %description
-Linphone is a web phone: it let you phone to your friends anywhere in
-the whole world, freely, simply by using the internet. The cost of the
-phone call is the cost that you spend connected to the internet.
+Linphone is an open source softphone for voice and video over IP
+calling and instant messaging.
 
-Here are the main features of linphone:
-- Works with the GNOME Desktop under linux.
-- Works as simply as a cellular phone. Two buttons, no more.
-- Understands the SIP protocol.
-- You just require a soundcard to use linphone.
-- Linphone is free software, released under the General Public
-  Licence.
-- Linphone is documented: there is a complete user manual readable
-  from the application that explains you all you need to know.
+It is fully SIP-based, for all calling, presence and IM features.
 
 %description -l pl.UTF-8
-Linphone to telefon internetowy - pozwala dzwonić do znajomych na
-całym świecie bez dodatkowych opłat, używając tylko Internetu.
-
-Główne cechy linphone:
-- działanie ze środowiskiem GNOME
-- naśladowanie prostego telefonu komórkowego - tylko dwa przyciski
-- obsługa protokołu SIP
-- wymaga karty dźwiękowej
-- jest wolnodostępnym oprogramowaniem (na licencji GPL)
-- ma dokumentację: pełny podręcznik dostępny z aplikacji.
-
-%package -n linphonec
-Summary:	Linphone Internet Phone console interface
-Summary(pl.UTF-8):	Linphone - telefon internetowy, interfejs konsolowy
-Group:		Applications/Communications
-Requires:	%{name}-libs = %{version}-%{release}
-
-%description -n linphonec
-Linphonec is the console version of originally GNOME Internet phone
-Linphone.
-
-%description -n linphonec -l pl.UTF-8
-Linphonec to konsolowa wersja telefonu internetowego Linphone
-pochodzącego z GNOME.
-
-%package libs
-Summary:	Linphone libraries
-Summary(pl.UTF-8):	Biblioteki Linphone
-Group:		Libraries
-Requires(post,postun):	/sbin/ldconfig
-Requires:	bctoolbox >= 0.0.3
-Requires:	belle-sip >= 1.5.0
-%{?with_zrtp:Requires:	bzrtp >= 1.0.0}
-Requires:	glib2 >= 1:2.26.0
-Requires:	gtk+2 >= 2:2.22.0
-%{?with_system_mediastreamer:Requires:	mediastreamer >= 2.11.0}
-%{?with_system_ortp:Requires:	ortp >= 0.24.0}
-Requires:	sqlite3 >= 3.7.0
-Requires:	zlib >= 1.2.3
-
-%description libs
-Linphone libraries.
-
-%description libs -l pl.UTF-8
-Biblioteki Linphone.
-
-%package devel
-Summary:	Linphone Internet Phone - header files
-Summary(pl.UTF-8):	Telefon internetowy Linphone - pliki nagłówkowe
-Group:		Development/Libraries
-Requires:	%{name}-libs = %{version}-%{release}
-Requires:	bctoolbox-devel >= 0.0.3
-Requires:	belle-sip-devel >= 1.5.0
-%{?with_zrtp:Requires:	bzrtp-devel >= 1.0.0}
-Requires:	glib2-devel >= 1:2.26.0
-Requires:	gtk+2-devel >= 2:2.22.0
-Requires:	libstdc++-devel
-Requires:	libxml2-devel >= 2.0
-%{?with_system_mediastreamer:Requires:	mediastreamer-devel >= 2.11.0}
-%{?with_ldap:Requires:	openldap-devel}
-%{?with_system_ortp:Requires:	ortp-devel >= 0.24.0}
-Requires:	sqlite3-devel >= 3.7.0
-Requires:	zlib-devel >= 1.2.3
-%if %{without system_mediastreamer}
-Requires:	libgsm-devel >= 1.0.10
-Requires:	speexdsp-devel >= 1.2-beta3
-%endif
-
-%description devel
-Development files for the Linphone Internet Phone.
-
-%description devel -l pl.UTF-8
-Pliki dla programistów używających telefonu internetowego Linphone.
-
-%package static
-Summary:	Linphone static libraries
-Summary(pl.UTF-8):	Statyczne biblioteki Linphone
-Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}-%{release}
-
-%description static
-Static version of Linphone libraries.
-
-%description static -l pl.UTF-8
-Statyczne wersje bibliotek Linphone.
-
-%package apidocs
-Summary:	API documentation for Linphone library
-Summary(pl.UTF-8):	Dokumentacja API biblioteki Linphone
-Group:		Documentation
-
-%description apidocs
-API documentation for Linphone library.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API biblioteki Linphone.
-
-%package c++
-Summary:	C++ wrapper for Linphone library
-Summary(pl.UTF-8):	Interfejs C++ do biblioteki Linphone
-Group:		Libraries
-Requires:	%{name}-libs = %{version}-%{release}
-
-%description c++
-C++ wrapper for Linphone library.
-
-%description c++ -l pl.UTF-8
-Interfejs C++ do biblioteki Linphone.
-
-%package c++-devel
-Summary:	Headers for liblinphone++ library
-Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki liblinphone++
-Group:		Development/Libraries
-Requires:	%{name}-c++ = %{version}-%{release}
-Requires:	%{name}-devel = %{version}-%{release}
-
-%description c++-devel
-Headers for liblinphone++ library.
-
-%description c++-devel -l pl.UTF-8
-Pliki nagłówkowe biblioteki liblinphone++.
-
-%package c++-static
-Summary:	Static liblinphone++ library
-Summary(pl.UTF-8):	Statyczna biblioteka liblinphone++
-Group:		Development/Libraries
-Requires:	%{name}-c++-devel = %{version}-%{release}
+Linphone to mająca otwarte źródła aplikacja do programowego
+wykonywania połączeń głosowych i wideo po IP oraz komunikacji
+tekstowej.
 
-%description c++-static
-Static liblinphone++ library.
-
-%description c++-static -l pl.UTF-8
-Statyczna biblioteka liblinphone++.
+Jest w pełni oparta o SIP, zarówno w przypadku połączeń, obecności
+jak i komunikacji tekstowej.
 
 %prep
-%setup -q
+%setup -q -n linphone-desktop-%{version}
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
 
-[ ! -e gitversion.h ] && echo '#define LIBLINPHONE_GIT_VERSION "%{version}"' > coreapi/gitversion.h
+# hack versions (git describe doesn't work on dist tarballs)
+%{__sed} -i -e 's/set(FULL_VERSION )/set(FULL_VERSION %{version})/; /^bc_compute_full_version/d' linphone-app/CMakeLists.txt
+%{__sed} -i -e 's/bc_compute_full_version(PROJECT_VERSION_BUILD)/set(PROJECT_VERSION_BUILD %{version})/' linphone-app/build/CMakeLists.txt
+%{__sed} -i -e 's/bc_compute_full_version(APP_PROJECT_VERSION)/set(APP_PROJECT_VERSION %{version})/' linphone-app/cmake_builder/linphone_package/CMakeLists.txt
+%{__sed} -i -e 's/LINPHONE_QT_GIT_VERSION/"%{version}"/' linphone-app/src/app/AppController.cpp
+# adjust locales path
+%{__sed} -i -e '/LanguagePath/ s,"[^"]*","%{_datadir}/linphone/languages",' linphone-app/src/app/App.cpp
 
 %build
-%{__gettextize}
-%{__intltoolize}
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%if %{without system_ortp}
-cd oRTP
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-cd ..
-%endif
-%if %{without system_ortp}
-cd mediastreamer2
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-cd ..
-%endif
-
-%configure \
-	--with-html-dir=%{_gtkdocdir} \
-	%{?with_system_mediastreamer:--enable-external-mediastreamer} \
-	%{?with_system_ortp:--enable-external-ortp} \
-	--enable-ipv6 \
-	%{?with_ldap:--enable-ldap} \
-	--disable-silent-rules \
-	%{?with_openssl:--enable-ssl} \
-	%{?with_static_libs:--enable-static} \
-	--disable-strict \
-	%{!?with_zrtp:--disable-zrtp}
-
-# although main configure already calls {oRTP,mediastreamer2}/configure,
-# reconfigure them with different dirs
-%if %{without system_ortp}
-cd oRTP
-%configure \
-	--includedir=%{_libdir}/%{name}/include \
-	--libdir=%{_libdir}/%{name} \
-	--enable-ipv6 \
-	%{?with_static_libs:--enable-static}
-cd ..
-%endif
-%if %{without system_ortp}
-cd mediastreamer2
-%configure \
-	--includedir=%{_libdir}/%{name}/include \
-	--libdir=%{_libdir}/%{name} \
-	--disable-libv4l \
-	%{?with_static_libs:--enable-static}
-cd ..
-%endif
-
-%{__make} \
-	GITDESCRIBE=/bin/true \
-	GIT_TAG=%{version}
+install -d build
+cd build
+%cmake ..
 
-# disable installation of HTML docs (will be packaged as %doc)
-%{__tar} --delete -f coreapi/help/doc/doxygen/html/html.tar --wildcards '*'
-%{__tar} --delete -f coreapi/help/doc/doxygen/xml/xml.tar --wildcards '*'
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_desktopdir} \
-	$RPM_BUILD_ROOT%{_pixmapsdir}
-
-%{__make} install \
-	GITDESCRIBE=/bin/true \
-	GIT_TAG=%{version} \
-	DESTDIR=$RPM_BUILD_ROOT \
-	tuto_DATA=
-
-# obsoleted by pkg-config
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/liblinphone*.la
-%if %{without system_mediastreamer} || %{without system_ortp}
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
-%endif
-
-install pixmaps/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
 
-%{!?with_system_mediastreamer:%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mediastreamer}
-%{!?with_system_ortp:%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ortp}
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
 
-%{__mv} $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/qt.conf
 
-# the executable is missing, so the manual is useless
-%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/sipomatic.1*
-%{__rm} $RPM_BUILD_ROOT%{_mandir}/cs/man1/sipomatic.1*
-
-# some tests
-%{__rm} $RPM_BUILD_ROOT%{_bindir}/*_test
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/liblinphone_tester
-
-%find_lang %{name} --with-gnome --all-name
+install -d $RPM_BUILD_ROOT%{_datadir}/linphone/languages
+cp -p build/linphone-app/assets/languages/*.qm $RPM_BUILD_ROOT%{_datadir}/linphone/languages
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/linphone/languages/{fr_FR,fr}.qm
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{without system_mediastreamer} || %{without system_ortp}
-%post	libs
-/sbin/ldconfig %{_libdir}/%{name}
-%else
-%post	libs -p /sbin/ldconfig
-%endif
-
-%postun	libs -p /sbin/ldconfig
-
-%post	c++ -p /sbin/ldconfig
-%postun	c++ -p /sbin/ldconfig
-
-%files -f %{name}.lang
+%files
 %defattr(644,root,root,755)
-%doc AUTHORS BUGS ChangeLog NEWS README.md TODO
-%attr(755,root,root) %{_bindir}/liblinphone_tester
+%doc CHANGELOG.md README.md
 %attr(755,root,root) %{_bindir}/linphone
-%attr(755,root,root) %{_bindir}/linphone-daemon
-%attr(755,root,root) %{_bindir}/linphone-daemon-pipetest
-%attr(755,root,root) %{_bindir}/lp-autoanswer
-%attr(755,root,root) %{_bindir}/lp-sendmsg
-%attr(755,root,root) %{_bindir}/lp-test-ecc
-%{_desktopdir}/audio-assistant.desktop
 %{_desktopdir}/linphone.desktop
-%{_pixmapsdir}/linphone.png
-%{_pixmapsdir}/linphone
-%{_iconsdir}/hicolor/48x48/actions/linphone-*.png
-%{_iconsdir}/hicolor/48x48/apps/linphone.png
-%{_iconsdir}/hicolor/48x48/status/linphone-*.png
-%{_iconsdir}/hicolor/scalable/actions/linphone-*.svg
-%{_iconsdir}/hicolor/scalable/status/linphone-*.svg
-%{_datadir}/appdata/linphone.appdata.xml
-%{_datadir}/linphone
-%{_mandir}/man1/linphone.1*
-%lang(cs) %{_mandir}/cs/man1/linphone.1*
-
-%files -n linphonec
-%defattr(644,root,root,755)
-%doc AUTHORS BUGS ChangeLog NEWS README.md TODO
-%attr(755,root,root) %{_bindir}/linphonec
-%attr(755,root,root) %{_bindir}/linphonecsh
-%{_mandir}/man1/linphonec.1*
-%{_mandir}/man1/linphonecsh.1*
-%lang(cs) %{_mandir}/cs/man1/linphonec.1*
-
-%files libs
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/liblinphone.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/liblinphone.so.9
-%attr(755,root,root) %{_libdir}/liblinphonetester.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/liblinphonetester.so.0
-%if %{without system_mediastreamer} || %{without system_ortp}
-%dir %{_libdir}/%{name}
-%endif
-%if %{without system_mediastreamer}
-%attr(755,root,root) %{_libdir}/%{name}/libmediastreamer.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/%{name}/libmediastreamer.so.?
-%{_libdir}/%{name}/mediastream
-%endif
-%if %{without system_ortp}
-%attr(755,root,root) %{_libdir}/%{name}/libortp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/%{name}/libortp.so.?
-%endif
-%{_datadir}/sounds/linphone
-
-%files devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/liblinphone.so
-%attr(755,root,root) %{_libdir}/liblinphonetester.so
-%{_includedir}/linphone
-%{_pkgconfigdir}/linphone.pc
-%if %{without system_mediastreamer} || %{without system_ortp}
-%dir %{_libdir}/%{name}/include
-%dir %{_libdir}/%{name}/pkgconfig
-%endif
-%if %{without system_mediastreamer}
-%attr(755,root,root) %{_libdir}/%{name}/libmediastreamer.so
-%{_libdir}/%{name}/libmediastreamer.la
-%{_libdir}/%{name}/include/mediastreamer2
-%{_libdir}/%{name}/pkgconfig/mediastreamer.pc
-%endif
-%if %{without system_ortp}
-%attr(755,root,root) %{_libdir}/%{name}/libortp.so
-%{_libdir}/%{name}/libortp.la
-%{_libdir}/%{name}/include/ortp
-%{_libdir}/%{name}/pkgconfig/ortp.pc
-%endif
-
-%if %{with static_libs}
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/liblinphone.a
-%{_libdir}/liblinphonetester.a
-%if %{without system_mediastreamer}
-%{_libdir}/%{name}/libmediastreamer.a
-%endif
-%if %{without system_ortp}
-%{_libdir}/%{name}/libortp.a
-%endif
-%endif
-
-%files apidocs
-%defattr(644,root,root,755)
-%doc coreapi/help/doc/doxygen/html/{*.css,*.html,*.js,*.png}
-
-%files c++
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/liblinphone++.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/liblinphone++.so.9
-
-%files c++-devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/liblinphone++.so
-%{_includedir}/linphone++
-%{_pkgconfigdir}/linphone++.pc
-
-%if %{with static_libs}
-%files c++-static
-%defattr(644,root,root,755)
-%{_libdir}/liblinphone++.a
-%endif
+%{_iconsdir}/hicolor/*x*/apps/linphone.png
+%{_iconsdir}/hicolor/scalable/apps/linphone.svg
+%{_datadir}/linphone/assistant
+%dir %{_datadir}/linphone/languages
+%lang(da) %{_datadir}/linphone/languages/da.qm
+%lang(de) %{_datadir}/linphone/languages/de.qm
+%{_datadir}/linphone/languages/en.qm
+%lang(es) %{_datadir}/linphone/languages/es.qm
+%lang(fr) %{_datadir}/linphone/languages/fr.qm
+%lang(hu) %{_datadir}/linphone/languages/hu.qm
+%lang(it) %{_datadir}/linphone/languages/it.qm
+%lang(ja) %{_datadir}/linphone/languages/ja.qm
+%lang(lt) %{_datadir}/linphone/languages/lt.qm
+%lang(pt_BR) %{_datadir}/linphone/languages/pt_BR.qm
+%lang(ru) %{_datadir}/linphone/languages/ru.qm
+%lang(sv) %{_datadir}/linphone/languages/sv.qm
+%lang(tr) %{_datadir}/linphone/languages/tr.qm
+%lang(uk) %{_datadir}/linphone/languages/uk.qm
+%lang(zh_CN) %{_datadir}/linphone/languages/zh_CN.qm
+%{_datadir}/linphone/linphonerc-factory
diff --git a/bctoolbox-4.5.patch b/bctoolbox-4.5.patch
deleted file mode 100644
index 8486b2c..0000000
--- a/bctoolbox-4.5.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- linphone-3.12.0/coreapi/sqlite3_bctbx_vfs.c.orig	2017-04-26 10:19:03.000000000 +0200
-+++ linphone-3.12.0/coreapi/sqlite3_bctbx_vfs.c	2021-07-12 00:01:04.176260680 +0200
-@@ -245,7 +245,7 @@
- 	ret = FlushFileBuffers((HANDLE)_get_osfhandle(pFile->pbctbx_file->fd));
- 	return (ret!=0 ? SQLITE_OK : SQLITE_IOERR_FSYNC);
- #else
--	int rc = fsync(pFile->pbctbx_file->fd);
-+	int rc = pFile->pbctbx_file->pMethods->pFuncSync(pFile->pbctbx_file);
- 	return (rc==0 ? SQLITE_OK : SQLITE_IOERR_FSYNC);
- #endif
- }
diff --git a/build.patch b/build.patch
deleted file mode 100644
index 32b1e60..0000000
--- a/build.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -urNp -x '*.orig' linphone-3.12.0.org/configure.ac linphone-3.12.0/configure.ac
---- linphone-3.12.0.org/configure.ac	2021-07-06 00:14:06.029407541 +0200
-+++ linphone-3.12.0/configure.ac	2021-07-06 00:14:06.246077365 +0200
-@@ -1069,7 +1069,6 @@ AC_CONFIG_FILES([
- 	build/macos/Info-linphone.plist
- 	build/macos/pkg-distribution.xml
- 	m4/Makefile
--	po/Makefile.in
- 	pixmaps/Makefile
- 	include/Makefile
- 	include/linphone/Makefile
diff --git a/cxx.patch b/cxx.patch
deleted file mode 100644
index db5403f..0000000
--- a/cxx.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- linphone-3.12.0/wrappers/cpp/object.hh~	2017-04-06 11:26:00.000000000 +0200
-+++ linphone-3.12.0/wrappers/cpp/object.hh	2021-07-12 00:06:44.171289642 +0200
-@@ -24,6 +24,7 @@
- #include <list>
- #include <map>
- #include <string>
-+#include <stdexcept>
- 
- #ifndef LINPHONECXX_PUBLIC
- #if defined(_MSC_VER)
diff --git a/linphone-cmake.patch b/linphone-cmake.patch
new file mode 100644
index 0000000..fbeed04
--- /dev/null
+++ b/linphone-cmake.patch
@@ -0,0 +1,33 @@
+--- linphone-desktop-4.2.5/CMakeLists.txt.orig	2021-07-17 17:21:38.966891901 +0200
++++ linphone-desktop-4.2.5/CMakeLists.txt	2021-07-17 20:14:21.000755945 +0200
+@@ -43,7 +43,7 @@
+ 	message(STATUS "Setting Platform to ${CMAKE_GENERATOR_PLATFORM}")
+ endif()
+ 
+-project(linphoneqt)
++project(linphoneqt C CXX)
+ 
+ include(GNUInstallDirs)
+ include(CheckCXXCompilerFlag)
+@@ -145,8 +145,8 @@
+ 	message(FATAL_ERROR "Minimum supported Qt5 version is 5.12!")
+ endif()
+ 
+-find_package(LinphoneCxx CONFIG QUIET)
+ find_package(Linphone CONFIG QUIET)
++find_package(LinphoneCxx CONFIG QUIET)
+ find_package(bctoolbox CONFIG QUIET)
+ find_package(belcard CONFIG QUIET)
+ find_package(Mediastreamer2 CONFIG QUIET)
+--- linphone-desktop-4.2.5/linphone-app/CMakeLists.txt.orig	2021-07-17 17:21:38.970225216 +0200
++++ linphone-desktop-4.2.5/linphone-app/CMakeLists.txt	2021-07-17 20:21:15.985174448 +0200
+@@ -66,8 +66,8 @@
+ 	endforeach( OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES )
+ endif()
+ 
+-find_package(LinphoneCxx CONFIG)
+ find_package(Linphone CONFIG)
++find_package(LinphoneCxx CONFIG)
+ find_package(belcard CONFIG)
+ find_package(Mediastreamer2 CONFIG)
+ find_package(ortp CONFIG)
diff --git a/linphone-cxx-autotools.patch b/linphone-cxx-autotools.patch
deleted file mode 100644
index b1c8f24..0000000
--- a/linphone-cxx-autotools.patch
+++ /dev/null
@@ -1,129 +0,0 @@
-diff -urNp -x '*.orig' linphone-3.12.0.org/Makefile.am linphone-3.12.0/Makefile.am
---- linphone-3.12.0.org/Makefile.am	2017-04-06 11:25:59.000000000 +0200
-+++ linphone-3.12.0/Makefile.am	2021-07-06 00:14:06.742751269 +0200
-@@ -4,7 +4,7 @@
- ACLOCAL_AMFLAGS = -I m4 $(ACLOCAL_MACOS_FLAGS)
- 
- SUBDIRS = build m4 pixmaps po @ORTP_DIR@ @MS2_DIR@ \
--		coreapi console gtk share scripts tools daemon tester include
-+		coreapi console gtk share scripts tools daemon tester include wrappers/cpp
- 
- GITVERSION=`cd $(top_srcdir) && git describe --always || echo $(VERSION)`
- 
-diff -urNp -x '*.orig' linphone-3.12.0.org/configure.ac linphone-3.12.0/configure.ac
---- linphone-3.12.0.org/configure.ac	2021-07-06 00:14:06.539414973 +0200
-+++ linphone-3.12.0/configure.ac	2021-07-06 00:14:06.742751269 +0200
-@@ -1073,6 +1073,12 @@ AC_CONFIG_FILES([
- 	include/Makefile
- 	include/linphone/Makefile
- 	coreapi/Makefile
-+	coreapi/help/Makefile
-+	coreapi/help/doc/Makefile
-+	coreapi/help/doc/doxygen/Doxyfile
-+	coreapi/help/doc/doxygen/Makefile
-+	coreapi/help/examples/Makefile
-+	coreapi/help/examples/C/Makefile
- 	tester/Makefile
- 	gtk/Makefile
- 	console/Makefile
-@@ -1089,6 +1095,8 @@ AC_CONFIG_FILES([
- 	share/audio-assistant.desktop
- 	scripts/Makefile
- 	tools/Makefile
-+	wrappers/cpp/Makefile
-+	wrappers/cpp/linphone++.pc
- 	linphone.spec
- 	linphone.iss
- ])
-diff -urNp -x '*.orig' linphone-3.12.0.org/coreapi/Makefile.am linphone-3.12.0/coreapi/Makefile.am
---- linphone-3.12.0.org/coreapi/Makefile.am	2017-06-20 12:03:59.000000000 +0200
-+++ linphone-3.12.0/coreapi/Makefile.am	2021-07-06 00:14:06.742751269 +0200
-@@ -13,7 +13,7 @@ GITLOG=`cd $(top_srcdir) && git log -1 -
- 
- ECHO=/bin/echo
- 
--SUBDIRS=.
-+SUBDIRS=. help
- 
- EXTRA_DIST=linphonecore_jni.cc $(GITVERSION_FILE)
- 
-diff -urNp -x '*.orig' linphone-3.12.0.org/coreapi/help/doc/doxygen/Makefile.am linphone-3.12.0/coreapi/help/doc/doxygen/Makefile.am
---- linphone-3.12.0.org/coreapi/help/doc/doxygen/Makefile.am	2017-06-20 12:03:59.000000000 +0200
-+++ linphone-3.12.0/coreapi/help/doc/doxygen/Makefile.am	2021-07-06 00:14:06.742751269 +0200
-@@ -1,6 +1,6 @@
- EXTRA_DIST=Doxyfile.in doxygen.dox
- 
--SOURCES=doxygen.dox $(top_srcdir)/coreapi/help/*.c $(top_srcdir)/coreapi/*.c $(top_srcdir)/coreapi/*.h
-+SOURCES=doxygen.dox $(top_srcdir)/coreapi/*.c $(top_srcdir)/coreapi/*.h
- 
- if HAVE_DOXYGEN
- 
-@@ -9,21 +9,21 @@ pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION
- doc_htmldir=$(pkgdocdir)/html
- doc_xmldir=$(pkgdocdir)/xml
- 
--doc_html_DATA = $(top_builddir)/coreapi/help/doc/html/html.tar
-+doc_html_DATA = $(top_builddir)/coreapi/help/doc/doxygen/html/html.tar
- 
--$(doc_html_DATA): $(top_builddir)/coreapi/help/doc/html/index.html
--	cd $(top_builddir)/coreapi/help/doc/html/ && tar cf html.tar *
-+$(doc_html_DATA): $(top_builddir)/coreapi/help/doc/doxygen/html/index.html
-+	cd $(top_builddir)/coreapi/help/doc/doxygen/html/ && tar cf html.tar *
- 
--$(top_builddir)/coreapi/help/doc/html/index.html: $(SOURCES) Doxyfile Makefile.am
-+$(top_builddir)/coreapi/help/doc/doxygen/html/index.html: $(SOURCES) Doxyfile Makefile.am
- 	rm -rf doc
- 	$(DOXYGEN) Doxyfile
- 
--doc_xml_DATA = $(top_builddir)/coreapi/help/doc/xml/xml.tar
-+doc_xml_DATA = $(top_builddir)/coreapi/help/doc/doxygen/xml/xml.tar
- 
--$(doc_xml_DATA): $(top_builddir)/coreapi/help/doc/xml/index.xml
--	cd $(top_builddir)/coreapi/help/doc/xml/ && tar cf xml.tar *
-+$(doc_xml_DATA): $(top_builddir)/coreapi/help/doc/doxygen/xml/index.xml
-+	cd $(top_builddir)/coreapi/help/doc/doxygen/xml/ && tar cf xml.tar *
- 
--$(top_builddir)/coreapi/help/doc/xml/index.xml: $(top_builddir)/coreapi/help/doc/html/index.html
-+$(top_builddir)/coreapi/help/doc/doxygen/xml/index.xml: $(top_builddir)/coreapi/help/doc/doxygen/html/index.html
- 
- 
- install-data-hook:
-diff -urNp -x '*.orig' linphone-3.12.0.org/wrappers/cpp/Makefile.am linphone-3.12.0/wrappers/cpp/Makefile.am
---- linphone-3.12.0.org/wrappers/cpp/Makefile.am	1970-01-01 01:00:00.000000000 +0100
-+++ linphone-3.12.0/wrappers/cpp/Makefile.am	2021-07-06 00:14:06.742751269 +0200
-@@ -0,0 +1,20 @@
-+lib_LTLIBRARIES = liblinphone++.la
-+liblinphone___la_CPPFLAGS = -DLINPHONECXX_EXPORTS
-+liblinphone___la_CXXFLAGS = -I$(builddir)/include -I$(top_builddir)/include -I$(top_srcdir)/include $(BCTOOLBOX_CFLAGS) $(BELLESIP_CFLAGS)
-+liblinphone___la_SOURCES = object.cc tools.cc
-+nodist_liblinphone___la_SOURCES = src/linphone++.cc
-+liblinphone___la_LDFLAGS= -version-info $(LIBLINPHONE_SO_VERSION) -no-undefined
-+liblinphone___la_LIBADD = $(top_builddir)/coreapi/liblinphone.la $(BCTOOLBOX_LIBS) $(BELLESIP_LIBS)
-+
-+linphonexxincludedir = $(includedir)/linphone++
-+linphonexxinclude_HEADERS = object.hh
-+
-+pkgconfigdir = $(libdir)/pkgconfig
-+nodist_pkgconfig_DATA = linphone++.pc
-+
-+src/linphone++.cc include/linphone++/linphone.hh: $(top_srcdir)/tools/genapixml.py $(top_srcdir)/tools/metadoc.py $(top_srcdir)/tools/abstractapi.py genwrapper.py class_header.mustache class_impl.mustache enums_header.mustache main_header.mustache $(top_builddir)/coreapi/help/doc/doxygen/xml/index.xml
-+	$(PYTHON) $(srcdir)/genwrapper.py $(top_builddir)/coreapi/help/doc/doxygen/xml
-+
-+install-data-hook:
-+	install -d $(DESTDIR)$(linphonexxincludedir)
-+	cp -p $(builddir)/include/linphone++/*.hh $(DESTDIR)$(linphonexxincludedir)
-diff -urNp -x '*.orig' linphone-3.12.0.org/wrappers/cpp/linphone++.pc.in linphone-3.12.0/wrappers/cpp/linphone++.pc.in
---- linphone-3.12.0.org/wrappers/cpp/linphone++.pc.in	1970-01-01 01:00:00.000000000 +0100
-+++ linphone-3.12.0/wrappers/cpp/linphone++.pc.in	2021-07-06 00:14:06.742751269 +0200
-@@ -0,0 +1,11 @@
-+prefix=@prefix@
-+exec_prefix=@exec_prefix@
-+libdir=@libdir@
-+includedir=@includedir@
-+
-+Requires.private: linphone bctoolbox belle-sip
-+Name: liblinphone++
-+Description: C++ wrapper for linphone libraries.
-+Version: @VERSION@
-+Libs: -llinphone++
-+Cflags: -I$(includedir)
diff --git a/linphone-no-rebuild.patch b/linphone-no-rebuild.patch
deleted file mode 100644
index 111aa09..0000000
--- a/linphone-no-rebuild.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urNp -x '*.orig' linphone-3.12.0.org/coreapi/Makefile.am linphone-3.12.0/coreapi/Makefile.am
---- linphone-3.12.0.org/coreapi/Makefile.am	2021-07-06 00:14:07.039422258 +0200
-+++ linphone-3.12.0/coreapi/Makefile.am	2021-07-06 00:14:07.249425317 +0200
-@@ -205,7 +205,7 @@ make_gitversion_h:
- 			cp -f $(builddir)/$(GITVERSION_FILE_TMP) $(builddir)/$(GITVERSION_FILE) ; \
- 		fi ; \
- 		rm -f $(builddir)/$(GITVERSION_FILE_TMP) ; \
--	else \
-+	elif test ! -f $(GITVERSION_FILE) ; then \
- 		touch $(GITVERSION_FILE) ; \
- 	fi
- 
diff --git a/linphone-no-sdk.patch b/linphone-no-sdk.patch
new file mode 100644
index 0000000..ca5a19f
--- /dev/null
+++ b/linphone-no-sdk.patch
@@ -0,0 +1,77 @@
+--- linphone-desktop-4.2.5/CMakeLists.txt.orig	2020-12-18 19:29:31.000000000 +0100
++++ linphone-desktop-4.2.5/CMakeLists.txt	2021-07-17 16:25:54.211678661 +0200
+@@ -136,28 +136,9 @@
+ 	set(CMAKE_INSTALL_RPATH "$ORIGIN:$ORIGIN/lib64:$ORIGIN/../lib64:$ORIGIN/lib:$ORIGIN/../lib:${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_LIBDIR}")
+ 	list(APPEND APP_OPTIONS "-DCMAKE_INSTALL_RPATH=${CMAKE_INSTALL_RPATH}")
+ endif()
+-ExternalProject_Add(sdk PREFIX "${CMAKE_BINARY_DIR}/sdk"
+-    SOURCE_DIR "${CMAKE_SOURCE_DIR}/linphone-sdk"
+-    INSTALL_DIR "${LINPHONE_OUTPUT_DIR}"
+-    STAMP_DIR "${SDK_BUILD_DIR}/stamp"
+-    BINARY_DIR "${SDK_BUILD_DIR}"
+-    STEP_TARGETS build
+-    BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> --config $<CONFIG> ${PROJECT_BUILD_COMMAND}
+-    INSTALL_COMMAND ${CMAKE_COMMAND} -E echo "Install step is already done at build time."
+-    LIST_SEPARATOR | # Use the alternate list separator
+-    CMAKE_ARGS ${APP_OPTIONS} ${USER_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_PREFIX_PATH=${PREFIX_PATH}
+-    #BUILD_ALWAYS NO #${DO_BUILD}
+-)
+-ExternalProject_Add_Step(sdk force_build
+-	COMMENT "Forcing build for 'desktop'"
+-	DEPENDEES configure
+-	DEPENDERS build
+-	ALWAYS 1
+-)
+ include(FindPkgConfig)
+ 
+-set(APP_DEPENDS sdk)
+-
++set(APP_DEPENDS )
+ 
+ find_package(Qt5 5.12 COMPONENTS Core REQUIRED)
+ 
+@@ -160,7 +160,6 @@
+ 		SOURCE_DIR "${CMAKE_SOURCE_DIR}/linphone-app"
+ 		INSTALL_DIR "${APPLICATION_OUTPUT_DIR}"
+ 		BINARY_DIR "${CMAKE_BINARY_DIR}/linphone-app"
+-		DEPENDS ${APP_DEPENDS}
+ 		BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> --config $<CONFIG> ${PROJECT_BUILD_COMMAND}
+ 		INSTALL_COMMAND ${CMAKE_COMMAND} -E echo "Install step will not be done by external project"
+ 		LIST_SEPARATOR | # Use the alternate list separator
+@@ -177,7 +176,6 @@
+ 	message("Adding Linphone Desktop in an IDE-friendly state")
+ 	set(CMAKE_INSTALL_PREFIX "${APPLICATION_OUTPUT_DIR}")
+ 	add_subdirectory(${CMAKE_SOURCE_DIR}/linphone-app)
+-	add_dependencies(app-library ${APP_DEPENDS})
+ endif()
+ ExternalProject_Add(linphone-qt-only PREFIX "${CMAKE_BINARY_DIR}/linphone-app"
+     SOURCE_DIR "${CMAKE_SOURCE_DIR}/linphone-app"
+--- linphone-desktop-4.2.5/linphone-app/cmake_builder/linphone_package/CMakeLists.txt.orig	2021-07-17 20:57:04.230203073 +0200
++++ linphone-desktop-4.2.5/linphone-app/cmake_builder/linphone_package/CMakeLists.txt	2021-07-17 21:11:27.315527338 +0200
+@@ -206,7 +206,9 @@
+ 		execute_process(COMMAND install_name_tool -rpath "${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_LIBDIR}" "$ORIGIN/../lib" "${LIBRARY}")
+ 		execute_process(COMMAND install_name_tool -addrpath "$ORIGIN/../lib64" "${LIBRARY}")
+ 	endforeach ()
++	if (EXISTS "${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_BINDIR}")
+ 	install(DIRECTORY "${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_BINDIR}/" DESTINATION "${CMAKE_INSTALL_BINDIR}" USE_SOURCE_PERMISSIONS)
++	endif()
+ #Just in case. This is useless because we have to use CMAKE_INSTALL_LIBDIR
+ 	if( EXISTS "${LINPHONE_OUTPUT_DIR}/lib/")
+ 		file(GLOB SHARED_LIBRARIES "${LINPHONE_OUTPUT_DIR}/lib/*.so*")
+@@ -232,12 +234,16 @@
+ 		endif()
+ 		install(FILES ${SHARED_LIBRARIES} DESTINATION "lib64")
+ 	endif()
++	if (EXISTS "${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_DATAROOTDIR}")
+ 	install(DIRECTORY "${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}" USE_SOURCE_PERMISSIONS)
+ 	if(ENABLE_BUILD_VERBOSE)
+ 		message("INSTALLATION : ${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_DATAROOTDIR}/" )
+ 	endif()
++	endif()
++	if (EXISTS "${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_LIBDIR}")
+ 	file(GLOB PLUGINS_FILES "${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_LIBDIR}/mediastreamer/plugins/*")
+ 	install(FILES ${PLUGINS_FILES} DESTINATION "plugins/mediastreamer/" )
++	endif()
+ # Install desktop/icon files.
+ 	configure_file("${CMAKE_CURRENT_SOURCE_DIR}/../../assets/linphone.desktop.cmake" "${CMAKE_CURRENT_BINARY_DIR}/../../${EXECUTABLE_NAME}.desktop" @ONLY)	
+ 	install(FILES "${CMAKE_CURRENT_BINARY_DIR}/../../${EXECUTABLE_NAME}.desktop" DESTINATION "${CMAKE_INSTALL_DATADIR}/applications")
diff --git a/linphone-sh.patch b/linphone-sh.patch
deleted file mode 100644
index 571001f..0000000
--- a/linphone-sh.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -urNp -x '*.orig' linphone-3.12.0.org/configure.ac linphone-3.12.0/configure.ac
---- linphone-3.12.0.org/configure.ac	2017-06-29 11:20:47.000000000 +0200
-+++ linphone-3.12.0/configure.ac	2021-07-06 00:14:05.732736552 +0200
-@@ -922,11 +922,11 @@ if test x$enable_vcard != xfalse; then
- 	if test "$found_vcard" = "no"; then
- 		dnl Check the lib presence in case the PKG-CONFIG version is not found
- 		AC_LANG_CPLUSPLUS
--		AC_CHECK_LIB(belcard, main, [BELCARD_LIBS+=" -lbelr -lbelcard"; found_vcard=yes], [foo=bar])
-+		AC_CHECK_LIB(belcard, main, [BELCARD_LIBS="$BELCARD_LIBS -lbelr -lbelcard"; found_vcard=yes], [foo=bar])
- 		AC_LANG_C
- 	fi
- 	if test "$found_vcard" = "yes"; then
--		BELCARD_CFLAGS+=" -DVCARD_ENABLED"
-+		BELCARD_CFLAGS="$BELCARD_CFLAGS -DVCARD_ENABLED"
- 		enable_vcard=true
- 	else
- 		if test x$enable_vcard = xtrue; then
-@@ -955,12 +955,12 @@ if test x$enable_sqlite_storage != xfals
- 	PKG_CHECK_MODULES(SQLITE3,[sqlite3 >= 3.6.0],[found_sqlite=yes],[found_sqlite=no])
- 	if test "$found_sqlite" = "no"; then
- 		dnl Check the lib presence in case the PKG-CONFIG version is not found
--		AC_CHECK_LIB(sqlite3, sqlite3_open, [SQLITE3_LIBS+=" -lsqlite3 "; found_sqlite=yes], [foo=bar])
-+		AC_CHECK_LIB(sqlite3, sqlite3_open, [SQLITE3_LIBS="$SQLITE3_LIBS -lsqlite3 "; found_sqlite=yes], [foo=bar])
- 	fi
- 	if test "$found_sqlite" = "yes"; then
--		SQLITE3_CFLAGS+=" -DSQLITE_STORAGE_ENABLED"
-+		SQLITE3_CFLAGS="$SQLITE3_CFLAGS -DSQLITE_STORAGE_ENABLED"
- 		if test "$build_macos" = "yes" -o "$ios_found" = "yes"; then
--			SQLITE3_LIBS+=" -liconv"
-+			SQLITE3_LIBS="$SQLITE3_LIBS -liconv"
- 		fi
- 		enable_sqlite_storage=true
- 	else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/linphone.git/commitdiff/de8a8fd97cbeaaee3ab8503c2790303029715c1f



More information about the pld-cvs-commit mailing list