File iftop.spec of Package iftop
#
# spec file for package iftop (Version 0.17)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: iftop
Summary: Real-Time Interface Bandwidth Usage
Version: 0.17
Release: 128
License: GPLv2+
Group: Productivity/Networking/Diagnostic
Url: http://www.ex-parrot.com/~pdw/iftop/
BuildRequires: libpcap-devel ncurses-devel
Source0: %name-%version.tar.bz2
Patch0: %name-manpage.patch
Patch1: %name-bar-bytes.patch
Patch2: %name-bar-display.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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. It is handy for explaining why the
network links slow.
Authors:
--------
Paul Warren <pdw@ex-parrot.com>
Chris Lightfoot <chris@ex-parrot.com>
%prep
%setup -q
%patch0
%patch1 -p1
%patch2 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%configure
make %{?jobs:-j%jobs}
%install
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README ChangeLog COPYING TODO INSTALL
%attr(755,root,root) %{_sbindir}/iftop
%{_mandir}/man8/*
%changelog