]>
Commit | Line | Data |
---|---|---|
5fff997b | 1 | Summary: Bayesian log filter |
2 | Summary(pl.UTF-8): Filtr beyesiański do logów | |
3 | Name: btail | |
4 | Version: 0.2 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Applications/Text | |
8 | Source0: http://www.vanheusden.com/btail/%{name}-%{version}.tgz | |
9 | # Source0-md5: 08f785b77f559b3d4e86fe2dbf4ec752 | |
10 | URL: http://www.vanheusden.com/btail/ | |
0a6ea0d6 | 11 | BuildRequires: gdbm-devel |
12 | BuildRequires: libstdc++-devel | |
5fff997b | 13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
16 | Btail monitors a logfile for specific events. To do this it uses a | |
17 | bayesian filter to determine what events are worth passing through and | |
18 | which should be suppressed. So it filters out all of the routine | |
19 | stuff, but passes through anything important or out of the ordinary. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | Btail monitoruje plik z logami na wypadek niestandardowych wydarzeń. | |
0a6ea0d6 | 23 | Wykorzystuje filtr bayesiański do określenia które wydarzenia są |
24 | warte pokazania, a które należy opuścić. Wszystkie rutynowe | |
25 | komunikaty są więc odfiltrowane, natomiast nieregularne i ważne | |
26 | wydarzenia zostają przepuszczone przez filtr | |
5fff997b | 27 | |
28 | %prep | |
29 | %setup -q | |
30 | sed -i -e 's/ncurses.h/ncurses\/ncurses.h/' error.cpp | |
31 | sed -i -e 's/\(\/usr\/local\/bin\)/\$\(DESTDIR\)\/usr\/bin/' Makefile | |
32 | ||
33 | %build | |
0a6ea0d6 | 34 | %{__make} \ |
35 | CXXFLAGS="%{rpmcxxflags}" \ | |
36 | CFLAGS="%{rpmcflags}" | |
5fff997b | 37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT%{_bindir} | |
41 | %{__make} install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc readme.txt | |
50 | %attr(755,root,root) %{_bindir}/* |