Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37851999
en ru br
ALT Linux repos
S:3.0.2-alt1

Group :: Monitoring
RPM: nvtop

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define build_type RelWithDebInfo
%define _cmake %cmake -DCMAKE_BUILD_TYPE=%build_type
%define _unpackaged_files_terminate_build 1
%define git 04721e3

Name: nvtop
Version: 3.0.1
Release: alt3.g%{git}

Summary: (h)top like task monitor for AMD, Intel and Nvidia GPUs
Group: Monitoring
License: GPLv3
Url: https://github.com/Syllo/nvtop

Packager: L.A. Kostis <lakostis at altlinux.org>

Source: %name-%version.tar
Patch: %name-%version-%release.patch

BuildRequires(pre): cmake
BuildRequires: gcc-c++ libsystemd-devel libudev-devel libdrm-devel libncurses-devel

# nvidia gpu information rely on libnvidia-ml library

%ifarch %ix86 x86_64 aarch64
Requires: libnvidia-ml
%endif

%description
Nvtop stands for Neat Videocard TOP, a (h)top like task monitor for AMD, Intel
and NVIDIA GPUs. It can handle multiple GPUs and print information about them in
a htop familiar way.

%prep
%setup
%patch -p1

%build
%_cmake \
%ifarch %ix86 x86_64 aarch64
-DNVIDIA_SUPPORT=ON \
%else
-DNVIDIA_SUPPORT=OFF \
%endif
-DAMDGPU_SUPPORT=ON \
-DINTEL_SUPPORT=ON
%cmake_build
%cmake_install

%files
%doc README.* COPYING
%_bindir/%name
%_man1dir/%name.*
%_iconsdir/%name.svg
%_desktopdir/%name.desktop
%_datadir/metainfo/%name.metainfo.xml

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin