diff --git a/python-python-for-android.changes b/python-python-for-android.changes index 250d482..24b0290 100644 --- a/python-python-for-android.changes +++ b/python-python-for-android.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 17 13:29:45 UTC 2022 - Dominique Leuenberger + +- Properly fix shebangs to inject path to python interpreter. + ------------------------------------------------------------------- Sun Nov 15 01:29:33 AM UTC 2020 - John Vandenberg diff --git a/python-python-for-android.spec b/python-python-for-android.spec index 186d2c5..f66f01f 100644 --- a/python-python-for-android.spec +++ b/python-python-for-android.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-for-android # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -39,7 +39,7 @@ Requires: python-pep517 Requires: python-six Requires: python-toml Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Recommends: cmake Recommends: python-pip Recommends: python-setuptools @@ -95,7 +95,7 @@ sed -i "s/'pep517.',/'pep517',/" setup.py %python_clone -a %{buildroot}%{_bindir}/p4a %{python_expand rm -r %{buildroot}%{$python_sitelib}/ci/ %{buildroot}%{$python_sitelib}/tests/ -sed -i "1{s:#!.*$:#!%{_bindir}/$python:}" \ +sed -i "1{s:#!.*$:#!%{_bindir}/python%{$python_bin_suffix}:}" \ %{buildroot}%{$python_sitelib}/pythonforandroid/tools/*link \ %{buildroot}%{$python_sitelib}/pythonforandroid/bootstraps/common/build/build.py \ %{buildroot}%{$python_sitelib}/pythonforandroid/toolchain.py