## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 12; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global commit 534cbb21d0c18f34f7a6cd168c25c193e145ef79 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: spirv-llvm15.0-translator Version: 15.0.0 Release: %autorelease Summary: LLVM 15 to SPIRV Translator License: NCSA URL: https://github.com/KhronosGroup/SPIRV-LLVM-Translator Source0: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/%{commit}/spirv-llvm-translator-%{shortcommit}.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: llvm15-devel BuildRequires: llvm15-static BuildRequires: spirv-headers-devel BuildRequires: spirv-tools-devel %description Khronos LLVM 15 to SPIRV Translator. This is a library to be used by Mesa for OpenCL support. It translate LLVM IR to Khronos SPIR-V. It also includes a standalone tool used for building libclc. %package devel Summary: Development files for LLVM 15 to SPIRV Translator Conflicts: spirv-llvm-translator-devel Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains libraries and header files for developing against %{name} %package tools Summary: Standalone llvm 15 to spirv translator tool Conflicts: spirv-llvm-translator-tools Requires: %{name}%{?_isa} = %{version}-%{release} %description tools This package contains the standalone llvm to spirv tool. %prep %autosetup -n SPIRV-LLVM-Translator-%{commit} -p1 %build %cmake -GNinja \ -DLLVM_DIR=%{_libdir}/llvm15/lib/cmake/llvm \ -DLLVM_BUILD_TOOLS=ON \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_RPATH:BOOL=";" \ -DLLVM_EXTERNAL_PROJECTS="SPIRV-Headers" \ -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR="/usr/include/spirv/" \ %if 0%{?__isa_bits} == 64 -DLLVM_LIBDIR_SUFFIX=64 %else -DLLVM_LIBDIR_SUFFIX= %endif %cmake_build %install %cmake_install %files %doc README.md %{_libdir}/libLLVMSPIRVLib.so.* %files tools %{_bindir}/llvm-spirv %files devel %dir %{_includedir}/LLVMSPIRVLib/ %{_includedir}/LLVMSPIRVLib/ %{_libdir}/libLLVMSPIRVLib.so %{_libdir}/pkgconfig/LLVMSPIRVLib.pc %changelog ## START: Generated by rpmautospec * Tue Dec 03 2024 František Zatloukal - 15.0.0-12 - Resync to a later commit * Fri Sep 20 2024 František Zatloukal - 15.0.0-11 - Resync to a later commit * Sat Jul 20 2024 Fedora Release Engineering - 15.0.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 17 2024 František Zatloukal - 15.0.0-9 - Resync to a later commit * Thu May 23 2024 František Zatloukal - 15.0.0-8 - Resync to a later commit and backport of PR#2571 * Sat Apr 20 2024 František Zatloukal - 15.0.0-7 - Resync to a later commit * Fri Feb 23 2024 František Zatloukal - 15.0.0-6 - Resync to a later commit * Sat Jan 27 2024 Fedora Release Engineering - 15.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Oct 05 2023 František Zatloukal - 15.0.0-4 - Resync to a later commit * Sat Jul 22 2023 Fedora Release Engineering - 15.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Apr 05 2023 Frantisek Zatloukal - 15.0.0-1 - Initial package ## END: Generated by rpmautospec