/[smeserver]/spamassassin-pdfinfo/F/spamassassin-pdfinfo.spec
ViewVC logotype

Contents of /spamassassin-pdfinfo/F/spamassassin-pdfinfo.spec

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


Revision 1.1 - (show annotations) (download)
Mon Aug 27 21:58:03 2007 UTC (17 years, 3 months ago) by gregswallow
Branch: MAIN
Branch point for: SPAMASSASSIN-PDFINFO
Initial revision

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

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