!2 [sync] PR-1: 初始化spirv-llvm-translator
From: @openeuler-sync-bot Reviewed-by: @peilin-guo Signed-off-by: @peilin-guo
This commit is contained in:
commit
a2803546af
BIN
spirv-llvm-translator-0592c4f.tar.gz
Normal file
BIN
spirv-llvm-translator-0592c4f.tar.gz
Normal file
Binary file not shown.
71
spirv-llvm-translator.spec
Normal file
71
spirv-llvm-translator.spec
Normal file
@ -0,0 +1,71 @@
|
||||
%global commit 0592c4f6fc42ec947f462e81628280e960a12042
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
|
||||
Name: spirv-llvm-translator
|
||||
Version: 12.0.0
|
||||
Release: 1
|
||||
Summary: LLVM to SPIRV Translator
|
||||
|
||||
License: NCSA
|
||||
URL: https://github.com/KhronosGroup/SPIRV-LLVM-Translator
|
||||
Source0: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
BuildRequires: ninja-build
|
||||
BuildRequires: llvm-devel
|
||||
BuildRequires: llvm-static
|
||||
|
||||
%description
|
||||
Khronos LLVM 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 to SPIRV Translator
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains libraries and header files for
|
||||
developing against %{name}
|
||||
|
||||
%package tools
|
||||
Summary: Standalone llvm to spirv translator tool
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description tools
|
||||
This package contains the standalone llvm to spirv tool.
|
||||
|
||||
%prep
|
||||
%autosetup -n SPIRV-LLVM-Translator-%{commit}
|
||||
|
||||
%build
|
||||
%cmake -GNinja \
|
||||
-DLLVM_BUILD_TOOLS=ON \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_INSTALL_RPATH:BOOL=";"
|
||||
%ninja_build
|
||||
#%cmake_build
|
||||
|
||||
%install
|
||||
%ninja_install
|
||||
#%cmake_install
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%{_libdir}/libLLVMSPIRVLib.so.12
|
||||
|
||||
%files tools
|
||||
%{_bindir}/llvm-spirv
|
||||
|
||||
%files devel
|
||||
%dir %{_includedir}/LLVMSPIRVLib/
|
||||
%{_includedir}/LLVMSPIRVLib/
|
||||
%{_libdir}/libLLVMSPIRVLib.so
|
||||
%{_libdir}/pkgconfig/LLVMSPIRVLib.pc
|
||||
|
||||
%changelog
|
||||
* Wed Jan 26 2022 chenchen <chen_aka_jan@163.com> - 12.0.0-1
|
||||
- Package init
|
||||
4
spirv-llvm-translator.yaml
Normal file
4
spirv-llvm-translator.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: KhronosGroup/SPIRV-LLVM-Translator
|
||||
tag_prefix: ^v
|
||||
seperator: .
|
||||
Loading…
x
Reference in New Issue
Block a user