From 0f4425f293cde4f0e7bb90a4988e27de25f81818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 28 Dec 2023 13:27:16 +0100 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 spirv-llvm-translator revision eebd3dbc209085692a49de378f6f52da --- .gitattributes | 23 ++++++++ SPIRV-LLVM-Translator-17.0.0.tar.gz | 3 + spirv-llvm-translator.changes | 38 +++++++++++++ spirv-llvm-translator.spec | 87 +++++++++++++++++++++++++++++ 4 files changed, 151 insertions(+) create mode 100644 .gitattributes create mode 100644 SPIRV-LLVM-Translator-17.0.0.tar.gz create mode 100644 spirv-llvm-translator.changes create mode 100644 spirv-llvm-translator.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/SPIRV-LLVM-Translator-17.0.0.tar.gz b/SPIRV-LLVM-Translator-17.0.0.tar.gz new file mode 100644 index 0000000..f82c2fb --- /dev/null +++ b/SPIRV-LLVM-Translator-17.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eba381e1dd99b4ff6c672a28f52755d1adf2d810a97b51e6074ad4fa67937fb2 +size 1601166 diff --git a/spirv-llvm-translator.changes b/spirv-llvm-translator.changes new file mode 100644 index 0000000..50724a2 --- /dev/null +++ b/spirv-llvm-translator.changes @@ -0,0 +1,38 @@ +------------------------------------------------------------------- +Thu Sep 28 11:18:25 UTC 2023 - Stefan Dirsch + +- back again to version 17.0.0, since meanwhile llvm17 is available ... + +------------------------------------------------------------------- +Mon Sep 25 11:48:15 UTC 2023 - Stefan Dirsch + +- back to version 16.0.0, since there is no llvm17 available yet ... + +------------------------------------------------------------------- +Tue Sep 19 21:57:02 UTC 2023 - Aaron Puchert + +- Update to version 17.0.0. + * Compatibility with LLVM 17. +- Drop Revert-Add-support-for-LLVM_LINK_LLVM_DYLIB.patch: the + problematic change was reverted upstream. +- Drop Revert-added-translator-support-for-SPIRV_INTEL.patch: the + corresponding change to spirv-headers has landed in the meantime. + +------------------------------------------------------------------- +Wed Mar 22 22:40:42 UTC 2023 - Aaron Puchert + +- Update to version 16.0.0. + * Compatibility with LLVM 16. +- Add Revert-Add-support-for-LLVM_LINK_LLVM_DYLIB.patch: while + gh#KhronosGroup/SPIRV-LLVM-Translator#1543 claims to add support + for LLVM_LINK_LLVM_DYLIB, it actually seems to break it. +- Add Revert-added-translator-support-for-SPIRV_INTEL.patch: while + gh#KhronosGroup/SPIRV-LLVM-Translator#1632 has made it into this + release, there is no release of spirv-headers containing the + pendant gh#KhronosGroup/SPIRV-Headers#291 yet. + +------------------------------------------------------------------- +Sun Jan 15 13:28:45 UTC 2023 - Martin Hauke + +- Initial package for spirv-llvm-translator, version 15.0.0 + diff --git a/spirv-llvm-translator.spec b/spirv-llvm-translator.spec new file mode 100644 index 0000000..44c423d --- /dev/null +++ b/spirv-llvm-translator.spec @@ -0,0 +1,87 @@ +# +# spec file for package spirv-llvm-translator +# +# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2023, Martin Hauke +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define sover 17 +Name: spirv-llvm-translator +Version: 17.0.0 +Release: 0 +Summary: LLVM/SPIR-V Bi-Directional Translator library +License: BSD-3-Clause +Group: System/Libraries +URL: https://github.com/KhronosGroup/SPIRV-LLVM-Translator +Source: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v%{version}.tar.gz#/SPIRV-LLVM-Translator-%{version}.tar.gz +BuildRequires: cmake >= 3.3 +BuildRequires: gcc-c++ +BuildRequires: llvm%{sover}-devel +BuildRequires: pkgconfig +BuildRequires: spirv-headers +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(zlib) + +%description +The LLVM/SPIR-V Bi-Directional Translator, a library and tool for translation +between LLVM IR and SPIR-V. + +%package -n libLLVMSPIRVLib%{sover} +Summary: LLVM/SPIR-V Bi-Directional Translator library +Group: System/Libraries + +%description -n libLLVMSPIRVLib%{sover} +The LLVM/SPIR-V Bi-Directional Translator, a library and tool for translation +between LLVM IR and SPIR-V. + +%package -n libLLVMSPIRVLib-devel +Summary: Development files for LLVM/SPIR-V Bi-Directional Translator library +Group: Development/Languages/C and C++ +Requires: libLLVMSPIRVLib%{sover} = %{version} + +%description -n libLLVMSPIRVLib-devel +The LLVM/SPIR-V Bi-Directional Translator, a library and tool for translation +between LLVM IR and SPIR-V. + +This package provides headers and libraries required for building software using +the LLVM/SPIR-V Bi-Directional Translator library. + +%prep +%setup -q -n SPIRV-LLVM-Translator-%{version} + +%build +%cmake \ + -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=%{_prefix} \ + -DLLVM_SPIRV_BUILD_EXTERNAL=YES +%cmake_build + +%install +%cmake_install + +%post -n libLLVMSPIRVLib%{sover} -p /sbin/ldconfig +%postun -n libLLVMSPIRVLib%{sover} -p /sbin/ldconfig + +%files -n libLLVMSPIRVLib%{sover} +%license LICENSE.TXT +%doc README.md +%{_libdir}/libLLVMSPIRVLib.so.%{sover}* + +%files -n libLLVMSPIRVLib-devel +%{_bindir}/llvm-spirv +%{_includedir}/LLVMSPIRVLib +%{_libdir}/libLLVMSPIRVLib.so +%{_libdir}/pkgconfig/LLVMSPIRVLib.pc + +%changelog