From ea0cfff1362e47d72dcbb2fad2eea37c0c46ef66 Mon Sep 17 00:00:00 2001 From: Bernhard Suttner Date: Tue, 14 May 2024 20:48:56 +0200 Subject: [PATCH] Update packages/client/katello-host-tools/katello-host-tools.spec Co-authored-by: Ewoud Kohl van Wijngaarden --- packages/client/katello-host-tools/katello-host-tools.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/client/katello-host-tools/katello-host-tools.spec b/packages/client/katello-host-tools/katello-host-tools.spec index 468dc33107..f9d9d87413 100644 --- a/packages/client/katello-host-tools/katello-host-tools.spec +++ b/packages/client/katello-host-tools/katello-host-tools.spec @@ -43,7 +43,7 @@ License: LGPL-2.0 License: LGPLv2 %endif URL: https://github.com/Katello/katello-host-tools -Source0: https://codeload.github.com/Katello/katello-host-tools/tar.gz/%{version}#/%{name}-%{version}.tar.gz +Source0: https://codeload.github.com/Katello/%{name}/tar.gz/%{version}#/%{name}-%{version}.tar.gz %if 0%{?suse_version} && 0%{?suse_version} < 1200 # this needs to be BuildArch for Suse but @@ -191,6 +191,11 @@ cp src/yum-plugins/*.py %{buildroot}%{plugins_dir}/ mkdir -p %{buildroot}%{plugins_dir} cp src/zypper_plugins/*.py %{buildroot}%{plugins_dir}/ rm %{buildroot}%{plugins_dir}/__init__.py +%if 0%{?suse_version} >= 1500 +for f in %{buildroot}%{plugins_dir}/*; do + [ -f "$f" ] && sed -i "1s@#!.*python.*@#!$(realpath %__python3)@" "$f" +done +%endif %endif %if %{build_tracer}