35 Distribution: OpenPKG Community |
35 Distribution: OpenPKG Community |
36 Class: BASE |
36 Class: BASE |
37 Group: Mail |
37 Group: Mail |
38 License: ASF |
38 License: ASF |
39 Version: %{V_here} |
39 Version: %{V_here} |
40 Release: 20110914 |
40 Release: 20120800 |
41 |
41 |
42 # package options |
42 # package options |
43 %option with_fsl yes |
43 %option with_fsl yes |
44 |
44 |
45 # list of sources |
45 # list of sources |
46 Source0: http://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-%{V_real}.tar.gz |
46 Source0: http://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-%{V_real}.tar.bz2 |
47 Source1: rc.spamassassin |
47 Source1: rc.spamassassin |
48 Source2: local.cf |
48 Source2: local.cf |
49 Source3: fsl.spamassassin |
49 Source3: fsl.spamassassin |
50 Patch0: spamassassin.patch |
|
51 |
50 |
52 # build information |
51 # build information |
53 Prefix: %{l_prefix} |
52 BuildPreReq: OpenPKG, openpkg >= 20100101, perl, perl-openpkg >= 5.8.4, make |
54 BuildRoot: %{l_buildroot} |
53 PreReq: OpenPKG, openpkg >= 20100101, perl, gnupg |
55 BuildPreReq: OpenPKG, openpkg >= 20060823, perl, perl-openpkg >= 5.8.4, make |
|
56 PreReq: OpenPKG, openpkg >= 20060823, perl, gnupg |
|
57 BuildPreReq: perl-db, perl-crypto, perl-xml, perl-dns, perl-locale, perl-www |
54 BuildPreReq: perl-db, perl-crypto, perl-xml, perl-dns, perl-locale, perl-www |
58 PreReq: perl-db, perl-crypto, perl-xml, perl-dns, perl-locale, perl-www |
55 PreReq: perl-db, perl-crypto, perl-xml, perl-dns, perl-locale, perl-www |
59 %if "%{with_fsl}" == "yes" |
56 %if "%{with_fsl}" == "yes" |
60 BuildPreReq: fsl |
57 BuildPreReq: fsl |
61 PreReq: fsl |
58 PreReq: fsl |
62 %endif |
59 %endif |
63 AutoReq: no |
|
64 AutoReqProv: no |
|
65 |
60 |
66 %description |
61 %description |
67 SpamAssassin provides you with a way to reduce if not completely |
62 SpamAssassin provides you with a way to reduce if not completely |
68 eliminate Unsolicited Commercial Email (UCE, aka SPAM) from your |
63 eliminate Unsolicited Commercial Email (UCE, aka SPAM) from your |
69 incoming email. It uses a genetic-algorithm evolved scoring system |
64 incoming email. It uses a genetic-algorithm evolved scoring system |
97 -A LOCALRULESDIR="%{l_prefix}/etc/spamassassin" \ |
91 -A LOCALRULESDIR="%{l_prefix}/etc/spamassassin" \ |
98 -A DATADIR="%{l_prefix}/share/spamassassin" \ |
92 -A DATADIR="%{l_prefix}/share/spamassassin" \ |
99 -A PERL_BIN="%{l_prefix}/bin/perl" |
93 -A PERL_BIN="%{l_prefix}/bin/perl" |
100 |
94 |
101 # build package |
95 # build package |
102 %{l_make} %{l_mflags} |
96 %{l_make} %{l_mflags -O} |
103 |
97 |
104 %install |
98 %install |
105 rm -rf $RPM_BUILD_ROOT |
|
106 |
|
107 # install package |
99 # install package |
108 %{l_make} %{l_mflags} install |
100 %{l_make} %{l_mflags} install |
109 |
101 |
110 # install default configuration |
102 # install default configuration |
111 %{l_shtool} mkdir -f -p -m 755 \ |
103 %{l_shtool} mkdir -f -p -m 755 \ |