]> git.pld-linux.org Git - packages/dspam.git/blame - dspam.spec
- add verbose bcond
[packages/dspam.git] / dspam.spec
CommitLineData
526e9159
ER
1# NOTE about versioning:
2# Stable Releases: 3.4.x, Development Releases: 3.5.x
3# All odd-versioned minor releases are considered development
4# releases, and all even-versioned minor releases are stable releases
5# - from http://www.nuclearelephant.com/projects/dspam/download.shtml
6#
229005d4
ER
7# TODO:
8# - everything
526e9159 9# - oracle driver
229005d4
ER
10# - missing /etc/dspam.conf for cron:
11# /etc/cron.daily/dspam:
12# 2430: [6/28/2005 1:2:1] Unable to open file for reading: /etc/dspam.conf: No such file or directory
13# 2430: [6/28/2005 1:2:1] Unable to read dspam.conf
c66382e4
PS
14#
15# Conditional build:
526e9159
ER
16%bcond_without mysql # enable MySQL storage driver (disable sqlite/pgsql driver)
17%bcond_with pgsql # enable PostgreSQL storage driver (disable sqlite/mysql driver)
6d23db82 18%bcond_with sqlite # enable SQLite3 storage driver
526e9159 19%bcond_with daemon
5722327e 20%bcond_with verbose
526e9159
ER
21
22%if %{with mysql} && %{with pgsql}
23%undefine with_pgsql
24%{warn:disabled pgsql as mysql and pgsql aren't supported together (yet)
25}#'vim
26%endif
27
28%if %{with mysql} && %{with sqlite}
29%undefine with_sqlite
30%{warn:disabled sqlite as mysql and sqlite aren't supported together (yet)
31}#'vim
32%endif
33
34%if %{with pgsql} && %{with sqlite}
35%undefine with_sqlite
36%{warn:disabled sqlite as pgsql and sqlite aren't supported together (yet)
37}#'vim
38%endif
39
6d23db82
AM
40
41%if %{with mysql} || %{with pgsql}
42%define with_daemon 1
43%endif
44
782a8c09 45Summary: A library and Mail Delivery Agent for Bayesian spam filtering
be22be94 46Summary(pl): Biblioteka i MDA do bayesowskiego filtrowania spamu
782a8c09 47Name: dspam
679693ff 48Version: 3.4.9
526e9159 49Release: 0.2
782a8c09
AM
50License: GPL
51Group: Applications/Mail
52Source0: http://www.nuclearelephant.com/projects/dspam/sources/%{name}-%{version}.tar.gz
679693ff 53# Source0-md5: ef7ceba47e63edb02a59be3c36cf0f6f
6d23db82 54Source1: %{name}.init
782a8c09 55URL: http://www.nuclearelephant.com/projects/dspam/
6d23db82
AM
56BuildRequires: autoconf
57BuildRequires: automake
58BuildRequires: libtool
526e9159
ER
59%{?with_mysql:BuildRequires: mysql-devel}
60%{?with_pgsql:BuildRequires: postgresql-devel}
61%{?with_sqlite:BuildRequires: sqlite3-devel}
43a9bb3e 62BuildRequires: sed >= 4.0
782a8c09
AM
63Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64
65%description
66DSPAM (as in De-Spam) is an open-source project to create a new kind
67of anti-spam mechanism, and is currently effective as both a
68server-side agent for UNIX email servers and a developer's library for
69mail clients, other anti-spam tools, and similar projects requiring
70drop-in spam filtering.
71
72The DSPAM agent masquerades as the email server's local delivery agent
73and filters/learns spams using an advanced Bayesian statistical
be22be94 74approach (based on Bayes's theorem of combined probabilities) which
782a8c09
AM
75provides an administratively maintenance-free, easy-learning Anti-Spam
76service custom tailored to each individual user's behavior. Advanced
77because on top of standard Bayesian filtering is also incorporated the
78use of Chained Tokens, de-obfuscation, and other enhancements. DSPAM
79works great with Sendmail and Exim, and should work well with any
80other MTA that supports an external local delivery agent (postfix,
81qmail, etc.)
82
be22be94
JB
83%description -l pl
84