diff --git a/docutils-0.20.1.tar.gz b/docutils-0.20.1.tar.gz deleted file mode 100644 index c945fe4..0000000 --- a/docutils-0.20.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b -size 2058365 diff --git a/docutils-0.21.2.tar.gz b/docutils-0.21.2.tar.gz new file mode 100644 index 0000000..1016329 --- /dev/null +++ b/docutils-0.21.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f +size 2204444 diff --git a/python-docutils.changes b/python-docutils.changes index fb7053b..fafe3e3 100644 --- a/python-docutils.changes +++ b/python-docutils.changes @@ -1,8 +1,40 @@ ------------------------------------------------------------------- -Wed Jan 15 13:54:59 UTC 2025 - Nico Krapp +Fri Jan 17 09:00:56 UTC 2025 - Nico Krapp + +- fix alternatives + +------------------------------------------------------------------- +Wed Jan 15 13:51:33 UTC 2025 - Nico Krapp - Use libalternatives instead of update-alternatives, bsc#1235783 +------------------------------------------------------------------- +Sun Nov 3 05:32:05 UTC 2024 - Steve Kowalik + +- Update to 0.21.2: + * General: + + Drop support for Python 3.7 and 3.8. + + Provide rst2* "console_scripts" entry points (without the .py + extension) instead of installing the rst2*.py front end tools in the + binary PATH. + + Use docutils --reader=pep --writer=pep_html for a PEP preview. + + Use python -m docutils.writers.odf_odt.prepstyles to strip the page + size from an ODT writer stylesheet. + + Use the same CSV format for the :header: option and the main data of + the "csv-table" directive. + + New option "loading" for the "image" directive. Sets the new attribute + loading of the doctree element. + * Configuration changes: + + New configuration setting root_prefix. Configurable root directory + for included files. + + New configuration setting sources for the "buildhtml.py" application. + + Simpler and more secure input encoding default behaviour: + # Do not use the locale encoding as fallback if Python is started in + UTF-8 mode. Stop using "latin1" as second fallback. + # Remove BOM (U+FEFF ZWNBSP at start of data) only if the + input_encoding configuration setting is None, '', 'utf-8-sig', + 'utf-16', or 'utf-32'. Do not remove other ZWNBSPs. + ------------------------------------------------------------------- Sat Mar 30 15:15:42 UTC 2024 - Ben Greiner diff --git a/python-docutils.spec b/python-docutils.spec index c94c08f..10f3cc6 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -1,7 +1,7 @@ # # spec file for package python-docutils # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -33,16 +33,16 @@ %endif Name: python-docutils%{psuffix} -Version: 0.20.1 +Version: 0.21.2 Release: 0 Summary: Python Documentation Utilities 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 +BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module flit-core} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with libalternatives} @@ -58,8 +58,7 @@ Recommends: python-Pygments Recommends: python-roman BuildArch: noarch %if %{with test} -BuildRequires: %{python_module Pillow} -BuildRequires: %{python_module Pygments} +BuildRequires: %{python_module docutils = %{version}} BuildRequires: %{python_module packaging} # BuildRequires: %%{python_module roman} %endif @@ -78,11 +77,8 @@ easy-to-read, what-you-see-is-what-you-get plaintext markup syntax. %autosetup -p1 -n docutils-%{version} # 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 find . -name \*.mp4 -print -exec chmod -x '{}' \; - -# Actually seems to work with Python 3.6 -sed -i -e '/python_requires/ s/7/6/' setup.py +find . -name \*.swp -delete # Remove shebang from non-executable files sed -i '1{/^#!/d}' \ @@ -103,7 +99,7 @@ sed -i '1{/^#!/d}' \ %install %if !%{with test} %pyproject_install -for binary in docutils rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html rst2html4 rst2html5 ; do +for binary in docutils rst2html rst2latex rst2man rst2odt rst2pseudoxml rst2s5 rst2xetex rst2xml rst2html4 rst2html5 ; do %python_clone -a %{buildroot}%{_bindir}/$binary done %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -122,7 +118,7 @@ update-alternatives --query rst2html >/dev/null 2>&1 && update-alternatives --qu %python_libalternatives_reset_alternative docutils %post -%python_install_alternative docutils rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html rst2html4 rst2html5 +%python_install_alternative docutils rst2html rst2latex rst2man rst2odt rst2pseudoxml rst2s5 rst2xetex rst2xml rst2html4 rst2html5 %postun %python_uninstall_alternative docutils @@ -135,12 +131,10 @@ update-alternatives --query rst2html >/dev/null 2>&1 && update-alternatives --qu %python_alternative %{_bindir}/rst2latex %python_alternative %{_bindir}/rst2man %python_alternative %{_bindir}/rst2odt -%python_alternative %{_bindir}/rst2odt_prepstyles %python_alternative %{_bindir}/rst2pseudoxml %python_alternative %{_bindir}/rst2s5 %python_alternative %{_bindir}/rst2xetex %python_alternative %{_bindir}/rst2xml -%python_alternative %{_bindir}/rstpep2html %python_alternative %{_bindir}/rst2html4 %python_alternative %{_bindir}/rst2html5 %{python_sitelib}/docutils/