%bcond_without sqlite # disable SQLite3 storage driver
%bcond_without db # disable BerkeleyDB storage driver
%bcond_without daemon # disable daemon mode
+%bcond_with mysql40 # use with mysql 4.0
#
Summary: A library and Mail Delivery Agent for Bayesian spam filtering
Summary(pl): Biblioteka i MDA do bayesowskiego filtrowania spamu
Name: dspam
Version: 3.6.3
-Release: 0.2
+Release: 0.4
License: GPL
Group: Applications/Mail
Source0: http://www.nuclearelephant.com/projects/dspam/sources/%{name}-%{version}.tar.gz
# Source0-md5: db1aedb9677e6bf5c7a47a72d4f130e5
Source1: %{name}.init
-Patch0: %{name}-mysql-runtime.patch
URL: http://www.nuclearelephant.com/projects/dspam/
BuildRequires: autoconf
BuildRequires: automake
%prep
%setup -q
-%patch0 -p1
sed -i -e 's#\-static##g' src/Makefile* src/*/Makefile*
+%{?with_mysql40:sed -i -e 's#40100#99999#g' src/mysql_drv.c}
%build
%{__libtoolize}