diff --git a/python-future.spec b/python-future.spec index a5e4c4c..0ee1c05 100644 --- a/python-future.spec +++ b/python-future.spec @@ -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 0.18.3-2mamba +- rename conflicting binaries + * Fri Jan 13 2023 Automatic Build System 0.18.3-1mamba - automatic version update by autodist