File iftop.spec of Package iftop-v10pre4
#from https://fedoraproject.org to https://openeuler.org/
Summary: Command line tool that displays bandwidth usage on an interface
Name: iftop
Version: 1.0pre4
Release: 1
License: GPLv2+
URL: http://www.ex-parrot.com/~pdw/%{name}/
Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc, make, ncurses-devel, libpcap-devel
BuildRequires: autoconf automake libtool python3
%description
iftop does for network usage what top(1) does for CPU usage. It listens to
network traffic on a named interface and displays a table of current bandwidth
usage by pairs of hosts. Handy for answering the question "why is our ADSL link
so slow?".
%prep
%setup -q -n %{name}-%{version}
test -f configure.ac.ncursesw && touch -c -r configure.ac{.ncursesw,} || :
%build
export CFLAGS="%{optflags} -Wno-error -std=gnu11 -fcommon"
export CXXFLAGS="%{optflags} -Wno-error"
%configure
%make_build
%install
%make_install
%files
%license COPYING
%doc ChangeLog README TODO
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.*
%changelog
* Fri Mar 19 2021 wangyueliang <wangyueliang@kylinos.cn> - 1.0-1
- package init