diff --git a/git.changes b/git.changes index 580229a..a42ebca 100644 --- a/git.changes +++ b/git.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 31 22:57:33 UTC 2024 - Matej Cepl + +- Compat stub for %python3_fix_shebang_path + ------------------------------------------------------------------- Fri May 31 22:42:57 UTC 2024 - Marcus Rueckert diff --git a/git.spec b/git.spec index b437467..0fa6d30 100644 --- a/git.spec +++ b/git.spec @@ -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}