# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate expectrl Name: rust-expectrl Version: 0.7.0 Release: %autorelease Summary: Tool for automating terminal applications in Unix like Don libes expect License: MIT URL: https://crates.io/crates/expectrl Source: %{crates_source} # Automatically generated patch to strip foreign dependencies Patch: expectrl-fix-metadata-auto.diff BuildRequires: rust-packaging >= 21 BuildRequires: python Requires: python %global _description %{expand: A tool for automating terminal applications in Unix like Don libes expect.} %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}/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}+async-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-devel %{_description} This package contains library source intended for building other packages which use the "async" feature of the "%{crate}" crate. %files -n %{name}+async-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-io-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-io-devel %{_description} This package contains library source intended for building other packages which use the "async-io" feature of the "%{crate}" crate. %files -n %{name}+async-io-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-lite-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-lite-devel %{_description} This package contains library source intended for building other packages which use the "futures-lite" feature of the "%{crate}" crate. %files -n %{name}+futures-lite-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-timer-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-timer-devel %{_description} This package contains library source intended for building other packages which use the "futures-timer" feature of the "%{crate}" crate. %files -n %{name}+futures-timer-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+polling-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+polling-devel %{_description} This package contains library source intended for building other packages which use the "polling" feature of the "%{crate}" crate. %files -n %{name}+polling-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 #command -v python command -v python3 %cargo_test %endif %changelog %autochangelog