]> git.pld-linux.org Git - packages/bwm-ng.git/blob - bwm-ng.spec
12d7580a2aecd34b9c16bcc5d9a1112765d2b4da
[packages/bwm-ng.git] / bwm-ng.spec
1 Summary:        Bandwidth monitor - display bandwidth usage on all interfaces
2 Summary(pl):    Bandwidth monitor - wy¶wietlanie obci±¿enia na interfejsach
3 Name:           bwm-ng
4 Version:        0.5
5 Release:        1
6 License:        GPL
7 Group:          Networking/Utilities
8 Source0:        http://www.gropp.org/bwm-ng/%{name}-%{version}.tar.gz
9 # Source0-md5:  4c5197527c985dc8b45973dfd00deca0
10 URL:            http://www.gropp.org/
11 BuildRequires:  libstatgrab-devel
12 BuildRequires:  ncurses-devel
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Bandwidth Monitor NG is a small and simple console-based bandwidth
17 monitor for Linux, BSD, and Mac OS X, or other systems with either
18 /proc/net/dev, netstat (Linux and BSD), getifaddrs, sysctl, or
19 libstatgrab. You can choose whether to show all interfaces or only
20 those interfaces that are up. Output is possible as plain console,
21 curses, CSV, or HTML. Unlimited interfaces are supported and will be
22 added dynamically while running.
23
24 %description -l pl
25 Bandwidth Monitor NG to ma³y i prosty dzia³aj±cy na terminalu
26 tekstowym monitor wykorzystania pasma dla Linuksa, BSD i Mac OS X lub
27 innych systemów z interfejsem /proc/net/dev, netstat, getifaddrs,
28 sysctl lub libstatgrab. Mo¿na wybraæ, czy maj± byæ pokazywane
29 wszystkie interfejsy, czy tylko aktualnie w³±czone. Obs³ugiwane jest
30 wyj¶cie na zwyk³± konsolê, przez curses, w CSV lub w HTML-u.
31 Obs³ugiwana jest nieograniczona liczba interfejsów, bêd± one dodawane
32 dynamicznie w trakcie dzia³ania programu.
33
34 %prep
35 %setup -q
36
37 %build
38 %configure
39 %{__make} \
40         CFLAGS="%{rpmcflags} -Wall -I/usr/include/ncurses"
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_mandir}/man1}
45
46 install src/bwm-ng $RPM_BUILD_ROOT%{_bindir}
47 install bwm-ng.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/bwm-ng.conf
48 install bwm-ng.1 $RPM_BUILD_ROOT%{_mandir}/man1
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc AUTHORS README changelog
56 %attr(755,root,root) %{_bindir}/*
57 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwm-ng.conf
58 %{_mandir}/man1/*
This page took 0.054058 seconds and 2 git commands to generate.