|
|
@ -1,37 +1,20 @@
|
|
|
|
# Generated by rust2rpm 18
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global crate rd-hashd
|
|
|
|
%global crate rd-hashd
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
Name: rust-rd-hashd
|
|
|
|
# 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-%{crate}
|
|
|
|
|
|
|
|
Version: 2.1.2
|
|
|
|
Version: 2.1.2
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Latency-sensitive pseudo workload for resctl-demo
|
|
|
|
Summary: Latency-sensitive pseudo workload for resctl-demo
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: Apache-2.0
|
|
|
|
License: Apache-2.0
|
|
|
|
License: ASL 2.0 and BSD and MIT
|
|
|
|
|
|
|
|
URL: https://crates.io/crates/rd-hashd
|
|
|
|
URL: https://crates.io/crates/rd-hashd
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Vendored dependencies for EPEL, update with ./update-vendor-tarball.sh
|
|
|
|
|
|
|
|
Source1: %{crate}-%{version}-vendor.tar.gz
|
|
|
|
|
|
|
|
# hashd: build fix for 32bit archs
|
|
|
|
# hashd: build fix for 32bit archs
|
|
|
|
Patch0: https://github.com/facebookexperimental/resctl-demo/commit/dbe5735bdf005a24e54dd19559016a59f6f43536.patch
|
|
|
|
Patch0: https://github.com/facebookexperimental/resctl-demo/commit/dbe5735bdf005a24e54dd19559016a59f6f43536.patch
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging >= 23
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
|
|
|
BuildRequires: rust-toolset
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Latency-sensitive pseudo workload for resctl-demo.}
|
|
|
|
Latency-sensitive pseudo workload for resctl-demo.}
|
|
|
@ -40,27 +23,35 @@ Latency-sensitive pseudo workload for resctl-demo.}
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
|
|
|
|
|
|
|
|
# Apache-2.0
|
|
|
|
|
|
|
|
# Apache-2.0 OR BSL-1.0
|
|
|
|
|
|
|
|
# BSD-3-Clause
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
|
|
|
|
# MIT OR Apache-2.0
|
|
|
|
|
|
|
|
# Unlicense OR MIT
|
|
|
|
|
|
|
|
License: Apache-2.0 AND BSD-3-Clause AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (MIT OR Apache-2.0) AND (Unlicense OR MIT)
|
|
|
|
|
|
|
|
# LICENSE.dependencies contains a full license breakdown
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%license LICENSE.dependencies
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/rd-hashd
|
|
|
|
%{_bindir}/rd-hashd
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p2
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p2
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
|
|
|
%cargo_prep -V 1
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%{cargo_license_summary}
|
|
|
|
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
%cargo_install
|
|
|
|