File: nload.spec.in

package info (click to toggle)
nload 0.4.0-1.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 360 kB
  • ctags: 104
  • sloc: sh: 2,643; cpp: 975; makefile: 60; ansic: 4
file content (60 lines) | stat: -rw-r--r-- 1,479 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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