[neon/neon-packaging/libquotient/Neon/unstable] debian: add qt6 support

Carlos De Maine null at kde.org
Sat Aug 5 00:35:51 BST 2023


Git commit 90d49ec7146b7761ea002b924b13bb2384525b5a by Carlos De Maine.
Committed on 05/08/2023 at 01:35.
Pushed by carlosdem into branch 'Neon/unstable'.

add qt6 support

M  +27   -9    debian/control
D  +0    -1    debian/files
D  +0    -2    debian/libquotient-dev.dirs
A  +1    -0    debian/libquotient-qt6-0.8.install
A  +4    -0    debian/libquotient-qt6-dev.install
D  +0    -1    debian/libquotient0.8.dirs
M  +16   -4    debian/rules

https://invent.kde.org/neon/neon-packaging/libquotient/-/commit/90d49ec7146b7761ea002b924b13bb2384525b5a

diff --git a/debian/control b/debian/control
index a0473b9..1460d92 100644
--- a/debian/control
+++ b/debian/control
@@ -2,15 +2,18 @@ Source: libquotient
 Priority: optional
 Maintainer: Matrix Packaging Team <pkg-matrix-maintainers at lists.alioth.debian.org>
 Uploaders: Hubert Chathi <uhoreg at debian.org>, Andres Salomon <dilinger at debian.org>
-Build-Depends:
-  debhelper-compat (= 12),
-  cmake,
-  libolm-dev,
-  libssl-dev,
-  qtbase5-dev,
-  qtmultimedia5-dev,
-  qt5keychain-dev
-Standards-Version: 4.3.0
+Build-Depends:cmake,
+              debhelper-compat (= 13),
+              cmake,
+              libolm-dev,
+              libssl-dev,
+              qtkeychain-qt5-dev,
+              qtkeychain-qt56dev,
+              qt6-base-dev,
+              qt6-multimedia-dev,
+              qtbase5-dev,
+              qtmultimedia5-dev,
+Standards-Version: 4.6.2
 Section: libs
 Homepage: https://github.com/quotient-im/libQuotient
 Vcs-Git: https://salsa.debian.org/matrix-team/libquotient.git
@@ -30,3 +33,18 @@ Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Qt5 library to write cross-platform clients for Matrix
  libQuotient is a Qt5-based library to make IM clients for the Matrix
  protocol. It is the backbone of Quaternion, Spectral and some other projects.
+
+Package: libquotient-qt6-dev
+Section: libdevel
+Architecture: any
+Depends: libquotient0.8 (= ${binary:Version}), ${misc:Depends}
+Description: Qt6 library to write cross-platform clients for Matrix
+ libQuotient is a Qt6-based library to make IM clients for the Matrix
+ protocol. It is the backbone of Quaternion, Spectral and some other projects.
+
+Package: libquotient-qt6-0.8
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Qt6 library to write cross-platform clients for Matrix
+ libQuotient is a Qt6-based library to make IM clients for the Matrix
+ protocol. It is the backbone of Quaternion, Spectral and some other projects
diff --git a/debian/files b/debian/files
deleted file mode 100644
index 082b2d3..0000000
--- a/debian/files
+++ /dev/null
@@ -1 +0,0 @@
-libquotient_0.6.11-1_source.buildinfo libs optional
diff --git a/debian/libquotient-dev.dirs b/debian/libquotient-dev.dirs
deleted file mode 100644
index da07fdd..0000000
--- a/debian/libquotient-dev.dirs
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/include
-usr/lib
diff --git a/debian/libquotient-qt6-0.8.install b/debian/libquotient-qt6-0.8.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libquotient-qt6-0.8.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/libquotient-qt6-dev.install b/debian/libquotient-qt6-dev.install
new file mode 100644
index 0000000..9b9e44b
--- /dev/null
+++ b/debian/libquotient-qt6-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/*/lib*.so
+usr/lib/*/pkgconfig/*
+usr/lib/*/cmake/*
diff --git a/debian/libquotient0.8.dirs b/debian/libquotient0.8.dirs
deleted file mode 100644
index 6845771..0000000
--- a/debian/libquotient0.8.dirs
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib
diff --git a/debian/rules b/debian/rules
index 5a12370..9bc1cf0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,25 @@
 #!/usr/bin/make -f
+# -*- makefile -*-
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
+
+CMAKE_ARGS = -DCMAKE_INSTALL_INCLUDEDIR=include/libquotient -DBUILD_SHARED_LIBS=1 -DQuotient_ENABLE_E2EE=true
+
 
 %:
-	dh $@
+	dh $@ --with pkgkde_symbolshelper
 
+execute_after_dh_auto_clean:
+	rm -rf build-Qt6
 
 override_dh_auto_configure:
-	dh_auto_configure -- -DCMAKE_INSTALL_INCLUDEDIR=include/libquotient -DBUILD_SHARED_LIBS=1 -DQuotient_ENABLE_E2EE=true
+	dh_auto_configure -- $(CMAKE_ARGS) -DUSE_QT_VERSION=5
+	dh_auto_configure --builddirectory=build-Qt6 -- $(CMAKE_ARGS) -DUSE_QT_VERSION=6
+
+override_dh_auto_build:
+	dh_auto_build
+	dh_auto_build --builddirectory=build-Qt6
 
 override_dh_auto_install:
 	dh_auto_install
-# unused example file -- remove to avoid warning from dh_missing
-#	rm debian/tmp/usr/bin/quotest
+	dh_auto_install --builddirectory=build-Qt6


More information about the Neon-commits mailing list