diff --git a/python-docutils.spec b/python-docutils.spec index abee7b7..cfdd28c 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -1,6 +1,6 @@ Name: python-docutils Version: 0.19 -Release: 2mamba +Release: 3mamba Summary: Python Documentation Utilities Group: System/Libraries/Python Vendor: openmamba @@ -19,10 +19,12 @@ 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} %if "0%{?with_pyver}" == "03" %define py_requires_append \ Provides: python-docutils \ Obsoletes: python-docutils < 0.19-2mamba +%endif %pyver_package %endif @@ -48,12 +50,13 @@ for f in %{buildroot}%{_bindir}/*.py; do %if "0%{?with_pyver}" == "03" ln -s "$(basename $f)" %{buildroot}%{_bindir}/$(basename $f .py) %else - mv $f %{buildroot}%{_bindir}/$(basename $file .py)%{?pyappend:-%pyappend} + mv $f %{buildroot}%{_bindir}/$(basename $f .py)%{?pyappend:-%pyappend} %endif done sed -i "\,%{_bindir},d" %{name}.filelist + %if "0%{?with_pyver}" != "03" -mv %{buildroot}%{_bindir}/docutils %{buildroot}%{_bindir}/docutils-py%{%pyappend} +mv %{buildroot}%{_bindir}/docutils %{buildroot}%{_bindir}/docutils%{?pyappend:-%pyappend} %endif # remove no license file @@ -64,11 +67,15 @@ rm -f licenses/docutils.conf %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -%{_bindir}/* +%{_bindir}/docutils* +%{_bindir}/rst* %dir %{python_sitearch}/docutils-%{version}-py*.egg-info %{python_sitearch}/docutils-%{version}-py*.egg-info/* %changelog +* Thu Mar 09 2023 Silvan Calarco 0.19-3mamba +- rebuilt with python 3.10 + * Tue Aug 16 2022 Silvan Calarco 0.19-2mamba - provide tools without .py extension if python3