From cd5172d56f93a8d10f83d76e2a421d68166854ed Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Fri, 22 Oct 2021 08:32:22 -0700 Subject: [PATCH] Initial import; Fixes: RHBZ#1997731 --- .gitignore | 1 + rust-resctl-demo.spec | 60 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+) create mode 100644 .gitignore create mode 100644 rust-resctl-demo.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e66f0c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/resctl-demo-2.1.2.crate diff --git a/rust-resctl-demo.spec b/rust-resctl-demo.spec new file mode 100644 index 0000000..47e37f5 --- /dev/null +++ b/rust-resctl-demo.spec @@ -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 diff --git a/sources b/sources new file mode 100644 index 0000000..30e5a48 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (resctl-demo-2.1.2.crate) = 76d7c962aa0611fa1dc750e856499c20b53224078a8ddfe2fe1dc6e580aca6c4147becc45216a19722f8da52959e262271509c44fe2e7582c783cc4005981246