]> git.pld-linux.org Git - packages/btail.git/blob - btail.spec
- release 3 (rebuild with gdbm 1.15)
[packages/btail.git] / btail.spec
1 Summary:        Bayesian log filter
2 Summary(pl.UTF-8):      Filtr beyesowski do logów
3 Name:           btail
4 Version:        0.2
5 Release:        3
6 License:        GPL v2 with OpenSSL linking exception
7 Group:          Applications/Text
8 Source0:        https://www.vanheusden.com/btail/%{name}-%{version}.tgz
9 # Source0-md5:  08f785b77f559b3d4e86fe2dbf4ec752
10 URL:            https://www.vanheusden.com/btail/
11 BuildRequires:  gdbm-devel
12 BuildRequires:  libstdc++-devel
13 BuildRequires:  sed >= 4.0
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ń.
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.
28
29 %prep
30 %setup -q
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
34
35 %build
36 %{__make} \
37         CXXFLAGS="%{rpmcxxflags}" \
38         CFLAGS="%{rpmcflags}"
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{_bindir}
43
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)
52 %doc license.txt readme.txt
53 %attr(755,root,root) %{_bindir}/blearn
54 %attr(755,root,root) %{_bindir}/btail
This page took 0.088049 seconds and 3 git commands to generate.