[packages/python-recommonmark] - added docutils patch (try to fix docutils 0.18 compatibility)
qboosh
qboosh at pld-linux.org
Sun Oct 30 09:11:47 CET 2022
commit b5d6a45db4aef65d26927a5d6ba9e9d8f3308ec0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 30 09:11:32 2022 +0100
- added docutils patch (try to fix docutils 0.18 compatibility)
python-recommonmark-docutils.patch | 18 ++++++++++++++++++
python-recommonmark.spec | 2 ++
2 files changed, 20 insertions(+)
---
diff --git a/python-recommonmark.spec b/python-recommonmark.spec
index 27f20c6..0991f5e 100644
--- a/python-recommonmark.spec
+++ b/python-recommonmark.spec
@@ -18,6 +18,7 @@ Source0: https://files.pythonhosted.org/packages/source/r/recommonmark/recommonm
# from https://github.com/readthedocs/recommonmark/pull/124
# https://github.com/readthedocs/recommonmark/commit/917e0359fa93acd9b22d7122e2c03d994d9fda44.patch
Patch0: %{name}-math.patch
+Patch1: %{name}-docutils.patch
URL: https://recommonmark.readthedocs.io/en/latest/
%if %{with python2}
BuildRequires: python-modules >= 1:2.7
@@ -85,6 +86,7 @@ Dokumentacja modułu Pythona recommonmark.
%prep
%setup -q -n recommonmark-%{version}
%patch0 -p1
+%patch1 -p1
%build
%if %{with python2}
diff --git a/python-recommonmark-docutils.patch b/python-recommonmark-docutils.patch
new file mode 100644
index 0000000..aaaeb81
--- /dev/null
+++ b/python-recommonmark-docutils.patch
@@ -0,0 +1,18 @@
+--- recommonmark-0.7.1/recommonmark/parser.py.orig 2022-10-30 07:54:15.297435288 +0100
++++ recommonmark-0.7.1/recommonmark/parser.py 2022-10-30 07:54:17.270757930 +0100
+@@ -3,6 +3,7 @@
+ import sys
+ from os.path import splitext
+
++import docutils.parsers.rst
+ from docutils import parsers, nodes
+ from sphinx import addnodes
+
+@@ -23,6 +24,7 @@ class CommonMarkParser(parsers.Parser):
+ """Docutils parser for CommonMark"""
+
+ supported = ('md', 'markdown')
++ settings_spec = parsers.rst.Parser.settings_spec
+ translate_section_name = None
+
+ default_config = {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-recommonmark.git/commitdiff/b5d6a45db4aef65d26927a5d6ba9e9d8f3308ec0
More information about the pld-cvs-commit
mailing list