- 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:
parent
ec0658c0d3
commit
a64822697c
@ -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
|
Tue Apr 10 22:48:06 UTC 2018 - avindra@opensuse.org
|
||||||
|
|
||||||
|
34
htop.spec
34
htop.spec
@ -29,24 +29,21 @@ Source2: %{name}.keyring
|
|||||||
Patch0: htop-desktop-file-fix-thoenig-01.patch
|
Patch0: htop-desktop-file-fix-thoenig-01.patch
|
||||||
# PATCH-FIX-OPENSUSE htop-script-python3.patch
|
# PATCH-FIX-OPENSUSE htop-script-python3.patch
|
||||||
Patch1: htop-script-python3.patch
|
Patch1: htop-script-python3.patch
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: pkgconfig >= 0.9.0
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
Requires(post): update-desktop-files
|
BuildRequires: pkgconfig(libnl-3.0)
|
||||||
Requires(postun): update-desktop-files
|
BuildRequires: pkgconfig(libnl-genl-3.0)
|
||||||
|
BuildRequires: pkgconfig(ncurses)
|
||||||
Recommends: lsof
|
Recommends: lsof
|
||||||
Recommends: strace
|
Recommends: strace
|
||||||
|
|
||||||
%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 be a
|
||||||
be a better 'top' and requires ncurses. It is tested with Linux 2.6,
|
better 'top' and requires ncurses.
|
||||||
but is also reported to work (and was originally developed) with the
|
|
||||||
2.4 series.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
@ -54,27 +51,14 @@ but is also reported to work (and was originally developed) with the
|
|||||||
--enable-unicode \
|
--enable-unicode \
|
||||||
--enable-linux-affinity \
|
--enable-linux-affinity \
|
||||||
--enable-taskstats \
|
--enable-taskstats \
|
||||||
|
--enable-delayacct \
|
||||||
--enable-cgroup
|
--enable-cgroup
|
||||||
# forcefully exclude -L/usr/lib(64)/ncurses5 from being added on systems with
|
%make_build
|
||||||
# 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
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
%suse_update_desktop_file -i %{name} System Monitor
|
%suse_update_desktop_file -i %{name} System Monitor
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1500
|
|
||||||
%post
|
|
||||||
%desktop_database_post
|
|
||||||
|
|
||||||
%postun
|
|
||||||
%desktop_database_postun
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
|
Loading…
Reference in New Issue
Block a user