## 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 reqsign-aws-v4 Name: rust-reqsign-aws-v4 Version: 3.0.0 Release: %autorelease Summary: AWS SigV4 signing implementation for reqsign License: Apache-2.0 URL: https://crates.io/crates/reqsign-aws-v4 Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Patch out benchmark-only criterion dev-dependency # * Patch out dev-dependencies on aws-sig4 and aws-credential-types since we do # not want to package them; these are used only for benchmarks and for one # group of tests. Patch: reqsign-aws-v4-fix-metadata.diff # * Downstream-only: avoid a dev-dependency on aws-sigv4 and # aws-credential-types Patch10: reqsign-aws-v4-2.0.0-unwanted-dev-deps.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: python3-devel %global _description %{expand: AWS SigV4 signing implementation for reqsign.} %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 # Fix Python shebangs for mock servers that are installed with tests. %{py3_shebang_fix} tests/mocks # Only credential_process_helper.py is used during the tests. Others do not # even have executable permissions; their shebangs are useless, so remove them. find tests/mocks -type f ! -executable -exec sed -r -i '1{/^#!/d}' '{}' '+' %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install # Remove shebang and unset execute bit on credential_process_helper.py to avoid # generating a dependency on the python3 interpreter; we needed these for # running the crate’s tests, but not for building the crate as a dependency. find %{buildroot}%{crate_instdir}/tests/mocks -type f -executable \ -exec chmod -v a-x '{}' '+' -exec sed -r -i '1{/^#!/d}' '{}' '+' %if %{with check} %check export PYTHONDONTWRITEBYTECODE=1 %cargo_test %endif %changelog ## START: Generated by rpmautospec * Tue Mar 24 2026 Benjamin A. Beasley - 3.0.0-1 - Update to version 3.0.0; Fixes RHBZ#2432776 * Sat Jan 17 2026 Fedora Release Engineering - 2.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Wed Nov 05 2025 Benjamin A. Beasley - 2.0.1-1 - Update to version 2.0.1; Fixes RHBZ#2411980 * Thu Oct 23 2025 Benjamin A. Beasley - 2.0.0-1 - Update to version 2.0.0 * Sat Oct 11 2025 Benjamin A. Beasley - 1.0.0-1 - Initial package (close RHBZ#2400195) ## END: Generated by rpmautospec