1 |
gregswallow |
1.1 |
Name: spamassassin-pdfinfo |
2 |
|
|
Version: 0.8 |
3 |
|
|
Release: 1%{?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 |
|
|
|
14 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
15 |
|
|
BuildArch: noarch |
16 |
|
|
|
17 |
|
|
Requires: perl(Digest::MD5) |
18 |
|
|
Requires: perl(MIME::QuotedPrint) |
19 |
|
|
Requires: spamassassin >= 3.1.4 |
20 |
|
|
|
21 |
|
|
%description |
22 |
|
|
This plugin/ruleset combination will help you alleviate the new |
23 |
|
|
PDF based stock spam which began to appear mid-June, 2007. |
24 |
|
|
|
25 |
|
|
|
26 |
|
|
%prep |
27 |
|
|
%setup -q |
28 |
|
|
%patch0 -p1 |
29 |
|
|
|
30 |
|
|
%install |
31 |
|
|
# Determine the proper perl directory: |
32 |
|
|
eval `%{__perl} -V:installsitelib` |
33 |
|
|
|
34 |
|
|
install -d %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/ |
35 |
|
|
install -d %{buildroot}%{_sysconfdir}/mail/spamassassin/ |
36 |
|
|
|
37 |
|
|
install -m 644 pdfinfo.cf %{buildroot}%{_sysconfdir}/mail/spamassassin/pdfinfo.cf |
38 |
|
|
install -m 444 PDFInfo.pm %{buildroot}$installsitelib/Mail/SpamAssassin/Plugin/PDFInfo.pm |
39 |
|
|
|
40 |
|
|
|
41 |
|
|
# List files in perl directories above |
42 |
|
|
find %{buildroot}$installsitelib -type f \ |
43 |
|
|
| %{__perl} -pi -e 's#^%{buildroot}##g' > %{name}-%{version}-%{release}-filelist |
44 |
|
|
|
45 |
|
|
%pre |
46 |
|
|
|
47 |
|
|
%post |
48 |
|
|
|
49 |
|
|
%postun |
50 |
|
|
|
51 |
|
|
%clean |
52 |
|
|
rm -rf %{buildroot} |
53 |
|
|
|
54 |
|
|
|
55 |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
56 |
|
|
%defattr(-,root,root) |
57 |
|
|
|
58 |
|
|
%config %{_sysconfdir}/mail/spamassassin/* |
59 |
|
|
|
60 |
|
|
%changelog |
61 |
|
|
* Mon Aug 27 2007 Greg Swallow <greg@runlevel7.ca> 0.8-1 |
62 |
|
|
- new package |
63 |
|
|
- add patch to load plugin automatically |
64 |
|
|
- based on spamassassin-botnet rpm |