diff --git a/sssd.changes b/sssd.changes index ec838e0..a3e3f54 100644 --- a/sssd.changes +++ b/sssd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 17 09:19:20 UTC 2024 - Samuel Cabrero + +- Fix spec file for openSUSE ALP and SUSE SLFO, where the + python3_fix_shebang_path RPM macro is not available + ------------------------------------------------------------------- Thu Jul 11 09:41:21 UTC 2024 - Samuel Cabrero diff --git a/sssd.spec b/sssd.spec index 41a153c..2466377 100644 --- a/sssd.spec +++ b/sssd.spec @@ -451,8 +451,11 @@ find "$b" -type f -name "*.la" -print -delete mkdir -pv %buildroot/%_sysconfdir/alternatives %buildroot/%_sysconfdir/cifs-utils ln -sfv %_sysconfdir/alternatives/%cifs_idmap_name %buildroot/%cifs_idmap_plugin %python3_fix_shebang -%if 0%{?suse_version} >= 1600 +%if 0%{?suse_version} > 1600 %python3_fix_shebang_path %buildroot/%_libexecdir/%name/ +%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 %endif %check