1 |
Name: FuzzyOcr |
2 |
Version: 3.5.1 |
3 |
Release: 3%{?dist} |
4 |
Summary: An OCR plugin for SpamAssassin |
5 |
|
6 |
Group: Development/Libraries |
7 |
License: Apache |
8 |
URL: http://fuzzyocr.own-hero.net/wiki |
9 |
Source0: http://users.own-hero.net/~decoder/fuzzyocr/fuzzyocr-%{version}-devel.tar.gz |
10 |
Patch100: FuzzyOcr-3.5.1-locations.patch |
11 |
Patch101: FuzzyOcr-3.5.1-pamditherbw.patch |
12 |
Patch102: FuzzyOcr-3.5.1-scanorder.patch |
13 |
Patch103: FuzzyOcr-3.5.1-fixes.patch |
14 |
Patch104: FuzzyOcr-3.5.1-lognoise.patch |
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
16 |
BuildArch: noarch |
17 |
|
18 |
AutoReqProv: No |
19 |
Requires: perl |
20 |
Requires: gocr |
21 |
Requires: gifsicle |
22 |
Requires: ocrad |
23 |
Requires: netpbm-progs |
24 |
Requires: spamassassin >= 3.1.8 |
25 |
Requires: /usr/bin/giffix |
26 |
Requires: /usr/bin/giftext |
27 |
Requires: /usr/bin/gifinter |
28 |
Requires: perl(MLDBM) |
29 |
Requires: perl(String::Approx) |
30 |
Requires: perl(Time::HiRes) |
31 |
Requires: perl(MLDBM::Sync) |
32 |
Requires: perl(Log::Agent) |
33 |
Requires: perl(Tie::Cache) |
34 |
|
35 |
%description |
36 |
This plugin checks for specific keywords in GIF, JPEG, and PNG |
37 |
attachments, using gocr (an optical character recognition program). |
38 |
|
39 |
This plugin can be used to detect spam that puts all the real spam content |
40 |
in an attached image. The mail itself often will contain only random text |
41 |
and random html, without any URL's or identifiable information. |
42 |
|
43 |
This plugin has been extended to do approximate matches on words, so |
44 |
errors in recognition or attempts to obfuscate the text inside the image |
45 |
will not cause the detection to fail. |
46 |
|
47 |
|
48 |
%prep |
49 |
%setup |
50 |
%patch100 -p1 |
51 |
%patch101 -p1 |
52 |
%patch102 -p1 |
53 |
%patch103 -p1 |
54 |
%patch104 -p1 |
55 |
%{__perl} -pi -e "s#/usr/local/bin/perl#/usr/bin/perl#g" Utils/* |
56 |
|
57 |
|
58 |
%install |
59 |
# Determine the proper perl directory: |
60 |
eval `%{__perl} -V:installsitelib` |
61 |
|
62 |
install -d %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/ |
63 |
install -d %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/FuzzyOcr/ |
64 |
install -d %{buildroot}%{_sysconfdir}/mail/spamassassin/ |
65 |
install -d %{buildroot}%{_bindir} |
66 |
|
67 |
install -m 644 FuzzyOcr.words %{buildroot}%{_sysconfdir}/mail/spamassassin/FuzzyOcr.words |
68 |
install -m 644 FuzzyOcr.cf %{buildroot}%{_sysconfdir}/mail/spamassassin/FuzzyOcr.cf |
69 |
install -m 644 FuzzyOcr.preps %{buildroot}%{_sysconfdir}/mail/spamassassin/FuzzyOcr.preps |
70 |
install -m 644 FuzzyOcr.scansets %{buildroot}%{_sysconfdir}/mail/spamassassin/FuzzyOcr.scansets |
71 |
install -m 644 FuzzyOcr.mysql %{buildroot}%{_sysconfdir}/mail/spamassassin/FuzzyOcr.mysql |
72 |
install -m 444 FuzzyOcr.pm %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/FuzzyOcr.pm |
73 |
install -m 444 FuzzyOcr/* %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/FuzzyOcr/ |
74 |
install -m 755 Utils/* %{buildroot}%{_bindir} |
75 |
|
76 |
# List files in perl directories above |
77 |
find %{buildroot}$installsitelib -type f \ |
78 |
| %{__perl} -pi -e 's#^%{buildroot}##g' > %{name}-%{version}-%{release}-filelist |
79 |
|
80 |
%pre |
81 |
|
82 |
%post |
83 |
|
84 |
%postun |
85 |
|
86 |
%clean |
87 |
rm -rf %{buildroot} |
88 |
|
89 |
%files -f %{name}-%{version}-%{release}-filelist |
90 |
%defattr(-,root,root) |
91 |
%doc INSTALL CHANGES |
92 |
|
93 |
%attr(0755,root,root) %{_bindir}/* |
94 |
%config %{_sysconfdir}/mail/spamassassin/* |
95 |
|
96 |
%changelog |
97 |
* Sun Jun 24 2007 Shad L. Lords <slords@mail.com> 3.5.1-3 |
98 |
- Fix log (lint) noise [SME: 3100] |
99 |
|
100 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
101 |
- Clean up spec so package can be built by koji/plague |
102 |
|
103 |
* Sun Jan 07 2007 Shad L. Lords <slords@mail.com 3.5.1-2 |
104 |
- Apply latest svn patches. |
105 |
- Update requires so el5 install works. [SME: 2628] |
106 |
|
107 |
* Sun Jan 07 2007 Shad L. Lords <slords@mail.com 3.5.1-1 |
108 |
- Upgrade to 3.5.1 |
109 |
|
110 |
* Sat Dec 23 2006 Shad L. Lords <slords@mail.com 3.5.0-0.rc1.sme.8 |
111 |
- Apply patchset 3 for rc1 |
112 |
|
113 |
* Thu Dec 14 2006 Shad L. Lords <slords@mail.com 3.5.0-0.rc1.sme.7 |
114 |
- Apply patchset 1 & 2 for rc1 |
115 |
|
116 |
* Mon Dec 11 2006 Shad L. Lords <slords@mail.com 3.5.0-0.rc1.sme.6 |
117 |
- Makek perl requires require perl modules not package names |
118 |
- Move FuzzyOcr perl modules to correct place |
119 |
- Finish patching netbpm stuff for CentOS |
120 |
|
121 |
* Sun Dec 10 2006 Greg Swallow <greg@runlevel7.ca> 3.5.0-0.rc1.sme.5 |
122 |
- add perl-MLDBM-Sync and perl-Time-Hires to requires, both are |
123 |
available from rpmforge |
124 |
- add perl-Log-Agent to requires - found src rpm here: |
125 |
http://apt.bea.ki.se/biorpms/fedora/linux/1/i386/SRPMS.biorpms/ |
126 |
(might work??) |
127 |
|
128 |
* Sun Dec 10 2006 Greg Swallow <greg@runlevel7.ca> 3.5.0-0.rc1 |
129 |
- Fix typo in FuzzyOcr.preps |
130 |
|
131 |
* Sun Dec 10 2006 Shad L. Lords <slords@mail.com> 3.5.0-0.rc1 |
132 |
- Fix location in cf file |
133 |
|
134 |
* Sun Dec 10 2006 Greg Swallow <greg@runlevel7.ca> 3.5.0-0.rc1 |
135 |
- Update to 3.5.0 rc1 version |
136 |
- listed a few more new files |
137 |
- added patch to work with netpbm in CentOS |
138 |
|
139 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
140 |
- Update to new release naming. No functional changes. |
141 |
- Make Packager generic |
142 |
|
143 |
* Mon Nov 20 2006 Japheth Cleaver <cleaver@redwire.net> 3.4.2-devel |
144 |
- new package |
145 |
|