From e26fe2ab29b52fcbc3617d2e256d47e59182cb07b75539759a36e84368710285 Mon Sep 17 00:00:00 2001 From: Aaron Puchert Date: Thu, 30 Mar 2023 13:55:50 +0000 Subject: [PATCH] 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 --- llvm.changes | 11 +++++++++++ llvm.spec | 20 +------------------- 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/llvm.changes b/llvm.changes index 288e783..8e8b851 100644 --- a/llvm.changes +++ b/llvm.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Mar 29 08:56:43 UTC 2023 - Fabian Vogt + +- 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 diff --git a/llvm.spec b/llvm.spec index 7234426..010623a 100644 --- a/llvm.spec +++ b/llvm.spec @@ -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