[packages/linphoneqt] - initial, trying to build using pkg-config instead of cmake config files
qboosh
qboosh at pld-linux.org
Sun Jun 9 20:02:26 CEST 2019
commit 606dd60083c874f8e86e5c1c2c6e2f063847af33
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jun 9 20:03:19 2019 +0200
- initial, trying to build using pkg-config instead of cmake config files
linphoneqt-use-pkgconfig.patch | 18 ++++++++++
linphoneqt.spec | 82 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 100 insertions(+)
---
diff --git a/linphoneqt.spec b/linphoneqt.spec
new file mode 100644
index 0000000..b8030f1
--- /dev/null
+++ b/linphoneqt.spec
@@ -0,0 +1,82 @@
+#
+# Conditional build:
+%bcond_without dbus # single instance handling using DBus
+
+Summary: Free VoIP and video softphone based on SIP protocol
+Summary(pl.UTF-8): Wolnodostępne oprogramowanie do VoIP i połączeń wideo oparte na protokole SIP
+Name: linphoneqt
+Version: 4.1.1
+Release: 0.1
+License: GPL v2+
+Group: X11/Applications/Multimedia
+Source0: https://linphone.org/releases/sources/linphoneqt/%{name}-%{version}.tar.gz
+# Source0-md5: 0cf77a6e823a09ea765316ce536674cd
+Patch0: %{name}-use-pkgconfig.patch
+URL: https://linphone.org/
+BuildRequires: Qt5Concurrent-devel >= 5.9
+BuildRequires: Qt5Core-devel >= 5.9
+%{?with_dbus:BuildRequires: Qt5DBus-devel >= 5.9}
+BuildRequires: Qt5Gui-devel >= 5.9
+BuildRequires: Qt5Network-devel >= 5.9
+BuildRequires: Qt5Quick-devel >= 5.9
+BuildRequires: Qt5Quick-controls2-devel >= 5.9
+BuildRequires: Qt5Svg-devel >= 5.9
+BuildRequires: Qt5Test-devel >= 5.9
+#BuildRequires: Qt5TextToSpeech-devel >= 5.9
+BuildRequires: Qt5Widgets-devel >= 5.9
+BuildRequires: bctoolbox-devel
+BuildRequires: belcard-devel
+BuildRequires: cmake >= 3.1
+BuildRequires: linphone-devel
+BuildRequires: libstdc++-devel >= 6:4.7
+BuildRequires: qt5-build >= 5.9
+BuildRequires: qt5-linguist >= 5.9
+Requires: Qt5Concurrent >= 5.9
+Requires: Qt5Core >= 5.9
+%{?with_dbus:Requires: Qt5DBus >= 5.9}
+Requires: Qt5Gui >= 5.9
+Requires: Qt5Network >= 5.9
+Requires: Qt5Quick >= 5.9
+Requires: Qt5Quick-controls2 >= 5.9
+Requires: Qt5Svg >= 5.9
+Requires: Qt5Test >= 5.9
+#Requires: Qt5TextToSpeech >= 5.9
+Requires: Qt5Widgets >= 5.9
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Free VoIP and video softphone based on SIP protocol.
+
+%description -l pl.UTF-8
+Wolnodostępne oprogramowanie do VoIP i połączeń wideo oparte na
+protokole SIP.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+install -d build
+cd build
+%cmake .. \
+ %{?with_dbus:-DENABLE_DBUS=ON}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md README.md
+%attr(755,root,root) %{_bindir}/linphone
+%attr(755,root,root) %{_bindir}/linphone-tester
+%{_datadir}/linphone
+%{_desktopdir}/linphone.desktop
+%{_iconsdir}/hicolor/scalable/apps/linphone_logo.svg
diff --git a/linphoneqt-use-pkgconfig.patch b/linphoneqt-use-pkgconfig.patch
new file mode 100644
index 0000000..f8544a9
--- /dev/null
+++ b/linphoneqt-use-pkgconfig.patch
@@ -0,0 +1,18 @@
+--- linphoneqt-4.1.1/CMakeLists.txt.orig 2017-07-21 15:14:18.000000000 +0200
++++ linphoneqt-4.1.1/CMakeLists.txt 2019-06-09 19:41:59.317048446 +0200
+@@ -96,10 +96,11 @@
+ include("${EP_bctoolbox_CONFIG_DIR}/BcToolboxConfig.cmake")
+ include("${EP_belcard_CONFIG_DIR}/BelcardConfig.cmake")
+ else ()
+- find_package(Linphone REQUIRED)
+- find_package(LinphoneCxx REQUIRED)
+- find_package(BcToolbox REQUIRED)
+- find_package(Belcard REQUIRED)
++ include(FindPkgConfig)
++ pkg_search_module(Linphone REQUIRED linphone)
++ pkg_search_module(LinphoneCxx REQUIRED linphone)
++ pkg_search_module(BcToolbox REQUIRED bctoolbox)
++ pkg_search_module(Belcard REQUIRED belcard)
+ endif ()
+
+ set(SOURCES
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/linphoneqt.git/commitdiff/606dd60083c874f8e86e5c1c2c6e2f063847af33
More information about the pld-cvs-commit
mailing list