spamassassin/spamassassin.spec

changeset 412
577aba7f4106
parent 194
42dc0386ad57
child 629
27f852b7efd2
equal deleted inserted replaced
2:77e4a103a36c 3:1832b3fa3bfc
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.
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package version 24 # package version
25 %define V_real 3.2.5 25 %define V_real 3.3.1
26 %define V_here 3.2.5 26 %define V_here 3.3.1
27 %define V_sdir 3.2.5 27 %define V_sdir 3.3.1
28 28
29 # package information 29 # package information
30 Name: spamassassin 30 Name: spamassassin
31 Summary: Mail Filter Identifying Spam 31 Summary: Mail Filter Identifying Spam
32 URL: http://spamassassin.apache.org/ 32 URL: http://spamassassin.apache.org/
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
78 regex = Mail-SpamAssassin-(\d+\.\d+\.\d+)\.tar\.gz 79 regex = Mail-SpamAssassin-(\d+\.\d+\.\d+)\.tar\.gz
79 } 80 }
80 81
81 %prep 82 %prep
82 %setup -q -n Mail-SpamAssassin-%{V_sdir} 83 %setup -q -n Mail-SpamAssassin-%{V_sdir}
84 %patch -p0
83 85
84 %build 86 %build
85 # configure package 87 # configure package
86 %{l_prefix}/bin/perl-openpkg prepare 88 %{l_prefix}/bin/perl-openpkg prepare
87 export CC="%{l_cc}" 89 export CC="%{l_cc}"
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

mercurial