From 236eac9d277249b4cde7c2daca3fbd98ef3d3d5a Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 18 Apr 2023 11:03:29 +0200 Subject: [PATCH] Split off llvm-cmake-utils package --- llvm.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/llvm.spec b/llvm.spec index f4a7e9a..2539e12 100644 --- a/llvm.spec +++ b/llvm.spec @@ -37,12 +37,14 @@ %global pkg_bindir %{install_bindir} %global pkg_includedir %{_includedir}/%{name} %global pkg_libdir %{install_libdir} +%global pkg_datadir %{install_prefix}/share %else %global pkg_name llvm %global install_prefix /usr %global install_libdir %{_libdir} %global pkg_bindir %{_bindir} %global pkg_libdir %{install_libdir} +%global pkg_datadir %{_datadir} %global exec_suffix %{nil} %endif @@ -75,7 +77,7 @@ Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: The Low Level Virtual Machine License: Apache-2.0 WITH LLVM-exception OR NCSA @@ -187,6 +189,13 @@ Provides: llvm-static(major) = %{maj_ver} %description static Static libraries for the LLVM compiler infrastructure. +%package cmake-utils +Summary: CMake utilities shared across LLVM subprojects + +%description cmake-utils +CMake utilities shared across LLVM subprojects. +This is for internal use by LLVM packages only. + %if %{without compat_build} %package test @@ -418,7 +427,8 @@ rm %{buildroot}%{_bindir}/llvm-config%{exec_suffix} # ghost presence touch %{buildroot}%{_bindir}/llvm-config%{exec_suffix} -cp -Rv ../cmake/Modules/* %{buildroot}%{pkg_libdir}/cmake/llvm +mkdir -p %{buildroot}%{pkg_datadir}/llvm/cmake +cp -Rv ../cmake/* %{buildroot}%{pkg_datadir}/llvm/cmake %check # Disable check section on arm due to some kind of memory related failure. @@ -540,6 +550,10 @@ fi %{_libdir}/%{name}/lib/*.a %endif +%files cmake-utils +%license LICENSE.TXT +%{pkg_datadir}/llvm/cmake + %if %{without compat_build} %files test @@ -563,6 +577,9 @@ fi %endif %changelog +* Fri Jun 09 2023 Nikita Popov - 16.0.5-2 +- Split off llvm-cmake-utils package + * Mon Jun 05 2023 Tulio Magno Quites Machado Filho - 16.0.5-1 - Update to LLVM 16.0.5