Name: fuzzyocr Version: 3.6.0 Release: 1%{?dist} Summary: SpamAssassin plugin for image spams 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 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: spamassassin Requires: ocrad gocr tesseract Requires: gifsicle netpbm-progs giflib-utils Requires: perl-String-Approx perl-MLDBM %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. The methods mainly are: * Optical Character Recognition using different engines and settings * Fuzzy word matching algorithm applied to OCR results * Image hashing system to learn unique properties of known spam images * Dimension, size and integrity checking of images * Content-Type verification for the containing email %prep %setup -q -n FuzzyOcr-%{version} %build rm -rf */.svn %install rm -rf $RPM_BUILD_ROOT SA=$RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin/ mkdir -p $SA cp -ar FuzzyOcr FuzzyOcr.cf FuzzyOcr.pm \ FuzzyOcr.preps FuzzyOcr.scansets FuzzyOcr.words \ $SA %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc CHANGES INSTALL LICENSE samples %dir %{_sysconfdir}/mail/spamassassin/FuzzyOcr %config(noreplace) %{_sysconfdir}/mail/spamassassin/FuzzyOcr.cf %{_sysconfdir}/mail/spamassassin/FuzzyOcr/*.pm %{_sysconfdir}/mail/spamassassin/FuzzyOcr.pm %{_sysconfdir}/mail/spamassassin/FuzzyOcr.preps %{_sysconfdir}/mail/spamassassin/FuzzyOcr.scansets %config(noreplace) %{_sysconfdir}/mail/spamassassin/FuzzyOcr.words %changelog * Mon May 04 2009 Ján ONDREJ (SAL) - 3.6.0-1 - initial release