%global debug_package %{nil} Name: ytop Version: 0.6.2 Release: 1%{?dist} Summary: TUI system monitor written in Rust License: MIT URL: https://github.com/cjbassi/ytop Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz %if 0%{?el8} %else BuildRequires: cargo >= 1.40 BuildRequires: rust >= 1.40 %endif %description Another TUI based system monitor, this time in Rust! %prep %autosetup -p1 %if 0%{?el8} curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y %endif %install %if 0%{?el8} $HOME/.cargo/bin/cargo install --root=%{buildroot}%{_prefix} --path=. %else cargo install --root=%{buildroot}%{_prefix} --path=. %endif rm -f %{buildroot}%{_prefix}/.crates.toml \ %{buildroot}%{_prefix}/.crates2.json strip --strip-all %{buildroot}%{_bindir}/* %files %license LICENSE %doc README.md CHANGELOG.md %{_bindir}/%{name} %changelog * Sun May 17 2020 Artem Polishchuk - 0.6.2-1 - Update to 0.6.2 * Mon May 11 2020 Artem Polishchuk - 0.6.1-1 - Update to 0.6.1 * Wed Apr 22 2020 Artem Polishchuk - 0.6.0-1 - Update to 0.6.0 * Fri Mar 20 2020 Artem Polishchuk - 0.5.1-1 - Initial package