From e707696c4f417af69996bf2624768f2cba9f97caa4771e9b7a911cd7a8458467 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 13 Nov 2017 09:17:11 +0000 Subject: [PATCH] Accepting request 540776 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/540776 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=45 --- docutils-0.13.1.tar.gz | 3 --- docutils-0.14.tar.gz | 3 +++ python-docutils.changes | 60 +++++++++++++++++++++++++++++++++++++++++ python-docutils.spec | 13 ++++++++- 4 files changed, 75 insertions(+), 4 deletions(-) delete mode 100644 docutils-0.13.1.tar.gz create mode 100644 docutils-0.14.tar.gz diff --git a/docutils-0.13.1.tar.gz b/docutils-0.13.1.tar.gz deleted file mode 100644 index c37ab71..0000000 --- a/docutils-0.13.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:718c0f5fb677be0f34b781e04241c4067cbd9327b66bdd8e763201130f5175be -size 1735216 diff --git a/docutils-0.14.tar.gz b/docutils-0.14.tar.gz new file mode 100644 index 0000000..d5fe2c7 --- /dev/null +++ b/docutils-0.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274 +size 1727105 diff --git a/python-docutils.changes b/python-docutils.changes index 95514d7..f889f3b 100644 --- a/python-docutils.changes +++ b/python-docutils.changes @@ -1,3 +1,63 @@ +------------------------------------------------------------------- +Fri Nov 10 22:54:38 UTC 2017 - arun@gmx.de + +- specfile: + * add binary rst2html4 + +- update to version 0.14: + * Enable validation of Docutils XML documents against the DTD: + Use attribute type NMTOKEN instead of REFID for the `refid` attribute + and NMTOKENS for `backrefs`: REFID refers to an ID type instance, + however, the `ids` attribute cannot use the ID type because `XML only + allows one ID per Element Type`__ and doesn't support a multiple-ID + "IDS" attribute type. + * Added documentation for escaped whitespace in URI contexts. + * Clarify use of Unicode character categories. + * Added functionality: escaped whitespace in URI contexts. + * Consistent handling of all whitespace characters in inline markup + recognition. Fixes [ 307 ] and [ 3402314 ] (now [ 173 ]). + * Added support for escaped whitespace in URI contexts. + * Rework patch [ 120 ] (revert change to "Table.get_column_widths()" + that led to problems in an application with a custom table + directive). + * Fix [ 320 ] Russian docinfo fields not recognized. + * Don't add a second ID to problematic references. + * Fix SmartQuotes: warn only once if language is unsupported, keep + "rawsource" when "educating" quotes. + * Added "split_escaped_whitespace" function, support for escaped + whitespace in URI contexts. + * Fix [ 321 ] Import block might cause name error. + * Update quote definitions for languages et, fi, fr, ro, sv, tr, uk. + * New quote definitions for hr, hsb, hu, lv, sh, sl, sr. + * Fix [ 313 ] Differentiate apostrophe from closing single quote (if + possible). + * Fix [ 317 ] Extra space inserted with French smartquotes. + * Add command line interface for stand-alone use (requires 2.7). + * Provide default title in metadata (required by HTML5). + * Fix [ 312 ] HTML writer generates invalid HTML if the table has + two tags. + * Fix [ 319 ] The MathJax CDN shut down on April 30, 2017. For + security reasons, we don't use a third party public installation as default but + warn if math-output_ is set to MathJax without specifying a URL. + * Apply [ 125 ] HTML writer: respect automatic table column sizing. + * Handle class arguments for block-level elements by wrapping them + in a "DUclass" environment. This replaces the special handling for + "epigraph" and "topic" elements. + * Apply [ 141 ] Handling inline in manpage writer. + * Command setting "language" now sets the default language of the + generated ODF document. + * The use of image directive options :width: (%), :scale:, etc now + set the width/height/size of images in the generated ODF + documents. + * The heading/title of admonitions now reflects the language + specified by the "language" setting. + * Fixed [ 306 ] only first of multiple "image" directives with the + same URL shown in output. + * Fixed [ 282 ] python3: AttributeError. + * tools/rst2html4.py: New front-end. + * tools/dev/generate_punctuation_chars.py: New skript to test and + update utils.punctuation_chars. + ------------------------------------------------------------------- Tue Jun 6 13:31:03 UTC 2017 - jmatejek@suse.com diff --git a/python-docutils.spec b/python-docutils.spec index 7398143..237d904 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-docutils -Version: 0.13.1 +Version: 0.14 Release: 0 Summary: Python Documentation Utilities License: Python-2.0 and BSD-2-Clause and GPL-2.0+ and GPL-3.0+ and SUSE-Public-Domain @@ -64,17 +64,25 @@ sed -i -e "1d" "docutils/writers/xetex/__init__.py" "docutils/writers/_html_base %python_install %python_expand %fdupes -s %{buildroot}%{$python_sitelib} +# To avoid conflicts with the rst2html4 package +mv %{buildroot}%{_bindir}/rst2html4 %{buildroot}%{_bindir}/rst2html4-docutils +ln -s -f %{_sysconfdir}/alternatives/rst2html4 %{buildroot}%{_bindir}/rst2html4 + # To avoid conflicts with the rst2html5 package mv %{buildroot}%{_bindir}/rst2html5 %{buildroot}%{_bindir}/rst2html5-docutils ln -s -f %{_sysconfdir}/alternatives/rst2html5 %{buildroot}%{_bindir}/rst2html5 %ifpython3 %post +update-alternatives --install %{_bindir}/rst2html4 rst2html4 %{_bindir}/rst2html4-docutils 15 update-alternatives --install %{_bindir}/rst2html5 rst2html5 %{_bindir}/rst2html5-docutils 15 %endif %ifpython3 %postun +if [ ! -f %{_bindir}/rst2html4-docutils ] ; then + update-alternatives --remove rst2html4 %{_bindir}/rst2html4-docutils +fi if [ ! -f %{_bindir}/rst2html5-docutils ] ; then update-alternatives --remove rst2html5 %{_bindir}/rst2html5-docutils fi @@ -96,8 +104,11 @@ fi %python3_only %{_bindir}/rst2xetex %python3_only %{_bindir}/rst2xml %python3_only %{_bindir}/rstpep2html +%python3_only %{_bindir}/rst2html4 +%python3_only %{_bindir}/rst2html4-docutils %python3_only %{_bindir}/rst2html5 %python3_only %{_bindir}/rst2html5-docutils +%python3_only %ghost %{_sysconfdir}/alternatives/rst2html4 %python3_only %ghost %{_sysconfdir}/alternatives/rst2html5 %{python_sitelib}/docutils/ %{python_sitelib}/docutils-%{version}-py%{python_version}.egg-info