[neon/qt6/qt6-networkauth/Neon/release] debian: sync to debian

Carlos De Maine null at kde.org
Tue Oct 24 03:48:35 BST 2023


Git commit adc48fc7c1ec141f687847fdd2cb4ffda0384f17 by Carlos De Maine.
Committed on 24/10/2023 at 04:48.
Pushed by carlosdem into branch 'Neon/release'.

sync to debian

M  +38   -1    debian/control
M  +0    -2    debian/not-installed
A  +1    -0    debian/qt6-networkauth-doc.install
M  +17   -2    debian/rules

https://invent.kde.org/neon/qt6/qt6-networkauth/-/commit/adc48fc7c1ec141f687847fdd2cb4ffda0384f17

diff --git a/debian/control b/debian/control
index 64b05e1..c2718f8 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,10 @@ Build-Depends: cmake,
                pkg-config,
                pkg-kde-tools,
                qt6-base-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-networkauth
 Vcs-Git: https://salsa.debian.org/qt-kde-team/qt6/qt6-networkauth.git
@@ -53,6 +56,22 @@ Description: Qt 6 QtNetworkAuth - development files
  This package contains the development files needed to build Qt 6 applications
  using the QtNetworkAuth library.
 
+Package: qt6-networkauth-doc
+Architecture: all
+Section: kde
+X-Neon-MergedPackage: true
+Depends: qt6-base-doc, qt6-networkauth-dev (= ${binary:Version}), ${misc:Depends}
+Description: Qt 6 QtNetworkAuth - 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.
+ .
+ Qt Network Authorization provides a set of APIs that enable Qt
+ applications to obtain limited access to online accounts and HTTP
+ services without exposing users' passwords.
+ .
+ This package contains the documentation files to help build Qt 6 applications
+ using the QtNetworkAuth library.
+
 Package: libqt6networkauth6
 Architecture: all
 Depends: qt6-networkauth
@@ -64,3 +83,21 @@ Architecture: all
 Depends: qt6-networkauth
 Description: Dummy transitional
  Transitional dummy package.
+
+Package: qt6-networkauth-doc-dev
+Architecture: all
+Depends: qt6-networkauth-dev
+Description: Dummy transitional
+ Transitional dummy package.
+
+Package: qt6-networkauth-doc-html
+Architecture: all
+Depends: qt6-networkauth-doc
+Description: Dummy transitional
+ Transitional dummy package.
+
+Package: qt6-networkauth-examples
+Architecture: all
+Depends: qt6-networkauth-dev
+Description: Dummy transitional
+ Transitional dummy package.
diff --git a/debian/not-installed b/debian/not-installed
index 576849e..e69de29 100644
--- a/debian/not-installed
+++ b/debian/not-installed
@@ -1,2 +0,0 @@
-usr/include/${DEB_HOST_MULTIARCH}/qt6/QtNetworkAuth/6.*
-usr/lib/${DEB_HOST_MULTIARCH}/qt6/mkspecs/modules/qt_lib_networkauth_private.pri
diff --git a/debian/qt6-networkauth-doc.install b/debian/qt6-networkauth-doc.install
new file mode 100644
index 0000000..6a0b95c
--- /dev/null
+++ b/debian/qt6-networkauth-doc.install
@@ -0,0 +1 @@
+usr/share/qt6/doc
diff --git a/debian/rules b/debian/rules
index 0c2fc5f..a4947b2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,14 +3,29 @@ include /usr/share/dpkg/architecture.mk
 
 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 $@ --buildsystem=cmake+ninja --with pkgkde_symbolshelper
 
 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