From 26739b1f7278cdfc24af133b21ef22c5f1222eb05ecd493ad78685d7dc46aa16 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 2 Jun 2024 09:56:00 +0000 Subject: [PATCH] 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 --- git.changes | 5 +++++ git.spec | 7 +++++++ 2 files changed, 12 insertions(+) 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}