- 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. OBS-URL: https://build.opensuse.org/request/show/358925 OBS-URL: https://build.opensuse.org/package/show/Base:System/htop?expand=0&rev=31
86 lines
2.4 KiB
RPMSpec
86 lines
2.4 KiB
RPMSpec
#
|
|
# 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.0
|
|
Release: 0
|
|
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
|