Fix compat build
Backport changes from clang14 package. We need to exclude patches for clang-format (which we don't build for compat packages). Additionally, clang14-devel needs a dependency on clang14-libs, otherwise this only installs dead symlinks without the shared objects they point to.
This commit is contained in:
parent
c55124d032
commit
3389ce3d4f
@ -68,9 +68,11 @@ Patch5: 0010-PATCH-clang-Produce-DWARF4-by-default.patch
|
|||||||
# TODO: Can be dropped in LLVM 16: https://reviews.llvm.org/D133316
|
# TODO: Can be dropped in LLVM 16: https://reviews.llvm.org/D133316
|
||||||
Patch6: 0001-Mark-fopenmp-implicit-rpath-as-NoArgumentUnused.patch
|
Patch6: 0001-Mark-fopenmp-implicit-rpath-as-NoArgumentUnused.patch
|
||||||
|
|
||||||
|
%if %{without compat_build}
|
||||||
# Patches for clang-tools-extra
|
# Patches for clang-tools-extra
|
||||||
# See https://reviews.llvm.org/D120301
|
# See https://reviews.llvm.org/D120301
|
||||||
Patch201: 0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch
|
Patch201: 0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildRequires: clang
|
BuildRequires: clang
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -178,11 +180,11 @@ Runtime library for clang.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development header files for clang
|
Summary: Development header files for clang
|
||||||
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
%if %{without compat_build}
|
%if %{without compat_build}
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
# The clang CMake files reference tools from clang-tools-extra.
|
# The clang CMake files reference tools from clang-tools-extra.
|
||||||
Requires: %{name}-tools-extra%{?_isa} = %{version}-%{release}
|
Requires: %{name}-tools-extra%{?_isa} = %{version}-%{release}
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
|
Loading…
Reference in New Issue
Block a user