diff --git a/920200bfa32ed99637a7df12695e07f60180ff3c.patch b/920200bfa32ed99637a7df12695e07f60180ff3c.patch new file mode 100644 index 0000000000000000000000000000000000000000..17357284a3878054dd4a8081b97550df3cf7a88e --- /dev/null +++ b/920200bfa32ed99637a7df12695e07f60180ff3c.patch @@ -0,0 +1,34 @@ +From 920200bfa32ed99637a7df12695e07f60180ff3c Mon Sep 17 00:00:00 2001 +From: Dmitry Shachnev +Date: Tue, 3 Oct 2017 22:28:04 +0700 +Subject: [PATCH] Set refdomain for refnodes to fix build with Sphinx 1.6.3 + +Otherwise the documentation build fails with: + +Traceback (most recent call last): + [...] + File "/usr/lib/python2.7/dist-packages/sphinx/environment/__init__.py", line 730, in read_doc + domain.process_doc(self, docname, doctree) + File "/usr/lib/python2.7/dist-packages/sphinx/domains/std.py", line 576, in process_doc + self.note_citation_refs(env, docname, document) + File "/usr/lib/python2.7/dist-packages/sphinx/domains/std.py", line 593, in note_citation_refs + if node['refdomain'] == 'std' and node['reftype'] == 'citation': + File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 567, in __getitem__ + return self.attributes[key] +KeyError: 'refdomain' +--- + sphinxcontrib/issuetracker/__init__.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/sphinxcontrib/issuetracker/__init__.py b/sphinxcontrib/issuetracker/__init__.py +index 56b15d2..0bd4959 100644 +--- a/sphinxcontrib/issuetracker/__init__.py ++++ b/sphinxcontrib/issuetracker/__init__.py +@@ -158,6 +158,7 @@ def apply(self): + issue_id = match.group(1) + # turn the issue reference into a reference node + refnode = pending_xref() ++ refnode['refdomain'] = None + refnode['reftarget'] = issue_id + refnode['reftype'] = 'issue' + refnode['trackerconfig'] = tracker_config diff --git a/python-sphinxcontrib-issuetracker.spec b/python-sphinxcontrib-issuetracker.spec new file mode 100644 index 0000000000000000000000000000000000000000..8ea3dc5d7432be80769beb20655c8f5165f36d7d --- /dev/null +++ b/python-sphinxcontrib-issuetracker.spec @@ -0,0 +1,93 @@ +%global pyname sphinxcontrib-issuetracker + +Name: python-%{pyname} +Version: 0.11 +Release: 1 +Summary: Sphinx integration with different issue trackers + +License: BSD +URL: https://pypi.python.org/pypi/%{pyname} +Source0: https://pypi.python.org/packages/source/s/%{pyname}/%{pyname}-%{version}.tar.gz + +# https://github.com/ignatenkobrain/sphinxcontrib-issuetracker/pull/13 +Patch1: 920200bfa32ed99637a7df12695e07f60180ff3c.patch + +BuildArch: noarch +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-requests +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-sphinx >= 1.1 + +%global _description\ +A Sphinx extension to reference issues in issue trackers, either explicitly\ +with an "issue" role or optionally implicitly by issue ids like #10 in plain\ +text.\ +\ +Currently the following issue trackers are supported:\ +\ + * GitHub\ + * BitBucket\ + * Launchpad\ + * Google Code\ + * Debian BTS\ + * Jira\ +\ +A simple API is provided to add support for other issue trackers. If you\ +added support for a new tracker, please consider sending a patch to make your\ +work available to other users of this extension.\ + + +%description %_description + +%package -n python%{python3_pkgversion}-%{pyname} +Summary: Sphinx integration with different issue trackers for Python 3 +Requires: python%{python3_pkgversion}-requests +Requires: python%{python3_pkgversion}-sphinx >= 1.1 + +%description -n python%{python3_pkgversion}-%{pyname} +A Sphinx extension to reference issues in issue trackers, either explicitly +with an "issue" role or optionally implicitly by issue ids like #10 in plain +text. + +Currently the following issue trackers are supported: + + * GitHub + * BitBucket + * Launchpad + * Google Code + * Debian BTS + * Jira + +A simple API is provided to add support for other issue trackers. If you +added support for a new tracker, please consider sending a patch to make your +work available to other users of this extension. + +This package contains the Python 3 version of the module. + + +%prep +%setup -q -n %{pyname}-%{version} +%patch1 -p1 + + +%build +%py3_build + + +%install +%py3_install + + +%check +%{__python3} setup.py test + + +%files -n python%{python3_pkgversion}-%{pyname} +%license LICENSE +%doc CHANGES.rst CREDITS README.rst doc +%{python3_sitelib}/* + + +%changelog +* Fri Jul 09 2021 xiehongyu - 0.11-1 +- Initial package diff --git a/sphinxcontrib-issuetracker-0.11.tar.gz b/sphinxcontrib-issuetracker-0.11.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..df087d881c0dec6b32d868999732d37f89f3bee4 Binary files /dev/null and b/sphinxcontrib-issuetracker-0.11.tar.gz differ