public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-linuxdoc] f45: feat: update as per review comments
@ 2026-11-10 22:22 Ankur Sinha
  0 siblings, 0 replies; only message in thread
From: Ankur Sinha @ 2026-11-10 22:22 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-linuxdoc
            Branch : f45
            Commit : a6741ae02d1e540212b165da7ef1c801dbe1b6db
            Author : Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
            Date   : 2023-03-25T12:21:17+05:30
            Stats  : +14/-7 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-linuxdoc/c/a6741ae02d1e540212b165da7ef1c801dbe1b6db?branch=f45

            Log:
            feat: update as per review comments

- update to latest release
- include license file
- use SPDX license
- generate and install man pages

---
diff --git a/python-linuxdoc.spec b/python-linuxdoc.spec
index 74c4658..ac8d9d6 100644
--- a/python-linuxdoc.spec
+++ b/python-linuxdoc.spec
@@ -8,12 +8,12 @@ started in context of the Linux-Kernel documentation, you can use these
 extensions in common Sphinx-doc projects.}
 
 Name:           python-linuxdoc
-Version:        20221127
+Version:        20230321
 Release:        %{autorelease}
 Summary:        Sphinx-doc extensions for sophisticated C developer
 
 
-License:        GPLv2
+License:        AGPL-3.0-or-later
 URL:            https://return42.github.io/linuxdoc/
 Source0:        %{pypi_source linuxdoc}
 
@@ -24,11 +24,7 @@ BuildArch:      noarch
 %package -n python3-linuxdoc
 Summary:        %{summary}
 BuildRequires:  python3-devel
-# Not included in package metadata
-BuildRequires:  python3-docutils
-BuildRequires:  python3-sphinx
-Requires:       python3-docutils
-Requires:       python3-sphinx
+BuildRequires:  help2man
 
 %description -n python3-linuxdoc %_description
 
@@ -51,6 +47,16 @@ find . -type f -name "*.py" -exec sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' {} 2>/
 %install
 %pyproject_install
 
+# generate man pages
+# must be done here because binaries must be installed
+for binfile in "kernel-autodoc" "kernel-doc" "kernel-grepdoc" "kernel-lintdoc"
+do
+    ls -lash "$RPM_BUILD_ROOT/%{_bindir}/${binfile}"
+    help2man -N --version-string %{version} -h -h --no-discard-stderr "$RPM_BUILD_ROOT/%{_bindir}/${binfile}" > "${binfile}.1"
+done
+
+install -p -m 0644 -D -t "$RPM_BUILD_ROOT/%{_mandir}/man1/"  *.1
+
 %pyproject_save_files linuxdoc
 
 %check
@@ -63,6 +69,7 @@ find . -type f -name "*.py" -exec sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' {} 2>/
 %{_bindir}/kernel-doc
 %{_bindir}/kernel-grepdoc
 %{_bindir}/kernel-lintdoc
+%{_mandir}/man1/kernel-*
 
 
 %changelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-10 22:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10 22:22 [rpms/python-linuxdoc] f45: feat: update as per review comments Ankur Sinha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox