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/
#
Name: bashtop
Version: 0.9.25
Release: lp152.6.1
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
* Sat Nov 28 2020 ecsos <ecsos@opensuse.org>
- Update to 0.9.25
- Fixed: Crash when using "/proc" data collection and filesystem type is 9p
- For other changes since 0.8.28 please look at github.
- Add missing recommends.
- Rebase bashtop-themes.patch.
* Mon May 11 2020 Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to 0.8.28:
* Fixed: Ctrl-C and Ctrl-Z not registering after change to "dd"
* Added: Option to switch to high resolution graphs
* Added: Current peak value for download/upload graphs
* Fixed: Use value for "Inactive"+"MemFree" if "MemAvailable" is missing in /proc/meminfo
* Added: Option to toggle update check at start
* Fixed: Escaped delimter for sed to fix config not saving "/" character
* Fixed: Detailed process view missing info and slowdown in certain cases
* Optimization: Fork cleanup
* Fixed: Backspace not registering when not set to send ascii delete
* Fixed: Broken cpu temperature graph when is value over cpu high temp
* Added: Possibilty to run date through background fifo for bash <5
* Fixed: Input error freezes, by changing from using "read" command to using "dd" for reading keyboard input.
* Added: Support for Raspberry Pi cpu temperature reporting
* Fixed: Decreased chance of read command stalling on lower spec systems
* Added: Failover to nproc if lscpu are reporting 0 cpu cores
* Changed: Moved page display for options and help to bottom and changed to Page Up/Down for changing page
* Added: Sorting option "tree", shows processes in a tree structure
* Added: Option to toggle process cpu usage per core instead of total available cpu power
* Fixed: Possible fix for stalling read command
* Added: Multiple while loop fail safes
* Fixed: iostat flag compatibility for older iostat versions
* Fixed: possible fix for script stall on bash 4
* Fixed: Update slowdown when not sorting by cpu
* Added: New version desktop notification
* Added: Disks read and write stats, requires new optional dependency "iostat (part of sysstat)"
* Fixed: Ctrl-C not working when showing resize error message
* Fixed: Network download/upload offset auto switched off if /proc/net/dev resets
* Fixed: Removed trailing whitespace in script
* Added: Pagination for help and options windows if items don't fit
* Added: Option to turn off color gradient in process list
* Changed: bash version check to use $BASH_VERSINFO array
* Added: Filter for shown disks
* Added: Option to reset network totals in options menu
* Fixed: Not showing CPU temperatures when "Package" temp is missing
* Added: CPU temperature support for AMD Ryzen
* Changed: Minimum size changed from 80x25 to 80x24
* Fixed: High cpu usage on systems with a lot of mounted disks
- Refresh patch:
* bashtop-themes.patch
* Thu Apr 30 2020 Guillaume GARDET <guillaume.gardet@opensuse.org>
- Add bash version requirements on runtime
- Recommends sensors to show CPU temperatures
* Wed Apr 29 2020 dead_mozay@opensuse.org
- Update to version 0.8.16+0:
* Updated support and funding, updated TODO
* moved os check to not init config before check, optimized bash check
* Graceful exit on non-linux platforms.
* move shopt commands to after bash version check
* Fix color theme numbering
* Check Bash version and fail gracefully if it's too old
* fix reverse freezing updates when showing detailed information
* fixed load avarage and uptime not showing, fixed unquoted variables
* added Index and updated TODO
* added "support and funding" section
* avoid missing dir
* quick Dynamic installation for debian-based distributions by creating a .deb package based always on the latest bashtop script
* added flat-remix and flat-remix-ligt
* added 2 new themes by Daniel Ruiz de AlegrÃa
* cleanup and formatting
* fix: get_value() regex
* added availability info
* Updated dependencies
* get_value function: fixed regex and added proper float to int rounding
* changed ps flag thcount to nlwp for compability
* added: load average and uptime, fixes: cpu box calculation errors
* fix conformity between window size presentation
* Upon further discussions with @aristocratos, we've agreed to unset LC_ALL which also solves the problem.
* Take into account shells not configured with an english locale which make it fail
* use herestring rather than echo
* added monokai_nobg theme
* Thu Apr 23 2020 dead_mozay@opensuse.org
- Update to version 0.8.1+0:
* updated example bashtop.cfg
* Thu Apr 23 2020 Dead Mozay <dead_mozay@opensuse.org>
- Initial package