## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## 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 26 %bcond_without check %global debug_package %{nil} %global crate reqwest-middleware Name: rust-reqwest-middleware Version: 0.4.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} # * 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 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 %{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 # 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 ## START: Generated by rpmautospec * Tue Nov 12 2024 Benjamin A. Beasley - 0.4.0-1 - Update to 0.4.0 (close RHBZ#2325329) * Fri Aug 09 2024 Benjamin A. Beasley - 0.3.3-1 - Update to 0.3.3 (close RHBZ#2303840) * Sat Jul 20 2024 Fedora Release Engineering - 0.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 03 2024 Benjamin A. Beasley - 0.3.2-1 - Update to 0.3.2 * Tue May 07 2024 Benjamin A. Beasley - 0.3.1-1 - Update to 0.3.1 (close RHBZ#2279534) * Thu Apr 25 2024 Benjamin A. Beasley - 0.3.0-1 - Initial package (close RHBZ#2276949) ## END: Generated by rpmautospec