# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate astral-reqwest-middleware Name: rust-astral-reqwest-middleware Version: 0.4.2 Release: %autorelease Summary: Wrapper around reqwest to allow for client middleware chains License: MIT OR Apache-2.0 URL: https://crates.io/crates/astral-reqwest-middleware Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Remove tokio and wiremock dev-dependencies, not used by tests in the crate Patch: astral-reqwest-middleware-fix-metadata.diff # * Downstream-only: do not attempt to run doctests from README.md # * These would introduce a circular dependency on the reqwest-retry crate. # Omitting the README tests avoids a bootstrapping loop between the two # packages. # * Note that if we *did* run these tests, we would need to adjust the path from # ../../README.md to ../README.md to match the published crate. Patch10: 0001-Downstream-only-do-not-attempt-to-run-doctests-from-.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Wrapper around reqwest to allow for client middleware chains.} %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}+charset-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+charset-devel %{_description} This package contains library source intended for building other packages which use the "charset" feature of the "%{crate}" crate. %files -n %{name}+charset-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+http2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+http2-devel %{_description} This package contains library source intended for building other packages which use the "http2" feature of the "%{crate}" crate. %files -n %{name}+http2-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}+multipart-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+multipart-devel %{_description} This package contains library source intended for building other packages which use the "multipart" feature of the "%{crate}" crate. %files -n %{name}+multipart-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustls-tls-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustls-tls-devel %{_description} This package contains library source intended for building other packages which use the "rustls-tls" feature of the "%{crate}" crate. %files -n %{name}+rustls-tls-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