Summary(hu.UTF-8): Egy interaktív processz megjelenítő
Summary(pl.UTF-8): Interaktywna przeglądarka procesów
Name: htop
-Version: 0.9
+Version: 3.0.2
Release: 1
License: GPL v2
Group: Applications/System
-Source0: http://downloads.sourceforge.net/htop/%{name}-%{version}.tar.gz
-# Source0-md5: 7c5507f35f363f3f40183a2ba3c561f8
-Patch0: %{name}-desktop.patch
-Patch2: %{name}-field-titles.patch
-URL: http://htop.sourceforge.net/
-BuildRequires: autoconf >= 2.57
-BuildRequires: automake
+Source0: https://github.com/htop-dev/htop/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 3295c83198ae764a42627aaa50dd8c90
+URL: https://htop.dev/
+BuildRequires: autoconf >= 2.65
+BuildRequires: automake >= 1:1.11
BuildRequires: gcc >= 5:3.0
BuildRequires: libtool
BuildRequires: ncurses-devel
%prep
%setup -q
-%patch0 -p1
-%patch2 -p1
+
+# don't require /proc at build time
+sed 's@^[[:space:]]*AC_CHECK_FILE($PROCDIR.*@:@' -i configure.ac
%build
%{__libtoolize}
%{__autoconf}
%{__autoheader}
%{__automake}
-CPPFLAGS="%{rpmcppflags} -I/usr/include/ncursesw"
-LDFLAGS="%{rpmldflags} -ltinfow"
+CPPFLAGS="%{rpmcppflags} $(pkg-config --cflags ncursesw)"
%configure \
+ --enable-cgroup \
--enable-openvz \
+ --enable-taskstats \
--enable-unicode \
--enable-vserver
%{__make}