]> git.pld-linux.org Git - packages/dspam.git/blame - dspam.spec
- added version info to prevoius commit ; adaptarized
[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
ER
19%bcond_with daemon
20
21%if %{with mysql} && %{with pgsql}
d8558a9e
TP
22%undefine with_mysql
23%{warn:disabled mysql as mysql and pgsql aren't supported together (yet)
526e9159
ER
24}#'vim
25%endif
26
27%if %{with mysql} && %{with sqlite}
d8558a9e
TP
28%undefine with_mysql
29%{warn:disabled mysql as mysql and sqlite aren't supported together (yet)
526e9159
ER
30}#'vim
31%endif
32
33%if %{with pgsql} && %{with sqlite}
34%undefine with_sqlite
35%{warn:disabled sqlite as pgsql and sqlite aren't supported together (yet)
36}#'vim
37%endif
38
6d23db82
AM
39
40%if %{with mysql} || %{with pgsql}
41%define with_daemon 1
42%endif
43
782a8c09 44Summary: A library and Mail Delivery Agent for Bayesian spam filtering
be22be94 45Summary(pl): Biblioteka i MDA do bayesowskiego filtrowania spamu
782a8c09 46Name: dspam
6d570cb9 47Version: 3.6.0
526e9159 48Release: 0.2
782a8c09
AM
49License: GPL
50Group: Applications/Mail
51Source0: http://www.nuclearelephant.com/projects/dspam/sources/%{name}-%{version}.tar.gz
6d570cb9 52# Source0-md5: d9ee63a8cf67ea933d711b00851ce916
6d23db82 53Source1: %{name}.init
782a8c09 54URL: http://www.nuclearelephant.com/projects/dspam/
6d23db82
AM
55BuildRequires: autoconf
56BuildRequires: automake
57BuildRequires: libtool
526e9159
ER
58%{?with_mysql:BuildRequires: mysql-devel}
59%{?with_pgsql:BuildRequires: postgresql-devel}
60%{?with_sqlite:BuildRequires: sqlite3-devel}
43a9bb3e 61BuildRequires: sed >= 4.0
782a8c09
AM
62Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63
64%description
65DSPAM (as in De-Spam) is an open-source project to create a new kind
66of anti-spam mechanism, and is currently effective as both a
67server-side agent for UNIX email servers and a developer's library for
68mail clients, other anti-spam tools, and similar projects requiring
69drop-in spam filtering.
70
71The DSPAM agent masquerades as the email server's local delivery agent
72and filters/learns spams using an advanced Bayesian statistical
be22be94 73approach (based on Bayes's theorem of combined probabilities) which
782a8c09
AM
74provides an administratively maintenance-free, easy-learning Anti-Spam
75service custom tailored to each individual user's behavior. Advanced
76because on top of standard Bayesian filtering is also incorporated the
77use of Chained Tokens, de-obfuscation, and other enhancements. DSPAM
78works great with Sendmail and Exim, and should work well with any
79other MTA that supports an external local delivery agent (postfix,
80qmail, etc.)
81
be22be94
JB
82%description -l pl
83