Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Michel Alexandre Salim | 4c479e920d | |
Michel Alexandre Salim | 2ff29170be |
|
@ -5,3 +5,4 @@
|
||||||
/hyperfine-1.11.0.crate
|
/hyperfine-1.11.0.crate
|
||||||
/hyperfine-1.12.0.crate
|
/hyperfine-1.12.0.crate
|
||||||
/hyperfine-1.14.0.crate
|
/hyperfine-1.14.0.crate
|
||||||
|
/hyperfine-1.14.0-vendor.tar.xz
|
||||||
|
|
|
@ -3,6 +3,13 @@
|
||||||
|
|
||||||
%global crate hyperfine
|
%global crate hyperfine
|
||||||
|
|
||||||
|
%if 0%{?el8}
|
||||||
|
# el8 doesn't have these macros
|
||||||
|
%global __crates_url https://crates.io/api/v1/crates/
|
||||||
|
%global crates_source %{__crates_url}%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
||||||
|
%global version_no_tilde %{version}
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: rust-hyperfine
|
Name: rust-hyperfine
|
||||||
Version: 1.14.0
|
Version: 1.14.0
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
|
@ -13,12 +20,18 @@ License: MIT OR Apache-2.0
|
||||||
URL: https://crates.io/crates/hyperfine
|
URL: https://crates.io/crates/hyperfine
|
||||||
Source0: %{crates_source}
|
Source0: %{crates_source}
|
||||||
Source1: LICENSE.dependencies
|
Source1: LICENSE.dependencies
|
||||||
|
# vendored dependencies for EPEL
|
||||||
|
Source100: %{crate}-%{version}-vendor.tar.xz
|
||||||
# Automatically generated patch to strip foreign dependencies
|
# Automatically generated patch to strip foreign dependencies
|
||||||
Patch: hyperfine-fix-metadata-auto.diff
|
Patch: hyperfine-fix-metadata-auto.diff
|
||||||
|
|
||||||
ExclusiveArch: %{rust_arches}
|
ExclusiveArch: %{rust_arches}
|
||||||
|
|
||||||
|
%if 0%{?el8}
|
||||||
|
BuildRequires: rust-toolset
|
||||||
|
%else
|
||||||
BuildRequires: rust-packaging >= 21
|
BuildRequires: rust-packaging >= 21
|
||||||
|
%endif
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
Command-line benchmarking tool.}
|
Command-line benchmarking tool.}
|
||||||
|
@ -59,10 +72,14 @@ License: MIT AND MPL-2.0 AND (Apache-2.0 OR BSL-1.0)
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
|
%if 0%{?el8}
|
||||||
|
%cargo_prep -V 100
|
||||||
|
%else
|
||||||
%cargo_prep
|
%cargo_prep
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%cargo_generate_buildrequires
|
%cargo_generate_buildrequires
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cargo_build
|
%cargo_build
|
||||||
|
|
1
sources
1
sources
|
@ -1 +1,2 @@
|
||||||
SHA512 (hyperfine-1.14.0.crate) = e82a0c516663b6d78183d13606a18eed98bbb05f8145c3e93361510303991a34cfd27e1d570621ead61684bde9bc0fd7c472111c2c974f330fc06f27d83de169
|
SHA512 (hyperfine-1.14.0.crate) = e82a0c516663b6d78183d13606a18eed98bbb05f8145c3e93361510303991a34cfd27e1d570621ead61684bde9bc0fd7c472111c2c974f330fc06f27d83de169
|
||||||
|
SHA512 (hyperfine-1.14.0-vendor.tar.xz) = 6b021ddb3c0e6874e46390da8e5d6f973b7827e5e68a21d8745f29a28dbf91be610592a1ec8e1e81dac1a15393ccc465c26a1685f52d924b636b6cc43d08a8fe
|
||||||
|
|
Loading…
Reference in New Issue