From 10a4c506e0f352c191b4b65c18a9253cccf9f33d Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Wed, 12 Jan 2022 13:38:40 +0100 Subject: [PATCH] Only package cmake-devel when building a snapshot package and when NOT building in compat mode --- llvm.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index d89d0bc..ee61ffb 100644 --- a/llvm.spec +++ b/llvm.spec @@ -189,11 +189,13 @@ Summary: LLVM shared libraries %description libs Shared libraries for the LLVM compiler infrastructure. +%if %{without compat_build} && %{with snapshot_build} %package cmake-devel Summary: LLVM Shared development CMake files %description cmake-devel Some CMake files that are shared by LLVM sub-projects when building. +%endif %package static Summary: LLVM static libraries @@ -453,7 +455,7 @@ rm %{buildroot}%{_bindir}/llvm-config%{exec_suffix} # ghost presence touch %{buildroot}%{_bindir}/llvm-config%{exec_suffix} -%if %{without compat_build} +%if %{without compat_build} && %{with snapshot_build} # install shared cmake modules into /usr/lib64/cmake/llvm or /usr/lib/cmake/llvm # see https://docs.fedoraproject.org/en-US/packaging-guidelines/RPMMacros/ # see https://reviews.llvm.org/D88458 @@ -594,8 +596,10 @@ fi %{_datadir}/llvm/src/utils %{_libdir}/libLLVMTestingSupport.a +%if %{with snapshot_build} %files cmake-devel %{_libdir}/cmake/llvm/ +%endif %endif