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