]> git.pld-linux.org Git - packages/htop.git/blobdiff - htop.spec
- release 2
[packages/htop.git] / htop.spec
index aee5e3078c567cffdd69926fa9513dfccc98175a..89ff2d719d6994c922a39be30010d4f872995b19 100644 (file)
--- a/htop.spec
+++ b/htop.spec
@@ -2,21 +2,22 @@ Summary:      An interactive process viewer
 Summary(hu.UTF-8):     Egy interaktív processz megjelenítő
 Summary(pl.UTF-8):     Interaktywna przeglądarka procesów
 Name:          htop
-Version:       0.8.1
+Version:       0.9
 Release:       2
 License:       GPL v2
 Group:         Applications/System
-Source0:       http://dl.sourceforge.net/htop/%{name}-%{version}.tar.gz
-# Source0-md5: f0b259ca29175656de48bf0fa0a2e619
+Source0:       http://downloads.sourceforge.net/htop/%{name}-%{version}.tar.gz
+# Source0-md5: 7c5507f35f363f3f40183a2ba3c561f8
 Patch0:                %{name}-desktop.patch
-Patch1:                %{name}-nonprint.patch
+Patch2:                %{name}-field-titles.patch
 URL:           http://htop.sourceforge.net/
 BuildRequires: autoconf >= 2.57
 BuildRequires: automake
 BuildRequires: gcc >= 5:3.0
 BuildRequires: libtool
 BuildRequires: ncurses-devel
-BuildRequires: sed >= 4.0
+BuildRequires: python
+BuildRequires: python-modules
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -34,8 +35,10 @@ Jej celem jest bycie lepszą odmianą programu 'top'.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p0
-%{__sed} -i -e 's/curses.h/ncurses\/curses.h/' configure.ac
+%patch2 -p1
+
+# don't require /proc at build time
+sed '/^AC_CHECK_FILE($PROCDIR/d' -i configure.ac
 
 %build
 %{__libtoolize}
@@ -43,11 +46,12 @@ Jej celem jest bycie lepszą odmianą programu 'top'.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
+CPPFLAGS="%{rpmcppflags} -I/usr/include/ncursesw"
+LDFLAGS="%{rpmldflags} -ltinfow"
 %configure \
        --enable-openvz \
-       --enable-vserver \
-       --enable-unicode
+       --enable-unicode \
+       --enable-vserver
 %{__make}
 
 %install
@@ -64,5 +68,5 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS ChangeLog README
 %attr(755,root,root) %{_bindir}/htop
 %{_desktopdir}/htop.desktop
-%{_mandir}/man1/*
 %{_pixmapsdir}/htop.png
+%{_mandir}/man1/htop.1*
This page took 0.475617 seconds and 4 git commands to generate.