|
|
|
|
@ -32,7 +32,7 @@ Class: EVAL
|
|
|
|
|
Group: Capturing |
|
|
|
|
License: GPL |
|
|
|
|
Version: 1.0pre4 |
|
|
|
|
Release: 20140120 |
|
|
|
|
Release: 20150112 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://www.ex-parrot.com/~pdw/iftop/download/iftop-%{version}.tar.gz |
|
|
|
|
@ -61,21 +61,13 @@ PreReq: libpcap, ncurses
|
|
|
|
|
%patch -p0 |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
cf="" |
|
|
|
|
lf="" |
|
|
|
|
case "%{l_platform -t}" in |
|
|
|
|
*-freebsd*) pf=freebsd; cf="-pthread"; lf="" ;; |
|
|
|
|
*-linux*) pf=linux; cf="-pthread"; lf="" ;; |
|
|
|
|
*-hpux*) pf=hp-11; cf="-pthread"; lf="" ;; |
|
|
|
|
*-sunos*) pf=solaris; cf="%{l_cppflags ncurses}"; lf="-lpthread" ;; |
|
|
|
|
*-aix*) pf=aix; cf="-pthread"; lf="" ;; |
|
|
|
|
esac |
|
|
|
|
CC="%{l_cc}" \ |
|
|
|
|
CFLAGS="%{l_cflags -O} $cf" \ |
|
|
|
|
CPPFLAGS="%{l_cppflags}" \ |
|
|
|
|
LDFLAGS="%{l_ldflags} $lf" \ |
|
|
|
|
CFLAGS="%{l_cflags -O} -pthread" \ |
|
|
|
|
CPPFLAGS="%{l_cppflags ncurses .}" \ |
|
|
|
|
LDFLAGS="%{l_ldflags} -pthread" \ |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=%{l_prefix} |
|
|
|
|
--prefix=%{l_prefix} \ |
|
|
|
|
--mandir=%{l_prefix}/man |
|
|
|
|
%{l_make} %{l_mflags -O} |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
|