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