Enable lm-sensors support.

Patch to enable sensors read on AArch64 platforms.
epel9
Mukundan Ragavan 4 years ago
parent d4fc640a84
commit ff0f55a90c

@ -0,0 +1,10 @@
--- htop-3.0.5/linux/LibSensors.c 2021-01-11 18:18:21.000000000 +0100
+++ htop-3.0.5-/linux/LibSensors.c 2021-02-18 14:04:22.284009236 +0100
@@ -89,6 +89,7 @@
if (!String_startsWith(buffer, "coretemp") &&
!String_startsWith(buffer, "cpu_thermal") &&
!String_startsWith(buffer, "k10temp") &&
+ !String_startsWith(buffer, "acpitz") &&
!String_startsWith(buffer, "zenpower"))
continue;

@ -1,10 +1,11 @@
Name: htop
Version: 3.0.5
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Interactive process viewer
License: GPLv2+
URL: http://hisham.hm/htop/
Source0: https://github.com/htop-dev/htop/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: htop-enable-acpitz-sensors.patch -p1
BuildRequires: desktop-file-utils
BuildRequires: ncurses-devel
@ -16,6 +17,7 @@ BuildRequires: python
%endif
BuildRequires: libtool
BuildRequires: make
BuildRequires: lm_sensors-devel
%description
htop is an interactive text-mode process viewer for Linux, similar to
@ -35,6 +37,7 @@ autoreconf -vfi
--enable-vserver \
--enable-taskstats \
--enable-unicode \
--with-sensors \
--enable-cgroup
%make_build
@ -54,6 +57,10 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/htop.1*
%changelog
* Thu Feb 18 2021 Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> - 3.0.5-3
- Enable lm-sensors support.
- Patch to enable sensors read on AArch64 platforms.
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save