- Don't use %python_fix_shebang_path, not available on leap yet

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=118
This commit is contained in:
Daniel Garcia 2024-02-05 12:46:46 +00:00 committed by Git OBS Bridge
parent ad4c01baa5
commit fd35a26ee1

View File

@ -136,7 +136,7 @@ install -D -m 0644 -t %{buildroot}%{$python_sitelib}/../wheels dist/*.whl
}
%{python_expand # Fix shebang path for "pip3.XX" binaries
%{$python_fix_shebang_path %{buildroot}%{_bindir}/pip%{$python_bin_suffix}}
sed -i "1s|#\!.*python.*|#\!/usr/bin/$python|" %{buildroot}%{_bindir}/pip%{$python_bin_suffix}
}
%python_clone -a %{buildroot}%{_bindir}/pip