From 84f19fcaecbf5f2eec9e777d61a5c53dd3f29fea3738af83f8d2cc619e79bf99 Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Fri, 31 May 2024 07:32:52 +0000 Subject: [PATCH] Accepting request 1177110 from home:mcepl:branches:devel:tools:scm - remove dependency on /usr/bin/python3 using %python3_fix_shebang_path macro, [bsc#1212476] OBS-URL: https://build.opensuse.org/request/show/1177110 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/git?expand=0&rev=645 --- git.changes | 6 ++++++ git.spec | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/git.changes b/git.changes index ebbaf16..de1615e 100644 --- a/git.changes +++ b/git.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 27 10:12:52 UTC 2024 - Matej Cepl + +- remove dependency on /usr/bin/python3 using + %python3_fix_shebang_path macro, [bsc#1212476] + ------------------------------------------------------------------- Tue May 14 22:38:09 UTC 2024 - Andreas Stieger diff --git a/git.spec b/git.spec index 046a4c7..a7619c7 100644 --- a/git.spec +++ b/git.spec @@ -71,6 +71,8 @@ BuildRequires: perl-Error BuildRequires: perl-MailTools BuildRequires: pkgconfig BuildRequires: python3-base +# for the %%python3_fix_shebang_path macro +BuildRequires: python-rpm-macros BuildRequires: systemd-rpm-macros BuildRequires: tcsh BuildRequires: update-desktop-files @@ -443,6 +445,10 @@ install -m 0644 %{SOURCE11} %{buildroot}%{_sysusersdir}/ %find_lang %{name} cat %{name}.lang >>bin-man-doc-files + +# fix shebang for git-p4 (and possibly others) +%python3_fix_shebang_path %{buildroot}%{gitexecdir}/* + # use symlinks instead of hardlinks in sub-commands %fdupes -s %{buildroot}