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