Accepting request 731177 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/731177
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docutils?expand=0&rev=27
This commit is contained in:
Dominique Leuenberger 2019-09-23 10:17:41 +00:00 committed by Git OBS Bridge
commit f683f33b4c
4 changed files with 30 additions and 10 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274
size 1727105

3
docutils-0.15.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a2aeea129088da402665e92e0b25b04b073c04b2dce4ab65caaa38b7ce2e1a99
size 1797388

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sat Sep 14 01:50:36 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Skip the tests for the flavors not being built
-------------------------------------------------------------------
Fri Aug 9 09:53:07 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- update to version 0.15.2
* Docutils 0.14.x is the last version supporting Python 2.4, 2.5,
3.1, and 3.2.
* reStructured text: Allow embedded colons in field list field
names (before, tokens like :this:example: were considered ordinary text).
* Fixed a bug with the "trim" options of the "unicode" directive.
-------------------------------------------------------------------
Mon May 13 23:48:57 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -26,7 +26,7 @@
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-docutils%{psuffix}
Version: 0.14
Version: 0.15.2
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
@ -34,11 +34,7 @@ Group: Development/Languages/Python
URL: https://pypi.python.org/pypi/docutils/
Source: https://files.pythonhosted.org/packages/source/d/docutils/docutils-%{version}.tar.gz
Source99: python-docutils-rpmlintrc
%if %{with test}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module roman}
%endif
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -49,6 +45,11 @@ Recommends: python-Pillow
Recommends: python-Pygments
Recommends: python-roman
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module roman}
%endif
%ifpython3
Provides: docutils = %{version}
Obsoletes: docutils < %{version}
@ -75,13 +76,17 @@ sed -i -e "1d" "docutils/writers/xetex/__init__.py" "docutils/writers/_html_base
%python_build
# test3 is generated from test during build
%if 0%{?have_python2} && ! 0%{?skip_python2}
mv test test%{python2_bin_suffix}
%endif
%if 0%{?have_python3} && ! 0%{?skip_python3}
mv test3 test%{python3_bin_suffix}
%endif
%install
%if !%{with test}
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# To avoid conflicts with the rst2html4 package
mv %{buildroot}%{_bindir}/rst2html4 %{buildroot}%{_bindir}/rst2html4-docutils