]> git.pld-linux.org Git - packages/bogofilter.git/blob - bogofilter.spec
- upgraded to 0.15.6
[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.15.6
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 # Source0-md5:  bd2837a484242c7d4d4ee7c48535caae
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}
20 BuildRequires:  flex
21 BuildRequires:  gsl-devel
22 BuildRequires:  judy-devel
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Bogofilter is a Bayesian spam filter. In its normal mode of operation,
27 it takes an email message or other text on standard input, does a
28 statistical check against lists of "good" and "bad" words, and returns
29 a status code indicating whether or not the message is spam.
30 Bogofilter is designed with fast algorithms (including Berkeley DB
31 system), coded directly in C, and tuned for speed, so it can be used
32 for production by sites that process a lot of mail.
33
34 %description -l pl
35 Bogofilter jest bayesjañskim filtrem antyspamowym. W podstawowym
36 trybie dzia³ania na emailu lub innym tek¶cie odczytanym na wej¶ciu
37 wykonuje statystyczne testy na wystêpowanie "dobrych" i "z³ych" s³ów i
38 zwraca kod powrotu wskazuj±cy czy wiadomo¶æ jest spamem, czy te¿ nie.
39 Bogofilter jest zaprojektowany z u¿yciem szybkich algorytmów
40 (w³±czaj±c w to Berkeley DB), napisany w czystym C i "podkrêcony" pod
41 k±tem szybko¶ci, a wiêc mo¿e byæ u¿ywany na systemach "produkcyjnych",
42 które przetwarzaj± du¿e ilo¶ci poczty.
43
44 %prep
45 %setup -q
46
47 %build
48 rm -f missing
49 %{__aclocal}
50 %{__autoconf}
51 %{__autoheader}
52 %{__automake}
53 %configure
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 %{__make} install DESTDIR=$RPM_BUILD_ROOT
60
61 cp $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf.example $RPM_BUILD_ROOT%{_sysconfdir}/bogofilter.cf
62
63 rm -f $RPM_BUILD_ROOT%{_bindir}/lexertest
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc README NEWS TODO
71 %config(noreplace,missingok) %{_sysconfdir}/bogofilter.cf
72 %attr(755,root,root) %{_bindir}/*
73 %attr(644,root,root) %{_mandir}/man1/*
This page took 0.060606 seconds and 3 git commands to generate.