2007-05-25 04:32:37 +02:00
|
|
|
#
|
2011-11-24 18:31:22 +01:00
|
|
|
# spec file for package htop
|
2007-05-25 04:32:37 +02:00
|
|
|
#
|
2015-08-05 17:48:26 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-05-25 04:32:37 +02:00
|
|
|
#
|
2008-09-24 16:49:35 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-05-25 04:32:37 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-07-11 22:45:50 +02:00
|
|
|
|
2007-05-25 04:32:37 +02:00
|
|
|
Name: htop
|
2014-05-28 08:12:37 +02:00
|
|
|
Version: 1.0.3
|
2013-11-27 09:06:27 +01:00
|
|
|
Release: 0
|
2007-11-26 20:43:22 +01:00
|
|
|
Summary: An Interactive text-mode Process Viewer for Linux
|
2011-12-06 18:18:32 +01:00
|
|
|
License: GPL-2.0+
|
2007-05-25 04:32:37 +02:00
|
|
|
Group: System/Monitoring
|
2014-05-28 08:12:37 +02:00
|
|
|
Url: http://hisham.hm/htop
|
|
|
|
Source0: http://hisham.hm/htop/releases/%{version}/%{name}-%{version}.tar.gz
|
2010-11-29 11:16:12 +01:00
|
|
|
Patch0: htop-desktop-file-fix-thoenig-01.patch
|
2013-12-27 00:20:44 +01:00
|
|
|
Patch1: htop-stdgnu.patch
|
2015-08-05 17:48:26 +02:00
|
|
|
BuildRequires: autoconf
|
2013-12-27 00:20:44 +01:00
|
|
|
BuildRequires: automake
|
2012-02-17 07:40:21 +01:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: python
|
2009-07-04 10:53:15 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2015-08-05 17:48:26 +02:00
|
|
|
Requires(post): update-desktop-files
|
|
|
|
Requires(postun): update-desktop-files
|
2009-07-04 10:53:15 +02:00
|
|
|
Recommends: lsof
|
2015-02-20 16:05:48 +01:00
|
|
|
Recommends: strace
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-05-25 04:32:37 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
htop is an interactive text-mode process viewer for Linux. It aims to
|
2007-11-26 20:43:22 +01:00
|
|
|
be a better 'top' and requires ncurses. It is tested with Linux 2.6,
|
2007-05-25 04:32:37 +02:00
|
|
|
but is also reported to work (and was originally developed) with the
|
|
|
|
2.4 series.
|
|
|
|
|
|
|
|
%prep
|
2015-02-20 16:05:48 +01:00
|
|
|
%setup -q
|
|
|
|
%patch0
|
2013-12-27 00:20:44 +01:00
|
|
|
%patch1 -p1
|
2007-05-25 04:32:37 +02:00
|
|
|
|
|
|
|
%build
|
2015-08-05 17:48:26 +02:00
|
|
|
autoreconf -fiv
|
2008-08-02 04:00:42 +02:00
|
|
|
%configure \
|
2010-11-29 11:16:12 +01:00
|
|
|
--enable-taskstats \
|
2015-02-20 16:05:48 +01:00
|
|
|
--enable-unicode \
|
|
|
|
--enable-native-affinity \
|
|
|
|
--enable-cgroup \
|
|
|
|
--enable-oom
|
2010-11-02 14:40:46 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-05-25 04:32:37 +02:00
|
|
|
|
|
|
|
%install
|
2015-02-20 16:05:48 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
%suse_update_desktop_file -i %{name} System Monitor
|
2007-05-25 04:32:37 +02:00
|
|
|
|
2015-08-05 17:48:26 +02:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
|
2015-02-20 16:05:48 +01:00
|
|
|
%files
|
2007-05-25 04:32:37 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%{_mandir}/*/%{name}*
|
|
|
|
|
|
|
|
%changelog
|