SHA256
1
0
forked from pool/htop

Accepting request 286981 from home:hurhaj:branches:Base:System

- Cleanup of spec file with spec-cleaner.
- Enable oom score watching and native-affinity

OBS-URL: https://build.opensuse.org/request/show/286981
OBS-URL: https://build.opensuse.org/package/show/Base:System/htop?expand=0&rev=27
This commit is contained in:
Marcus Meissner 2015-02-20 15:05:48 +00:00 committed by Git OBS Bridge
parent cc4a4e70dd
commit 32a007d969
2 changed files with 19 additions and 19 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 20 13:38:40 UTC 2015 - jhura@suse.com
- Cleanup of spec file with spec-cleaner.
- Enable oom score watching and native-affinity
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 19 18:57:58 UTC 2014 - dmitry_r@opensuse.org Mon May 19 18:57:58 UTC 2014 - dmitry_r@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package htop # spec file for package htop
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -26,13 +26,13 @@ Url: http://hisham.hm/htop
Source0: http://hisham.hm/htop/releases/%{version}/%{name}-%{version}.tar.gz Source0: http://hisham.hm/htop/releases/%{version}/%{name}-%{version}.tar.gz
Patch0: htop-desktop-file-fix-thoenig-01.patch Patch0: htop-desktop-file-fix-thoenig-01.patch
Patch1: htop-stdgnu.patch Patch1: htop-stdgnu.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake BuildRequires: automake
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: python BuildRequires: python
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
Recommends: strace
Recommends: lsof Recommends: lsof
Recommends: strace
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
htop is an interactive text-mode process viewer for Linux. It aims to htop is an interactive text-mode process viewer for Linux. It aims to
@ -40,30 +40,24 @@ 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 but is also reported to work (and was originally developed) with the
2.4 series. 2.4 series.
Authors:
--------
Hisham H. Muhammad
%prep %prep
%setup %setup -q
%patch0 -p0 %patch0
%patch1 -p1 %patch1 -p1
%build %build
export CFLAGS="%{optflags} `ncursesw6-config --cflags`" autoreconf -fi
export LDFLAGS="`ncursesw6-config --libs`"
autoreconf -fiv
%configure \ %configure \
--enable-unicode \
--enable-taskstats \ --enable-taskstats \
--enable-cgroup --enable-unicode \
--enable-native-affinity \
--enable-cgroup \
--enable-oom
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make install DESTDIR="%buildroot" make DESTDIR=%{buildroot} install %{?_smp_mflags}
%suse_update_desktop_file -i %name System Monitor %suse_update_desktop_file -i %{name} System Monitor
%files %files
%defattr(-,root,root) %defattr(-,root,root)