X-Git-Url: https://git.pld-linux.org/?p=packages%2Fopencl-clang.git;a=blobdiff_plain;f=opencl-clang.spec;h=d7457791ed2f712cd83d2c419e35311c18f2bbfe;hp=4d40b63766e1ae103f927ca9c3252b77d22b1b4b;hb=HEAD;hpb=c7dfe9a1fc0d6232cf4ec375a6c7bc5c57e28d3d diff --git a/opencl-clang.spec b/opencl-clang.spec index 4d40b63..f431362 100644 --- a/opencl-clang.spec +++ b/opencl-clang.spec @@ -1,25 +1,25 @@ -%define llvm_version 7.0.1 -%define spirv_llvm_translator_version 7.0.1 +# requires the OpenCL patches +%define llvm_version 18.1.0 +%define spirv_llvm_translator_version 18.1.0 Summary: Intel Graphics Compute Runtime for OpenCL +Summary(pl.UTF-8): Biblioteki uruchomieniowe Intel Graphics Compute dla OpenCL Name: opencl-clang -Version: 8.0.1 +Version: 18.1.0 Release: 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: cb6b746c837a6cac6c8906911b2ea9de -Patch0: llvm_clang_vfs.patch +# Source0-md5: bc489b3d1222c1c637fd777bc056b5af URL: https://01.org/compute-runtime -BuildRequires: SPIRV-LLVM-Translator >= %{spirv_llvm_translator_version} -BuildRequires: clang >= %{llvm_version} +BuildRequires: SPIRV-LLVM-Translator-devel >= %{spirv_llvm_translator_version} +BuildRequires: clang >= %{llvm_rpm_version} BuildRequires: clang-devel >= %{llvm_version} -BuildRequires: cmake >= 3.4.3 +BuildRequires: cmake >= 3.13.4 BuildRequires: llvm-devel >= %{llvm_version} BuildRequires: pkgconfig -%requires_eq clang -%requires_eq clang-devel +BuildRequires: rpmbuild(macros) >= 1.605 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -27,10 +27,16 @@ Common clang is a thin wrapper library around clang. Common clang has OpenCL-oriented API and is capable to compile OpenCL C kernels to SPIR-V modules. +%description -l pl.UTF-8 +Common clang to niewielka biblioteka obudowująca clanga. Ma API +zorientowane na OpenCL i potrafi kompilować jądra C OpenCL do modułów +WPIR-V + %package devel Summary: Header files for %{name} library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} Group: Development/Libraries +%requires_eq clang-devel Requires: %{name} = %{version}-%{release} %description devel @@ -42,8 +48,6 @@ Pliki nagłówkowe biblioteki %{name}. %prep %setup -q -%patch0 -p1 - %build install -d build cd build @@ -52,6 +56,7 @@ cd build -DPREFERRED_LLVM_VERSION="%{llvm_version}" \ -DLLVMSPIRV_INCLUDED_IN_LLVM=OFF \ -DSPIRV_TRANSLATOR_DIR="%{_prefix}" \ + -DGIT_EXECUTABLE=/bin/false \ ../ %{__make} @@ -63,8 +68,8 @@ rm -rf $RPM_BUILD_ROOT %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT -mv $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.7 $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.%{llvm_version} -ln -s libopencl-clang.so.%{llvm_version} $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.7 +%{__mv} $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.18.1 $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.%{llvm_version} +ln -s libopencl-clang.so.%{llvm_version} $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.18.1 ln -sf libopencl-clang.so.%{llvm_version} $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so %post -p /sbin/ldconfig @@ -77,7 +82,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.7 +%ghost %attr(755,root,root) %{_libdir}/libopencl-clang.so.18.1 %files devel %defattr(644,root,root,755)