public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-linuxdoc] rawhide: Unretirement request: https://forge.fedoraproject.org/releng/fedora-scm-requests/issues/1806
@ 2026-11-10 22:16 releng-bot
0 siblings, 0 replies; only message in thread
From: releng-bot @ 2026-11-10 22:16 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-linuxdoc
Branch : rawhide
Commit : f6dcab6f8ff94ee7b3c59d5f5791cff04b054561
Author : releng-bot <releng-bot@fedoraproject.org>
Date : 2026-11-10T22:16:20+00:00
Stats : +156/-1 in 8 file(s)
URL : https://src.fedoraproject.org/rpms/python-linuxdoc/c/f6dcab6f8ff94ee7b3c59d5f5791cff04b054561?branch=rawhide
Log:
Unretirement request: https://forge.fedoraproject.org/releng/fedora-scm-requests/issues/1806
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1cd759b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/linuxdoc-20230321.tar.gz
+/linuxdoc-20230827.tar.gz
+/linuxdoc-20231020.tar.gz
+/linuxdoc-20240924.tar.gz
+/linuxdoc-20260504.tar.gz
diff --git a/.packit.yaml b/.packit.yaml
new file mode 100644
index 0000000..d68680b
--- /dev/null
+++ b/.packit.yaml
@@ -0,0 +1,12 @@
+upstream_project_url: https://github.com/return42/linuxdoc
+copy_upstream_release_description: false
+
+jobs:
+ - job: pull_from_upstream
+ trigger: release
+ dist_git_branches:
+ - fedora-rawhide
+ - job: koji_build
+ trigger: commit
+ dist_git_branches:
+ - fedora-all
diff --git a/Fix-compatibility-with-docutils-0.22.patch b/Fix-compatibility-with-docutils-0.22.patch
new file mode 100644
index 0000000..44fb710
--- /dev/null
+++ b/Fix-compatibility-with-docutils-0.22.patch
@@ -0,0 +1,49 @@
+From 91e0b5332a4bd6c2509c12110575917cc297f3ef Mon Sep 17 00:00:00 2001
+From: Karolina Surma <ksurma@redhat.com>
+Date: Fri, 21 Nov 2025 15:44:16 +0100
+Subject: [PATCH] Fix compatibility with docutils 0.22+
+
+error_reporting module has been removed, per its documentation:
+- SafeString() is to be replaced by the standard Python 3 str()
+- ErrorString() is to be replaced by docutils.io.error_string()
+---
+ linuxdoc/kernel_include.py | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/linuxdoc/kernel_include.py b/linuxdoc/kernel_include.py
+index 1798271..1905978 100755
+--- a/linuxdoc/kernel_include.py
++++ b/linuxdoc/kernel_include.py
+@@ -18,7 +18,6 @@ u"""
+ import os.path
+
+ from docutils import io, nodes, statemachine
+-from docutils.utils.error_reporting import SafeString, ErrorString
+ from docutils.parsers.rst import directives
+ from docutils.parsers.rst.directives.body import CodeBlock, NumberLines
+ from docutils.parsers.rst.directives.misc import Include
+@@ -90,10 +89,10 @@ class KernelInclude(Include):
+ raise self.severe('Problems with "%s" directive path:\n'
+ 'Cannot encode input file path "%s" '
+ '(wrong locale?).' %
+- (self.name, SafeString(path)))
++ (self.name, str(path)))
+ except IOError as error:
+ raise self.severe('Problems with "%s" directive path:\n%s.' %
+- (self.name, ErrorString(error)))
++ (self.name, io.error_string(error)))
+ startline = self.options.get('start-line', None)
+ endline = self.options.get('end-line', None)
+ try:
+@@ -105,7 +104,7 @@ class KernelInclude(Include):
+ rawtext = include_file.read()
+ except UnicodeError as error:
+ raise self.severe('Problem with "%s" directive:\n%s' %
+- (self.name, ErrorString(error)))
++ (self.name, io.error_string(error)))
+ # start-after/end-before: no restrictions on newlines in match-text,
+ # and no restrictions on matching inside lines vs. line boundaries
+ after_text = self.options.get('start-after', None)
+--
+2.51.1
+
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..990049e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# python-linuxdoc
+
+Sphinx-doc extensions for sophisticated C developer
\ No newline at end of file
diff --git a/README.packit b/README.packit
new file mode 100644
index 0000000..af5832b
--- /dev/null
+++ b/README.packit
@@ -0,0 +1,3 @@
+This repository is maintained by packit.
+https://packit.dev/
+The file was generated using packit 1.16.0.
diff --git a/dead.package b/dead.package
deleted file mode 100644
index 5204a84..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-Orphaned for 6+ weeks
diff --git a/python-linuxdoc.spec b/python-linuxdoc.spec
new file mode 100644
index 0000000..5a29cdf
--- /dev/null
+++ b/python-linuxdoc.spec
@@ -0,0 +1,83 @@
+%global _description %{expand:
+The LinuxDoc library contains Sphinx-doc extensions and command line tools to
+extract documentation from C/C++ source file comments. Even if this project
+started in context of the Linux-Kernel documentation, you can use these
+extensions in common Sphinx-doc projects.}
+
+Name: python-linuxdoc
+Version: 20260504
+Release: %{autorelease}
+Summary: Sphinx-doc extensions for sophisticated C developer
+
+
+License: AGPL-3.0-or-later
+URL: https://return42.github.io/linuxdoc/
+Source0: %{pypi_source linuxdoc}
+# https://github.com/return42/linuxdoc/pull/40
+Patch: Fix-compatibility-with-docutils-0.22.patch
+
+BuildArch: noarch
+
+%description %_description
+
+%package -n python3-linuxdoc
+Summary: %{summary}
+BuildRequires: python3-devel
+BuildRequires: python3-pkg-resources
+BuildRequires: help2man
+
+Requires: python3-pkg-resources
+
+%description -n python3-linuxdoc %_description
+
+%prep
+%autosetup -n linuxdoc-%{version} -p1
+
+# nothing here, empty package that gets installed in %%{python3_sitelib}
+rm -rf tests
+
+# remove shebangs
+find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
+
+%generate_buildrequires
+%pyproject_buildrequires
+
+
+%build
+%pyproject_wheel
+
+%install
+%pyproject_install
+
+# generate man pages
+# must be done here because binaries must be installed
+for binfile in "linuxdoc.autodoc" "linuxdoc.rest" "linuxdoc.grepdoc" "linuxdoc.lintdoc" "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
+# exclude sphinx < 3.0 bits, we don't have it in Fedora
+%pyproject_check_import linuxdoc -e *cdomainv2*
+
+%files -n python3-linuxdoc -f %{pyproject_files}
+%doc README.rst
+%{_bindir}/linuxdoc.autodoc
+%{_bindir}/linuxdoc.rest
+%{_bindir}/linuxdoc.grepdoc
+%{_bindir}/linuxdoc.lintdoc
+%{_bindir}/kernel-autodoc
+%{_bindir}/kernel-doc
+%{_bindir}/kernel-grepdoc
+%{_bindir}/kernel-lintdoc
+%{_mandir}/man1/linuxdoc.*
+%{_mandir}/man1/kernel-*
+
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..5aafbde
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (linuxdoc-20260504.tar.gz) = d7f8816e37f1e6fa264234209280c9da6ec338c122e6b30e55fd7bd35ac5bb2250f88926f3d5b2383f261a9e653944818f19f021c8783dccc0f3c4cdbcf50894
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-10 22:16 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:16 [rpms/python-linuxdoc] rawhide: Unretirement request: https://forge.fedoraproject.org/releng/fedora-scm-requests/issues/1806 releng-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox