[packages/fwupd] Rel 2; fix docs

arekm arekm at pld-linux.org
Sun Aug 23 13:26:15 CEST 2026


commit 7d5d06746e16b4611e4dd495602cef69d58b5811
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Aug 23 13:26:00 2026 +0200

    Rel 2; fix docs

 fwupd-arch-independent-docs.patch | 58 +++++++++++++++++++++++++++++++++++++++
 fwupd.spec                        |  4 ++-
 2 files changed, 61 insertions(+), 1 deletion(-)
---
diff --git a/fwupd.spec b/fwupd.spec
index 8480d23..9e32516 100644
--- a/fwupd.spec
+++ b/fwupd.spec
@@ -16,12 +16,13 @@ Summary:	System daemon for installing device firmware
 Summary(pl.UTF-8):	Demon systemowy do instalowania firmware'u urządzeń
 Name:		fwupd
 Version:	2.1.7
-Release:	1
+Release:	2
 License:	LGPL v2.1+
 Group:		Applications/System
 #Source0Download: https://github.com/fwupd/fwupd/releases
 Source0:	https://github.com/fwupd/fwupd/releases/download/%{version}/%{name}-%{version}.tar.xz
 # Source0-md5:	c3472f4d47fedaae417a95fc4dc1f22b
+Patch0:		%{name}-arch-independent-docs.patch
 URL:		https://github.com/fwupd/fwupd
 %{?with_modemmanager:BuildRequires:	ModemManager-devel >= 1.22.0}
 BuildRequires:	bash-completion-devel >= 1:2.0
@@ -198,6 +199,7 @@ API języka Vala do biblioteki fwupd.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %{__sed} -i -e '1s,/usr/bin/env python3$,%{__python3},' contrib/firmware_packager/*.py
 
diff --git a/fwupd-arch-independent-docs.patch b/fwupd-arch-independent-docs.patch
new file mode 100644
index 0000000..23b0381
--- /dev/null
+++ b/fwupd-arch-independent-docs.patch
@@ -0,0 +1,58 @@
+--- a/docs/meson.build
++++ b/docs/meson.build
+@@ -284,13 +284,11 @@
+     install_tag: 'doc',
+     install_dir: join_paths(datadir, 'doc', 'fwupd'),
+   )
+-  if hsi
+-    install_data(
+-      ['hsi.html'],
+-      install_tag: 'doc',
+-      install_dir: join_paths(datadir, 'doc', 'fwupd'),
+-    )
+-  endif
++  install_data(
++    ['hsi.html'],
++    install_tag: 'doc',
++    install_dir: join_paths(datadir, 'doc', 'fwupd'),
++  )
+   install_data(
+     ['urlmap_fwupd.js'],
+     install_tag: 'doc',
+--- a/plugins/uefi-dbx/meson.build
++++ b/plugins/uefi-dbx/meson.build
+@@ -1,3 +1,18 @@
++# the generated docs are shipped architecture-independently, so build them
++# before the allow_uefi guard skips the rest of this file
++if build_docs
++  md_targets += custom_target('dbxtool.md',
++    input: 'dbxtool.md',
++    output: 'dbxtool.md',
++    command: [
++      generate_man, '@INPUT@', '-o', '@OUTPUT@',
++      '--replace', 'PACKAGE_VERSION', fwupd_version,
++      '--md',
++    ],
++  )
++  man_md += ['"dbxtool.md"']
++endif
++
+ allow_uefi or subdir_done()
+ 
+ cargs = ['-DG_LOG_DOMAIN="FuPluginUefiDbx"']
+@@ -84,15 +99,3 @@
+     install_dir: join_paths(mandir, 'man1'),
+   )
+ endif
+-if build_docs
+-  md_targets += custom_target('dbxtool.md',
+-    input: 'dbxtool.md',
+-    output: 'dbxtool.md',
+-    command: [
+-      generate_man, '@INPUT@', '-o', '@OUTPUT@',
+-      '--replace', 'PACKAGE_VERSION', fwupd_version,
+-      '--md',
+-    ],
+-  )
+-  man_md += ['"dbxtool.md"']
+-endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fwupd.git/commitdiff/7d5d06746e16b4611e4dd495602cef69d58b5811



More information about the pld-cvs-commit mailing list