!4 Update to 15.0.0

From: @cf-zhao 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
This commit is contained in:
openeuler-ci-bot 2023-07-20 02:54:23 +00:00 committed by Gitee
commit 6fbbc3e43f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 15 additions and 8 deletions

Binary file not shown.

BIN
sdk-1.3.246.1.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,14 +1,14 @@
%global commit 0592c4f6fc42ec947f462e81628280e960a12042
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global spirv_headers_version 1.3.246.1
Name: spirv-llvm-translator
Version: 12.0.0
Version: 15.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
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-c++
@ -16,6 +16,7 @@ BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: llvm-devel
BuildRequires: llvm-static
BuildRequires: llvm-test
%description
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.
%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
%cmake -GNinja \
-DLLVM_BUILD_TOOLS=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=%{_builddir}/SPIRV-Headers \
-DCMAKE_INSTALL_RPATH:BOOL=";"
%ninja_build
#%cmake_build
@ -55,17 +60,19 @@ This package contains the standalone llvm to spirv tool.
%files
%doc README.md
%{_libdir}/libLLVMSPIRVLib.so.12
%{_libdir}/libLLVMSPIRVLib.so*
%files tools
%{_bindir}/llvm-spirv
%files devel
%dir %{_includedir}/LLVMSPIRVLib/
%{_includedir}/LLVMSPIRVLib/
%{_includedir}/LLVMSPIRVLib/*
%{_libdir}/libLLVMSPIRVLib.so
%{_libdir}/pkgconfig/LLVMSPIRVLib.pc
%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
- Package init