rename conflicting binaries [release 0.18.3-2mamba;Mon Jan 16 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 11:11:09 +01:00
parent 1144037a28
commit df14e37834

View File

@ -1,6 +1,6 @@
Name: python-future
Version: 0.18.3
Release: 1mamba
Release: 2mamba
Summary: Clean single-source support for Python 3 and 2
Group: System/Libraries
Vendor: openmamba
@ -37,13 +37,26 @@ CFLAGS="%{optflags}" %{__python} setup.py build
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
sed -i "\,%{_bindir},d" %{name}.filelist
%if "%{?with_pyver}" != "3"
# Rename any conflicting file outside of python site packages tree
for f in %{_bindir}/{futurize,pasteurize}; do
mv %{buildroot}${f}{,-%{?pyappend}}
done
%endif
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%{_bindir}/futurize*
%{_bindir}/pasteurize*
%dir %{python_sitearch}/future-%{version}-py*.egg-info
%{python_sitearch}/future-%{version}-py*.egg-info/*
%changelog
* Mon Jan 16 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.3-2mamba
- rename conflicting binaries
* Fri Jan 13 2023 Automatic Build System <autodist@mambasoft.it> 0.18.3-1mamba
- automatic version update by autodist