diff --git a/WasmEngine-v0.1.2.tar.gz b/WasmEngine-v0.1.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..460061776d7a49b3ea201778eec471f8e6b7ff5a Binary files /dev/null and b/WasmEngine-v0.1.2.tar.gz differ diff --git a/WasmEngine.spec b/WasmEngine.spec new file mode 100644 index 0000000000000000000000000000000000000000..eb0535a4cf9235ac4eb160fbb57721fc58863d47 --- /dev/null +++ b/WasmEngine.spec @@ -0,0 +1,54 @@ +%global debug_package %{nil} + +Name: WasmEngine +Version: v0.1.2 +Release: 1 +Summary: WasmEngine is a webassembly function engine, which provides high concurrency and sandbox security. + +License: Mulan PSL v2 +URL: https://gitee.com/openeuler/WasmEngine +Source0: %{name}-%{version}.tar.gz + +BuildRequires: rust,cargo,rust-packaging +BuildRequires: gcc,dtc,openssl-devel + +%description +Based on Rust programming language, WasmEngine is a webassembly function engine, which provides high concurrency and sandbox security. +Summary: %{summary} + +%prep +%autosetup -p1 + +%build +rm -f build.rs + +mkdir -p .cargo +touch .cargo/config +cat > .cargo/config << EOF +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" +EOF + +CARGO_HOME=.cargo cargo build --release + +echo "build wasm success" + +%install +install -d %{buildroot}%{_bindir} +install -p ./target/release/wasm_engine %{buildroot}/usr/bin/wasm_engine + +%clean +rm -rf %{buildroot} + +%files +%attr(550,root,root) %{_bindir}/wasm_engine + +%changelog +* Fri Jul 29 2022 jiangpengfei - v0.1.2-1 +- Type: requirement +- CVE: NA +- SUG: restart +- DESC: package init \ No newline at end of file