%global debug_package %{nil} %global crate hyperfine Name: rust-%{crate} Version: 1.9.0 Release: 1%{?dist} Summary: Command-line benchmarking tool License: MIT or ASL 2.0 URL: https://github.com/sharkdp/hyperfine Source0: %{url}/archive/v%{version}/%{crate}-%{version}.tar.gz ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # Fix warning: Could not complete Guile gdb module initialization from: # /usr/share/gdb/guile/gdb/boot.scm BuildRequires: gdb-headless %description Command-line benchmarking tool. %prep %autosetup -n %{crate}-%{version} %build cargo build --release --locked %install cargo install --root=%{buildroot}%{_prefix} --path=. --locked rm -f %{buildroot}%{_prefix}/.crates.toml %{buildroot}%{_prefix}/.crates2.json %files %doc README.md %license LICENSE-APACHE LICENSE-MIT %{_bindir}/%{crate} %changelog * Mon Mar 16 2020 ElXreno - Initial packaging