# Generated by rust2rpm 27 %bcond check 1 %global crate scx_bpfland Name: rust-scx_bpfland Version: 1.0.16 Release: %autorelease Summary: Vruntime-based sched_ext scheduler that prioritizes interactive workloads License: GPL-2.0-only URL: https://crates.io/crates/scx_bpfland Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A vruntime-based sched_ext scheduler that prioritizes interactive workloads. https://github.com/sched-ext/scx/tree/main.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/scx_bpfland %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog