nvtop/nvtop.spec

54 lines
1.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nvtop
#
# Copyright (c) 2020-2022 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: nvtop
Version: 2.0.3+3
Release: 0
License: GPL-3.0+
Summary: A (h)top like task monitor for NVIDIA and AMD GPUs
Url: https://github.com/Syllo/nvtop
Source0: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(ncurses)
%description
Nvtop stands for NVidia 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
%build
%cmake -DCMAKE_BUILD_TYPE=Release \
-DNVML_RETRIEVE_HEADER_ONLINE=True
make %{?_smp_mflags}
%install
%cmake_install
%files
%license COPYING
%{_bindir}/nvtop
%{_mandir}/man1/nvtop.1%{?ext_man}
%changelog