[packages/opencl-clang] updated to snap from LLVM 12 branch (until proper release is made)

atler atler at pld-linux.org
Tue May 25 12:39:36 CEST 2021


commit 2b3682a3da69016eb11a26e5675b340ea2800840
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue May 25 12:36:44 2021 +0200

    updated to snap from LLVM 12 branch (until proper release is made)

 opencl-clang.spec | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/opencl-clang.spec b/opencl-clang.spec
index 95e9040..46ff2f7 100644
--- a/opencl-clang.spec
+++ b/opencl-clang.spec
@@ -1,17 +1,20 @@
 
 # requires the OpenCL patches
-%define llvm_version 11.0.0
+%define llvm_version 12.0.0
 
-%define spirv_llvm_translator_version 11.0.0
+%define spirv_llvm_translator_version 12.0.0
+
+%define	gitref	1d1829d930d31309c43512fc17ece51dd314ebde
+%define	snap	20210525
 
 Summary:	Intel Graphics Compute Runtime for OpenCL
 Name:		opencl-clang
-Version:	11.0.0
-Release:	4
+Version:	12.0.0
+Release:	0.%{snap}.1
 License:	University of Illinois/NCSA Open Source License
 Group:		Libraries
-Source0:	https://github.com/intel/opencl-clang/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	31e0ca207e06d6bb1a49661cafd8a3ea
+Source0:	https://github.com/intel/opencl-clang/archive/%{gitref}/%{name}-%{snap}.tar.gz
+# Source0-md5:	aa6983d5d43d2d92727837a8c1669c9f
 URL:		https://01.org/compute-runtime
 BuildRequires:	SPIRV-LLVM-Translator-devel >= %{spirv_llvm_translator_version}
 BuildRequires:	clang >= %{llvm_rpm_version}
@@ -40,7 +43,7 @@ Header files for %{name} library.
 Pliki nagłówkowe biblioteki %{name}.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{gitref}
 
 %build
 install -d build
@@ -62,8 +65,8 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} -C build install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-mv $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.11 $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.%{llvm_version}
-ln -s libopencl-clang.so.%{llvm_version} $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.11
+mv $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.12 $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.%{llvm_version}
+ln -s libopencl-clang.so.%{llvm_version} $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.12
 ln -sf libopencl-clang.so.%{llvm_version} $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so
 
 %post	-p /sbin/ldconfig
@@ -76,7 +79,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc README.md
 %attr(755,root,root) %{_libdir}/libopencl-clang.so.%{llvm_version}
-%ghost %attr(755,root,root) %{_libdir}/libopencl-clang.so.11
+%ghost %attr(755,root,root) %{_libdir}/libopencl-clang.so.12
 
 %files devel
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/opencl-clang.git/commitdiff/2b3682a3da69016eb11a26e5675b340ea2800840



More information about the pld-cvs-commit mailing list