parent
bb305cdf09
commit
cd5172d56f
@ -0,0 +1 @@
|
||||
/resctl-demo-2.1.2.crate
|
@ -0,0 +1,60 @@
|
||||
# Generated by rust2rpm 18
|
||||
%bcond_without check
|
||||
%global __cargo_skip_build 0
|
||||
|
||||
%global crate resctl-demo
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 2.1.2
|
||||
Release: %autorelease
|
||||
Summary: Guided tour of Linux resource control with live demos
|
||||
|
||||
# Upstream license specification: Apache-2.0
|
||||
License: ASL 2.0 and BSD and MIT
|
||||
URL: https://crates.io/crates/resctl-demo
|
||||
Source: %{crates_source}
|
||||
|
||||
ExclusiveArch: %{rust_arches}
|
||||
|
||||
BuildRequires: rust-packaging
|
||||
|
||||
%global _description %{expand:
|
||||
resctl-demo demonstrates and documents various aspects of resource control
|
||||
using self-contained workloads in guided scenarios.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n %{crate}
|
||||
Summary: %{summary}
|
||||
|
||||
Requires: rd-agent = %{version}
|
||||
Requires: rd-hashd = %{version}
|
||||
Requires: gnuplot
|
||||
|
||||
%description -n %{crate} %{_description}
|
||||
|
||||
%files -n %{crate}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/resctl-demo
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%cargo_prep
|
||||
|
||||
%generate_buildrequires
|
||||
%cargo_generate_buildrequires
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
Loading…
Reference in new issue