[packages/liblinphone] - based on linphone.spec, now separate component replacing most of linphone.spec (except for GUI app
qboosh
qboosh at pld-linux.org
Thu Jul 15 21:17:18 CEST 2021
commit 405543e3d9a4b9347d1a261a70df57c294d1b86b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jul 15 21:20:35 2021 +0200
- based on linphone.spec, now separate component replacing most of linphone.spec (except for GUI app)
- updated to 4.5.24
build.patch | 11 -
liblinphone.spec | 300 +++++++++++++++++++++++++++
linphone-cxx-autotools.patch | 129 ------------
linphone-no-rebuild.patch | 12 --
linphone-sh.patch | 33 ---
linphone.spec | 476 -------------------------------------------
6 files changed, 300 insertions(+), 661 deletions(-)
---
diff --git a/liblinphone.spec b/liblinphone.spec
new file mode 100644
index 0000000..9dcfab8
--- /dev/null
+++ b/liblinphone.spec
@@ -0,0 +1,300 @@
+# TODO:
+# - -DENABLE_TUNNEL (BR: TunnelConfig.cmake) - proprietary?
+#
+# Conditional build:
+%bcond_without lime # LIMEv2/X3DH encryption support
+%bcond_without static_libs # static libraries
+%bcond_without zrtp # LIMEv1/ZRTP support
+
+Summary: Linphone Internet Phone libraries
+Summary(pl.UTF-8): Biblioteki telefonu internetowego Linphone
+Name: liblinphone
+Version: 4.5.24
+Release: 1
+License: GPL v3+ or proprietary
+Group: Applications/Communications
+#Source0Download: https://gitlab.linphone.org/BC/public/liblinphone/-/tags
+Source0: https://gitlab.linphone.org/BC/public/liblinphone/-/archive/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: eb36559e436cd785aefec066e65ffc19
+URL: http://www.linphone.org/technical-corner/liblinphone
+# base and tester components
+BuildRequires: bctoolbox-devel >= 0.0.3
+BuildRequires: belcard-devel >= 4.5.20-1
+BuildRequires: belle-sip-devel >= 4.5.20-1
+BuildRequires: belr-devel >= 4.5.15-1
+%{?with_zrtp:BuildRequires: bzrtp-devel >= 4.5.15-1}
+BuildRequires: cmake >= 3.1
+BuildRequires: doxygen
+BuildRequires: libsoci-devel >= 4.0
+BuildRequires: libsoci-sqlite3-devel >= 4.0
+BuildRequires: libstdc++-devel >= 6:5
+BuildRequires: libxml2-devel >= 2.0
+%{?with_lime:BuildRequires: lime-devel}
+BuildRequires: mediastreamer-devel >= 4.5.22-1
+BuildRequires: ortp-devel >= 4.5.15-1
+BuildRequires: pkgconfig
+BuildRequires: python3 >= 1:3
+# to generate C++ wrappers
+BuildRequires: python3-pystache
+BuildRequires: python3-six
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRequires: sqlite3-devel >= 3.7.0
+BuildRequires: udev-devel
+BuildRequires: xerces-c-devel
+BuildRequires: zlib-devel >= 1.2.3
+Requires(post,postun): /sbin/ldconfig
+Requires: bctoolbox >= 0.0.3
+Requires: belle-sip >= 4.5
+Requires: belr >= 4.5
+%{?with_zrtp:Requires: bzrtp >= 4.5}
+Requires: mediastreamer >= 4.5
+Requires: ortp >= 4.5
+Requires: sqlite3 >= 3.7.0
+Requires: zlib >= 1.2.3
+Obsoletes: linphone-libs < 4
+Conflicts: linphone < 4
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Liblinphone is a high-level SIP library integrating all calling and
+instant messaging features into an unified easy-to-use API.
+
+It is the cross-platform VoIP library on which the Linphone
+application is based on, and that anyone can use to add audio and
+video calls or instant messaging capabilities to an application.
+
+%description -l pl.UTF-8
+Liblinphone to wysokopoziomowa biblioteka SIP integrująca całą
+funkcjonalność związaną z dzwonieniem i komunikacją tekstową w
+ujednolicone, łatwe w użyciu API.
+
+Jest to wieloplatformowa biblioteka VoIP, na której oparta jest
+aplikacja Linphone; może jej używać każdy, kto chce dodać do
+swojej aplikacji obsługę połączeń dźwiękowych lub wideo albo
+komunikacji tekstowej.
+
+%package devel
+Summary: Header files for Linphone library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Linphone
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: bctoolbox-devel >= 0.0.3
+Requires: belle-sip-devel >= 4.5.20-1
+Requires: belr-devel >= 4.5.15-1
+%{?with_zrtp:Requires: bzrtp-devel >= 4.5.15-1}
+Requires: libstdc++-devel >= 6:5
+Requires: libxml2-devel >= 2.0
+%{?with_lime:Requires: lime-devel}
+Requires: mediastreamer-devel >= 4.5.22-1
+Requires: ortp-devel >= 4.5.15-1
+Requires: sqlite3-devel >= 3.7.0
+Requires: zlib-devel >= 1.2.3
+Obsoletes: linphone-devel < 4
+
+%description devel
+Development files for the Linphone library.
+
+%description devel -l pl.UTF-8
+Pliki dla programistów używających biblioteki Linphone.
+
+%package static
+Summary: Linphone static library
+Summary(pl.UTF-8): Statyczna biblioteka Linphone
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+Obsoletes: linphone-static < 4
+
+%description static
+Static version of Linphone library.
+
+%description static -l pl.UTF-8
+Statyczna wersja biblioteki Linphone.
+
+%package apidocs
+Summary: API documentation for Linphone library
+Summary(pl.UTF-8): Dokumentacja API biblioteki Linphone
+Group: Documentation
+Obsoletes: linphone-apidocs < 4
+BuildArch: noarch
+
+%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} = %{version}-%{release}
+Obsoletes: linphone-c++ < 4
+
+%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}
+Obsoletes: linphone-c++-devel < 4
+
+%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}
+Obsoletes: linphone-c++-static < 4
+
+%description c++-static
+Static liblinphone++ library.
+
+%description c++-static -l pl.UTF-8
+Statyczna biblioteka liblinphone++.
+
+%package c++-apidocs
+Summary: API documentation for Linphone C++ library
+Summary(pl.UTF-8): Dokumentacja API biblioteki C++ Linphone
+Group: Documentation
+Obsoletes: linphone-c++-apidocs < 4
+BuildArch: noarch
+
+%description c++-apidocs
+API documentation for Linphone C++ library.
+
+%description c++-apidocs -l pl.UTF-8
+Dokumentacja API biblioteki C++ Linphone.
+
+%package -n linphonec
+Summary: Linphone Internet Phone console interface
+Summary(pl.UTF-8): Linphone - telefon internetowy, interfejs konsolowy
+Group: Applications/Communications
+Requires: %{name} = %{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.
+
+%prep
+%setup -q
+
+%build
+install -d builddir
+cd builddir
+# ENABLE_GTK_UI just installs dead {audio-assistant,linphone}.desktop files
+# ENABLE_LDAP does nothing
+%cmake .. \
+ -DENABLE_DOC=ON \
+ %{!?with_zrtp:-DENABLE_LIME=OFF} \
+ %{!?with_lime:-DENABLE_LIME_X3DH=OFF} \
+ %{!?with_static_libs:-DENABLE_STATIC=OFF}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C builddir install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# disable completeness check incompatible with split packaging
+%{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' $RPM_BUILD_ROOT%{_datadir}/Linphone/cmake/LinphoneTargets.cmake
+%{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' $RPM_BUILD_ROOT%{_datadir}/LinphoneCxx/cmake/LinphoneCxxTargets.cmake
+
+# some tests
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/{groupchat_benchmark,liblinphone_tester,linphone-daemon-pipetest,*_test}
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/liblinphone_tester
+
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/liblinphone-4.5.0
+
+# omitted by cmake install
+install -d $RPM_BUILD_ROOT%{_mandir}/{man1,cs/man1}
+cp -p share/C/{linphonec,linphonecsh}.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -p share/cs/linphonec.1 $RPM_BUILD_ROOT%{_mandir}/cs/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%post c++ -p /sbin/ldconfig
+%postun c++ -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md NEWS README.md
+%attr(755,root,root) %{_bindir}/linphone-daemon
+%attr(755,root,root) %{_bindir}/lp-auto-answer
+%attr(755,root,root) %{_bindir}/lp-sendmsg
+%attr(755,root,root) %{_bindir}/lp-test-ecc
+%attr(755,root,root) %{_libdir}/liblinphone.so.10
+%{_datadir}/belr/grammars/cpim_grammar
+%{_datadir}/belr/grammars/identity_grammar
+%{_datadir}/linphone
+%{_datadir}/sounds/linphone
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/liblinphone.so
+%{_includedir}/linphone
+#%{_pkgconfigdir}/linphone.pc
+%dir %{_datadir}/Linphone
+%{_datadir}/Linphone/cmake
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/liblinphone.a
+%endif
+
+%files apidocs
+%defattr(644,root,root,755)
+%doc builddir/coreapi/help/doc/doxygen/c/{*.css,*.html,*.js,*.png}
+
+%files c++
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/liblinphone++.so.10
+
+%files c++-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/liblinphone++.so
+%{_includedir}/linphone++
+#%{_pkgconfigdir}/linphone++.pc
+%dir %{_datadir}/LinphoneCxx
+%{_datadir}/LinphoneCxx/cmake
+
+%if %{with static_libs}
+#%files c++-static
+#%defattr(644,root,root,755)
+#%{_libdir}/liblinphone++.a
+%endif
+
+%files c++-apidocs
+%defattr(644,root,root,755)
+%doc builddir/wrappers/cpp/cpp/{*.css,*.html,*.js,*.png}
+
+%files -n linphonec
+%defattr(644,root,root,755)
+%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*
diff --git a/linphone.spec b/linphone.spec
deleted file mode 100644
index e2d19b0..0000000
--- a/linphone.spec
+++ /dev/null
@@ -1,476 +0,0 @@
-# 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+
-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
-URL: http://www.linphone.org/
-BuildRequires: autoconf >= 2.50
-BuildRequires: automake >= 1:1.9
-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: 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: 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
-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.
-
-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.
-
-%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}
-
-%description c++-static
-Static liblinphone++ library.
-
-%description c++-static -l pl.UTF-8
-Statyczna biblioteka liblinphone++.
-
-%prep
-%setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-
-[ ! -e gitversion.h ] && echo '#define LIBLINPHONE_GIT_VERSION "%{version}"' > coreapi/gitversion.h
-
-%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}
-
-# 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 '*'
-
-%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}
-
-%{__mv} $RPM_BUILD_ROOT%{_localedir}/{nb_NO,nb}
-
-# 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
-
-%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
-%defattr(644,root,root,755)
-%doc AUTHORS BUGS ChangeLog NEWS README.md TODO
-%attr(755,root,root) %{_bindir}/liblinphone_tester
-%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
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/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-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/liblinphone.git/commitdiff/405543e3d9a4b9347d1a261a70df57c294d1b86b
More information about the pld-cvs-commit
mailing list