7 |
Summary: A spam filter for email which can be invoked from mail delivery agents |
Summary: A spam filter for email which can be invoked from mail delivery agents |
8 |
Name: spamassassin |
Name: spamassassin |
9 |
Version: 3.3.2 |
Version: 3.3.2 |
10 |
Release: %mkrel 1 |
Release: %mkrel 2 |
11 |
License: Apache License |
License: Apache License |
12 |
Group: Networking/Mail |
Group: Networking/Mail |
13 |
URL: http://spamassassin.apache.org/ |
URL: http://spamassassin.apache.org/ |
14 |
Source0: http://www.apache.org/dist/spamassassin/source/%{fname}-%{version}.tar.gz |
Source0: http://www.apache.org/dist/spamassassin/source/%{fname}-%{version}.tar.gz |
|
#Source1: http://www.apache.org/dist/spamassassin/source/%{fname}-%{version}.tar.bz2.asc |
|
|
#svn co https://svn.apache.org/repos/asf/spamassassin/branches/3.3 spamassassin-3.3.x |
|
15 |
Source2: spamd.init |
Source2: spamd.init |
16 |
Source3: spamd.sysconfig |
Source3: spamd.sysconfig |
17 |
Source4: spamassassin-default.rc |
Source4: spamassassin-default.rc |
26 |
Requires(preun): rpm-helper |
Requires(preun): rpm-helper |
27 |
BuildRequires: gnupg |
BuildRequires: gnupg |
28 |
BuildRequires: openssl-devel |
BuildRequires: openssl-devel |
29 |
BuildRequires: perl-Apache-Test |
BuildRequires: perl(Apache::Test) |
30 |
BuildRequires: perl(Archive::Tar) |
BuildRequires: perl(Archive::Tar) |
31 |
BuildRequires: perl-DB_File |
BuildRequires: perl-DB_File |
32 |
BuildRequires: perl-devel |
BuildRequires: perl-devel |
48 |
BuildRequires: perl-Time-HiRes |
BuildRequires: perl-Time-HiRes |
49 |
BuildRequires: perl-version |
BuildRequires: perl-version |
50 |
BuildRequires: re2c |
BuildRequires: re2c |
|
Requires: perl-Mail-SpamAssassin >= %{version}-%{release} |
|
|
Requires: perl(Archive::Tar) |
|
|
Requires: perl-DB_File |
|
|
Requires: perl(NetAddr::IP) |
|
|
Requires: perl-Net-DNS |
|
|
Requires: perl(Time::HiRes) |
|
51 |
%if ! %bootstrap |
%if ! %bootstrap |
52 |
Requires: spamassassin-rules >= 3.3.0 |
Requires: spamassassin-rules >= 3.3.0 |
53 |
%endif |
%endif |
|
# (oe) these are not required, but if not it cripples the SpamAssassin functionalities |
|
|
%define opt_deps gnupg perl(Digest::SHA) perl-Encode-Detect perl-IO-Socket-SSL perl-IO-Zlib perl-IP-Country perl-libwww-perl perl-Mail-DKIM >= 0.37 perl-Mail-SPF perl-Net-Ident perl-Sys-Hostname-Long perl-version |
|
|
Suggests: %{opt_deps} |
|
|
|
|
54 |
|
|
55 |
%description |
%description |
56 |
SpamAssassin provides you with a way to reduce if not completely eliminate |
SpamAssassin provides you with a way to reduce if not completely eliminate |
297 |
fi |
fi |
298 |
# Need to run sa-update otherwise the spamd will not start until a cron job completes |
# Need to run sa-update otherwise the spamd will not start until a cron job completes |
299 |
echo "need to run sa-update" |
echo "need to run sa-update" |
300 |
/usr/bin/sa-update -v |
/usr/bin/sa-update -v |
301 |
|
|
302 |
%_post_service spamd |
%_post_service spamd |
303 |
|
|
306 |
|
|
307 |
%files |
%files |
308 |
%doc README Changes sample-*.txt procmailrc.example INSTALL TRADEMARK |
%doc README Changes sample-*.txt procmailrc.example INSTALL TRADEMARK |
309 |
%doc CREDITS UPGRADE USAGE |
%doc CREDITS UPGRADE USAGE META.yml |
310 |
%dir %{_sysconfdir}/mail/%{name} |
%dir %{_sysconfdir}/mail/%{name} |
311 |
%dir %attr(0700,root,root) %{_sysconfdir}/mail/%{name}/sa-update-keys |
%dir %attr(0700,root,root) %{_sysconfdir}/mail/%{name}/sa-update-keys |
312 |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/%{name}/*.cf |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/%{name}/*.cf |
321 |
%attr(0755,root,root) %{_bindir}/spamassassin |
%attr(0755,root,root) %{_bindir}/spamassassin |
322 |
%{_mandir}/man1/sa-awl.1* |
%{_mandir}/man1/sa-awl.1* |
323 |
%{_mandir}/man1/sa-learn.1* |
%{_mandir}/man1/sa-learn.1* |
|
%{_mandir}/man1/spamassassin.1* |
|
324 |
%{_mandir}/man1/sa-update.1* |
%{_mandir}/man1/sa-update.1* |
325 |
|
%{_mandir}/man1/spamassassin.1* |
326 |
%{_mandir}/man1/spamassassin-run.1* |
%{_mandir}/man1/spamassassin-run.1* |
|
%{_mandir}/man1/sa-awl.1* |
|
327 |
%{_datadir}/spamassassin |
%{_datadir}/spamassassin |
328 |
|
|
329 |
%files sa-compile |
%files sa-compile |