Accepting request 1075171 from home:favogt:branches:devel:tools:compiler

RFC. I couldn't find why the BRs are there in the first place.

- Drop BuildRequires. They are not necessary to build this package.
  This has the advantage that on version bumps, the llvm metapackages
  build first, turning everything depending on them unresolvable until
  the right LLVM version is actually available. Without this, the old
  llvm metapackages are available still and users of llvm build against
  the old version of LLVM until the new metapackage is built.
- Fix llvm-LTO-devel self-obsoletion

OBS-URL: https://build.opensuse.org/request/show/1075171
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=581
This commit is contained in:
Aaron Puchert 2023-03-30 13:55:50 +00:00 committed by Git OBS Bridge
parent e02c227a4a
commit e26fe2ab29
2 changed files with 12 additions and 19 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Mar 29 08:56:43 UTC 2023 - Fabian Vogt <fvogt@suse.com>
- Drop BuildRequires. They are not necessary to build this package.
This has the advantage that on version bumps, the llvm metapackages
build first, turning everything depending on them unresolvable until
the right LLVM version is actually available. Without this, the old
llvm metapackages are available still and users of llvm build against
the old version of LLVM until the new metapackage is built.
- Fix llvm-LTO-devel self-obsoletion
-------------------------------------------------------------------
Sat Mar 18 19:25:39 UTC 2023 - Aaron Puchert <aaronpuchert@alice-dsl.net>

View File

@ -47,25 +47,7 @@ Group: Development/Languages/Other
URL: https://www.llvm.org/
# This file documents the process for updating llvm
Source0: README.packaging
# Avoid multiple providers error
BuildRequires: clang%{_sonum} = %{version}
BuildRequires: clang%{_sonum}-devel = %{version}
BuildRequires: clang%{_sonum}-doc = %{version}
BuildRequires: lld%{_sonum} = %{version}
BuildRequires: llvm%{_sonum} = %{version}
BuildRequires: llvm%{_sonum}-devel = %{version}
BuildRequires: llvm%{_sonum}-doc = %{version}
BuildRequires: llvm%{_sonum}-gold = %{version}
BuildRequires: llvm%{_sonum}-vim-plugins = %{version}
Requires: llvm%{_sonum} = %{version}
%if 0%{?has_lldb}
BuildRequires: lldb%{_sonum} = %{version}
BuildRequires: lldb%{_sonum}-devel = %{version}
%endif
BuildRequires: python3-clang%{_sonum} = %{version}
%if 0%{?has_lldb_python}
BuildRequires: python3-lldb%{_sonum} = %{version}
%endif
Suggests: %{name}-doc
# Mirrors ExcludeArch in llvm%{_sonum}
ExcludeArch: s390
@ -87,7 +69,7 @@ Summary: Header Files for LLVM
Group: Development/Libraries/C and C++
Requires: llvm%{_sonum}-devel = %{version}
Provides: llvm-LTO-devel = %{version}
Obsoletes: llvm-LTO-devel <= %{version}
Obsoletes: llvm-LTO-devel < %{version}
Requires: llvm-gold
%obsolete_llvm_versioned llvm devel
%obsolete_llvm_versioned llvm LTO-devel