From dd61b9e50a1843aee2d78056dcb3c084534b1059 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:00:14 +0100 Subject: [PATCH] update to 11.0.0 [release 11.0.0-1mamba;Wed Jan 06 2021] --- libclc.spec | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/libclc.spec b/libclc.spec index 29d3e8c..f8bf056 100644 --- a/libclc.spec +++ b/libclc.spec @@ -1,5 +1,6 @@ Name: libclc -Version: 20140919git +Epoch: 1 +Version: 11.0.0 Release: 1mamba Summary: An implementation of the library requirements of the OpenCL C programming language Group: System/Libraries @@ -7,8 +8,7 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://libclc.llvm.org/ -## GITSOURCE http://llvm.org/git/libclc.git master -Source: http://llvm.org/git/libclc.git/master/libclc-%{version}.tar.bz2 +Source: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libclc-%{version}.src.tar.xz License: BSD ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END @@ -27,17 +27,25 @@ Requires: pkg-config This package contains libraries and header files for developing applications that use %{name}. %prep -%setup -q +%setup -q -n %{name}-%{version}.src +#-D -T %build -./configure.py \ - --prefix=%{_prefix} +#:<< _EOF +mkdir -p build +cd build -%make +cmake .. -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} + +ninja %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall +cd build +export DESTDIR=%{buildroot} +ninja install %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -46,11 +54,14 @@ This package contains libraries and header files for developing applications tha %defattr(-,root,root) %dir %{_includedir}/clc %{_includedir}/clc/* -%dir %{_prefix}/lib/clc -%{_prefix}/lib/clc/*.bc +%dir %{_datadir}/clc +%{_datadir}/clc/*.bc %{_datadir}/pkgconfig/libclc.pc %doc README.TXT %changelog +* Wed Jan 06 2021 Silvan Calarco 11.0.0-1mamba +- update to 11.0.0 + * Fri Sep 19 2014 Silvan Calarco 20140919git-1mamba - package created using the webbuild interface