# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate corosensei Name: rust-corosensei Version: 0.1.4 Release: %autorelease Summary: Fast and safe implementation of stackful coroutines License: MIT OR Apache-2.0 URL: https://crates.io/crates/corosensei Source: %{crates_source} # Automatically generated patch to strip foreign dependencies Patch: corosensei-fix-metadata-auto.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: A fast and safe implementation of stackful coroutines.} %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-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGELOG.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}+asm-unwind-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+asm-unwind-devel %{_description} This package contains library source intended for building other packages which use the "asm-unwind" feature of the "%{crate}" crate. %files -n %{name}+asm-unwind-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+default-stack-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-stack-devel %{_description} This package contains library source intended for building other packages which use the "default-stack" feature of the "%{crate}" crate. %files -n %{name}+default-stack-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+libc-devel %{_description} This package contains library source intended for building other packages which use the "libc" feature of the "%{crate}" crate. %files -n %{name}+libc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unwind-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unwind-devel %{_description} This package contains library source intended for building other packages which use the "unwind" feature of the "%{crate}" crate. %files -n %{name}+unwind-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 %if %{with check} %check %cargo_test %endif %changelog %autochangelog