# Generated by rust2rpm 28 %bcond check 1 %global crate hyperfine %global _trivial .0 %global _buildid .1 %global __brp_mangle_shebangs /usr/bin/true Name: rust-hyperfine Version: 1.20.0 Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Command-line benchmarking tool License: MIT OR Apache-2.0 URL: https://crates.io/crates/hyperfine Source: %{name}-%{version}-processed.tar.gz # Manually created patch for downstream crate metadata changes # * Relax indicatif dependency from =0.17.4 to >=0.17.4,<0.19.0. Note that there # are issues with ETA estimation for long-running benchmarks since indicatif # 0.17.5, which is why upstream pinned 0.17.4, but we cannot respect that pin. # This adjustment remains downstream-only for the same reason. See # https://github.com/console-rs/indicatif/issues/580 and # https://github.com/sharkdp/hyperfine/issues/670. BuildRequires: rust-toolset BuildRequires: openssl-devel %global _description %{expand: A command-line benchmarking tool.} %description %{_description} %package -n %{crate} Summary: %{summary} # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # MPL-2.0 # Unlicense OR MIT License: %{shrink: (MIT OR Apache-2.0) AND MIT AND MPL-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %{_bindir}/hyperfine %{_mandir}/man1/hyperfine.1* %{bash_completions_dir}/hyperfine.bash %{fish_completions_dir}/hyperfine.fish %{zsh_completions_dir}/_hyperfine %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep -v vendor %build export OPENSSL_NO_VENDOR=1 %cargo_build %{cargo_license_summary} %{cargo_vendor_manifest} %{cargo_license} > LICENSE.dependencies %install %cargo_install # install manpage install -Dpm 0644 doc/hyperfine.1 -t %{buildroot}/%{_mandir}/man1 # install shell completions install -Dpm 0644 "$(ls target/release/build/%{crate}-*/out/hyperfine.bash 2>/dev/null|head -1)" \ %{buildroot}/%{bash_completions_dir}/hyperfine.bash install -Dpm 0644 "$(ls target/release/build/%{crate}-*/out/hyperfine.fish 2>/dev/null|head -1)" \ %{buildroot}/%{fish_completions_dir}/hyperfine.fish install -Dpm 0644 "$(ls target/release/build/%{crate}-*/out/_hyperfine 2>/dev/null|head -1)" \ %{buildroot}/%{zsh_completions_dir}/_hyperfine %if %{with check} %check %cargo_test %endif %changelog * Fri Jul 03 2026 AL2023 rebuild - %{version}-1 - AL2023 rust-toolset vendored build