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