1 Summary: SpamAssassin plugin to lookup e-mail checksums in blacklists
2 Name: spamassassin-plugin-iXhash2
6 Group: Applications/Networking
7 Source0: http://mailfud.org/iXhash2/iXhash2-%{version}.tar.gz
8 # Source0-md5: 3acd152c17207ae2454a35c29b41a258
9 Source1: spamassassin-iXhash2.eml
10 Patch0: spamassassin-iXhash2-2.05-conf.patch
11 URL: http://mailfud.org/iXhash2/
12 BuildRequires: perl-devel
13 Requires: spamassassin >= 3.2
14 Provides: spamassassin-iXhash = 1.5.5-2
15 Obsoletes: spamassassin-iXhash < 1.5.5-2
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 iXhash2 is an unofficial improved version of the iXhash spam filter
21 plugin for SpamAssassin, adding async DNS lookups for performance and
22 removing unneeded features but fully compatible with the iXhash 1.5.5
23 (http://www.ixhash.net/) implementation. It computes MD5 checksums of
24 fragments of the body of an e-mail and compares them to those of known
25 spam using DNS queries to a RBL-like name server. So it works similar
26 to the standard plugins that use the Pyzor, Razor and DCC software
27 packages from within SpamAssassin.
30 %setup -q -n iXhash2-%{version}
32 cp -pf %{SOURCE1} iXhash2.eml
37 rm -rf $RPM_BUILD_ROOT
39 install -D -p iXhash2.cf $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/iXhash2.cf
40 touch -c -r iXhash2.cf.conf $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/iXhash2.cf
41 install -D -p iXhash2.pm $RPM_BUILD_ROOT%{perl_vendorlib}/Mail/SpamAssassin/Plugin/iXhash2.pm
42 install -d $RPM_BUILD_ROOT%{_mandir}/man3/
43 perldoc iXhash2.pm > $RPM_BUILD_ROOT%{_mandir}/man3/Mail::SpamAssassin::Plugin::iXhash2.3pm
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
50 %doc CHANGELOG LICENSE README iXhash2.eml
51 %config(noreplace) %{_sysconfdir}/mail/spamassassin/iXhash2.cf
52 %{perl_vendorlib}/Mail/SpamAssassin/Plugin/iXhash2.pm
53 %{_mandir}/man3/*.3pm*