# # Conditional build: %bcond_with db3 # build with db3 support instead of db4 # Summary: Bayesian Spam Filter Summary(pl): Bayesjański Filtr Antyspamowy Name: bogofilter Version: 0.15.8 Release: 2 License: GPL Group: Applications/Mail Vendor: Eric S. Raymond Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz # Source0-md5: c76bff3ac66ee8ace9b89edde27112d7 Patch0: %{name}-home_etc.patch URL: http://bogofilter.sourceforge.net/ BuildRequires: autoconf >= 2.53 BuildRequires: automake %{!?with_db3:BuildRequires: db-devel} %{?with_db3:BuildRequires: db3-devel} BuildRequires: flex BuildRequires: gsl-devel BuildRequires: judy-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define specflags_ia32 -fomit-frame-pointer %description Bogofilter is a Bayesian spam filter. In its normal mode of operation, it takes an email message or other text on standard input, does a statistical check against lists of "good" and "bad" words, and returns a status code indicating whether or not the message is spam. Bogofilter is designed with fast algorithms (including Berkeley DB system), coded directly in C, and tuned for speed, so it can be used for production by sites that process a lot of mail. %description -l pl Bogofilter jest bayesjańskim filtrem antyspamowym. W podstawowym trybie działania na emailu lub innym tekście odczytanym na wejściu wykonuje statystyczne testy na występowanie "dobrych" i "złych" słów i zwraca kod powrotu wskazujący czy wiadomość jest spamem, czy też nie. Bogofilter jest zaprojektowany z użyciem szybkich algorytmów (włączając w to Berkeley DB), napisany w czystym C i "podkręcony" pod kątem szybkości, a więc może być używany na systemach "produkcyjnych", które przetwarzają duże ilości poczty. %prep %setup -q %patch0 -p1 %build rm -f missing %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT cp $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf.example $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf rm -f $RPM_BUILD_ROOT%{_bindir}/lexertest %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README NEWS TODO %config(noreplace,missingok) %{_sysconfdir}/bogofilter.cf %attr(755,root,root) %{_bindir}/* %attr(644,root,root) %{_mandir}/man1/*