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