]> git.pld-linux.org Git - packages/bmon.git/blame - bmon.spec
- updated gettext BR
[packages/bmon.git] / bmon.spec
CommitLineData
dcbd2d78 1
b728dd59 2%define _pre pre1
3%define _sysconfdir /etc/%{name}
17a8d7f5 4Summary: Console interface bandwidth usage monitor
0f7775a2 5Summary(pl.UTF-8): Konsolowy monitor użycia interfejsu sieciowego
17a8d7f5 6Name: bmon
b728dd59 7Version: 2.2.0
28a72a00 8Release: 0.%{_pre}.5
17a8d7f5 9License: Artistic
10Group: Applications/Networking
dcbd2d78 11Source0: http://people.suug.ch/~tgr/bmon/files/%{name}-%{version}-%{_pre}.tar.gz
a1fbfc14 12# Source0-md5: f4ec66927751027f855886f3dc45c218
28a72a00
AG
13Patch0: %{name}-gcc4.patch
14Patch1: %{name}-no-libnl.patch
b91d68b3 15URL: http://people.suug.ch/~tgr/bmon/
e9f687c8
JW
16BuildRequires: autoconf
17BuildRequires: automake
9d9e12b7 18BuildRequires: gettext-tools
00d515cc 19BuildRequires: libdbi-devel
17a8d7f5 20BuildRequires: ncurses-devel
b728dd59 21BuildRequires: postgresql-devel
65b42f59 22BuildRequires: rrdtool-devel >= 1.2.10
e0fb2847 23Conflicts: nstats
17a8d7f5 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27bmon is an interface bandwidth monitor.
28
29It is able to generate and draw three types of diagrams:
fce7d8f3 30- The overview diagram which is a list of all interfaces and their
31 send/receive rates.
32- A very MRTG like graphical diagram in ASCII showing the rate over a
33 specific time period in a bar diagram.
34- The details diagram which contains all counters of an interface such
35 as total bytes sent/received, errors, compressed packets, ...
17a8d7f5 36
2d29b51a 37%description -l pl.UTF-8
17a8d7f5 38bmon jest monitorem ruchu na interfejsach sieciowych.
39
2d29b51a
JR
40Pozwala on na generowanie i rysowanie trzech typów diagramów:
41- Diagram ogólny który wyświetla wszystkie interfejsy sieciowe i
42 informacje o aktualnym zużyciu przepustowości
43- Diagram ASCII podobny do generowanego przez MRTG, pokazujący
fce7d8f3 44 informacje o przesyle danych w postaci wykresu paskowego
2d29b51a
JR
45- Diagram szczegółowy który zawiera wszystkie liczniki danego
46 interfejsu, takie jak całkowita liczba bajtów odebranych/wysłanych,
47 błędy, skompresowane pakiety...
17a8d7f5 48
7fac8f1c 49%package devel
b91d68b3 50Summary: Header files for bmon
0f7775a2 51Summary(pl.UTF-8): Pliki nagłówkowe dla bmon
7fac8f1c
JW
52Group: Development/Libraries
53
54%description devel
55Header files neccesary to develop bmon applications.
56
2d29b51a
JR
57%description devel -l pl.UTF-8
58Pliki nagłówkowe niezbędne do tworzenia aplikacji korzystających z
7fac8f1c
JW
59bmon.
60
17a8d7f5 61%prep
dcbd2d78 62%setup -q -n %{name}-%{version}-%{_pre}
28a72a00
AG
63%patch0 -p1
64%patch1 -p1
17a8d7f5 65
66%build
8a84ebbf 67cp -f /usr/share/automake/config.sub .
e9f687c8
JW
68%{__gettextize}
69%{__aclocal}
70%{__autoconf}
71%{__autoheader}
17a8d7f5 72%configure
73%{__make}
74
75%install
b91d68b3 76rm -rf $RPM_BUILD_ROOT
7fac8f1c
JW
77install -d $RPM_BUILD_ROOT%{_sysconfdir}
78install -d $RPM_BUILD_ROOT%{_includedir}/%{name}
b728dd59 79cp -r etc/* $RPM_BUILD_ROOT%{_sysconfdir}
b91d68b3 80install include/%{name}/* $RPM_BUILD_ROOT%{_includedir}/%{name}/
7fac8f1c 81
7fac8f1c
JW
82%{__make} install \
83 DESTDIR=$RPM_BUILD_ROOT
17a8d7f5 84
85%clean
86rm -rf $RPM_BUILD_ROOT
87
88%files
89%defattr(644,root,root,755)
7fac8f1c 90%doc ChangeLog
17a8d7f5 91%attr(755,root,root) %{_bindir}/*
b728dd59 92%dir %{_sysconfdir}
93%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
17a8d7f5 94%{_mandir}/man1/*
7fac8f1c
JW
95
96%files devel
97%defattr(644,root,root,755)
98%{_includedir}/*
This page took 0.105126 seconds and 4 git commands to generate.