SHA256
1
0
forked from pool/sssd

Fix python3-fix-shebang-path

This commit is contained in:
Samuel Cabrero 2024-09-30 14:28:11 +02:00
parent 8aeefcbe42
commit 5165cf2176

View File

@ -492,8 +492,7 @@ mkdir -pv %buildroot/%_sysconfdir/alternatives %buildroot/%_sysconfdir/cifs-util
ln -sfv %_sysconfdir/alternatives/%cifs_idmap_name %buildroot/%cifs_idmap_plugin
%python3_fix_shebang
%if 0%{?suse_version} > 1600
# TODO Check latest fix for leap 15.6
%python3_fix_shebang_path %buildroot/%_libexecdir/%name/
%python3_fix_shebang_path %{buildroot}/%{_libexecdir}/%{name}/sss_analyze
%elif 0%{?suse_version} == 1600
# python3_fix_shebang_path macro does not exist in < 1600, was added in python-rom-macros 20231204
sed -i '1s@#!.*python.*@#!%{_bindir}/python3.11@' %{buildroot}/%{_libexecdir}/%{name}/sss_analyze