2024-01-05 18:04:10 +01:00
|
|
|
Name: spirv-llvm-translator
|
2024-01-05 18:04:11 +01:00
|
|
|
Version: 17.0.0
|
2024-01-05 18:04:10 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A tool and a library for bi-directional translation between SPIR-V and LLVM IR
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/KhronosGroup/SPIRV-LLVM-Translator
|
|
|
|
Source: https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git/v%{version}/SPIRV-LLVM-Translator-%{version}.tar.bz2
|
2024-01-05 18:04:10 +01:00
|
|
|
Patch0: spirv-llvm-translator-16.0.0-llvm-16.patch
|
2024-01-05 18:04:10 +01:00
|
|
|
License: NCSA
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libllvm-devel
|
|
|
|
BuildRequires: libspirv-tools-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 18:04:11 +01:00
|
|
|
BuildRequires: libllvm-devel >= 17.0.3
|
2024-01-05 18:04:10 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
A tool and a library for bi-directional translation between SPIR-V and LLVM IR.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: spirv-headers
|
|
|
|
Requires: pkg-config
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n SPIRV-LLVM-Translator-%{version}
|
2024-01-05 18:04:11 +01:00
|
|
|
#%patch 0 -p1
|
2024-01-05 18:04:10 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -d build \
|
|
|
|
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=%{_includedir}/spirv/
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libLLVMSPIRVLib.so.*
|
|
|
|
%doc LICENSE.TXT
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/llvm-spirv
|
|
|
|
%dir %{_includedir}/LLVMSPIRVLib
|
|
|
|
%{_includedir}/LLVMSPIRVLib/*
|
|
|
|
%{_libdir}/libLLVMSPIRVLib.so
|
|
|
|
%{_libdir}/pkgconfig/LLVMSPIRVLib.pc
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 18:04:11 +01:00
|
|
|
* Tue Oct 24 2023 Automatic Build System <autodist@mambasoft.it> 17.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:04:10 +01:00
|
|
|
* Wed May 24 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 16.0.0-1mamba
|
|
|
|
- update to 16.0.0
|
|
|
|
|
2024-01-05 18:04:10 +01:00
|
|
|
* Tue Dec 27 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 15.0.0-1mamba
|
|
|
|
- package created using the webbuild interface
|