File iftop.spec of Package iftop

#
# spec file for package iftop (Version 0.17)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           iftop
BuildRequires:  libpcap-devel ncurses-devel
Version:        0.17
Release:        52
Source0:        %name-%version.tar.bz2
Patch0:         %name-manpage.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Real-Time Interface Bandwidth Usage
License:        GPL v2 or later
Group:          Productivity/Networking/Diagnostic
URL:            http://www.ex-parrot.com/~pdw/iftop/
Autoreq:        on

%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 link so slow.



Authors:
--------
    Paul Warren <pdw@ex-parrot.com>
    Chris Lightfoot <chris@ex-parrot.com>

%prep
%setup -q
%patch

%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure --prefix=%_prefix --mandir=%_mandir
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

%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
* Thu Jul 26 2007 - prusnak@suse.cz
- changed libpcap to libpcap-devel in BuildRequires
* Thu Mar 29 2007 - rguenther@suse.de
- add ncurses-devel BuildRequires
* Mon Jul 10 2006 - mskibbe@suse.de
- update to version 0.17 which
  o Added support for ppp interfaces
  o Fixed segfault bug in config file handling
  o Fixes to man page
  o Fix for hash table memory handling bug
  o Added 802.1q VLAN support
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 12 2005 - hvogel@suse.de
- Add -fno-strict-aliasing
* Wed Mar 09 2005 - hvogel@suse.de
- add '-m' parameter to manpage
* Mon Mar 01 2004 - hvogel@suse.de
- update to version 0.16 which includes all fixes from mmj
* Wed Feb 04 2004 - mmj@suse.de
- Fix dereferencing of type-punned pointers
* Thu Jan 29 2004 - hvogel@suse.de
- mark man pages as documentation
* Mon Jan 26 2004 - hvogel@suse.de
- do not use %%configure macro
- use CFLAGS
* Wed Jan 21 2004 - mmj@suse.de
- Fix compound statement to work with new gcc-3.4
* Tue Jan 20 2004 - hvogel@suse.de
- first build and release. Version 0.15
openSUSE Build Service is sponsored by