From a29548642bc2dcb49a6f9f579f37a78a7eb2fa03 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:05:50 +0100 Subject: [PATCH] binaries default to py3 [release 0.16-2mamba;Fri Nov 27 2020] --- python-docutils.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/python-docutils.spec b/python-docutils.spec index 557b757..84e3641 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -1,6 +1,6 @@ Name: python-docutils Version: 0.16 -Release: 1mamba +Release: 2mamba Summary: Python Documentation Utilities Group: System/Libraries/Python Vendor: openmamba @@ -10,7 +10,7 @@ URL: http://docutils.sourceforge.net/ Source: https://pypi.debian.net/docutils/docutils-%{version}.tar.gz License: Python, BSD, GPL, public domain ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython27-devel +BuildRequires: libpython3-devel ## AUTOBUILDREQ-END BuildRequires: python-setuptools Requires: python >= %python_version @@ -45,7 +45,11 @@ sed -i "\,^%{_bindir},d" %{name}.filelist # remove .py extension for executable for file in %{buildroot}%{_bindir}/*.py; do +%if "%{?pyappend}" == "py3" + mv $file %{buildroot}%{_bindir}/$(basename $file .py) +%else mv $file %{buildroot}%{_bindir}/$(basename $file .py)%{?pyappend:-%pyappend} +%endif done # remove no license file @@ -61,6 +65,9 @@ rm -f licenses/docutils.conf %doc *.txt licenses docs tools/editors %changelog +* Fri Nov 27 2020 Silvan Calarco 0.16-2mamba +- binaries default to py3 + * Sun Mar 29 2020 Silvan Calarco 0.16-1mamba - update to 0.16