diff --git a/docutils-0.16.tar.gz b/docutils-0.16.tar.gz deleted file mode 100644 index 314ebe1..0000000 --- a/docutils-0.16.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc -size 1962041 diff --git a/docutils-0.17.1.tar.gz b/docutils-0.17.1.tar.gz new file mode 100644 index 0000000..671e046 --- /dev/null +++ b/docutils-0.17.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:686577d2e4c32380bb50cbb22f575ed742d58168cee37e99117a854bcd88f125 +size 2016138 diff --git a/pygments25.patch b/pygments25.patch deleted file mode 100644 index c998c23..0000000 --- a/pygments25.patch +++ /dev/null @@ -1,107 +0,0 @@ -Index: docutils/test/test_parsers/test_rst/test_directives/test_code.py -=================================================================== ---- docutils/test/test_parsers/test_rst/test_directives/test_code.py (revision 8494) -+++ docutils/test/test_parsers/test_rst/test_directives/test_code.py (revision 8495) -@@ -98,7 +98,7 @@ - - totest['code-parsing'] = [ - ["""\ --.. code:: python -+.. code:: python3 - :class: testclass - - print('hello world') # to stdout -@@ -105,9 +105,9 @@ - """, - """\ - -- -+ - \n\ -- -+ - print - - ( -@@ -120,7 +120,7 @@ - # to stdout - """], - ["""\ --.. code:: python -+.. code:: python3 - :class: testclass - :name: my_function - :number-lines: 7 -@@ -134,7 +134,7 @@ - """, - """\ - -- -+ - - 7 \n\ - -@@ -167,7 +167,7 @@ - - 12 \n\ - \n\ -- -+ - print - - ( -Index: docutils/test/test_parsers/test_rst/test_directives/test_code_long.py -=================================================================== ---- docutils/test/test_parsers/test_rst/test_directives/test_code_long.py (revision 8494) -+++ docutils/test/test_parsers/test_rst/test_directives/test_code_long.py (revision 8495) -@@ -24,7 +24,7 @@ - - totest['code-parsing-long'] = [ - ["""\ --.. code:: python -+.. code:: python3 - :number-lines: 7 - - def my_function(): -@@ -36,7 +36,7 @@ - """, - """\ - -- -+ - - 7 \n\ - -@@ -69,7 +69,7 @@ - - 12 \n\ - \n\ -- -+ - print - - ( -Index: docutils/test/test_parsers/test_rst/test_interpreted.py -=================================================================== ---- docutils/test/test_parsers/test_rst/test_interpreted.py (revision 8494) -+++ docutils/test/test_parsers/test_rst/test_interpreted.py (revision 8495) -@@ -271,7 +271,7 @@ - Custom role based on code role: - - .. role:: python(code) -- :language: python -+ :language: python3 - :class: testclass - - Python code :python:`print("The end")`. -@@ -282,8 +282,8 @@ - Custom role based on code role: - - Python code \n\ -- -- -+ -+ - print - - ( diff --git a/python-docutils.changes b/python-docutils.changes index 769b60a..7a1b669 100644 --- a/python-docutils.changes +++ b/python-docutils.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Sat Oct 16 21:09:06 UTC 2021 - Dirk Müller + +- update to 0.17.1: + * Fix bug #406 (MathML translation of ``\mathbf``). + * Open "docutils.sty" with encoding set to "utf8". + * Provide fallbacks for parser config settings + to facilitate programmatic use. + * Installing with ``setup.py`` now requires ``setuptools``. + Alternatively, install with `pip`_ (or "manually"). + * Use importlib.import_module() to programmatically import modules. + * Fix bug #385: Import of language modules. + * Arabic mappings by Shahin. + * Fixes in Korean translation by Shinjo Park. + * Fix error when copying `system_message` node + * Make the sidebar's "title" argument optional + * Make "meta" elements available for "latex" and "odt". + * Prevent infinite inclusion loops. + * Move non-essential styling to ``plain.css``. + * Support "captionbelow" class value for tables. + * Display code line numbers as pseudo-elements which are skipped + when copying text from code blocks. Solves feature request #32. + * Support numbered figures. + * New optional style that adapts to different screen sizes. + * Fix #394 fix missing new line after rubric. + * Patch #168 fix crashing on empty citation (by Takeshi KOMIYA). + * Fix #126 manpage title with spaces. + * Fix #380 commandline option problem in sphinx. + * Fix/improve metadata handling: + fix "keyword" splitting, + allow generic fields (stored as "Custom Properties"). + __ docs/user/config.html#detailled + * Run python3 test like python2 against source not the build/-directory + * New generic command line front end that allows the free selection of + reader, parser, and writer components. +- remove pygments25.patch (upstream) + ------------------------------------------------------------------- Sat Dec 12 00:33:13 UTC 2020 - Benjamin Greiner diff --git a/python-docutils.spec b/python-docutils.spec index 2e025bb..6a84dd8 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -1,7 +1,7 @@ # -# spec file for package python-docutils +# spec file # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,21 +26,20 @@ %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-docutils%{psuffix} -Version: 0.16 +Version: 0.17.1 Release: 0 Summary: Python Documentation Utilities -License: Python-2.0 AND BSD-2-Clause AND GPL-2.0-or-later AND GPL-3.0-or-later AND SUSE-Public-Domain +License: BSD-2-Clause AND Python-2.0 AND GPL-2.0-or-later AND GPL-3.0-or-later AND SUSE-Public-Domain URL: https://pypi.python.org/pypi/docutils/ Source: https://files.pythonhosted.org/packages/source/d/docutils/docutils-%{version}.tar.gz Source99: python-docutils-rpmlintrc -Patch0: pygments25.patch BuildRequires: %{python_module setuptools} BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-xml Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Recommends: python-Pillow Recommends: python-Pygments Recommends: python-roman @@ -63,7 +62,6 @@ easy-to-read, what-you-see-is-what-you-get plaintext markup syntax. %prep %setup -q -n docutils-%{version} -%patch0 -p1 # Remove useless ".py" ending from executables: for i in tools/rst*; do mv "$i" "${i/.py}"; done sed -i "s|'tools/\(rst.*\)\.py'|'tools/\1'|" setup.py @@ -72,6 +70,7 @@ for i in {'code_analyzer','error_reporting','punctuation_chars','smartquotes','m sed -i -e "1d" "docutils/utils/$i.py" done sed -i -e "1d" "docutils/writers/xetex/__init__.py" "docutils/writers/_html_base.py" +rm ./docs/dev/.release.txt.swp %build %python_build @@ -80,7 +79,7 @@ sed -i -e "1d" "docutils/writers/xetex/__init__.py" "docutils/writers/_html_base %if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -for binary in rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html rst2html4 rst2html5 ; do +for binary in rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html rst2html4 rst2html5 ; do %python_clone -a %{buildroot}%{_bindir}/$binary done %endif