Skip to content

Commit

Permalink
Update packages/client/katello-host-tools/katello-host-tools.spec
Browse files Browse the repository at this point in the history
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
  • Loading branch information
sbernhard and ekohl committed May 16, 2024
1 parent bd27f4a commit ea0cfff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/client/katello-host-tools/katello-host-tools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit ea0cfff

Please sign in to comment.