File bashtop.spec of Package bashtop
#
# spec file for package bashtop
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define skip_python2 1
Name: bashtop
Version: 0.9.25
Release: 0
Summary: Linux resource monitor
License: Apache-2.0
URL: https://github.com/aristocratos/bashtop
Source: https://github.com/aristocratos/bashtop/archive/v%{version}/%{name}-%{version}.tar.gz
Patch: bashtop-themes.patch
Requires: bash >= 4.4
Recommends: sensors
BuildArch: noarch
BuildRequires: %{python_module psutil >= 5.7.0}
Requires: python3 >= 3.6
Requires: python3-psutil >= 5.7.0
Recommends: sensors
Recommends: sysstat
Recommends: curl >= 7.16.2
Recommends: grep
Recommends: awk
Recommends: procps >= 3.1.15
%description
Resource monitor that shows usage and stats for processor, memory, disks, network and processes.
%prep
%autosetup -p1
%build
%install
%__install -Dpm 755 %{name} %{buildroot}/%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -arf ./themes %{buildroot}%{_datadir}/%{name}/
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/%{name}/
%changelog