#
# Conditional build:
-# _with_db3 - build with db3 instead of db 4.x
+%bcond_with db3 # build with db3 support instead of db4
#
Summary: Bayesian Spam Filter
Summary(pl): BayesjaƱski Filtr Antyspamowy
Name: bogofilter
-Version: 0.13.6.3
+Version: 0.15.11
Release: 1
License: GPL
Group: Applications/Mail
Vendor: Eric S. Raymond <esr@thyrsus.com>
Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 8da615e69ce49e9ae68d2831818c1767
+# Source0-md5: d22ec02be1e496bdf0139afeeae1a421
+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}
+%{!?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
%prep
%setup -q
+%patch0 -p1
%build
rm -f missing
%files
%defattr(644,root,root,755)
-%doc README NEWS TODO
+%doc README NEWS TODO
%config(noreplace,missingok) %{_sysconfdir}/bogofilter.cf
%attr(755,root,root) %{_bindir}/*
%attr(644,root,root) %{_mandir}/man1/*