[packages/llvm-libclc] - updated cmake dependency, use 3.13+ style invocation

qboosh qboosh at pld-linux.org
Tue Apr 2 07:14:18 CEST 2024


commit 3aa81f5d7f4417b0cd9ffcdfee5f12d138f90c1b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Apr 2 05:45:48 2024 +0200

    - updated cmake dependency, use 3.13+ style invocation

 llvm-libclc.spec | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/llvm-libclc.spec b/llvm-libclc.spec
index db46dbc..2e07bfa 100644
--- a/llvm-libclc.spec
+++ b/llvm-libclc.spec
@@ -13,7 +13,7 @@ Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{llvm_v
 # Source0-md5:	8848371d2951d20f886529e084972a55
 URL:		https://libclc.llvm.org/
 BuildRequires:	clang >= 3.9
-BuildRequires:	cmake >= 3.9.2
+BuildRequires:	cmake >= 3.20.0
 BuildRequires:	llvm-devel >= 3.9
 BuildRequires:	python3
 BuildRequires:	rpmbuild(macros) >= 1.446
@@ -63,14 +63,12 @@ Clang.
 %setup -q -n libclc-%{llvm_ver}.src
 
 %build
-install -d build
-cd build
 # .pc file generation needs CMAKE_INSTALL_{DATADIR,INCLUDEDIR} relative to CMAKE_INSTALL_PREFIX
-%cmake .. \
+%cmake -B build \
 	-DCMAKE_INSTALL_DATADIR=share \
 	-DCMAKE_INSTALL_INCLUDEDIR=include
 
-%{__make}
+%{__make} -C build
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/llvm-libclc.git/commitdiff/3aa81f5d7f4417b0cd9ffcdfee5f12d138f90c1b



More information about the pld-cvs-commit mailing list