# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate reqwest-middleware Name: rust-reqwest-middleware Version: 0.3.0 Release: %autorelease Summary: Wrapper around reqwest to allow for client middleware chains License: MIT OR Apache-2.0 URL: https://crates.io/crates/reqwest-middleware Source: %{crates_source} # # * Fix missing LICENSE-* files in released crates # # * https://github.com/TrueLayer/reqwest-middleware/pull/147 Source10: https://github.com/TrueLayer/reqwest-middleware/raw/%{crate}-v%{version}/LICENSE-APACHE # # * Fix missing LICENSE-* files in released crates # # * https://github.com/TrueLayer/reqwest-middleware/pull/147 Source11: https://github.com/TrueLayer/reqwest-middleware/raw/%{crate}-v%{version}/LICENSE-MIT # # * Downstream-only: do not attempt to run doctests from README.md # # * This file is not distributed in the crate. Patch10: 0001-Downstream-only-do-not-attempt-to-run-doctests-from-.patch BuildRequires: cargo-rpm-macros >= 24 # Do downstream crate metadata changes programmatically in %%prep. Since %%prep # runs before %%generate_buildrequires, we must add the following manually # rather than generating a dynamic BuildRequires via rust2rpm.toml. BuildRequires: tomcli %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 LICENSE-APACHE 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}+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 %prep %autosetup -n %{crate}-%{version} -p2 cp -p '%{SOURCE10}' '%{SOURCE11}' . %cargo_prep # Tests shipped in the crate do not use wiremock. tomcli set Cargo.toml del dev-dependencies.wiremock %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog