%global appname Quotient %global libname lib%{appname} %bcond_with e2ee Name: libquotient Version: 0.6.11 Release: 4%{?dist} License: LGPLv2+ URL: https://github.com/quotient-im/%{libname} Summary: Qt5 library to write cross-platform clients for Matrix Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(Qt5Network) BuildRequires: cmake(Qt5Multimedia) BuildRequires: cmake(Qt5Concurrent) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: ninja-build BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: gcc %if %{with e2ee} BuildRequires: cmake(Olm) BuildRequires: cmake(QtOlm) %endif %if 0%{?fedora} && 0%{?fedora} >= 34 Provides: libqmatrixclient = %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: libqmatrixclient < %{?epoch:%{epoch}:}%{version}-%{release} %endif %description The Quotient project aims to produce a Qt5-based SDK to develop applications for Matrix. libQuotient is a library that enables client applications. It is the backbone of Quaternion, Spectral and other projects. Versions 0.5.x and older use the previous name - libQMatrixClient. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %if 0%{?fedora} && 0%{?fedora} >= 34 Provides: libqmatrixclient-devel = %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: libqmatrixclient-devel < %{?epoch:%{epoch}:}%{version}-%{release} %endif %description devel %{summary}. %prep %autosetup -n %{libname}-%{version} rm -rf 3rdparty %build %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ %if %{with e2ee} -DQuotient_ENABLE_E2EE:BOOL=ON \ %else -DQuotient_ENABLE_E2EE:BOOL=OFF \ %endif -DQuotient_INSTALL_TESTS:BOOL=OFF \ -DQuotient_INSTALL_EXAMPLE:BOOL=OFF %cmake_build %check %ctest %install %cmake_install rm -rf %{buildroot}%{_datadir}/ndk-modules %files %license COPYING %doc README.md CONTRIBUTING.md SECURITY.md %{_libdir}/%{libname}.so.0* %files devel %{_includedir}/%{appname}/ %{_libdir}/cmake/%{appname}/ %{_libdir}/pkgconfig/%{appname}.pc %{_libdir}/%{libname}.so %changelog * Thu Jul 21 2022 Fedora Release Engineering - 0.6.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Apr 30 2022 Vitaly Zaitsev - 0.6.11-3 - Rebuilt to mitigate GCC 12 regressions. * Thu Jan 20 2022 Fedora Release Engineering - 0.6.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Oct 07 2021 Vitaly Zaitsev - 0.6.11-1 - Updated to version 0.6.11. * Mon Oct 04 2021 Vitaly Zaitsev - 0.6.10-1 - Updated to version 0.6.10. * Mon Sep 13 2021 Vitaly Zaitsev - 0.6.9-1 - Updated to version 0.6.9. * Wed Aug 25 2021 Vitaly Zaitsev - 0.6.8-1 - Updated to version 0.6.8. * Thu Jul 22 2021 Fedora Release Engineering - 0.6.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 08 2021 Vitaly Zaitsev - 0.6.7-1 - Updated to version 0.6.7. * Thu Mar 18 2021 Vitaly Zaitsev - 0.6.6-1 - Updated to version 0.6.6. * Mon Feb 22 2021 Vitaly Zaitsev - 0.6.5-1 - Updated to version 0.6.5. * Tue Jan 26 2021 Fedora Release Engineering - 0.6.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Jan 16 2021 Vitaly Zaitsev - 0.6.4-1 - Updated to version 0.6.4. * Sun Dec 27 2020 Vitaly Zaitsev - 0.6.3-2 - Disabled E2EE support due to lots of crashes. * Fri Dec 25 2020 Vitaly Zaitsev - 0.6.3-1 - Updated to version 0.6.3. * Sat Oct 31 2020 Vitaly Zaitsev - 0.6.2-1 - Updated to version 0.6.2. * Sat Sep 05 2020 Vitaly Zaitsev - 0.6.1-1 - Updated to version 0.6.1. * Wed Jul 29 2020 Vitaly Zaitsev - 0.6.0-1 - Updated to version 0.6.0. * Sat Mar 07 2020 Vitaly Zaitsev - 0.6.0-0.4.20200207git9bcf0cb - Updated to latest Git snapshot. * Wed Jan 29 2020 Fedora Release Engineering - 0.6.0-0.3.20200121gite3a5b3a - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Jan 26 2020 Vitaly Zaitsev - 0.6.0-0.2.20200121gite3a5b3a - Updated to version 0.6.0-git.