From ce91e74bfb948d8132a790dd7d80342422ea4dcb2d371b7d3f112f6da827570d Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Sun, 14 Feb 2021 00:11:53 +0000 Subject: [PATCH] Accepting request 871613 from home:musfay:staging Wasm runtime OBS-URL: https://build.opensuse.org/request/show/871613 OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/wasm3?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++++++ .gitignore | 1 + wasm3-0.4.8.tar.gz | 3 +++ wasm3.changes | 21 +++++++++++++++++++ wasm3.spec | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 99 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 wasm3-0.4.8.tar.gz create mode 100644 wasm3.changes create mode 100644 wasm3.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/wasm3-0.4.8.tar.gz b/wasm3-0.4.8.tar.gz new file mode 100644 index 0000000..7993367 --- /dev/null +++ b/wasm3-0.4.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e335335009525d7f031ac1dbbb61a17bc7079e4d3ad48b3fe13584cc788efd5 +size 2505088 diff --git a/wasm3.changes b/wasm3.changes new file mode 100644 index 0000000..5cd3220 --- /dev/null +++ b/wasm3.changes @@ -0,0 +1,21 @@ +------------------------------------------------------------------- +Fri Feb 12 16:02:40 UTC 2021 - Mustafa Çalışkan + +- Change Source to upstream URL + +------------------------------------------------------------------- +Fri Feb 12 05:52:40 UTC 2021 - Mustafa Çalışkan + +- Update to version 0.4.8: + * Fix warnings on ESP32 + * Update to 0.4.8 + * Update docs + * Fix warnings + * Implement "strace" mode + * Reuse stack from existing runtime. #186 + * Fix Python build + * Add ability to select spec version for testing + * Optimize simple FuncTypes + * Set d_m3MaxSaneFunctionArgCount to 128 +- Initial package + diff --git a/wasm3.spec b/wasm3.spec new file mode 100644 index 0000000..929dd6e --- /dev/null +++ b/wasm3.spec @@ -0,0 +1,51 @@ +# +# spec file for package wasm3 +# +# Copyright (c) 2021 SUSE LLC +# +# 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/ +# + +Name: wasm3 +Version: 0.4.8 +Release: 0 +Summary: A high performance WebAssembly interpreter written in C +Group: Development/Languages/Other +License: MIT +URL: https://github.com/wasm3/wasm3 +Source: https://github.com/wasm3/wasm3/archive/v%{version}/%{name}-%{version}.tar.gz +BuildRequires: cmake >= 3.11 +BuildRequires: gcc-c++ + +%description +A high performance WebAssembly interpreter written in C +- 8x faster than other known wasm interpreters +- 4-5x slower than state of the art wasm JIT engines +- 12x slower than native execution + +%prep +%setup -q + +%build +# Tries to download source file and build libuvwasi. For now simple argument needed. +%cmake -DBUILD_WASI=simple +%cmake_build + +%install +install -Dm755 build/wasm3 %{buildroot}%{_bindir}/wasm3 + +%files +%license LICENSE +%doc README.md +%{_bindir}/wasm3 + +%changelog