# Generated by rust2rpm %bcond_without check %global __cargo_skip_build 0 Name: ytop Version: 0.5.1 Release: 1%{?dist} Summary: TUI system monitor written in Rust # Upstream license specification: MIT # Install all deps (without check), grab their licenses and make it simple # * ASL 2.0 or Boost # * ASL 2.0 or MIT # * MIT # * MIT or ASL 2.0 # * (MIT or ASL 2.0) and BSD License: MIT and BSD and (ASL 2.0 or Boost) URL: https://github.com/cjbassi/ytop Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %description %{summary}. %prep %autosetup -p1 # https://github.com/rust-psutil/rust-psutil/issues/75 sed -i \ -e 's/^psutil = .*/psutil = "3.0.1"/' \ -e 's/^tui = .*/tui = { version = "0.8.0", default-features = false, features = ["crossterm"] }/' \ -e 's/^crossterm = .*/crossterm = "0.16"/' \ Cargo.toml cat Cargo.toml %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files %license LICENSE %doc README.md CHANGELOG.md %{_bindir}/ytop %changelog * Wed Mar 18 20:34:56 CET 2020 Igor Raits - 0.5.1-1 - Initial package