!4 Update to 15.0.0
From: @cf-zhao Reviewed-by: @eastb233 Signed-off-by: @eastb233
This commit is contained in:
commit
6fbbc3e43f
BIN
SPIRV-LLVM-Translator-15.0.0.tar.gz
Normal file
BIN
SPIRV-LLVM-Translator-15.0.0.tar.gz
Normal file
Binary file not shown.
BIN
sdk-1.3.246.1.tar.gz
Normal file
BIN
sdk-1.3.246.1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,14 +1,14 @@
|
|||||||
%global commit 0592c4f6fc42ec947f462e81628280e960a12042
|
%global spirv_headers_version 1.3.246.1
|
||||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
||||||
|
|
||||||
Name: spirv-llvm-translator
|
Name: spirv-llvm-translator
|
||||||
Version: 12.0.0
|
Version: 15.0.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: LLVM to SPIRV Translator
|
Summary: LLVM to SPIRV Translator
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
URL: https://github.com/KhronosGroup/SPIRV-LLVM-Translator
|
URL: https://github.com/KhronosGroup/SPIRV-LLVM-Translator
|
||||||
Source0: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
Source0: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/SPIRV-LLVM-Translator-%{version}.tar.gz
|
||||||
|
Source1: https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/sdk-%{spirv_headers_version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -16,6 +16,7 @@ BuildRequires: cmake
|
|||||||
BuildRequires: ninja-build
|
BuildRequires: ninja-build
|
||||||
BuildRequires: llvm-devel
|
BuildRequires: llvm-devel
|
||||||
BuildRequires: llvm-static
|
BuildRequires: llvm-static
|
||||||
|
BuildRequires: llvm-test
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Khronos LLVM to SPIRV Translator. This is a library
|
Khronos LLVM to SPIRV Translator. This is a library
|
||||||
@ -39,12 +40,16 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
This package contains the standalone llvm to spirv tool.
|
This package contains the standalone llvm to spirv tool.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n SPIRV-LLVM-Translator-%{commit}
|
%setup -T -q -b 1 -n SPIRV-Headers-sdk-%{spirv_headers_version}
|
||||||
|
cd ..
|
||||||
|
mv SPIRV-Headers-sdk-%{spirv_headers_version} SPIRV-Headers
|
||||||
|
%autosetup -n SPIRV-LLVM-Translator-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -GNinja \
|
%cmake -GNinja \
|
||||||
-DLLVM_BUILD_TOOLS=ON \
|
-DLLVM_BUILD_TOOLS=ON \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=%{_builddir}/SPIRV-Headers \
|
||||||
-DCMAKE_INSTALL_RPATH:BOOL=";"
|
-DCMAKE_INSTALL_RPATH:BOOL=";"
|
||||||
%ninja_build
|
%ninja_build
|
||||||
#%cmake_build
|
#%cmake_build
|
||||||
@ -55,17 +60,19 @@ This package contains the standalone llvm to spirv tool.
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_libdir}/libLLVMSPIRVLib.so.12
|
%{_libdir}/libLLVMSPIRVLib.so*
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%{_bindir}/llvm-spirv
|
%{_bindir}/llvm-spirv
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%dir %{_includedir}/LLVMSPIRVLib/
|
%{_includedir}/LLVMSPIRVLib/*
|
||||||
%{_includedir}/LLVMSPIRVLib/
|
|
||||||
%{_libdir}/libLLVMSPIRVLib.so
|
%{_libdir}/libLLVMSPIRVLib.so
|
||||||
%{_libdir}/pkgconfig/LLVMSPIRVLib.pc
|
%{_libdir}/pkgconfig/LLVMSPIRVLib.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 8 2023 cf-zhao <zhaochuanfeng@huawei.com> - 15.0.0-1
|
||||||
|
- Update to 15.0.0
|
||||||
|
|
||||||
* Wed Jan 26 2022 chenchen <chen_aka_jan@163.com> - 12.0.0-1
|
* Wed Jan 26 2022 chenchen <chen_aka_jan@163.com> - 12.0.0-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user