Accepting request 1178014 from home:mcepl:branches:devel:tools:scm

- Compat stub for %python3_fix_shebang_path

OBS-URL: https://build.opensuse.org/request/show/1178014
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/git?expand=0&rev=648
This commit is contained in:
Dirk Mueller 2024-06-02 09:56:00 +00:00 committed by Git OBS Bridge
parent 96f58b36fc
commit 26739b1f72
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 31 22:57:33 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Compat stub for %python3_fix_shebang_path
-------------------------------------------------------------------
Fri May 31 22:42:57 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>

View File

@ -28,6 +28,13 @@
%if ! %{defined _fillupdir}
%define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
# Compat stub for python3_fix_shebang_path
%{?!python3_fix_shebang_path:%define python3_fix_shebang_path(+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-=) \\\
myargs="%{**}" \
for f in ${myargs}; do \
[ -f "$f" ] && sed -i -e "1s@#\\!.*python.*@#\\!$(realpath %__python3)@" $f \
done
}
%bcond_without git_libsecret
%bcond_without docs
%if 0%{?suse_version} >= 1500 && %{with docs}