# # spec file for package htop # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # 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: htop Version: 2.0.1 Release: 1.1 Summary: An Interactive text-mode Process Viewer for Linux License: GPL-2.0+ Group: System/Monitoring Url: http://hisham.hm/htop Source0: http://hisham.hm/htop/releases/%{version}/%{name}-%{version}.tar.gz Patch0: htop-desktop-file-fix-thoenig-01.patch Patch1: htop-stdgnu.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: ncurses-devel BuildRequires: python BuildRequires: update-desktop-files Requires(post): update-desktop-files Requires(postun): update-desktop-files Recommends: lsof Recommends: strace BuildRoot: %{_tmppath}/%{name}-%{version}-build %description htop is an interactive text-mode process viewer for Linux. It aims to be a better 'top' and requires ncurses. It is tested with Linux 2.6, but is also reported to work (and was originally developed) with the 2.4 series. %prep %setup -q %patch0 -p1 %patch1 -p1 %build autoreconf -fiv %configure \ --enable-taskstats \ --enable-unicode \ --enable-native-affinity \ --enable-cgroup \ --enable-oom # forcefully exclude -L/usr/lib(64)/ncurses5 from being added on systems with # version 6 of ncurses. probably a cleaner way to fix this. %if 0%{?suse_version} > 1320 LIBS="-lncursesw -ltinfo -lm " make -e %{?_smp_mflags} %else make -e %{?_smp_mflags} %endif %install make DESTDIR=%{buildroot} install %{?_smp_mflags} #%suse_update_desktop_file -i %{name} System Monitor %post %desktop_database_post %postun %desktop_database_postun %files %defattr(-,root,root) %doc COPYING %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{_mandir}/*/%{name}* %changelog * Thu Feb 11 2016 jimmy@boombatower.com - Update to version 2.0.0. * Platform abstraction layer * Initial FreeBSD support * Initial Mac OS X support (thanks to David Hunt) * Swap meter for Mac OSX (thanks to Ștefan Rusu) * OpenBSD port (thanks to Michael McConville) * FreeBSD support improvements (thanks to Martin Misuth) * Support for NCurses 6 ABI, including mouse wheel support * Much improved mouse responsiveness * Process environment variables screen (thanks to Michael Klein) * Higher-resolution UTF-8 based Graph mode (Thanks to James Hall from vtop for the idea!) * Show program path settings (thanks to Tobias Geerinckx-Rice) * BUGFIX: Fix crash when scrolling an empty filtered list. * Use dynamic units for text display, and several fixes (thanks to Christian Hesse) * BUGFIX: fix error caused by overflow in usertime calculation. (thanks to Patrick Marlier) * Catch all memory allocation errors (thanks to Michael McConville for the push) * Several tweaks and bugfixes (See the Git log for details and contributors!) - Rerolled both patches for compatibility with 2.0.0. - Fix ncurses 6 incompatibility during compile. * Sun Aug 2 2015 mpluskal@suse.com - Add scriplets for desktop file handling * Fri Feb 20 2015 jhura@suse.com - Cleanup of spec file with spec-cleaner. - Enable oom score watching and native-affinity * Mon May 19 2014 dmitry_r@opensuse.org - Update to version 1.0.3 * Tag all children ('c' key) * Fixes in accounting of guest time when using virtualization * Performance improvements * Further performance improvements due to conditional parsing of IO data depending on selected fields. * Better consistency in coloring. * Increase limit of buffer when tracing a deep nested process tree. * Display pagefault stats. * BUGFIX: Fix crash when adding meters and toggling detailed CPU time. * Add column to track the OOM-killer score of processes * Rebase htop-stdgnu.patch * Thu Dec 26 2013 crrodriguez@opensuse.org - improve autools build, we do not want packages using, for example std=c99, instead determine the latest C standard with gnu extensions using autoconf macros. (htop-stdgnu.patch) * Tue Nov 26 2013 jengelh@inai.de - Better make install, remove %%clean * Mon Nov 12 2012 puzel@suse.com - update to htop-1.0.2 * Add IO priority support ('i' key) * Avoid deleting .htoprc if it is a symlink * Fail gracefully when /proc is not mounted (thanks to Philipp Hagemeister) * Option to update process names on every refresh (thanks to Rob Hoelz) * BUGFIX: Fix crashes when process list is empty * Fri Feb 17 2012 puzel@suse.com - update to htop-1.0.1 (bugfix release) * respecting $XDG_CONFIG_HOME (thanks to Hadzhimurad Ustarkhan for the suggestion.) * Safer behavior on the kill screen, to make it harder to kill the wrong process. * BUGFIX: behavior of 'F' (follow) key was broken, also affecting the persistence of mouse selections. * BUGFIX: keep main panel up-to-date when running the screen manager, to fix crash when processes die while on the F9/Kill screen. * Thu Nov 24 2011 puzel@suse.com - update to htop-1.0 * Performance improvements * Support for splitting CPU meters into two or four columns * Switch from PLPA, which is now deprecated, to HWLOC. * Bring back support for native Linux sched_setaffinity, so we don't have to use HWLOC where we don't need to. * Support for typing in user names and column fields in selection panels. * Support for UTF-8 tree drawing * Option for counting CPUs from zero * Meters update in every screen (no longer halting while on Setup, etc.) * Stricter checks for command-line options * Incremental filtering * Try harder to find the ncurses header * Man page updates * BUGFIX: Support larger numbers for process times. * BUGFIX: Segfault in BarMeterMode_draw() for small terminal widths * Sat Jul 30 2011 crrodriguez@opensuse.org - Use --enable-unicode and switch to ncurses ABI v6 * Mon Nov 29 2010 puzel@novell.com - update to htop-0.9 * Add support for "steal"/guest CPU time measurement in virtualization environments * Expand and collapse subtrees using '+' and '-' when in tree-view * Support for cgroups * Show custom thread names * Add support for STARTTIME field * Upgrade PLPA to version 1.3.2 * Fix license terms with regard to PLPA * getopt-based long options and --no-color * BUGFIX: Fix display of nan%% in CPU meters * BUGFIX: Fix memory leak * Add Bash/emacs style navigation keys * Improve battery meter support * BUGFIX: Fix IO-wait color in "Black on White" scheme * BUGFIX: Fix search by process name when list is filtered by user. * BUGFIX: Fix alignment for display of memory values above 100G - drop htop-non-printable-characters.patch (in upstream) * Sun Oct 31 2010 jengelh@medozas.de - Use %%_smp_mflags * Mon Dec 14 2009 jengelh@medozas.de - enable parallel building * Wed Jun 24 2009 puzel@novell.com - update to htop-0.8.3 * BUGFIX: Fix crash on F6 key (thanks to Rainer Suhm) * BUGFIX: Fix a minor bug which affected the build process. * Tue Jun 2 2009 puzel@suse.cz - update to 0.8.2 * Integrated lsof (press 'l') * Fix display of gigabyte-sized values * Option to display hostname in the meters area * Rename VEID to CTID in OpenVZ systems * Corrections to the desktop entry file * BUGFIX: Correct page size calculation for FreeBSD systems * Allow compilation without PLPA on systems that don't support it * BUGFIX: Fix missing tree view when userland threads are hidden * BUGFIX: Fix for VPID on OpenVZ systems - Recommends strace and lsof - use suse_update_desktop_file macro * Fri Nov 21 2008 thoenig@suse.de - add python to build requires * Fri Nov 21 2008 thoenig@suse.de - add patch htop-non-printable-characters.patch: Don't try to show non-printable charcaters (bnc#440951) * Tue Sep 23 2008 thoenig@suse.de - Linux-VServer support - battery meter - fix collection of IO stats in multithreaded processes - remove assertion that fails on hardened kernels * Thu Jul 31 2008 puzel@suse.cz - configure with --enable-taskstats to enable per-processes IO statistics - use %%configure and %%makeinstall macros * Fri Jul 11 2008 bwalle@suse.de - update to htop 0.8 * Ability to change sort column with the mouse by clicking column titles (click again to invert order) * Add support for Linux per-process IO statistics, enabled with the --enable-taskstats flag, which requires a kernel compiled with taskstats support. * Add Unicode support, enabled with the --enable-unicode flag, which requires libncursesw. (thanks to Sergej Pupykin) * BUGFIX: Fix display of CPU count for threaded processes. When user threads are hidden, process now shows the sum of processor usage for all processors. When user threads are displayed, each thread shows its own processor usage, including the root thread. * BUGFIX: avoid crashing when using many meters - change source tarball format to bzip2 * Mon Nov 26 2007 thoenig@suse.de - Update to htop 0.7 - Changes: * CPU affinity configuration ('a' key) * Improve display of tree view, properly nesting threads of the same app based on TGID. * IO-wait time now counts as idle time, which is a more accurate description. It is still available in split time, now called detailed CPU time. (thanks to Samuel Thibault for the report) * BUGFIX: Correct display of TPGID field * Add TGID field * BUGFIX: Don't crash with invalid command-line flags (thanks to Nico Golde for the report) * Fix GCC 4.3 compilation issues (thanks to Martin Michlmayr for the report) * OpenVZ support, enabled at compile-time with the --enable-openvz flag. (thanks to Sergey Lychko) * Sat Jun 2 2007 thoenig@suse.de - Update to htop 0.6.6 - Changes: * Add support of NLWP field * BUGFIX: Fix use of configurable /proc location * Fix memory percentage calculation and make it saner * Added display of DRS, DT, LRS and TRS * BUGFIX: LRS and DRS memory values were flipped * BUGFIX: Don't crash on very high UIDs * Tue May 22 2007 thoenig@suse.de - Initial package submission (htop 0.6.5) - Add patch htop-desktop-file-fix-thoenig-01.patch