rust-hyperfine/rust-hyperfine.spec

82 lines
2.6 KiB
RPMSpec
Raw Normal View History

# Generated by rust2rpm 9
%bcond_without check
%global __cargo_skip_build 0
%global crate hyperfine
Name: rust-%{crate}
Version: 1.6.0
Release: 1%{?dist}
Summary: Command-line benchmarking tool
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/hyperfine
Source: %{crates_source}
# Initial patched metadata
# * No windows
Patch0: hyperfine-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(atty/default) >= 0.2.2 with crate(atty/default) < 0.3.0)
BuildRequires: (crate(cfg-if/default) >= 0.1.9 with crate(cfg-if/default) < 0.2.0)
BuildRequires: (crate(clap/color) >= 2.0.0 with crate(clap/color) < 3.0.0)
BuildRequires: (crate(clap/suggestions) >= 2.0.0 with crate(clap/suggestions) < 3.0.0)
BuildRequires: (crate(clap/wrap_help) >= 2.0.0 with crate(clap/wrap_help) < 3.0.0)
BuildRequires: (crate(colored/default) >= 1.8.0 with crate(colored/default) < 2.0.0)
BuildRequires: (crate(csv/default) >= 1.0.7 with crate(csv/default) < 2.0.0)
BuildRequires: (crate(indicatif/default) >= 0.11.0 with crate(indicatif/default) < 0.12.0)
BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
BuildRequires: (crate(serde/default) >= 1.0.92 with crate(serde/default) < 2.0.0)
BuildRequires: (crate(serde/derive) >= 1.0.92 with crate(serde/derive) < 2.0.0)
BuildRequires: (crate(serde_json/default) >= 1.0.39 with crate(serde_json/default) < 2.0.0)
BuildRequires: (crate(statistical/default) >= 1.0.0 with crate(statistical/default) < 2.0.0)
%if %{with check}
BuildRequires: (crate(approx/default) >= 0.3.0 with crate(approx/default) < 0.4.0)
%endif
%global _description %{expand:
Command-line benchmarking tool.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{_bindir}/hyperfine
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Sun Jun 09 13:46:06 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.6.0-1
- Update to 1.6.0
* Sun Feb 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.0-3
- Bump statistical to 1.0
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Jan 28 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.0-1
- Initial package