From 20eb0ff32ea623b29d43fafd679cf63c268033bc Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Tue, 30 Aug 2022 13:41:50 -0500 Subject: [PATCH] trivial: debian: Add support for Build-Profile nodoc Link: https://wiki.debian.org/BuildProfileSpec --- contrib/debian/control.in | 4 +++- contrib/debian/rules | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/debian/control.in b/contrib/debian/control.in index 758cbf008..2dba04845 100644 --- a/contrib/debian/control.in +++ b/contrib/debian/control.in @@ -5,7 +5,8 @@ Uploaders: Steve McIntyre <93sam@debian.org>, Matthias Klumpp , Mario Limonciello Build-Depends: %%%DYNAMIC%%% -Build-Depends-Indep: libglib2.0-doc +Build-Depends-Indep: gi-docgen , + libglib2.0-doc , Rules-Requires-Root: no Standards-Version: 4.6.0.1 Section: admin @@ -107,6 +108,7 @@ Section: doc Architecture: all Multi-Arch: foreign Depends: ${misc:Depends}, +Build-Profiles: Description: Firmware update daemon documentation (HTML format) fwupd is a daemon to allow session software to update device firmware. You can either use a GUI software manager like GNOME Software to view and diff --git a/contrib/debian/rules b/contrib/debian/rules index ea9d41e32..fa2d28e14 100755 --- a/contrib/debian/rules +++ b/contrib/debian/rules @@ -44,6 +44,10 @@ ifneq ($(QUBES_OPTION),) CONFARGS += -Dqubes=true endif +ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) + CONFARGS += -Ddocs=disabled +endif + CONFARGS += -Dplugin_dummy=true -Dplugin_powerd=disabled -Dsupported_build=enabled -Dplugin_modem_manager=enabled -Dsystemd_unit_user=fwupd-refresh %: