# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate mlua Name: rust-mlua Version: 0.11.5 Release: %autorelease Summary: High level bindings to Lua 5.4/5.3/5.2/5.1 License: MIT URL: https://crates.io/crates/mlua Source: %{crates_source} # Manually created patch for downstream crate metadata changes Patch: mlua-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: High level bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT) and Luau with async/await features and support of writing native Lua modules in Rust.} %description %{_description} %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 %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/FAQ.md %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}+anyhow-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+anyhow-devel %{_description} This package contains library source intended for building other packages which use the "anyhow" feature of the "%{crate}" crate. %files -n %{name}+anyhow-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+error-send-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+error-send-devel %{_description} This package contains library source intended for building other packages which use the "error-send" feature of the "%{crate}" crate. %files -n %{name}+error-send-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+luajit-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+luajit-devel %{_description} This package contains library source intended for building other packages which use the "luajit" feature of the "%{crate}" crate. %files -n %{name}+luajit-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+macros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+macros-devel %{_description} This package contains library source intended for building other packages which use the "macros" feature of the "%{crate}" crate. %files -n %{name}+macros-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mlua_derive-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mlua_derive-devel %{_description} This package contains library source intended for building other packages which use the "mlua_derive" feature of the "%{crate}" crate. %files -n %{name}+mlua_derive-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+module-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+module-devel %{_description} This package contains library source intended for building other packages which use the "module" feature of the "%{crate}" crate. %files -n %{name}+module-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+send-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+send-devel %{_description} This package contains library source intended for building other packages which use the "send" feature of the "%{crate}" crate. %files -n %{name}+send-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}+serialize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serialize-devel %{_description} This package contains library source intended for building other packages which use the "serialize" feature of the "%{crate}" crate. %files -n %{name}+serialize-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+userdata-wrappers-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+userdata-wrappers-devel %{_description} This package contains library source intended for building other packages which use the "userdata-wrappers" feature of the "%{crate}" crate. %files -n %{name}+userdata-wrappers-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f error-send,luajit,macros,mlua_derive,module,send,serde,serialize,userdata-wrappers %build %cargo_build -f error-send,luajit,macros,mlua_derive,module,send,serde,serialize,userdata-wrappers %install %cargo_install -f error-send,luajit,macros,mlua_derive,module,send,serde,serialize,userdata-wrappers %if %{with check} %check %cargo_test -f error-send,luajit,macros,mlua_derive,module,send,serde,serialize,userdata-wrappers %endif %changelog %autochangelog