## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate astral-reqwest-middleware Name: rust-astral-reqwest-middleware Version: 0.5.1 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}+form-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+form-devel %{_description} This package contains library source intended for building other packages which use the "form" feature of the "%{crate}" crate. %files -n %{name}+form-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}+query-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+query-devel %{_description} This package contains library source intended for building other packages which use the "query" feature of the "%{crate}" crate. %files -n %{name}+query-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustls-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustls-devel %{_description} This package contains library source intended for building other packages which use the "rustls" feature of the "%{crate}" crate. %files -n %{name}+rustls-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 ## START: Generated by rpmautospec * Tue Feb 10 2026 Benjamin A. Beasley - 0.5.1-1 - Update to version 0.5.1; Fixes RHBZ#2437941 * Sat Jan 17 2026 Fedora Release Engineering - 0.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Sat Nov 22 2025 Benjamin A. Beasley - 0.4.2-1 - Initial package (close RHBZ#2415168) ## END: Generated by rpmautospec