public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-linuxdoc] f45: feat: ready for review
@ 2026-11-10 22:21 Ankur Sinha
0 siblings, 0 replies; only message in thread
From: Ankur Sinha @ 2026-11-10 22:21 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-linuxdoc
Branch : f45
Commit : 0936a202494e5dece0a380ca7d3381e8e11bba9c
Author : Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
Date : 2023-03-25T12:21:16+05:30
Stats : +22/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-linuxdoc/c/0936a202494e5dece0a380ca7d3381e8e11bba9c?branch=f45
Log:
feat: ready for review
---
diff --git a/python-linuxdoc.spec b/python-linuxdoc.spec
index da18e20..74c4658 100644
--- a/python-linuxdoc.spec
+++ b/python-linuxdoc.spec
@@ -1,3 +1,6 @@
+# upstream does not include a license file at all
+# issue filed: https://github.com/return42/linuxdoc/issues/26
+
%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
@@ -21,17 +24,23 @@ 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
%description -n python3-linuxdoc %_description
%prep
%autosetup -n linuxdoc-%{version}
-# Comment out to remove /usr/bin/env shebangs
-# Can use something similar to correct/remove /usr/bin/python shebangs also
-# find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
+# 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 ';'
-# see pyproject-rpm-macros documentation for more forms
%generate_buildrequires
%pyproject_buildrequires
@@ -41,13 +50,20 @@ BuildRequires: python3-devel
%install
%pyproject_install
+
%pyproject_save_files linuxdoc
%check
-%pyproject_check_import linuxdoc
+# 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 CHANGELOG.md
+%doc README.rst
+%{_bindir}/kernel-autodoc
+%{_bindir}/kernel-doc
+%{_bindir}/kernel-grepdoc
+%{_bindir}/kernel-lintdoc
+
%changelog
%autochangelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-10 22:21 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:21 [rpms/python-linuxdoc] f45: feat: ready for review Ankur Sinha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox