%global commit a38d34f15a3b79ee44b2c6f7c2e168bacdeabe35 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global date 20220416 %global with_snapshot 0 %if 0%{?with_snapshot} %global gver .%{date}git%{shortcommit} %endif Name: nvtop Version: 3.1.0 Release: 1%{?dist} Summary: AMD and NVIDIA GPUs htop like monitoring tool License: GPLv3 URL: https://github.com/Syllo/%{name} %if 0%{?with_snapshot} Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz %endif BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: pkgconfig(libdrm) >= 2.4.110 BuildRequires: pkgconfig(ncursesw) BuildRequires: libdrm-devel systemd-devel BuildRequires: desktop-file-utils BuildRequires: libappstream-glib %description Nvtop stands for Neat Videocard TOP, a (h)top like task monitor for AMD and NVIDIA GPUs. It can handle multiple GPUs and print information about them in a htop familiar way. %prep %autosetup %{?gver:-n %{name}-%{commit}} -p1 %build %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DNVIDIA_SUPPORT=ON -DAMDGPU_SUPPORT=ON -DINTEL_SUPPORT=ON %cmake_build %install %cmake_install %files %license COPYING %doc README.markdown %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %{_datadir}/icons/%{name}.svg %{_datadir}/applications/%{name}.desktop %{_metainfodir}/%{name}.metainfo.xml %changelog * Fri Feb 23 2024 Christian Birk - 3.1.0-1 - new version * Sun Jun 11 2023 Christian Birk - 3.0.2-1 - new version * Sun Nov 06 2022 Christian Birk - 3.0.1-1 - new version * Sun Oct 23 2022 Christian Birk - 3.0.0-1 - new version * Sun Jun 12 2022 Phantom X - 2.0.2-1 - 2.0.2 * Sat Apr 16 2022 Phantom X - 2.0.1-1 - Initial spec