Add Conflicts with main packages

This commit is contained in:
Timm Bäder 2024-07-25 18:42:59 +02:00
parent c78b32d95e
commit 2afe045f00

View File

@ -183,6 +183,10 @@ BuildRequires: perl(Sys::Hostname)
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%if %{with compat_build}
Conflicts: clang = %{maj_ver}
%endif
# clang requires gcc, clang++ requires libstdc++-devel
# - https://bugzilla.redhat.com/show_bug.cgi?id=1021645
# - https://bugzilla.redhat.com/show_bug.cgi?id=1158594
@ -217,6 +221,9 @@ Recommends: libatomic%{?_isa}
# with -fopenmp.
Recommends: libomp-devel%{sub_pkg_suffix}%{_isa} = %{version}
Recommends: libomp%{sub_pkg_suffix}%{_isa} = %{version}
%if %{with compat_build}
Conflicts: clang-libs = %{maj_ver}
%endif
%description libs
Runtime library for clang.