Name: wasi-sdk Version: 20 Release: 1%{?dist} Summary: The WebAssembly System Interface SDK License: Apache-2.0 URL: https://github.com/WebAssembly/wasi-sdk # Created by: # git clone --recursive https://github.com/WebAssembly/wasi-sdk.git # cd wasi-sdk && git-archive-all --force-submodules wasi-sdk-20.tar.gz Source0: wasi-sdk-20.tar.gz Patch0: build-fedora.patch BuildRequires: clang cmake ninja-build %description The WebAssembly System Interface (WASI) is a set of APIs for WASI being developed for eventual standardization by the WASI Subgroup, which is a subgroup of the WebAssembly Community Group. %global _lto_cflags %nil %global debug_package %{nil} %define __strip /bin/true %prep %autosetup %build %undefine _auto_set_build_flags NINJA_FLAGS=-v make package %install mkdir -p %{buildroot}%{_datadir}/wasi-sysroot/lib cp -r build/install/opt/wasi-sdk/share/wasi-sysroot/* %{buildroot}%{_datadir}/wasi-sysroot cp build/compiler-rt/lib/wasi/libclang_rt.builtins-wasm32.a %{buildroot}%{_datadir}/wasi-sysroot/lib cp LICENSE %{buildroot}%{_datadir}/wasi-sysroot %files %{_datadir}/wasi-sysroot %changelog * Tue Feb 13 2024 Jan Horak - Initial release