%global debug_package %{nil} Name: zenith Version: 0.14.1 Release: 1%{?dist} Summary: Zenith - sort of like top or htop but with zoom-able charts, CPU, GPU, network, and disk usage License: MIT # https://github.com/bvaisvil/zenith/archive/refs/tags/0.14.1.tar.gz URL: https://github.com/bvaisvil/zenith Source0: %{url}/archive/refs/tags/%{version}.tar.gz %if 0%{?el8} %else BuildRequires: cargo >= 1.40 BuildRequires: rust >= 1.40 %endif BuildRequires: gcc BuildRequires: python3-devel BuildRequires: cmake BuildRequires: openssl-devel BuildRequires: perl-devel BuildRequires: openssl-perl BuildRequires: perl-FindBin BuildRequires: perl-IPC-Cmd BuildRequires: clang %description Zenith sort of like top or htop but with zoom-able charts, CPU, GPU, network, and disk usage %prep %autosetup -p1 %if 0%{?el8} curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y %endif %install export CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_OPT_LEVEL=3 mkdir -p %{buildroot}%{_prefix} ls -larth %{buildroot}%{_prefix} %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.md #%doc README.md %{_bindir}/zenith %changelog * Thu May 02 2024 [0.14.1] - Yesss