File htop.spec of Package htop

# spec file for package htop
# Copyright (c) 2012 SUSE LINUX Products 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

Name:           htop
Summary:        An Interactive text-mode Process Viewer for Linux
License:        GPL-2.0+
Group:          System/Monitoring
Version:        1.0.1
Release:        0
Source0:        %{name}-%{version}.tar.gz
Patch0:         htop-desktop-file-fix-thoenig-01.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  ncurses-devel
BuildRequires:  python
BuildRequires:  update-desktop-files
Recommends:     strace
Recommends:     lsof

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.

    Hisham H. Muhammad

%patch0 -p0

export CFLAGS="%{optflags} `ncursesw6-config --cflags`"
export LDFLAGS="`ncursesw6-config --libs`"
%configure \
    --enable-unicode \
	--enable-taskstats \
make %{?_smp_mflags}

%suse_update_desktop_file -i %name System Monitor

rm -rf %{_buildroot}