From fd35a26ee19764ddc1e26c9eb9af3712f351208bb755c6bcd0602b66cc3240db Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Mon, 5 Feb 2024 12:46:46 +0000 Subject: [PATCH] - 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 --- python-pip.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-pip.spec b/python-pip.spec index 574d460..6313937 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -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