[neon/qt6/qt6-websockets/Neon/release] debian: align to debian
Carlos De Maine
null at kde.org
Mon Oct 23 03:50:09 BST 2023
Git commit a0fa70a4269bd095a551543a22c840951d55b76e by Carlos De Maine.
Committed on 23/10/2023 at 04:50.
Pushed by carlosdem into branch 'Neon/release'.
align to debian
M +36 -1 debian/control
A +1 -0 debian/qt6-websockets-doc.install
M +18 -3 debian/rules
https://invent.kde.org/neon/qt6/qt6-websockets/-/commit/a0fa70a4269bd095a551543a22c840951d55b76e
diff --git a/debian/control b/debian/control
index 5951d8e..7afe226 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,10 @@ Build-Depends: cmake,
pkg-kde-tools,
qt6-base-dev (>= 6.4.2+dfsg~),
qt6-declarative-dev (>= 6.4.2+dfsg~)
-Standards-Version: 4.6.1
+Build-Depends-Indep: qt6-base-dev (>= 6.4~) <!nodoc>,
+ qt6-documentation-tools (>= 6.4~) <!nodoc>,
+ qt6-base-doc (>= 6.4~) <!nodoc>,
+Standards-Version: 4.6.2
Homepage: https://www.qt.io/developers/
Vcs-Browser: https://salsa.debian.org/qt-kde-team/qt6/qt6-websockets
Vcs-Git: https://salsa.debian.org/qt-kde-team/qt6/qt6-websockets.git
@@ -49,6 +52,20 @@ Description: Qt 6 WebSockets library - development files
This package contains the development files needed to build Qt applications
using Qt 6 WebSockets library.
+ Package: qt6-websockets-doc
+Architecture: all
+Section: kde
+X-Neon-MergedPackage: true
+Depends: qt6-base-doc,
+ qt6-websockets-dev (= ${binary:Version}),
+ ${misc:Depends}
+Description: Qt 6 WebSockets library - documentation files
+ Qt is a cross-platform C++ application framework. Qt's primary feature
+ is its rich set of widgets that provide standard GUI functionality.
+ .
+ This package contains the documentation to help build Qt applications
+ using Qt 6 WebSockets library.
+
Package: libqt6websockets6
Architecture: all
Depends: qt6-websockets
@@ -72,3 +89,21 @@ Architecture: all
Depends: qt6-websockets-dev
Description: Dummy transitional
Transitional dummy package.
+
+Package: qt6-websockets-doc-html
+Architecture: all
+Depends: qt6-websockets-doc
+Description: Dummy transitional
+ Transitional dummy package.
+
+Package: qt6-websockets-doc-dev
+Architecture: all
+Depends: qt6-websockets-dev
+Description: Dummy transitional
+ Transitional dummy package.
+
+Package: qt6-websockets-examples
+Architecture: all
+Depends: qt6-websockets-dev
+Description: Dummy transitional
+ Transitional dummy package.
diff --git a/debian/qt6-websockets-doc.install b/debian/qt6-websockets-doc.install
new file mode 100644
index 0000000..8536ff4
--- /dev/null
+++ b/debian/qt6-websockets-doc.install
@@ -0,0 +1 @@
+usr/share/qt6/doc/
diff --git a/debian/rules b/debian/rules
index 9d5ad89..38e5190 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,12 @@
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
+
+# QT_HOST_PATH isn't passed in cross-builds
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+ extra_cmake_args += -DQT_HOST_PATH=/usr
+endif
%:
dh $@ --with pkgkde_symbolshelper --buildsystem=cmake+ninja
@@ -9,8 +14,18 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
override_dh_auto_configure:
dh_auto_configure -- \
--log-level=STATUS \
- -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
+ -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
+ $(extra_cmake_args)
+
+override_dh_auto_build-indep:
+ dh_auto_build -- docs
+
+override_dh_auto_install-indep:
+ DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- install_docs
+ # Remove build path from index files.
+ find $(CURDIR)/debian/tmp/usr/share/qt6/doc -type f -name *.index -exec \
+ sed -i 's@$(CURDIR)/@@g' {} \;
-execute_after_dh_auto_install:
+execute_after_dh_auto_install-arch:
# Reproducible builds: remove build paths from .prl files
sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libQt6*.prl
More information about the Neon-commits
mailing list