| 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 |
| |
| |
| %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} |
| |
| |
| %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 |
| %defattr(-,root,root) |
| %attr(0755,root,root) %{_prefix}/bin/@PACKAGE@ |
| %{_prefix}/man/man1/@PACKAGE@.1.gz |
| |
| |
| %changelog |
| * Thu Dec 6 2001 Helder Correia <helder.correia@netcabo.pt> |
| - Some minor adjustments |
| |
| * 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 |