X-Git-Url: https://git.pld-linux.org/?p=packages%2Fopencl-clang.git;a=blobdiff_plain;f=opencl-clang.spec;h=ac0bffa0b193b7ea58418fda360862618b368ce5;hp=40422b6a6483e18996b209cbd69b79910822a403;hb=f5ada381f670e93de7389144cb68a90ce64c0ae7;hpb=eac18d9c1742741333ea5d7de0a8b6a53240020e diff --git a/opencl-clang.spec b/opencl-clang.spec index 40422b6..ac0bffa 100644 --- a/opencl-clang.spec +++ b/opencl-clang.spec @@ -1,25 +1,24 @@ -%define llvm_version 7.0.1 -%define spirv_llvm_translator_version 7.0.1 +# requires the OpenCL patches +%define llvm_version 9.0.0 + +%define spirv_llvm_translator_version 9.0.0 Summary: Intel Graphics Compute Runtime for OpenCL Name: opencl-clang -Version: 8.0.1 -Release: 1 +Version: 9.0.0 +Release: 2 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: ca856bc6ec05fcf3a7d8374d97904b28 URL: https://01.org/compute-runtime BuildRequires: SPIRV-LLVM-Translator-devel >= %{spirv_llvm_translator_version} -BuildRequires: clang >= %{llvm_version} +BuildRequires: clang >= %{llvm_rpm_version} BuildRequires: clang-devel >= %{llvm_version} BuildRequires: cmake >= 3.4.3 BuildRequires: llvm-devel >= %{llvm_version} BuildRequires: pkgconfig -%requires_eq clang -%requires_eq clang-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -31,6 +30,7 @@ SPIR-V modules. 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 +42,6 @@ Pliki nagłówkowe biblioteki %{name}. %prep %setup -q -%patch0 -p1 - %build install -d build cd build @@ -64,8 +62,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.9 $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.%{llvm_version} +ln -s libopencl-clang.so.%{llvm_version} $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so.9 ln -sf libopencl-clang.so.%{llvm_version} $RPM_BUILD_ROOT%{_libdir}/libopencl-clang.so %post -p /sbin/ldconfig @@ -78,7 +76,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.9 %files devel %defattr(644,root,root,755)