3 # _with_db3 - build with db3 instead of db 4.x
5 Summary: Bayesian Spam Filter
6 Summary(pl): Bayesjañski Filtr Antyspamowy
11 Group: Applications/Mail
12 Vendor: Eric S. Raymond <esr@thyrsus.com>
13 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
14 # Source0-md5: 60d6fd4b7d0619659771c2a62fa307cf
15 URL: http://bogofilter.sourceforge.net/
16 BuildRequires: autoconf >= 2.53
17 BuildRequires: automake
18 %{!?_with_db3:BuildRequires: db-devel}
19 %{?_with_db3:BuildRequires: db3-devel}
21 BuildRequires: judy-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Bogofilter is a Bayesian spam filter. In its normal mode of operation,
26 it takes an email message or other text on standard input, does a
27 statistical check against lists of "good" and "bad" words, and returns
28 a status code indicating whether or not the message is spam.
29 Bogofilter is designed with fast algorithms (including Berkeley DB
30 system), coded directly in C, and tuned for speed, so it can be used
31 for production by sites that process a lot of mail.
34 Bogofilter jest bayesjañskim filtrem antyspamowym. W podstawowym
35 trybie dzia³ania na emailu lub innym tek¶cie odczytanym na wej¶ciu
36 wykonuje statystyczne testy na wystêpowanie "dobrych" i "z³ych" s³ów i
37 zwraca kod powrotu wskazuj±cy czy wiadomo¶æ jest spamem, czy te¿ nie.
38 Bogofilter jest zaprojektowany z u¿yciem szybkich algorytmów
39 (w³±czaj±c w to Berkeley DB), napisany w czystym C i "podkrêcony" pod
40 k±tem szybko¶ci, a wiêc mo¿e byæ u¿ywany na systemach "produkcyjnych",
41 które przetwarzaj± du¿e ilo¶ci poczty.
56 rm -rf $RPM_BUILD_ROOT
58 %{__make} install DESTDIR=$RPM_BUILD_ROOT
60 cp $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf.example $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf
62 rm -f $RPM_BUILD_ROOT%{_bindir}/lexertest
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %config(noreplace,missingok) %{_sysconfdir}/bogofilter.cf
71 %attr(755,root,root) %{_bindir}/*
72 %attr(644,root,root) %{_mandir}/man1/*