Set requires to non GTS alternatives

This commit is contained in:
eabdullin 2024-11-06 09:11:45 +03:00
parent 69d7daa236
commit 3714b32f93

View File

@ -473,13 +473,8 @@ BuildRequires: elfutils-debuginfod-client-devel
%{?scl:Requires:%scl_runtime}
%if %{bootstrapping}
%define alternatives_cmd %{_sbindir}/alternatives
%define alternatives_cmd /usr/sbin/alternatives
%define alternatives_cmdline %{alternatives_cmd}
%else
%define alternatives_cmd %{!?scl:%{_sbindir}}%{?scl:%{_root_sbindir}}/alternatives
%define alternatives_cmdline %{alternatives_cmd}%{?scl: --altdir %{_sysconfdir}/alternatives --admindir %{_scl_root}/var/lib/alternatives}
%endif
Requires(post): %{alternatives_cmd}
Requires(preun): %{alternatives_cmd}