Name: spamassassin-FuzzyOcr Version: 3.6.0 Release: 5%{?dist} Summary: Spamassassin plugin to identify image spam Group: Applications/Internet License: ASL 2.0 URL: http://fuzzyocr.own-hero.net/ Source0: http://users.own-hero.net/~decoder/fuzzyocr/fuzzyocr-%{version}.tar.gz Patch1: fuzzyocr-fix-untaint-issue.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: spamassassin perl-String-Approx netpbm-progs ocrad gifsicle giflib-utils BuildRequires: /usr/bin/iconv %description FuzzyOcr is a plugin for SpamAssassin which is aimed at unsolicited bulk mail (also known as "Spam") containing images as the main content carrier. Using different methods, it analyzes the content and properties of images to distinguish between normal mails (Ham) and spam mails. %prep %setup -q -n FuzzyOcr-%{version} %patch1 -p1 %{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' Utils/fuzzy-* %{__perl} -pi -e 's|FuzzyOcr.pm|%{perl_vendorlib}/FuzzyOcr.pm|' FuzzyOcr.cf %{__perl} -pi -e 's|#focr_verbose 3|focr_verbose 0|' FuzzyOcr.cf %{__sed} -i 's/\r//' Utils/README FuzzyOcr.mysql samples/ocr-obfuscated.eml iconv -f iso8859-1 -t utf-8 samples/ocr-jpg.eml > samples/ocr-jpg.eml.conv && mv -f samples/ocr-jpg.eml.conv samples/ocr-jpg.eml %build # nothing to do here %install rm -rf $RPM_BUILD_ROOT %{__install} -d $RPM_BUILD_ROOT/%{_sysconfdir}/mail/spamassassin %{__install} -d $RPM_BUILD_ROOT/%{perl_vendorlib}/FuzzyOcr %{__cp} FuzzyOcr/* $RPM_BUILD_ROOT/%{perl_vendorlib}/FuzzyOcr/ %{__cp} FuzzyOcr.pm $RPM_BUILD_ROOT/%{perl_vendorlib}/ %{__cp} FuzzyOcr.cf $RPM_BUILD_ROOT/%{_sysconfdir}/mail/spamassassin/ %{__cp} FuzzyOcr.preps $RPM_BUILD_ROOT/%{_sysconfdir}/mail/spamassassin/ %{__cp} FuzzyOcr.scansets $RPM_BUILD_ROOT/%{_sysconfdir}/mail/spamassassin/ %{__cp} FuzzyOcr.words $RPM_BUILD_ROOT/%{_sysconfdir}/mail/spamassassin/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Utils samples INSTALL LICENSE CHANGES FuzzyOcr.mysql %{perl_vendorlib}/* %config(noreplace) %{_sysconfdir}/mail/spamassassin/* %changelog * Sat Feb 12 2011 Andrew Colin Kissa <andrew@topdog.za.net> - 3.6.0-5 - fix bugzilla bug #640504 * Sun Aug 22 2010 Andrew Colin Kissa <andrew@topdog.za.net> - 3.6.0-4 - fix bugzilla bug #621785 * Tue Aug 03 2010 Andrew Colin Kissa <andrew@topdog.za.net> - 3.6.0-3 - fix requires * Wed Jul 28 2010 Andrew Colin Kissa <andrew@topdog.za.net> - 3.6.0-2 - fixed the module path - added iconv build requires * Tue Jul 20 2010 Andrew Colin Kissa <andrew@topdog.za.net> - 3.6.0-1 - initial package