]> git.pld-linux.org Git - packages/bmon.git/blobdiff - bmon.spec
- fix md5
[packages/bmon.git] / bmon.spec
index 84a8922767583f072b37ca2ef920d16de7de8705..4320bc0d4913cf0740ea94e6e531d343fa6732f6 100644 (file)
--- a/bmon.spec
+++ b/bmon.spec
@@ -1,48 +1,67 @@
+
+%define        _pre    pre1
+%define        _sysconfdir     /etc/%{name}
 Summary:       Console interface bandwidth usage monitor
 Summary(pl):   Konsolowy monitor u¿ycia interfejsu sieciowego
 Name:          bmon
-Version:       1.2.0
-Release:       1
+Version:       2.2.0
+Release:       0.%{_pre}.1
 License:       Artistic
 Group:         Applications/Networking
-Source0:       http://trash.net/~reeler/bmon/files/%{name}-%{version}.tar.bz2
-# Source0-md5: b22af0ac4564200c6d249d4585589ce8
-Patch0:                %{name}-ncurses.patch
-URL:           http://trash.net/~reeler/bmon/
+Source0:       http://people.suug.ch/~tgr/bmon/files/%{name}-%{version}-%{_pre}.tar.gz
+# Source0-md5: f4ec66927751027f855886f3dc45c218
+URL:           http://people.suug.ch/~tgr/bmon/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: gettext-devel
+BuildRequires: libdbi-devel
+BuildRequires: libnl-devel
 BuildRequires: ncurses-devel
+BuildRequires: postgresql-devel
+BuildRequires: rrdtool-devel
+Conflicts:     nstats
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 bmon is an interface bandwidth monitor.
 
 It is able to generate and draw three types of diagrams:
- - The overview diagram which is a list of all interfaces and their
-   send/receive rates.
- - A very MRTG like graphical diagram in ASCII showing the rate over a
-   specific time period in a bar diagram.
- - The details diagram which contains all counters of an interface such
-   as total bytes sent/received, errors, compressed packets, ...
+- The overview diagram which is a list of all interfaces and their
+  send/receive rates.
+- A very MRTG like graphical diagram in ASCII showing the rate over a
+  specific time period in a bar diagram.
+- The details diagram which contains all counters of an interface such
+  as total bytes sent/received, errors, compressed packets, ...
 
 %description -l pl
 bmon jest monitorem ruchu na interfejsach sieciowych.
 
 Pozwala on na generowanie i rysowanie trzech typów diagramów:
- - Diagram ogólny który wy¶wietla wszystkie interfejsy sieciowe i
-   informacje o aktualnym zu¿yciu przepustowo¶ci
- - Diagram ASCII podobny do generowanego przez MRTG, pokazuj±cy
-   informacje o przesyle danych w postaci wykresu paskowego
- - Diagram szczegó³owy który zawiera wszystkie liczniki danego
-   interfejsu, takie jak ca³kowita liczba bajtów odebranych/wys³anych,
-   b³êdy, skompresowane pakiety...
+- Diagram ogólny który wy¶wietla wszystkie interfejsy sieciowe i
+  informacje o aktualnym zu¿yciu przepustowo¶ci
+- Diagram ASCII podobny do generowanego przez MRTG, pokazuj±cy
+  informacje o przesyle danych w postaci wykresu paskowego
+- Diagram szczegó³owy który zawiera wszystkie liczniki danego
+  interfejsu, takie jak ca³kowita liczba bajtów odebranych/wys³anych,
+  b³êdy, skompresowane pakiety...
+
+%package devel
+Summary:       Header files for bmon
+Summary(pl):   Pliki nag³ówkowe dla bmon
+Group:         Development/Libraries
+
+%description devel
+Header files neccesary to develop bmon applications.
+
+%description devel -l pl
+Pliki nag³ówkowe niezbêdne do tworzenia aplikacji korzystaj±cych z
+bmon.
 
 %prep
-%setup -q
-%patch0 -p1
+%setup -q -n %{name}-%{version}-%{_pre}
 
 %build
+cp -f /usr/share/automake/config.sub .
 %{__gettextize}
 %{__aclocal}
 %{__autoconf}
@@ -52,16 +71,25 @@ Pozwala on na generowanie i rysowanie trzech typ
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+install -d $RPM_BUILD_ROOT%{_includedir}/%{name}
+cp -r etc/* $RPM_BUILD_ROOT%{_sysconfdir}
+install include/%{name}/* $RPM_BUILD_ROOT%{_includedir}/%{name}/
 
-install bmon $RPM_BUILD_ROOT%{_bindir}
-install bmon.1 $RPM_BUILD_ROOT%{_mandir}/man1
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog
+%doc ChangeLog
 %attr(755,root,root) %{_bindir}/*
+%dir %{_sysconfdir}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
 %{_mandir}/man1/*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/*
This page took 0.109399 seconds and 4 git commands to generate.