2023-01-16 15:18:30 +01:00
|
|
|
#
|
|
|
|
# spec file for package spirv-llvm-translator
|
|
|
|
#
|
2023-03-23 13:28:31 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2023-01-16 15:18:30 +01:00
|
|
|
# Copyright (c) 2023, Martin Hauke <mardnh@gmx.de>
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2023-03-23 13:28:31 +01:00
|
|
|
|
|
|
|
%define sover 16
|
2023-01-16 15:18:30 +01:00
|
|
|
Name: spirv-llvm-translator
|
2023-03-23 13:28:31 +01:00
|
|
|
Version: 16.0.0
|
2023-01-16 15:18:30 +01:00
|
|
|
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
|
2023-03-23 13:28:31 +01:00
|
|
|
Patch1: Revert-Add-support-for-LLVM_LINK_LLVM_DYLIB.patch
|
|
|
|
Patch2: Revert-added-translator-support-for-SPIRV_INTEL.patch
|
2023-01-16 15:18:30 +01:00
|
|
|
BuildRequires: cmake >= 3.3
|
|
|
|
BuildRequires: gcc-c++
|
2023-03-23 13:28:31 +01:00
|
|
|
BuildRequires: llvm%{sover}-devel
|
2023-01-16 15:18:30 +01:00
|
|
|
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}
|
2023-03-23 13:28:31 +01:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2023-01-16 15:18:30 +01:00
|
|
|
|
|
|
|
%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
|