SHA256
1
0
forked from pool/htop

- Simplify spec file

* Drop support for building on older distros
  * Trim describtion
- Enable delayacct

OBS-URL: https://build.opensuse.org/package/show/Base:System/htop?expand=0&rev=49
This commit is contained in:
Martin Pluskal 2018-04-12 12:11:41 +00:00 committed by Git OBS Bridge
parent ec0658c0d3
commit a64822697c
2 changed files with 17 additions and 25 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Apr 12 12:09:09 UTC 2018 - mpluskal@suse.com
- Simplify spec file
* Drop support for building on older distros
* Trim describtion
- Enable delayacct
-------------------------------------------------------------------
Tue Apr 10 22:48:06 UTC 2018 - avindra@opensuse.org

View File

@ -29,24 +29,21 @@ Source2: %{name}.keyring
Patch0: htop-desktop-file-fix-thoenig-01.patch
# PATCH-FIX-OPENSUSE htop-script-python3.patch
Patch1: htop-script-python3.patch
BuildRequires: ncurses-devel
BuildRequires: pkgconfig >= 0.9.0
BuildRequires: python3-base
BuildRequires: update-desktop-files
Requires(post): update-desktop-files
Requires(postun): update-desktop-files
BuildRequires: pkgconfig(libnl-3.0)
BuildRequires: pkgconfig(libnl-genl-3.0)
BuildRequires: pkgconfig(ncurses)
Recommends: lsof
Recommends: strace
%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.
htop is an interactive text-mode process viewer for Linux. It aims to be a
better 'top' and requires ncurses.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%autosetup -p1
%build
%configure \
@ -54,27 +51,14 @@ but is also reported to work (and was originally developed) with the
--enable-unicode \
--enable-linux-affinity \
--enable-taskstats \
--enable-delayacct \
--enable-cgroup
# 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} < 1500
LIBS="-lncursesw -ltinfo -lm " make -e %{?_smp_mflags}
%else
make %{?_smp_mflags}
%endif
%make_build
%install
%make_install
%suse_update_desktop_file -i %{name} System Monitor
%if 0%{?suse_version} < 1500
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%files
%license COPYING
%{_bindir}/%{name}