binaries default to py3 [release 0.16-2mamba;Fri Nov 27 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 11:05:50 +01:00
parent bfec99b2db
commit a29548642b

View File

@ -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 <silvan.calarco@mambasoft.it> 0.16-2mamba
- binaries default to py3
* Sun Mar 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16-1mamba
- update to 0.16