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

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

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


Revision 1.2 - (hide annotations) (download)
Wed Aug 29 16:51:39 2007 UTC (17 years, 2 months ago) by gregswallow
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +5 -3 lines
Wed Aug 29 10:51:16 2007                                      gswallow

fix patch
----------------------------------------------------------------------

1 gregswallow 1.1 Name: spamassassin-pdfinfo
2     Version: 0.8
3 gregswallow 1.2 Release: 2%{?dist}
4 gregswallow 1.1 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 gregswallow 1.2 Patch1: spamassassin-pdfinfo-0.8-loadplugin2.patch
14 gregswallow 1.1
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 gregswallow 1.2 %patch1 -p1
31 gregswallow 1.1
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 gregswallow 1.2 * Mon Aug 27 2007 Greg Swallow <greg@runlevel7.ca> 0.8-2
64 gregswallow 1.1 - new package
65 gregswallow 1.2 - add patch(es) (oops) to load plugin automatically
66 gregswallow 1.1 - based on spamassassin-botnet rpm

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