]> git.pld-linux.org Git - packages/bogofilter.git/blob - bogofilter.spec
266df07a4b380c0a71dc1aa426bd609ea464936b
[packages/bogofilter.git] / bogofilter.spec
1 # Conditional build:
2 # _with_db3     - build with db3 instead of db4
3
4 Summary:        Bayesian Spam Filter
5 Summary(pl):    Bayesjañski Filtr Antyspamowy
6 Name:           bogofilter
7 Version:        0.11.2
8 Release:        1
9 License:        GPL
10 Group:          Applications/Mail
11 Vendor:         Eric S. Raymond <esr@thyrsus.com>
12 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13 URL:            http://bogofilter.sourceforge.net/
14 BuildRequires:  autoconf 
15 BuildRequires:  automake
16 %{!?_with_db3:BuildRequires:    db-devel}
17 %{?_with_db3:BuildRequires:     db3-devel}
18 BuildRequires:  flex
19 BuildRequires:  judy-devel
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Bogofilter is a Bayesian spam filter. In its normal mode of operation,
24 it takes an email message or other text on standard input, does a
25 statistical check against lists of "good" and "bad" words, and returns
26 a status code indicating whether or not the message is spam.
27 Bogofilter is designed with fast algorithms (including Berkeley DB
28 system), coded directly in C, and tuned for speed, so it can be used
29 for production by sites that process a lot of mail.
30
31 %description -l pl
32 Bogofilter jest bayesjañskim filtrem antyspamowym. W podstawowym
33 trybie dzia³ania na emailu lub innym tek¶cie odczytanym na wej¶ciu
34 wykonuje statystyczne testy na wystêpowanie "dobrych" i "z³ych" s³ów i
35 zwraca kod powrotu wskazuj±cy czy wiadomo¶æ jest spamem, czy te¿ nie.
36 Bogofilter jest zaprojektowany z u¿yciem szybkich algorytmów
37 (w³±czaj±c w to Berkeley DB), napisany w czystym C i "podkrêcony" pod
38 k±tem szybko¶ci, a wiêc mo¿e byæ u¿ywany na systemach "produkcyjnych",
39 które przetwarzaj± du¿e ilo¶ci poczty.
40
41 %prep
42 %setup -q
43
44 %build
45 rm -f missing
46 %{__aclocal}
47 %{__autoconf}
48 %{__autoheader}
49 %{__automake}
50 %configure
51 %{__make}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 %{__make} install DESTDIR=$RPM_BUILD_ROOT
57
58 cp $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf.example $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf
59
60 rm -f $RPM_BUILD_ROOT%{_bindir}/lexertest
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %doc README NEWS TODO 
68 %config(noreplace,missingok) %{_sysconfdir}/bogofilter.cf
69 %attr(755,root,root) %{_bindir}/*
70 %attr(644,root,root) %{_mandir}/man1/*
This page took 0.027072 seconds and 2 git commands to generate.