File linphone-desktop.spec of Package linphone-desktop
%global __brp_check_rpaths %{nil}
%if 0%{?fedora_version}
%global debug_package %{nil}
%endif
%define executable linphone
%define pkgname %{executable}-desktop
%define install_prefix /opt/%{executable}
%define use_ninja 0
# Problem: executable cannot find its libraries
# Alternative one creates a launcher with LD_LIBRARY_PATH=%%{install_prefix}/lib64
# set 1 if true 0 if false
%define alternative_one 1
# Alternative one creates /etc/ld.so.conf.d/%%{pkgname}.conf
# containing %%{install_prefix}/lib64 which /sbin/ldconfig reads.
# This alternative loads %%{install_prefix}/lib64 first for ALL apps on system
# causing issues with libxml2.so.2 crashing other apps (emacs etc.)
# libxml2 has to be removed. Maybe other libraries cause similar problem.
# set 1 if true 0 if false
%define alternative_two 0
%define enable_post_quantum_crypto_engine 1
%define temporary_compilation_fix_opensuse 0
# Problem: nothing provides 'libopenh264.so.6()(64bit)'
# needed by the to be installed %%{pkgname}-5.x.y
# Solution 1: do not install %%{pkgname}-5.x.y
# Solution 2: break %%{pkgname}-5.x.y by ignoring some of its dependencies
# set 1 if true 0 if false
%define enable_openh264 0
# Problem: %%{install_prefix}/bin/%%{executable}: error while loading shared libraries:
# libQt6Keychain.so.1: cannot open shared object file: No such file or directory
# even though it exists in %%{install_prefix}/lib64/
# set 1 if true 0 if false
%define enable_qt_keychain 0
# openSUSE Tumbleweed has libvpx8 instead of libvpx7.
# libvpx7 has to be provided where missing.
# set 1 if true 0 if false
%define enable_vpx_opensuse 1
%define THISMONTHSHORT %(LC_TIME='en_US.UTF-8' date +%%b)
%define THISMONTHLONG %(LC_TIME='en_US.UTF-8' date +%%B)
%define THISYEAR %(date +%%Y)
%define DAYNUMBER %(LC_TIME='en_US.UTF-8' date +%%d)
%define DAYNAMESHORT %(LC_TIME='en_US.UTF-8' date +%%a)
#today format: Mon Jan 1 2024
%define today %{DAYNAMESHORT} %{THISMONTHSHORT} %{DAYNUMBER} %{THISYEAR}
#TODO: add manpage if missing
#manpage_date format: January 2024
%define manpage_date "%{THISMONTHLONG} %{THISYEAR}"
%define packager Kimi
%define packager_lowercase %(echo %{packager} | tr '[:upper:]' '[:lower:]')
%define packagerEmail noreply@nodomain.org
%define numberOfProcessorsOnMachine %(nproc)
%define wantedJobs %(echo "1.1*%{numberOfProcessorsOnMachine}" | bc -l)
%define jobsIget %(echo %{wantedJobs} | awk '{print int(\$1+0.5)}')
%define icon %{buildroot}/usr/share/icons/hicolor/scalable/apps/%{pkgname}.svg
Name: %{pkgname}
Version: 6.0.1
Release: 0
Summary: A free VoIP and video softphone based on the SIP protocol
License: GPL-3.0-or-later
Group: Productivity/Telephony/SIP/Clients
URL: https://linphone.org/technical-corner/linphone
Source: %{name}-%{version}.tar.xz
#Patch: 0001-build-out-of-git.patch
#AutoReq: no
#AutoProv: no
#AutoReqProv: no
BuildRequires: bc
BuildRequires: git
BuildRequires: chrpath
BuildRequires: fdupes
BuildRequires: meson
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: nasm
BuildRequires: yasm
BuildRequires: doxygen
#BuildRequires: libvpx-devel
BuildRequires: hicolor-icon-theme
BuildRequires: libv4l-devel
BuildRequires: glew-devel
BuildRequires: jack-audio-connection-kit
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt6Concurrent)
BuildRequires: pkgconfig(Qt6Core) >= 5.12
BuildRequires: pkgconfig(Qt6DBus)
BuildRequires: pkgconfig(Qt6Gui)
BuildRequires: pkgconfig(Qt6Multimedia)
BuildRequires: pkgconfig(Qt6Network)
BuildRequires: pkgconfig(Qt6NetworkAuth)
BuildRequires: pkgconfig(Qt6Quick)
BuildRequires: pkgconfig(Qt6QuickControls2)
BuildRequires: pkgconfig(Qt6Svg)
BuildRequires: pkgconfig(Qt6TextToSpeech)
BuildRequires: pkgconfig(Qt6Widgets)
BuildRequires: pkgconfig(Qt6Linguist)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(xext)
%if 0%{?fedora_version}
BuildRequires: cmake >= 3.22
#BuildRequires: fedora-release-common # seems to create problem
BuildRequires: generic-release-common
BuildRequires: procps-ng
BuildRequires: python3-six
BuildRequires: python3-pystache
BuildRequires: alsa-lib-devel
%endif
%if 0%{?suse_version}
BuildRequires: cmake-full >= 3.22
#BuildRequires: openSUSE-release
BuildRequires: procps
BuildRequires: Mesa-libGLESv2-devel
BuildRequires: alsa-devel
BuildRequires: update-desktop-files
BuildRequires: glu-devel
# OBS Build Service "have choice" dependencies that should ideally
# be picked up from Project Config:
# https://build.opensuse.org/projects/home:kimi:linphone-desktop/prjconf
# but does not seem to work as intendended for the time being:
# BuildRequires: libz1
BuildRequires: pkgconfig(Qt6Test)
%endif
%if 0%{?suse_version} > 1600
# openSUSE Tumbleweed
BuildRequires: python313-six
BuildRequires: python313-pystache
BuildRequires: libSM-devel
%endif
%if 0%{?suse_version} == 01699
# openSUSE Slowroll
BuildRequires: python313-six
BuildRequires: python313-pystache
BuildRequires: libSM-devel
%endif
%if 0%{?sle_version} == 160000 && 0%{?is_opensuse}
# openSUSE Leap 16.0
#BuildRequires: (python313-six or python314-six)
BuildRequires: python313-six
#BuildRequires: (python313-pystache or python314-pystache)
BuildRequires: python313-pystache
BuildRequires: cmake-full >= 3.22
#BuildRequires: cmake-full <= 3.29
%endif
%if 0%{?suse_version} == 1600
# openSUSE Leap 16.0
BuildRequires: python313-six
BuildRequires: python313-pystache
BuildRequires: cmake-full >= 3.22
#BuildRequires: cmake-full <= 3.29
%endif
%if 0%{?sle_version} == 150500 || 0%{?sle_version} == 150600 && 0%{?is_opensuse}
# openSUSE Leap 15.5 15.6
BuildRequires: python3-six
BuildRequires: python3-pystache
%endif
Provides: %{name} = %{version}-%{release}
Obsoletes: %{name} < %{version}-%{release}
Obsoletes: linphone < %{version}-%{release}
Recommends: linphone-contacts-vcard-csv-import-export
# This app would benefit from being run in a firejail sandbox
Recommends: firejail-linphone-desktop
Recommends: firetools-linphone-desktop
Recommends: firejail >= 0.9.72
Recommends: firetools >= 0.9.72
%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 %{name} plugins
Group: Productivity/Telephony/SIP/Clients
BuildArch: noarch
Provides: %{name}-devel = %{version}-%{release}
Obsoletes: %{name}-devel < %{version}-%{release}
%description devel
Header files for building %{name} plugins.
%prep
%autosetup -p1
%build
echo "--- Listing rpmbuild variables ---"
find /usr/lib64 -name libQt6Quick.so* -exec bash -c "strings {} | grep Qt.*API" \;
echo %%_prefix=%{_prefix}
echo %%_exec_prefix=%{_exec_prefix}
echo %%_bindir=%{_bindir}
echo %%_sbindir=%{_sbindir}
echo %%_libexecdir=%{_libexecdir}
echo %%_datadir=%{_datadir}
echo %%_sysconfdir=%{_sysconfdir}
echo %%_sharedstatedir=%{_sharedstatedir}
echo %%_localstatedir=%{_localstatedir}
echo %%_libdir=%{_libdir}
echo %%_includedir=%{_includedir}
echo %%_oldincludedir==%{_oldincludedir}
echo %%_infodir=%{_infodir}
echo %%_mandir=%{_mandir}
echo %%buildroot=%{buildroot}
echo %%_topdir=%{_topdir}
echo %%_builddir=%{_builddir}
echo %%_rpmdir=%{_rpmdir}
echo %%_sourcedir=%{_sourcedir}
echo %%_specdir=%{_specdir}
echo %%_srcrpmdir=%{_srcrpmdir}
echo %%_buildrootdir=%{_buildrootdir}
echo %%sourcefile=%{sourcefile}
echo %%source_root_directory=%{source_root_directory}
echo "--- Ported variables ---"
echo %%{builddir}=%{builddir}
echo %%{_builddir}=%{_builddir}
echo %%{_srcdir}=%{_srcdir}
echo %%{sourcedir}=%{sourcedir}
echo %%{_sourcedir}=%{_sourcedir}
echo numberOfProcessorsOnMachine=%{numberOfProcessorsOnMachine}
echo wantedJobs=%{wantedJobs}
echo jobsIget=%{jobsIget}
echo 0%%{?fedora}=0%{?fedora}
echo 0%%{?fedora_version}=0%{?fedora_version}
echo 0%%{?rhel_version}=0%{?rhel_version}
echo 0%%{?centos_version}=0%{?centos_version}
echo 0%%{?openeuler_version}=0%{?openeuler_version}
echo 0%%{?sle_version}=0%{?sle_version}
echo 0%%{?is_opensuse}=0%{?is_opensuse}
echo 0%%{?suse_version}=0%{?suse_version}
echo %%{dist}=%{dist}
echo %%{icon}=%{icon}
echo "--- End ported variables ---"
TOP_DIR=$(pwd)
echo "TOP_DIR=$TOP_DIR"
ls -al
#echo "Top level git version:"
#echo "Current dir: $(pwd)"
#echo "`git symbolic-ref HEAD 2> /dev/null | cut -b 12-`-`git log --pretty=format:\"%h\" -1`"
#echo "`git describe`"
#cd "linphone-app"
#echo "Current dir: $(pwd)"
#echo "linphone-app git version:"
#echo "`git symbolic-ref HEAD 2> /dev/null | cut -b 12-`-`git log --pretty=format:\"%h\" -1`"
#echo "`git describe`"
#cd "$TOP_DIR/linphone-sdk"
#echo "Current dir: $(pwd)"
#echo "linphone-sdk git version:"
#echo "`git symbolic-ref HEAD 2> /dev/null | cut -b 12-`-`git log --pretty=format:\"%h\" -1`"
#echo "`git describe`"
cd "$TOP_DIR"
export pkgver=$(echo %{version} | cut -d' ' -f 2 | sed 's/[(,)]//g' | cut -d'.' -f 1-3)
export sdkver=$(echo %{version} | cut -d' ' -f 2 | sed 's/[(,)]//g' | cut -d'.' -f 1-3)
#export Qt6_DIR="~/Qt/6.5.3/gcc_64/lib/cmake/Qt6"
export Qt6_DIR="/usr/lib64/cmake/Qt6"
#export PATH="~/Qt/6.5.3/gcc_64/bin/:$PATH"
#export PATH="/usr/bin/:$PATH"
# Fix bugs
sed -i 's/LINPHONESDK_VERSION/LINPHONEAPP_SHORT_VERSION/g' Linphone/model/core/CoreModel.cpp
#export CC=gcc
#export CXX=g++
export CFLAGS=$(echo "$CFLAGS -Wno-error=maybe-uninitialized -Wno-error=unused-parameter -Wno-error=return-type -Wno-error=implicit-function-declaration -Wno-error=deprecated-declarations")
export CXXFLAGS=$(echo "$CXXFLAGS -Wno-error=maybe-uninitialized -Wno-error=unused-parameter -Wno-error=return-type -Wno-error=implicit-function-declaration -Wno-error=deprecated-declarations")
# This does not work on openSUSE:
# -DCMAKE_INSTALL_PREFIX=%%{install_prefix} \
# Solution: build with prefix %%{_builddir}/build/OUTPUT and then move the files to correct location
# For reference how to fix compilation:
# -DCMAKE_BUILD_TYPE=Release \
# -DCMAKE_CXX_FLAGS="%%{optflags} -fpic -ffat-lto-objects -fpermissive -Wno-error=maybe-uninitialized -Wno-error=unused-parameter -Wno-error=return-type" \
# -DCMAKE_EXE_LINKER_FLAGS="-L/usr/lib64/libjsoncpp.so -ljsoncpp" \
# -DCMAKE_LDFLAGS="-L/usr/lib64/libjsoncpp.so -ljsoncpp $LDFLAGS" \
# -DCMAKE_EXE_LINKER_FLAGS="-ljsoncpp" \
# -DCMAKE_INSTALL_PREFIX=%%{_builddir} \
# -DCMAKE_INSTALL_PREFIX=%%{install_prefix} \
# Some dependencies install to CMAKE_INSTALL_PREFIX
# which means it has to be a place where files can be created by user abuild
# Setting CMAKE_INSTALL_PREFIX=%{install_prefix} or /usr will fail since user abuild
# has no privilegies to create files in those directories.
# -GNinja \
# -DCMAKE_INSTALL_PREFIX=%{_builddir}/build/OUTPUT \
# -DLINPHONE_OUTPUT_DIR="$PWD" \
# LINPHONESDK_STATE can be: snapshots releases or empty.
# LINPHONESDK_BRANCH can be: alpha beta or empty. '-alpha.14' '-beta.12'
# -DBUILD_SHARED_LIBS=YES \
# -DENABLE_TOOLS=OFF \
# -DENABLE_UNIT_TESTS=OFF \
# -DENABLE_TESTS=OFF \
# -DENABLE_STRICT=OFF \
# -DENABLE_STATIC=OFF \
# -DENABLE_DOC=OFF \
# -DENABLE_MBEDTLS=OFF \
# -DENABLE_OPENSSL=YES \
%cmake \
-DCMAKE_C_FLAGS="%{optflags} -fpic -ffat-lto-objects -Wno-error=maybe-uninitialized -Wno-error=unused-parameter -Wno-error=return-type -Wno-error=implicit-function-declaration -Wno-error=deprecated-declarations" \
-DCMAKE_CXX_FLAGS="%{optflags} -fpic -ffat-lto-objects -fpermissive -Wno-error=maybe-uninitialized -Wno-error=unused-parameter -Wno-error=return-type -Wno-error=implicit-function-declaration -Wno-error=deprecated-declarations" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_TOOLCHAIN_FILE=/usr/lib64/cmake/Qt6/qt.toolchain.cmake \
-DLINPHONEAPP_VERSION=${pkgver} \
-DLINPHONEAPP_SHORT_VERSION=${pkgver} \
-DLINPHONESDK_VERSION=${sdkver} \
-DLINPHONESDK_STATE="snapshots" \
-DLINPHONESDK_BRANCH="-alpha.384" \
%if 0%{?suse_version}
-DCMAKE_INSTALL_PREFIX=%{_builddir}/build/OUTPUT \
-DLINPHONE_OUTPUT_DIR="$PWD" \
-DCMAKE_SHARED_LINKER_FLAGS="-flto=auto -Wl,--as-needed -Wl,-z,now -Wl,-rpath,-lm" \
%endif
%if 0%{?enable_post_quantum_crypto_engine}
-DENABLE_PQCRYPTO=YES \
%endif
%if 0%{?enable_vpx_opensuse}
-DENABLE_VPX=YES \
%else
-DENABLE_VPX=OFF \
%endif
%if 0%{?temporary_compilation_fix_opensuse}
-DENABLE_AV1=OFF \
%endif
%if 0%{?fedora_version}
-DCMAKE_INSTALL_LIBDIR=lib64 \
%endif
%if 0%{?enable_qt_keychain}
-DENABLE_QT_KEYCHAIN=YES \
%else
-DENABLE_QT_KEYCHAIN=OFF \
%endif
%if 0%{?enable_openh264}
-DENABLE_OPENH264=YES \
%else
-DENABLE_OPENH264=OFF \
%endif
-DENABLE_APP_PACKAGE_ROOTCA=OFF \
-DENABLE_BUILD_VERBOSE=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DENABLE_UPDATE_CHECK=OFF
# equals on fedora
# /usr/bin/cmake -S . -B redhat-linux-build \
# -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG \
# -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG \
# -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG \
# -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
# -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF \
# -DCMAKE_INSTALL_PREFIX:PATH=/usr \
# -DINCLUDE_INSTALL_DIR:PATH=/usr/include \
# -DLIB_INSTALL_DIR:PATH=/usr/lib64 \
# -DSYSCONF_INSTALL_DIR:PATH=/etc \
# -DSHARE_INSTALL_PREFIX:PATH=/usr/share \
# -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON \
# '-DCMAKE_C_FLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpic -ffat-lto-objects -Wno-error=maybe-uninitialized -Wno-error=unused-parameter -Wno-error=return-type -Wno-error=implicit-function-declaration' '-DCMAKE_CXX_FLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpic -ffat-lto-objects -fpermissive -Wno-error=maybe-uninitialized -Wno-error=unused-parameter -Wno-error=return-type -Wno-error=implicit-function-declaration' \
# -DCMAKE_BUILD_TYPE=RelWithDebInfo \
# -DCMAKE_INSTALL_PREFIX=/home/abuild/rpmbuild/BUILD/build/OUTPUT \
# -DENABLE_QT_KEYCHAIN=YES \
# -DENABLE_OPENH264=OFF \
# -DLINPHONE_OUTPUT_DIR=%%{buildroot} \
# -DENABLE_UPDATE_CHECK=OFF
# equals
# /usr/bin/cmake --build redhat-linux-build -j$(nproc) --verbose
%if 0%{?use_ninja}
%if 0%{?fedora_version}
ninja -C %{_builddir}/%{name}-%{version}/redhat-linux-build
%endif
%if 0%{?suse_version}
ninja -C %{_builddir}/%{name}-%{version}/build
%endif
%else
%cmake_build
# equals on fedora
# /usr/bin/cmake --build redhat-linux-build -j$(nproc) --verbose
%endif
%install
echo HOME=$HOME
ls -al $HOME 2>/dev/null
echo %%{_sourcedir}=%{_sourcedir}
ls -al %{_sourcedir} 2>/dev/null
srcdir=%{_sourcedir}
pkgdir_head=%{buildroot}
pkgdir=%{buildroot}
export QA_RPATHS=$(( 0x0001|0x0002 ))
mkdir -pv %{buildroot}/usr/share/icons/hicolor/scalable/apps
#echo "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"512\" height=\"512\"><defs><linearGradient id=\"d\"><stop offset=\"0\" stop-color=\"#eba936\"/><stop offset=\"1\" stop-color=\"#c95328\"/></linearGradient><linearGradient xlink:href=\"#a\" id=\"e\" x1=\"1012.513\" x2=\"1006.808\" y1=\"484.417\" y2=\"20.626\" gradientTransform=\"translate(-830.864 592.678) scale(1.03178)\" gradientUnits=\"userSpaceOnUse\"/><linearGradient id=\"a\" x1=\"45.448\" x2=\"45.448\" y1=\"92.54\" y2=\"7.017\" gradientTransform=\"matrix(1.00587 0 0 .99417 100 0)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\"/><stop offset=\"1\" stop-opacity=\".588\"/></linearGradient><linearGradient xlink:href=\"#a\" id=\"f\" x1=\"1012.513\" x2=\"1006.808\" y1=\"484.417\" y2=\"20.626\" gradientTransform=\"translate(-837.951 592.518) scale(1.04025)\" gradientUnits=\"userSpaceOnUse\"/><linearGradient xlink:href=\"#a\" id=\"g\" x1=\"1012.513\" x2=\"1006.808\" y1=\"484.417\" y2=\"20.626\" gradientTransform=\"translate(-823.777 592.838) scale(1.0233)\" gradientUnits=\"userSpaceOnUse\"/><linearGradient xlink:href=\"#a\" id=\"h\" x1=\"1012.513\" x2=\"1006.808\" y1=\"484.417\" y2=\"20.626\" gradientTransform=\"translate(-816.69 592.997) scale(1.01483)\" gradientUnits=\"userSpaceOnUse\"/><linearGradient xlink:href=\"#a\" id=\"i\" x1=\"1012.513\" x2=\"1006.808\" y1=\"484.417\" y2=\"20.626\" gradientTransform=\"translate(-810.489 593.137) scale(1.00742)\" gradientUnits=\"userSpaceOnUse\"/><linearGradient xlink:href=\"#b\" id=\"k\" x1=\"993.439\" x2=\"988.786\" y1=\"51.512\" y2=\"363.738\" gradientTransform=\"translate(778.6 -360.56)\" gradientUnits=\"userSpaceOnUse\"/><linearGradient id=\"b\"><stop offset=\"0\" stop-color=\"#fff\"/><stop offset=\"1\" stop-color=\"#fff\" stop-opacity=\"0\"/></linearGradient><linearGradient xlink:href=\"#c\" id=\"l\" x1=\"1764.649\" x2=\"1763.69\" y1=\"155.597\" y2=\"-55.941\" gradientUnits=\"userSpaceOnUse\"/><linearGradient id=\"c\"><stop offset=\"0\"/><stop offset=\"1\" stop-color=\"#fff\" stop-opacity=\".2\"/></linearGradient><linearGradient xlink:href=\"#d\" id=\"j\" x1=\"390.75\" x2=\"390.75\" y1=\"482\" y2=\"30\" gradientUnits=\"userSpaceOnUse\"/></defs><g color=\"#000\" transform=\"translate(-11.985 -592.117)\"><rect width=\"487\" height=\"487\" x=\"31.985\" y=\"612.117\" fill=\"url(#e)\" opacity=\".1\" overflow=\"visible\" ry=\"101.458\" style=\"marker:none\"/><rect width=\"491\" height=\"491\" x=\"31.985\" y=\"612.117\" fill=\"url(#f)\" opacity=\".08\" overflow=\"visible\" ry=\"102.292\" style=\"marker:none\"/><rect width=\"483\" height=\"483\" x=\"31.985\" y=\"612.117\" fill=\"url(#g)\" opacity=\".2\" overflow=\"visible\" ry=\"100.625\" style=\"marker:none\"/><rect width=\"479\" height=\"479\" x=\"31.985\" y=\"612.117\" fill=\"url(#h)\" opacity=\".25\" overflow=\"visible\" ry=\"99.792\" style=\"marker:none\"/><rect width=\"475.5\" height=\"475.5\" x=\"31.985\" y=\"612.117\" fill=\"url(#i)\" opacity=\".25\" overflow=\"visible\" ry=\"99.063\" style=\"marker:none\"/></g><path fill=\"url(#j)\" d=\"M118.344 20C63.867 20 20 63.867 20 118.344v275.312C20 448.133 63.867 492 118.344 492h275.312C448.133 492 492 448.133 492 393.656V118.344C492 63.867 448.133 20 393.656 20H118.344z\"/><path fill=\"#fff\" d=\"M298.425 118.613c-4.792-.057-9.428.308-13.817 1.146-15.26 2.911-12.892 4.167 9.489 5.028 34.709 1.336 82.47 31.06 94.38 58.738 6.539 15.198 8.874 16.327 11.1 5.364 6.084-29.952-54.83-69.73-101.152-70.276z\"/><path fill=\"#fff\" d=\"M281.16 143.162a54.367 54.367 0 0 0-2.132.01c-8.116.21-25.936 5.466-39.599 11.679-24.619 11.194-24.514 11.254 11.53 6.778 43.548-5.408 85.14 13.978 99.678 46.461 7.023 15.692 12.134 19.037 18.767 12.284 20.882-21.258-43.186-76.597-88.245-77.212z\"/><path fill=\"#fff\" d=\"M252.097 186.196c-14.099-.032-27.38 2.807-36.187 9.363-12.147 9.041-9 10.21 21.188 7.874 22.75-1.761 41.388 1.89 52.014 10.187 19.145 14.948 28.98 16.82 28.98 5.516 0-18.894-34.976-32.868-65.994-32.94z\"/><path fill-opacity=\".196\" d=\"M267.658 254.096zm4.373 3.039c.01 4.153-3.261 12.485-8.73 25.81-12.143 29.586-11.856 31.3 9.011 53.473 29.26 31.09 41.148 77.259 29.301 113.8-8.529 26.31-18.598 39.685-31.006 41.782h123.05c27.773 0 52.785-11.406 70.636-29.803-91.796-92.201-176.782-187.324-192.262-205.062zm-47.578 16.375zm-8.57 2.148c-8.135 1.687-17.508 2.734-28.85 3.238 11.342-.504 20.715-1.551 28.85-3.238zm-83.69 2.987zm14.17.226c9.61.294 18.245.426 26.067.375-7.822.05-16.458-.081-26.067-.375zm-27.644-.023zm-41.249 3.933zm-9.972 2.004c-4.773 1.096-9.222 2.332-13.332 3.701 4.11-1.37 8.56-2.605 13.332-3.7zM50.17 289.9zm-7.297 3.092c-2.844 1.36-5.439 2.81-7.777 4.346 2.338-1.536 4.933-2.985 7.777-4.346zm-9.15 5.278zm-2.557 1.923zm-11.141 23.803c.006.296.02.57.028.852-.009-.285-.022-.552-.028-.852zm.118 2.709zm.147 1.613c.004.036.01.069.015.104l-.016-.104zm.163.977zm.953 2.406.032.04-.032-.04zm.454.475zm3.056.623c-.05.007-.1.012-.15.017.05-.006.1-.01.15-.017zm-1.018.064h.106-.106z\"/><path fill=\"#fff\" d=\"M268.725 253.946c-4.317.307-13.084 4.874-27.636 12.721-19.907 10.734-43.477 13.77-94.726 12.205C68.988 276.508 20 292.837 20 320.99c0 15.546.948 15.601 26.91 1.562 16.47-8.907 44.58-14.407 72.454-14.176 102.583.853 181.05 83.583 145.555 153.46-9.785 19.263-10.4 26.132-2.595 28.989 15.172 5.553 28.936-8.674 39.288-40.606 11.847-36.541-.04-82.71-29.299-113.8-20.867-22.173-21.155-23.888-9.012-53.474 8.537-20.799 11.734-29.448 5.424-28.999z\"/><path fill=\"#fff\" d=\"M59.676 371.008c-3.114.08-6.327.724-9.57 1.991-19.027 7.433-16.93 44.524 3.703 65.53 9.488 9.658 29.052 22.785 43.474 29.172 33.022 14.623 105.574 15.64 123.845 1.736 7.615-5.796 14.847-20.022 16.072-31.612 1.998-18.897-.764-21.072-26.751-21.072-23.461 0-28.983 3.21-28.983 16.857 0 12.625-6.236 17.41-24.84 19.051-38.128 3.364-66.245-15.15-66.245-43.624 0-22.514-13.894-38.465-30.705-38.03z\"/><g color=\"#000\"><path fill=\"url(#k)\" d=\"M1650.5-310.416c-54.477 0-98.313 43.836-98.313 98.312V63.24c0 54.477 43.836 98.344 98.312 98.344h2.938c-53.323 0-96.25-42.928-96.25-96.25v-269.5c0-53.323 42.927-96.25 96.25-96.25h269.5c53.322 0 96.25 42.927 96.25 96.25v269.5c0 53.322-42.928 96.25-96.25 96.25h2.906c54.477 0 98.344-43.867 98.344-98.344v-275.344c0-54.476-43.867-98.312-98.344-98.312H1650.5z\" opacity=\".5\" overflow=\"visible\" style=\"marker:none\" transform=\"translate(-1532.187 330.416)\"/><path fill=\"url(#l)\" d=\"M1650.5 161.584c-54.477 0-98.313-43.836-98.313-98.313v-275.343c0-54.477 43.836-98.344 98.312-98.344h2.938c-53.323 0-96.25 42.927-96.25 96.25v269.5c0 53.322 42.927 96.25 96.25 96.25h269.5c53.322 0 96.25-42.928 96.25-96.25v-269.5c0-53.323-42.928-96.25-96.25-96.25h2.906c54.477 0 98.344 43.867 98.344 98.344V63.27c0 54.477-43.867 98.313-98.344 98.313H1650.5z\" opacity=\".2\" overflow=\"visible\" style=\"marker:none\" transform=\"translate(-1532.187 330.416)\"/></g></svg>" > "%{icon}"
echo "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" width=\"512\" height=\"512\" viewBox=\"0 0 135.467 135.467\"><defs><linearGradient id=\"a\"><stop offset=\"0\" style=\"stop-color:#000;stop-opacity:1\"/><stop offset=\"1\" style=\"stop-color:#275e18;stop-opacity:1\"/></linearGradient><linearGradient xlink:href=\"#a\" id=\"b\" x1=\"46.497\" x2=\"103.506\" y1=\"66.821\" y2=\"66.821\" gradientUnits=\"userSpaceOnUse\"/></defs><path d=\"M11.32 135.467C5.233 135.44.027 130.44 0 125.469V9.958C-.009 4.588 4.966-.034 9.96 0H125.507c5.433.06 9.934 5.37 9.961 9.958v115.511c-.05 5.285-5.284 9.946-9.96 9.957l-56.113.038c-30.862.02-58.073.003-58.073.003z\" style=\"fill:#eb6608;stroke:none;stroke-width:.287295;-inkscape-stroke:none;stop-color:#000;fill-opacity:1\"/><path d=\"M90.655 26.395c11.131 4.975 19.654 10.91 25.642 17.857 12.664 14.692 16.2 33.49 9.396 49.947-4.025 9.736-9.216 15.582-18.01 20.284-12.216 6.53-26.978 7.371-44.028 2.506-7.823-2.233-14.784-5.324-20.87-9.269l-2.297-1.488-16.33 1.741c-8.98.958-16.343 1.536-16.36 1.283-.017-.252 3.081-4.668 6.886-9.814 3.804-5.145 6.98-9.578 7.059-9.85.078-.273-1.427-3.29-3.343-6.704-6.284-11.196-7.906-19.586-6.043-31.263 1.776-11.14 7.894-19.649 18.605-25.875 9.134-5.31 17.626-7.4 28.922-7.113 4.728.12 6.84.503 15.653 2.846 6.944 1.846 11.757 3.41 15.118 4.912zm-19.455.367c-6.987-1.096-10.64-1.046-18.047.244-5.89 1.026-7.48 1.568-11.836 4.032-5.869 3.32-9.45 6.906-12.274 12.29-2.932 5.588-3.454 12.086-1.677 20.894 2.893 14.34 12.246 25.63 29.421 35.517 3.642 2.097 5.772 2.91 13.178 5.029 7.992 2.286 9.417 2.543 14.949 2.694 7.31.2 11.006-.256 16.655-2.053 10.195-3.242 16.958-10.214 19.91-20.528 1.133-3.958 1.784-10.525 1.383-13.953-.455-3.885-2.804-10.689-5.061-14.654-2.225-3.909-6.84-9.758-10.062-12.752-8.312-7.724-23.585-14.73-36.54-16.76Z\" style=\"fill:url(#b);stroke-width:1.4097;stroke:#fff;stroke-opacity:1;stroke-dasharray:none;font-variation-settings:normal;opacity:1;vector-effect:none;fill-opacity:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dashoffset:0;-inkscape-stroke:none;stop-color:#000;stop-opacity:1\"/><path d=\"M83.634 99.177c-1.865-2.429-4.071-8.828-4.128-11.972-.021-1.194.218-3.014.531-4.045.562-1.85.625-1.893 4.664-3.196 4.426-1.428 5.408-2.414 5.337-5.362-.043-1.788-1.94-7.12-3.86-10.849-2.452-4.762-9.11-12.735-11.681-13.989-.954-.465-5.191-1.517-5.29-1.314-.354.726-3.613 4.884-4.381 5.59-3.774 3.468-15.035-3.432-17.297-10.596-.55-1.747-.494-2.029.836-4.167.895-1.44 2.527-3.143 4.384-4.579 4.602-3.557 8.586-3.942 15.485-1.494 11.496 4.078 21.998 14.52 29.363 29.195 5.056 10.074 6.625 22.774 3.777 30.585-.838 2.3-1.251 2.848-3.505 4.654-4.1 3.285-9.553 5.132-11.848 4.013-.428-.209-1.502-1.322-2.387-2.474z\" style=\"fill:url(#b);stroke:#fff;stroke-width:1.40970347;stop-color:#000;fill-opacity:1;stroke-opacity:1;stroke-dasharray:none\"/></svg>" > "%{icon}"
%if 0%{?use_ninja}
%if 0%{?fedora_version}
DESTDIR="%{buildroot}" ninja -C %{_builddir}/%{name}-%{version}/redhat-linux-build
%endif
%if 0%{?suse_version}
DESTDIR="%{buildroot}" ninja -C %{_builddir}/%{name}-%{version}/build
%endif
%else
%cmake_install
# equals on fedora
# DESTDIR=%%{buildroot} /usr/bin/cmake --install redhat-linux-build
%endif
mkdir -pv "%{buildroot}%{install_prefix}/"
%if 0%{?suse_version}
# openSUSE %%cmake install honors CMAKE_INSTALL_PREFIX
mv -v %{buildroot}%{_builddir}/build/OUTPUT/* %{buildroot}%{install_prefix}/.
%endif
%if 0%{?fedora_version}
# Fedora %%cmake install:
# DESTDIR=%%{buildroot}
# /usr/bin/cmake --install redhat-linux-build
# Fedora %%cmake neglects CMAKE_INSTALL_PREFIX and install puts files in:
# %%{buildroot}%{_builddir}/%%{name}-%%{version}/redhat-linux-build/OUTPUT/
mv -v %{buildroot}%{_builddir}/%{name}-%{version}/redhat-linux-build/OUTPUT/* %{buildroot}%{install_prefix}/.
%endif
# fix openSUSE complaint
rm -rf %{buildroot}%{install_prefix}/lib64/pkgconfig
%if 0%{?alternative_two}
# Alternative 2
# Other programs such as emacs crash if libxml2.so* exists
# in %%{install_prefix}/lib so we remove it and
# use system libxml2 instead
rm -vf "%{buildroot}%{install_prefix}/lib64/libxml2.so.2"
rm -vf "%{buildroot}%{install_prefix}/lib64/libxml2.so"
# End alternative 2
%endif
# Exchange nowebcamCIF.jpg
cp -v "%{_sourcedir}/static.jpg" "%{buildroot}%{install_prefix}/share/images/nowebcamCIF.jpg"
mkdir -pv "%{buildroot}%{_datadir}/applications/"
cp -v "%{_sourcedir}/desktop" "%{buildroot}/usr/share/applications/%{name}.desktop"
#cat "%{buildroot}%{install_prefix}/share/applications/linphone.desktop"
# Fix %{install_prefix}/bin/%{executable} not finding its libraries in ../lib/
%if 0%{?alternative_one}
# Alternative 1 (not working on opensuse tumbleweed)
# Add linphone's own lib folder to LD_LIBRARY_PATH
echo '#!/bin/bash' > "%{buildroot}%{install_prefix}/%{executable}-launcher"
echo 'SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"' >> "%{buildroot}%{install_prefix}/%{executable}-launcher"
#echo 'echo "Script directory: $SCRIPT_DIR"' >> "%{buildroot}%{install_prefix}/%{executable}-launcher"
echo 'LD_LIBRARY_PATH="$SCRIPT_DIR/lib64:$LD_LIBRARY_PATH" "$SCRIPT_DIR/../..%{install_prefix}/bin/%{executable}" "$@"' >> "%{buildroot}%{install_prefix}/%{executable}-launcher"
#echo 'LD_LIBRARY_PATH="%{install_prefix}/lib64:$LD_LIBRARY_PATH" "./bin/%{executable}" "$@"' >> "%{buildroot}%{install_prefix}/%{executable}-launcher"
chmod +x "%{buildroot}%{install_prefix}/%{executable}-launcher"
# End alternative 1
%endif
%if 0%{?alternative_two}
# Alternative 2
# Create %{name}.conf and let ldconfig find those libraries
mkdir -pv "%{buildroot}/etc/ld.so.conf.d"
echo "%{install_prefix}/lib64" > "%{buildroot}/etc/ld.so.conf.d/%{name}.conf"
chmod 644 "%{buildroot}/etc/ld.so.conf.d/%{name}.conf"
# End alternative 2
%endif
echo "Edit %{name}.desktop :"
%if 0%{?alternative_one}
# Alternative 1
#sed -i 's/Exec=linphone/Exec=\/opt\/linphone\/linphone-launcher/g' "%{buildroot}%{install_prefix}/share/applications/linphone.desktop"
#sed -i "s|Exec=linphone|Exec=%{install_prefix}/%{executable}-launcher|g" "%{buildroot}%{install_prefix}/share/applications/linphone.desktop"
sed -i "s|Exec=linphone|Exec=%{install_prefix}/%{executable}-launcher|g" "%{buildroot}/usr/share/applications/%{name}.desktop"
%endif
%if 0%{?alternative_two}
# Alternative 2
#sed -i 's/Exec=linphone/Exec=\/opt\/linphone\/bin\/linphone/g' "%{buildroot}%{install_prefix}/share/applications/linphone.desktop"
#sed -i "s|Exec=linphone|Exec=%{install_prefix}/bin/%{executable}|g" "%{buildroot}%{install_prefix}/share/applications/linphone.desktop"
%endif
mkdir -pv "${buildroot}/usr/share/applications"
#install -Dm644 "%{buildroot}%{install_prefix}/share/applications/linphone.desktop" "%{buildroot}/usr/share/applications/%{name}.desktop"
mkdir -pv "%{buildroot}/usr/share/icons/hicolor/scalable/apps"
#install -Dm644 "%{buildroot}%{install_prefix}/share/icons/hicolor/scalable/apps/linphone.svg" "%{buildroot}/usr/share/icons/hicolor/scalable/apps/%{name}.svg"
install -Dm644 "%{_sourcedir}/icon" "%{buildroot}/usr/share/icons/hicolor/scalable/apps/%{name}.svg"
sed -i "s|Icon=.*|Icon=%{name}|g" "%{buildroot}/usr/share/applications/%{name}.desktop"
#sed -i "s|Icon=.*|Icon=%{name}|g" "%{buildroot}%{install_prefix}/share/applications/linphone.desktop"
#cat "%{buildroot}%{install_prefix}/share/applications/linphone.desktop"
rm -vf %{buildroot}%{install_prefix}/bin/qt.conf
# Files may end up in the wrong place:
mv -v %{buildroot}/usr/lib64/* %{buildroot}%{install_prefix}/lib64/.
mv "%{buildroot}%{install_prefix}/bin/linphone6" "%{buildroot}%{install_prefix}/bin/%{executable}"
chrpath -d "%{buildroot}%{install_prefix}/bin/%{executable}"
chrpath -d "%{buildroot}%{install_prefix}/bin/cjpeg"
chrpath -d "%{buildroot}%{install_prefix}/bin/djpeg"
chrpath -d "%{buildroot}%{install_prefix}/bin/jpegtran"
chrpath -d "%{buildroot}%{install_prefix}/lib64/"*.so*
chrpath -d "%{buildroot}%{install_prefix}/lib64/mediastreamer/plugins/"*.so*
strip -s "%{buildroot}%{install_prefix}/bin/"*
strip -s "%{buildroot}%{install_prefix}/lib64/"lib*.so*
strip -s "%{buildroot}%{install_prefix}/lib64/mediastreamer/plugins/"lib*.so*
chmod -x "%{buildroot}%{install_prefix}/lib64/"lib*.a
%fdupes "%{buildroot}%{install_prefix}"
## Create a script to allow firejail openGL
## Create script in /usr/local/bin/firejail-linphone-allow-opengl
#mkdir -pv "%{buildroot}/usr/local/bin"
#scriptFile="${pkgdir}/usr/local/bin/firejail-%{executable}-allow-opengl"
#proFile="\$HOME/.config/firejail/%{executable}.local"
#echo "#!/usr/bin/bash" > $scriptFile
#echo "echo \"ignore no3d\" >> \"${proFile}\"" >> $scriptFile
#echo "echo \"added \\\"ignore no3d\\\" to \\\"${proFile}\\\"\"" >> $scriptFile
#echo "echo \"Done.\"" >> $scriptFile
#echo "exit 0" >> $scriptFile
## Make script executable
#chmod +x "$scriptFile"
## Create a script to allow firejail video
## Create script in /usr/local/bin/firejail-linphone-allow-camera
#scriptFile="${pkgdir}/usr/local/bin/firejail-%{executable}-allow-camera"
#proFile="\$HOME/.config/firejail/%{executable}.local"
#echo "#!/usr/bin/bash" > $scriptFile
#echo "echo \"ignore novideo\" >> \"${proFile}\"" >> $scriptFile
#echo "echo \"added \\\"ignore novideo\\\" to \\\"${proFile}\\\"\"" >> $scriptFile
#echo "echo \"Done.\"" >> $scriptFile
#echo "exit 0" >> $scriptFile
## Make script executable
#chmod +x "$scriptFile"
## Create a script to allow firejail video
## Create script in /usr/local/bin/firejail-linphone-reset
#scriptFile="${pkgdir}/usr/local/bin/firejail-%{executable}-reset"
#proFile="\$HOME/.config/firejail/%{executable}.local"
#echo "#!/usr/bin/bash" > $scriptFile
#echo "rm -f \"${proFile}\"" >> $scriptFile
#echo "echo \"Removed \\\"${proFile}\\\"\"" >> $scriptFile
#echo "echo \"Done.\"" >> $scriptFile
#echo "exit 0" >> $scriptFile
## Make script executable
#chmod +x "$scriptFile"
rm -rf %{buildroot}/home
echo "--- List files that will be packaged ---"
find %{buildroot} | sed "s|%{buildroot}||g"
echo "--- End list files that will be packaged ---"
# Also possible:
# /sbin/ldconfig %{install_prefix}/lib64
# if not using /etc/ld.so.conf.d/%{name}.conf
%post -n %{name}
/sbin/ldconfig
%postun -n %{name}
/sbin/ldconfig
%files
%license LICENSE.txt
#%%doc CHANGELOG.md README.md
%doc README.md
%exclude %{install_prefix}/include
%exclude %{install_prefix}/lib64/cmake
%exclude %{_libdir}
%exclude %{install_prefix}/lib64/lib*.a
%if 0%{?enable_qt_keychain}
%exclude %{install_prefix}/lib64/libQt6Keychain.so
%endif
%exclude %{install_prefix}/lib64/libbctoolbox-tester.so
%exclude %{install_prefix}/lib64/libbctoolbox.so
%exclude %{install_prefix}/lib64/libbcunit.so
%exclude %{install_prefix}/lib64/libbelcard.so
%exclude %{install_prefix}/lib64/libbelle-sip.so
%exclude %{install_prefix}/lib64/libbelr.so
%exclude %{install_prefix}/lib64/libbzrtp.so
%exclude %{install_prefix}/lib64/libdecaf.so
%exclude %{install_prefix}/lib64/libjpeg.so
%exclude %{install_prefix}/lib64/libjsoncpp.so
%exclude %{install_prefix}/lib64/liblber.so
%exclude %{install_prefix}/lib64/libldap.so
%exclude %{install_prefix}/lib64/liblime.so
%exclude %{install_prefix}/lib64/liblinphone++.so
%exclude %{install_prefix}/lib64/liblinphone.so
%exclude %{install_prefix}/lib64/libmbedcrypto.so
%exclude %{install_prefix}/lib64/libmbedtls.so
%exclude %{install_prefix}/lib64/libmbedx509.so
%exclude %{install_prefix}/lib64/libopus.so
%exclude %{install_prefix}/lib64/libortp.so
%exclude %{install_prefix}/lib64/libsoci_core.so
%exclude %{install_prefix}/lib64/libsoci_sqlite3.so
%exclude %{install_prefix}/lib64/libspeex.so
%exclude %{install_prefix}/lib64/libspeexdsp.so
%exclude %{install_prefix}/lib64/libsrtp2.so
%exclude %{install_prefix}/lib64/libturbojpeg.so
%exclude %{install_prefix}/lib64/libz.so
%exclude %{install_prefix}/lib64/liboqs.so
%exclude %{install_prefix}/lib64/libpostquantumcryptoengine.so
%exclude %{install_prefix}/lib64/libxml2.so
#%exclude %{install_prefix}/share/doc/packages/%{name}/example.c
#%exclude %{install_prefix}/share/doc/packages/%{name}/tjexample.c
#%%exclude %%{install_prefix}/share/doc/linphoneqt/tjexample.c
%{install_prefix}
#/usr
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
#%%{_datadir}/applications/%%{name}.desktop
#%%{_datadir}/icons/hicolor/*/apps/*
%if 0%{?alternative_two}
# Alternative 2
/etc/ld.so.conf.d/*.conf
# End alternative 2
%endif
%files devel
%{install_prefix}/include
%{install_prefix}/lib64/cmake
%{install_prefix}/lib64/lib*.a
%if 0%{?enable_qt_keychain}
%{install_prefix}/lib64/libQt6Keychain.so
%endif
%{install_prefix}/lib64/libbctoolbox-tester.so
%{install_prefix}/lib64/libbctoolbox.so
%{install_prefix}/lib64/libbcunit.so
%{install_prefix}/lib64/libbelcard.so
%{install_prefix}/lib64/libbelle-sip.so
%{install_prefix}/lib64/libbelr.so
%{install_prefix}/lib64/libbzrtp.so
%{install_prefix}/lib64/libdecaf.so
%{install_prefix}/lib64/libjpeg.so
%{install_prefix}/lib64/libjsoncpp.so
%{install_prefix}/lib64/liblber.so
%{install_prefix}/lib64/libldap.so
%{install_prefix}/lib64/liblime.so
%{install_prefix}/lib64/liblinphone++.so
%{install_prefix}/lib64/liblinphone.so
%{install_prefix}/lib64/libmbedcrypto.so
%{install_prefix}/lib64/libmbedtls.so
%{install_prefix}/lib64/libmbedx509.so
%{install_prefix}/lib64/libopus.so
%{install_prefix}/lib64/libortp.so
%{install_prefix}/lib64/libsoci_core.so
%{install_prefix}/lib64/libsoci_sqlite3.so
%{install_prefix}/lib64/libspeex.so
%{install_prefix}/lib64/libspeexdsp.so
%{install_prefix}/lib64/libsrtp2.so
%{install_prefix}/lib64/libturbojpeg.so
%{install_prefix}/lib64/libz.so
%{install_prefix}/lib64/liboqs.so
%{install_prefix}/lib64/libpostquantumcryptoengine.so
%{install_prefix}/lib64/libxml2.so
#%{install_prefix}/share/doc/packages/%{name}/example.c
#%{install_prefix}/share/doc/packages/%{name}/tjexample.c
#%%{install_prefix}/share/doc/linphoneqt/tjexample.c
%changelog
* %{today} %{packager} <%{packagerEmail}> - %{version}
- New build.