/[smeserver]/rpms/FuzzyOcr/sme8/FuzzyOcr.spec
ViewVC logotype

Contents of /rpms/FuzzyOcr/sme8/FuzzyOcr.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Wed Apr 9 13:51:41 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -0 lines
Add Id to top of spec

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed