# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate mlua-sys Name: rust-mlua-sys Version: 0.9.0 Release: %autorelease Summary: Low level License: MIT URL: https://crates.io/crates/mlua-sys Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Low level (FFI) bindings to Lua 5.4/5.3/5.2/5.1 (including LuaJIT) and Luau.} %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 # 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}+external-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+external-devel %{_description} This package contains library source intended for building other packages which use the "external" feature of the "%{crate}" crate. %files -n %{name}+external-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+lua-src-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+lua-src-devel %{_description} This package contains library source intended for building other packages which use the "lua-src" feature of the "%{crate}" crate. %files -n %{name}+lua-src-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}+luajit-src-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+luajit-src-devel %{_description} This package contains library source intended for building other packages which use the "luajit-src" feature of the "%{crate}" crate. %files -n %{name}+luajit-src-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+luajit52-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+luajit52-devel %{_description} This package contains library source intended for building other packages which use the "luajit52" feature of the "%{crate}" crate. %files -n %{name}+luajit52-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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog