[packages/libQuotient-qt5] - last version of libQuotient with qt5 support
qboosh
qboosh at pld-linux.org
Thu Jun 5 20:53:06 CEST 2025
commit ee4e57b77fb68b73ec51209d419233a5a57559a1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jun 5 20:43:10 2025 +0200
- last version of libQuotient with qt5 support
libQuotient-qt5.spec | 122 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 122 insertions(+)
---
diff --git a/libQuotient-qt5.spec b/libQuotient-qt5.spec
new file mode 100644
index 0000000..909f997
--- /dev/null
+++ b/libQuotient-qt5.spec
@@ -0,0 +1,122 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests
+
+%define qt_ver 5.15.2
+Summary: Qt5 library for Matrix clients
+Summary(pl.UTF-8): Biblioteka Qt5 dla klientów Matriksa
+Name: libQuotient-qt5
+# keep 0.8.x here for qt5 support
+Version: 0.8.2
+Release: 1
+License: LGPL v2.1+
+Group: X11/Libraries
+Source0: https://github.com/quotient-im/libQuotient/archive/%{version}/libQuotient-%{version}.tar.gz
+# Source0-md5: 5f5799bed02806d21680a8a5fae06f44
+URL: https://github.com/quotient-im/libQuotient
+BuildRequires: Qt5Core-devel >= %{qt_ver}
+BuildRequires: Qt5Gui-devel >= %{qt_ver}
+BuildRequires: Qt5Keychain-devel >= 0.12
+BuildRequires: Qt5Multimedia-devel >= %{qt_ver}
+BuildRequires: Qt5Network-devel >= %{qt_ver}
+BuildRequires: Qt5Sql-devel >= %{qt_ver}
+BuildRequires: Qt5Test-devel >= %{qt_ver}
+BuildRequires: olm-devel >= 3.2.5
+BuildRequires: openssl-devel >= 1.1.0
+BuildRequires: qt5-build >= %{qt_ver}
+BuildRequires: cmake >= 3.20
+BuildRequires: libstdc++-devel >= 6:11
+BuildRequires: ninja
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRequires: shared-mime-info
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires: Qt5Core >= %{qt_ver}
+Requires: Qt5Gui >= %{qt_ver}
+Requires: Qt5Keychain >= 0.12
+Requires: Qt5Multimedia >= %{qt_ver}
+Requires: Qt5Network >= %{qt_ver}
+Requires: Qt5Sql >= %{qt_ver}
+Requires: olm >= 3.2.5
+Obsoletes: libQuotient < 0.9
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Quotient project aims to produce a Qt-based SDK to develop
+applications for Matrix (<https://matrix.org/>). libQuotient is a
+library that enables client applications. It is the backbone of
+Quaternion (<https://github.com/quotient-im/Quaternion>), NeoChat
+(<https://matrix.org/ecosystem/clients/neochat/>) and other projects.
+
+%description -l pl.UTF-8
+Celem projektu Quotient jest stworzenie opartego na Qt SDK do
+tworzenia aplikacji dla Matriksa (<https://matrix.org/>). libQuotient
+to biblioteka pozwalająca na tworzenie aplikacji klienckich. Jest to
+podstawa projektów takich jak Quaternion
+(<https://github.com/quotient-im/Quaternion>) czy NeoChat
+(<https://matrix.org/ecosystem/clients/neochat/>).
+
+%package devel
+Summary: Header files for Qt5 libQuotient development
+Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających libQuotient z Qt5
+Group: X11/Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: Qt5Core-devel >= %{qt_ver}
+Requires: Qt5Gui-devel >= %{qt_ver}
+Requires: Qt5Keychain-devel >= 0.12
+Requires: Qt5Network-devel >= %{qt_ver}
+Requires: Qt5Sql-devel >= %{qt_ver}
+Requires: libstdc++-devel >= 6:11
+Requires: olm-devel >= 3.2.5
+Requires: openssl-devel >= 1.1.0
+Obsoletes: libQuotient-devel < 0.9
+
+%description devel
+Header files for Qt5 libQuotient development.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe dla programistów używających libQuotient z Qt5.
+
+%prep
+%setup -q -n libQuotient-%{version}
+
+%build
+%cmake \
+ -B build \
+ -G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
+ -DCMAKE_INSTALL_INCLUDEDIR=include \
+ -DCMAKE_INSTALL_LIBDIR=%{_lib} \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
+ -DQuotient_ENABLE_E2EE=ON
+
+%ninja_build -C build
+
+%if %{with tests}
+ctest --test-dir build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%ninja_install -C build
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libQuotient.so.*.*.*
+%ghost %{_libdir}/libQuotient.so.0.8
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libQuotient.so
+%{_includedir}/Quotient
+%{_libdir}/cmake/Quotient
+%{_pkgconfigdir}/Quotient.pc
+%dir %{_datadir}/ndk-modules
+%{_datadir}/ndk-modules/Android.mk
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libQuotient-qt5.git/commitdiff/ee4e57b77fb68b73ec51209d419233a5a57559a1
More information about the pld-cvs-commit
mailing list