From e7a4326a5149752162b54863536f7c1b62a5e973 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:05:50 +0100 Subject: [PATCH] remove requirement for python-Imaging [release 0.16-4mamba;Sun Nov 29 2020] --- python-docutils.spec | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/python-docutils.spec b/python-docutils.spec index 84e3641..6142b65 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -1,6 +1,6 @@ Name: python-docutils Version: 0.16 -Release: 2mamba +Release: 4mamba Summary: Python Documentation Utilities Group: System/Libraries/Python Vendor: openmamba @@ -14,7 +14,6 @@ BuildRequires: libpython3-devel ## AUTOBUILDREQ-END BuildRequires: python-setuptools Requires: python >= %python_version -Requires: python-Imaging BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch @@ -22,8 +21,29 @@ BuildArch: noarch Docutils is an open-source text processing system for processing plaintext documentation into useful formats, such as HTML or LaTeX. It includes reStructuredText, the easy to read, easy to use, what-you-see-is-what-you-get plaintext markup language. -%if 0%{?with_pyver} -%pyver_package +%if "%?with_pyver" +%define pyver %{with_pyver} +%define pyappend py%{with_pyver} +%define __python %(rpm --eval %{__python%{with_pyver}}) +%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) +%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) +%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) +%define python_version %(rpm --eval %{python%{with_pyver}_version}) +%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) +%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) +%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) + +%package py%{pyver} +Group: System/Libraries/Python +Summary: %{summary}. +%if "%?with_pyver" == "3" +Provides: python-docutils +Obsoletes: python-docutils +%endif +%py_requires + +%description py%{pyver} +%{summary}. %endif %prep @@ -65,6 +85,12 @@ rm -f licenses/docutils.conf %doc *.txt licenses docs tools/editors %changelog +* Sun Nov 29 2020 Silvan Calarco 0.16-4mamba +- remove requirement for python-Imaging + +* Sat Nov 28 2020 Silvan Calarco 0.16-3mamba +- python-docutils-py3: obsolete python-docutils + * Fri Nov 27 2020 Silvan Calarco 0.16-2mamba - binaries default to py3