# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate wasmer-wasi Name: rust-wasmer-wasi2 Version: 2.3.0 Release: %autorelease Summary: WASI implementation library for Wasmer WebAssembly runtime License: MIT URL: https://crates.io/crates/wasmer-wasi Source: %{crates_source} # Automatically generated patch to strip foreign dependencies Patch: wasmer-wasi-fix-metadata-auto.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: WASI implementation library for Wasmer WebAssembly runtime.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} # FIXME: no license files detected %doc README.md %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel # FIXME: no license files detected %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bincode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bincode-devel %{_description} This package contains library source intended for building other packages which use the "bincode" feature of the "%{crate}" crate. %files -n %{name}+bincode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+disable-all-logging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+disable-all-logging-devel %{_description} This package contains library source intended for building other packages which use the "disable-all-logging" feature of the "%{crate}" crate. %files -n %{name}+disable-all-logging-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+enable-serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+enable-serde-devel %{_description} This package contains library source intended for building other packages which use the "enable-serde" feature of the "%{crate}" crate. %files -n %{name}+enable-serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+host-fs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+host-fs-devel %{_description} This package contains library source intended for building other packages which use the "host-fs" feature of the "%{crate}" crate. %files -n %{name}+host-fs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+js-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+js-devel %{_description} This package contains library source intended for building other packages which use the "js" feature of the "%{crate}" crate. %files -n %{name}+js-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+js-default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+js-default-devel %{_description} This package contains library source intended for building other packages which use the "js-default" feature of the "%{crate}" crate. %files -n %{name}+js-default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+logging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+logging-devel %{_description} This package contains library source intended for building other packages which use the "logging" feature of the "%{crate}" crate. %files -n %{name}+logging-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mem-fs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mem-fs-devel %{_description} This package contains library source intended for building other packages which use the "mem-fs" feature of the "%{crate}" crate. %files -n %{name}+mem-fs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sys-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sys-devel %{_description} This package contains library source intended for building other packages which use the "sys" feature of the "%{crate}" crate. %files -n %{name}+sys-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sys-default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sys-default-devel %{_description} This package contains library source intended for building other packages which use the "sys-default" feature of the "%{crate}" crate. %files -n %{name}+sys-default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+test-js-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+test-js-devel %{_description} This package contains library source intended for building other packages which use the "test-js" feature of the "%{crate}" crate. %files -n %{name}+test-js-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+typetag-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+typetag-devel %{_description} This package contains library source intended for building other packages which use the "typetag" feature of the "%{crate}" crate. %files -n %{name}+typetag-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install # FIXME: install shared library %if %{with check} %check %cargo_test %endif %changelog %autochangelog