# Generated by rust2rpm 26 # * It is not practical to run the tests: # * - wiremock is unpackaged, and requires many other unpackaged crates %bcond_with check %global debug_package %{nil} %global crate reqwest-retry Name: rust-reqwest-retry Version: 0.5.0 Release: %autorelease Summary: Retry middleware for reqwest License: MIT OR Apache-2.0 URL: https://crates.io/crates/reqwest-retry 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 # Automatically generated patch to strip dependencies and normalize metadata Patch: reqwest-retry-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Retry middleware for reqwest.} %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}/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 %prep %autosetup -n %{crate}-%{version} -p1 cp -p '%{SOURCE10}' '%{SOURCE11}' . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog