Summary   : A console application which monitors network traffic and bandwidth usage in real time
Name      : @PACKAGE@
Version   : @VERSION@
Release   : 1
Copyright : GPL
Url       : http://www.roland-riegel.de/nload/index_en.html
Packager  : Helder Correia <helder.correia@netcabo.pt>
Group     : Applications/Networking
Source    : %{name}-%{version}.tar.gz
BuildRoot : /var/tmp/%{name}-%{version}-rpmbuildroot
Prefix    : /usr/local


%description
nload is a console application which monitors network traffic and bandwidth
usage in real time. It visualizes the in- and outgoing traffic using two graphs
and provides additionally info like total amount of transfered data and min/max
network usage.


%prep


%setup
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} $LOCALFLAGS


%build
# Setup for parallel builds
numprocs=$(egrep -c ^cpu[0-9]+ /proc/stat || :)
if [ "$numprocs" = "0" ]; then
  numprocs=1
fi

make -j$numprocs


%install
make install DESTDIR=$RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/%{name}-%{version}


%files
%attr(-,root,root)
%{prefix}/bin/nload
%{prefix}/share/man/man1/nload.1.gz


%changelog
* Wed Dec  5 2001 Helder Correia <helder.correia@netcabo.pt>
- Little path modifications and removal of man page gzipping

* Sat Nov 10 2001 Helder Correia <helder.correia@netcabo.pt>
- Spec file first stable version
