# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate deadpool Name: rust-deadpool Version: 0.12.2 Release: %autorelease Summary: Dead simple async pool License: MIT OR Apache-2.0 URL: https://crates.io/crates/deadpool Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Omit benchmark-only criterion dev-dependency # * Omit deprecated async-std dev-dependency # * Omit config dev-dependency; it is required only for a single test, which is # not even compiled unless we build and run tests with both the managed and # serde features. (Only managed is a default feature.) # * Exclude the test-build.sh shell script to avoid generating an # otherwise-unnecessary dependency on the bash shell. Patch: deadpool-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Dead simple async pool.} %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}+managed-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+managed-devel %{_description} This package contains library source intended for building other packages which use the "managed" feature of the "%{crate}" crate. %files -n %{name}+managed-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rt_tokio_1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rt_tokio_1-devel %{_description} This package contains library source intended for building other packages which use the "rt_tokio_1" feature of the "%{crate}" crate. %files -n %{name}+rt_tokio_1-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}+unmanaged-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unmanaged-devel %{_description} This package contains library source intended for building other packages which use the "unmanaged" feature of the "%{crate}" crate. %files -n %{name}+unmanaged-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