From df14e37834179dd590fa19851ffd0c3fa3010453 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:11:09 +0100 Subject: [PATCH] rename conflicting binaries [release 0.18.3-2mamba;Mon Jan 16 2023] --- python-future.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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