1 ## |
1 ## |
2 ## spamassassin.spec -- OpenPKG RPM Package Specification |
2 ## spamassassin.spec -- OpenPKG RPM Package Specification |
3 ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/> |
3 ## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/> |
4 ## |
4 ## |
5 ## Permission to use, copy, modify, and distribute this software for |
5 ## Permission to use, copy, modify, and distribute this software for |
6 ## any purpose with or without fee is hereby granted, provided that |
6 ## any purpose with or without fee is hereby granted, provided that |
7 ## the above copyright notice and this permission notice appear in all |
7 ## the above copyright notice and this permission notice appear in all |
8 ## copies. |
8 ## copies. |
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: 20090420 |
40 Release: 20110914 |
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.gz |
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 |
50 |
51 |
51 # build information |
52 # build information |
52 Prefix: %{l_prefix} |
53 Prefix: %{l_prefix} |
53 BuildRoot: %{l_buildroot} |
54 BuildRoot: %{l_buildroot} |
54 BuildPreReq: OpenPKG, openpkg >= 20060823, perl, perl-openpkg >= 5.8.4, make |
55 BuildPreReq: OpenPKG, openpkg >= 20060823, perl, perl-openpkg >= 5.8.4, make |
55 PreReq: OpenPKG, openpkg >= 20060823, perl |
56 PreReq: OpenPKG, openpkg >= 20060823, perl, gnupg |
56 BuildPreReq: perl-db, perl-crypto, perl-xml, perl-dns |
57 BuildPreReq: perl-db, perl-crypto, perl-xml, perl-dns, perl-locale, perl-www |
57 PreReq: perl-db, perl-crypto, perl-xml, perl-dns |
58 PreReq: perl-db, perl-crypto, perl-xml, perl-dns, perl-locale, perl-www |
58 %if "%{with_fsl}" == "yes" |
59 %if "%{with_fsl}" == "yes" |
59 BuildPreReq: fsl |
60 BuildPreReq: fsl |
60 PreReq: fsl |
61 PreReq: fsl |
61 %endif |
62 %endif |
62 AutoReq: no |
63 AutoReq: no |
112 %{SOURCE local.cf} \ |
114 %{SOURCE local.cf} \ |
113 $RPM_BUILD_ROOT%{l_prefix}/etc/spamassassin/ |
115 $RPM_BUILD_ROOT%{l_prefix}/etc/spamassassin/ |
114 |
116 |
115 # create directories for PID file and virtual users |
117 # create directories for PID file and virtual users |
116 %{l_shtool} mkdir -f -p -m 755 \ |
118 %{l_shtool} mkdir -f -p -m 755 \ |
117 $RPM_BUILD_ROOT%{l_prefix}/var/spamassassin \ |
|
118 $RPM_BUILD_ROOT%{l_prefix}/var/spamassassin/spool |
119 $RPM_BUILD_ROOT%{l_prefix}/var/spamassassin/spool |
119 |
120 |
120 # strip installation |
121 # strip installation |
121 chmod u+w $RPM_BUILD_ROOT%{l_prefix}/bin/* |
122 chmod u+w $RPM_BUILD_ROOT%{l_prefix}/bin/* |
122 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
123 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |