# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate reqsign-http-send-reqwest Name: rust-reqsign-http-send-reqwest Version: 1.0.0 Release: %autorelease Summary: Signing API requests without effort License: Apache-2.0 URL: https://crates.io/crates/reqsign-http-send-reqwest Source: %{crates_source} # * Fix license files missing from published crates # * https://github.com/apache/opendal-reqsign/pull/635 Source10: https://github.com/apache/opendal-reqsign/raw/refs/tags/v0.17.0/LICENSE # Manually created patch for downstream crate metadata changes # * Add a dev-dependency on reqwest with the default-tls feature added, so that # we can successfully compile the custom_client example; see # https://github.com/apache/opendal-reqsign/issues/636, where the issue was # reported and this approach was suggested upstream. Patch: reqsign-http-send-reqwest-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Signing API requests without effort.} %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 %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 # Copy the license file into the source. cp -p '%{SOURCE10}' . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog