%global spirv_llvm_translator_commit 424e375edc4b915218ab5d1f08670a8d1e92c9d3 Name: spirv-llvm-translator Version: 10.0.14 Release: 1%{?dist} Summary: LLVM/SPIR-V Bi-Directional Translator License: NCSA Source0: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/%{spirv_llvm_translator_commit}/spirv-llvm-translator.tar.gz BuildRequires: cmake BuildRequires: make BuildRequires: gcc-c++ BuildRequires: llvm-devel Requires: llvm-libs %description This package contains the LLVM/SPIR-V Bi-Directional Translator, a library and tool for translation between LLVM IR and SPIR-V. %package devel Summary: Development files for spirv-llvm-translator Requires: %{name} = %{version}-%{release} %description devel Development package for spirv-llvm-translator %prep %autosetup -n SPIRV-LLVM-Translator-%{spirv_llvm_translator_commit} %build mkdir build cd build %cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release %make_build %install cd build %make_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libLLVMSPIRVLib.so.10 %files devel %defattr(-,root,root) /usr/include/LLVMSPIRVLib %{_libdir}/libLLVMSPIRVLib.so %{_libdir}/pkgconfig/LLVMSPIRVLib.pc %changelog * Fri Jul 10 2020 Jacek Danecki - 10.0.14-1 - Update to 10.0.14-1 * Tue Jun 09 2020 Jacek Danecki - 10.0.12-1 - Update to 10.0.12-1 * Wed May 07 2020 Jacek Danecki - 10.0.8-1 - Update to 10.0.8-1 * Tue Apr 07 2020 Jacek Danecki - 10.0.6-1 - Update to 10.0.6-1 * Tue Mar 10 2020 Jacek Danecki - 10.0.4-1 - Update to 10.0.4-1 * Wed Feb 12 2020 Jacek Danecki - 10.0.3-1 - Package version 10.0.3-1 on llvm 10