Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
network:telephony
linphone-desktop
linphone-desktop.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File linphone-desktop.spec of Package linphone-desktop
# # spec file for package linphone-desktop # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: linphone-desktop Version: 5.1.2 Release: 0 Summary: Qt interface for Linphone License: GPL-3.0-or-later Group: Productivity/Telephony/SIP/Clients URL: https://linphone.org/technical-corner/linphone Source: https://gitlab.linphone.org/BC/public/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2 Source1: %{name}.appdata.xml # PATCH-FIX-OPENSUSE linphoneqt-fix-no-git.patch -- Fix building out-of-git. Patch0: fix-no-git.patch # PATCH-FIX-OPENSUSE https://aur.archlinux.org/cgit/aur.git/plain/0002-remove-bc_compute_full_version-usage.patch?h=linphone-desktop Patch1: 0002-remove-bc_compute_full_version-usage.patch # PATCH-FIX-OPENSUSE linphoneqt_fix_gcc12_error.patch -- Fix building with gcc12 Patch2: fix_gcc12_error.patch BuildRequires: Mesa-libGLESv2-devel BuildRequires: chrpath BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme BuildRequires: libqt5-linguist-devel BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5Core) >= 5.12 BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Quick) BuildRequires: pkgconfig(Qt5QuickControls2) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5TextToSpeech) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(linphone) >= 5.2.90 BuildRequires: pkgconfig(mediastreamer) >= 5.2.90 Provides: linphone = %{version}-%{release} Obsoletes: linphone < %{version}-%{release} %description Linphone is a Web phone with a Qt interface. It lets you make two-party calls over IP networks such as the Internet. It uses the IETF protocols SIP (Session Initiation Protocol) and RTP (Realtime TransporT Protocol) to make calls, so it should be able to communicate with other SIP-based Web phones. With several codecs available, it can be used with high speed connections as well as 28k modems. %package devel Summary: Header files for building linphone-desktop plugins Group: Productivity/Telephony/SIP/Clients BuildArch: noarch Provides: linphone-devel = %{version}-%{release} Obsoletes: linphone-devel < %{version}-%{release} %description devel Header files for building linphone-desktop plugins. %prep %autosetup -p1 cp %{SOURCE1} %{name}.appdata.xml touch linphone-sdk/CMakeLists.txt mkdir -p build/linphone-sdk/desktop/{bin,share} # Fix building out-of-git echo '#define LINPHONE_QT_GIT_VERSION "${PROJECT_VERSION}"' >> linphone-app/src/config.h.cmake # Hardcode linphoneqt version echo "project(linphoneqt VERSION %{version})" > linphone-app/linphoneqt_version.cmake %build sed -i '/^add_custom_command/s@${CMAKE_INSTALL_PREFIX}/include/@%{buildroot}%{_includedir}/@;/^add_custom_command/s@${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/@%{buildroot}%{_libdir}/@' linphone-app/CMakeLists.txt sed -i '/\/ui/s@${qml_dir}@${CMAKE_CURRENT_SOURCE_DIR}/../&@' linphone-app/cmake_builder/linphone_package/CMakeLists.txt mkdir -p build/linphone-sdk/desktop/share/{,sounds}/linphone %cmake \ -DCMAKE_CXX_FLAGS="%{optflags} -fpic -ffat-lto-objects -fpermissive" \ -DCMAKE_BUILD_TYPE=Release \ -DLINPHONE_OUTPUT_DIR="$PWD" \ -DENABLE_QT_KEYCHAIN=OFF \ -DENABLE_UPDATE_CHECK=OFF %cmake_build %install %cmake_install install -Dpm 0644 %{name}.appdata.xml %{buildroot}%{_datadir}/metainfo/org.%{name}.appdata.xml rm %{buildroot}%{_bindir}/qt.conf chmod a-x %{buildroot}%{_datadir}/applications/linphone.desktop mv %{buildroot}%{_datadir}/applications/linphone.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop chrpath -d %{buildroot}%{_bindir}/linphone %{buildroot}%{_libdir}/libapp-plugin.so %files %license LICENSE.txt %doc CHANGELOG.md README.md %{_bindir}/linphone %{_libdir}/libapp-plugin.so %{_datadir}/linphone/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/linphone.* %dir %{_datadir}/metainfo/ %{_datadir}/metainfo/org.%{name}.appdata.xml %files devel %{_includedir}/LinphoneApp/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor