1 |
Name: spamassassin-pdfinfo |
2 |
Version: 0.8 |
3 |
Release: 2%{?dist} |
4 |
Summary: pdfinfo plugin for SpamAssassin |
5 |
|
6 |
Group: Development/Libraries |
7 |
License: None - Dallas Engelken |
8 |
URL: http://rulesemporium.com/plugins.htm |
9 |
# Source is not tar'd - had to do that myself |
10 |
# See: http://rulesemporium.com/plugins.htm |
11 |
Source0: %{name}-%{version}.tar.gz |
12 |
Patch0: spamassassin-pdfinfo-0.8-loadplugin.patch |
13 |
Patch1: spamassassin-pdfinfo-0.8-loadplugin2.patch |
14 |
|
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
16 |
BuildArch: noarch |
17 |
|
18 |
Requires: perl(Digest::MD5) |
19 |
Requires: perl(MIME::QuotedPrint) |
20 |
Requires: spamassassin >= 3.1.4 |
21 |
|
22 |
%description |
23 |
This plugin/ruleset combination will help you alleviate the new |
24 |
PDF based stock spam which began to appear mid-June, 2007. |
25 |
|
26 |
|
27 |
%prep |
28 |
%setup -q |
29 |
%patch0 -p1 |
30 |
%patch1 -p1 |
31 |
|
32 |
%install |
33 |
# Determine the proper perl directory: |
34 |
eval `%{__perl} -V:installsitelib` |
35 |
|
36 |
install -d %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/ |
37 |
install -d %{buildroot}%{_sysconfdir}/mail/spamassassin/ |
38 |
|
39 |
install -m 644 pdfinfo.cf %{buildroot}%{_sysconfdir}/mail/spamassassin/pdfinfo.cf |
40 |
install -m 444 PDFInfo.pm %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/PDFInfo.pm |
41 |
|
42 |
|
43 |
# List files in perl directories above |
44 |
find %{buildroot}$installsitelib -type f \ |
45 |
| %{__perl} -pi -e 's#^%{buildroot}##g' > %{name}-%{version}-%{release}-filelist |
46 |
|
47 |
%pre |
48 |
|
49 |
%post |
50 |
|
51 |
%postun |
52 |
|
53 |
%clean |
54 |
rm -rf %{buildroot} |
55 |
|
56 |
|
57 |
%files -f %{name}-%{version}-%{release}-filelist |
58 |
%defattr(-,root,root) |
59 |
|
60 |
%config %{_sysconfdir}/mail/spamassassin/* |
61 |
|
62 |
%changelog |
63 |
* Mon Aug 27 2007 Greg Swallow <greg@runlevel7.ca> 0.8-2 |
64 |
- new package |
65 |
- add patch(es) (oops) to load plugin automatically |
66 |
- based on spamassassin-botnet rpm |