# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate aws-smithy-types Name: rust-aws-smithy-types Version: 1.3.4 Release: %autorelease Summary: Types for smithy-rs codegen License: Apache-2.0 URL: https://crates.io/crates/aws-smithy-types Source: aws-smithy-types-1.3.4.crate # Automatically generated patch to strip dependencies and normalize metadata Patch: aws-smithy-types-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * relax chrono-tz dependency from 0.1 to >=0.1,<0.3 # * drop criterion dependency Patch: aws-smithy-types-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Types for smithy-rs codegen.} %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}+byte-stream-poll-next-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+byte-stream-poll-next-devel %{_description} This package contains library source intended for building other packages which use the "byte-stream-poll-next" feature of the "%{crate}" crate. %files -n %{name}+byte-stream-poll-next-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+http-body-0-4-x-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+http-body-0-4-x-devel %{_description} This package contains library source intended for building other packages which use the "http-body-0-4-x" feature of the "%{crate}" crate. %files -n %{name}+http-body-0-4-x-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+http-body-1-x-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+http-body-1-x-devel %{_description} This package contains library source intended for building other packages which use the "http-body-1-x" feature of the "%{crate}" crate. %files -n %{name}+http-body-1-x-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hyper-0-14-x-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hyper-0-14-x-devel %{_description} This package contains library source intended for building other packages which use the "hyper-0-14-x" feature of the "%{crate}" crate. %files -n %{name}+hyper-0-14-x-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rt-tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rt-tokio-devel %{_description} This package contains library source intended for building other packages which use the "rt-tokio" feature of the "%{crate}" crate. %files -n %{name}+rt-tokio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-deserialize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-deserialize-devel %{_description} This package contains library source intended for building other packages which use the "serde-deserialize" feature of the "%{crate}" crate. %files -n %{name}+serde-deserialize-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-serialize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-serialize-devel %{_description} This package contains library source intended for building other packages which use the "serde-serialize" feature of the "%{crate}" crate. %files -n %{name}+serde-serialize-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+test-util-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+test-util-devel %{_description} This package contains library source intended for building other packages which use the "test-util" feature of the "%{crate}" crate. %files -n %{name}+test-util-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n aws-smithy-types-1.3.4 -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog