# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate tokio-serde Name: rust-tokio-serde Version: 0.8.0 Release: %autorelease Summary: Send and receive Serde encodable types over the network using Tokio License: MIT OR Apache-2.0 URL: https://crates.io/crates/tokio-serde Source: %{crates_source} # Manually created patch for downstream crate metadata changes Patch: tokio-serde-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Send and receive Serde encodable types over the network using Tokio. This library is used as a building block for serialization format specific libraries.} %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}/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}+bincode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bincode-devel %{_description} This package contains library source intended for building other packages which use the "bincode" feature of the "%{crate}" crate. %files -n %{name}+bincode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bincode-crate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bincode-crate-devel %{_description} This package contains library source intended for building other packages which use the "bincode-crate" feature of the "%{crate}" crate. %files -n %{name}+bincode-crate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cbor-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cbor-devel %{_description} This package contains library source intended for building other packages which use the "cbor" feature of the "%{crate}" crate. %files -n %{name}+cbor-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+educe-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+educe-devel %{_description} This package contains library source intended for building other packages which use the "educe" feature of the "%{crate}" crate. %files -n %{name}+educe-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+json-devel %{_description} This package contains library source intended for building other packages which use the "json" feature of the "%{crate}" crate. %files -n %{name}+json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+messagepack-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+messagepack-devel %{_description} This package contains library source intended for building other packages which use the "messagepack" feature of the "%{crate}" crate. %files -n %{name}+messagepack-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rmp-serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rmp-serde-devel %{_description} This package contains library source intended for building other packages which use the "rmp-serde" feature of the "%{crate}" crate. %files -n %{name}+rmp-serde-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}+serde_cbor-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_cbor-devel %{_description} This package contains library source intended for building other packages which use the "serde_cbor" feature of the "%{crate}" crate. %files -n %{name}+serde_cbor-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde_json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_json-devel %{_description} This package contains library source intended for building other packages which use the "serde_json" feature of the "%{crate}" crate. %files -n %{name}+serde_json-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