- Drop libomp-devel and python3-lldb where the versioned package is

not being built.
- Let llvm-devel require libomp-devel only where it is built.
- Let lldb recommend python3-lldb only where it is built.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=605
This commit is contained in:
Aaron Puchert 2024-03-17 22:47:58 +00:00 committed by Git OBS Bridge
parent 823f9ce241
commit 1a1ed0bd7f
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Mar 17 22:45:02 UTC 2024 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Drop libomp-devel and python3-lldb where the versioned package is
not being built.
- Let llvm-devel require libomp-devel only where it is built.
- Let lldb recommend python3-lldb only where it is built.
-------------------------------------------------------------------
Sat Mar 9 20:32:49 UTC 2024 - Aaron Puchert <aaronpuchert@alice-dsl.net>

View File

@ -17,10 +17,17 @@
%define _sonum 18
%ifarch aarch64 ppc64 ppc64le %{ix86} x86_64
%global has_openmp
%endif
%ifarch aarch64 x86_64
%define has_lldb 1
%if %{suse_version} > 1600
%define has_lldb_python 1
%endif
%endif
# obsolete_llvm_versioned() prefix postfix
# Obsolete packages <prefix>X or <prefix>X-<postfix> with X being a set of older versions.
@ -67,7 +74,9 @@ Group: Development/Libraries/C and C++
Requires: llvm%{_sonum}-devel
Provides: llvm-LTO-devel = %{version}
Obsoletes: llvm-LTO-devel < %{version}
%if 0%{?has_openmp}
Requires: libomp-devel
%endif
Requires: llvm-gold
Requires: llvm-polly-devel
%obsolete_llvm_versioned llvm devel
@ -193,7 +202,9 @@ Summary: Software debugger built using LLVM libraries
Group: Development/Tools/Debuggers
URL: https://lldb.llvm.org/
Requires: lldb%{_sonum}
%if 0%{?has_lldb_python}
Recommends: python3-lldb
%endif
%description -n lldb
LLDB is a next generation, high-performance debugger. It is built as a set
@ -354,8 +365,10 @@ echo "This is a dummy package to provide a dependency on the system compiler." >
%files -n lld
%doc README
%if 0%{?has_openmp}
%files -n libomp-devel
%doc README
%endif
%files polly
%doc README