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