dovecot/dovecot.spec

changeset 609
747afbba9aa8
parent 608
09548e292fb1
child 636
17d7a4451299
equal deleted inserted replaced
10:686d9c8b7863 11:14b351fa17c0
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_major 2.0 25 %define V_major 2.1
26 %define V_minor 18 26 %define V_minor 9
27 %define V_pigeonhole 0.2.6 27 %define V_pigeonhole 0.3.1
28 28
29 # package information 29 # package information
30 Name: dovecot 30 Name: dovecot
31 Summary: IMAP4 & POP3 Server 31 Summary: IMAP4 & POP3 Server
32 URL: http://www.dovecot.org/ 32 URL: http://www.dovecot.org/
35 Distribution: OpenPKG Community 35 Distribution: OpenPKG Community
36 Class: EVAL 36 Class: EVAL
37 Group: Mail 37 Group: Mail
38 License: MIT+LGPL 38 License: MIT+LGPL
39 Version: %{V_major}.%{V_minor} 39 Version: %{V_major}.%{V_minor}
40 Release: 20120208 40 Release: 20120800
41 41
42 # package options 42 # package options
43 %option with_fsl yes 43 %option with_fsl yes
44 %option with_sieve yes 44 %option with_sieve yes
45 %option with_pam no 45 %option with_pam no
55 Source3: rc.dovecot 55 Source3: rc.dovecot
56 Source4: dovecot.conf 56 Source4: dovecot.conf
57 Patch0: dovecot.patch 57 Patch0: dovecot.patch
58 58
59 # build information 59 # build information
60 Prefix: %{l_prefix} 60 BuildPreReq: OpenPKG, openpkg >= 20100101, pkgconfig
61 BuildRoot: %{l_buildroot} 61 PreReq: OpenPKG, openpkg >= 20100101, MTA, x509
62 BuildPreReq: OpenPKG, openpkg >= 20060823
63 PreReq: OpenPKG, openpkg >= 20060823, MTA, x509
64 BuildPreReq: libiconv, openssl, zlib, bzip2 62 BuildPreReq: libiconv, openssl, zlib, bzip2
65 PreReq: libiconv, openssl, zlib, bzip2 63 PreReq: libiconv, openssl, zlib, bzip2
66 %if "%{with_fsl}" == "yes" 64 %if "%{with_fsl}" == "yes"
67 BuildPreReq: fsl 65 BuildPreReq: fsl
68 PreReq: fsl 66 PreReq: fsl
89 %endif 87 %endif
90 %if "%{with_sqlite}" == "yes" 88 %if "%{with_sqlite}" == "yes"
91 BuildPreReq: sqlite 89 BuildPreReq: sqlite
92 PreReq: sqlite 90 PreReq: sqlite
93 %endif 91 %endif
94 AutoReq: no
95 AutoReqProv: no
96 92
97 %description 93 %description
98 Dovecot is an Open Source IMAP and POP3 server, written with 94 Dovecot is an Open Source IMAP and POP3 server, written with
99 security primarily in mind. Dovecot is an excellent choice for both 95 security primarily in mind. Dovecot is an excellent choice for both
100 small and large installations. It's fast, simple to set up, requires 96 small and large installations. It's fast, simple to set up, requires
125 -e 's;/usr/sbin/sendmail;%{l_prefix}/sbin/sendmail;g' \ 121 -e 's;/usr/sbin/sendmail;%{l_prefix}/sbin/sendmail;g' \
126 src/config/all-settings.c \ 122 src/config/all-settings.c \
127 src/lib-lda/lda-settings.c 123 src/lib-lda/lda-settings.c
128 cppflags="%{l_cppflags}" 124 cppflags="%{l_cppflags}"
129 ldflags="%{l_ldflags} %{l_fsl_ldflags}" 125 ldflags="%{l_ldflags} %{l_fsl_ldflags}"
130 libs="%{l_fsl_libs}" 126 libs="%{l_fsl_libs} `%{l_prefix}/bin/pkg-config --libs-only-l openssl`"
131 sql_drivers="" 127 sql_drivers=""
132 %if "%{with_ldap}" == "yes" 128 %if "%{with_ldap}" == "yes"
133 libs="$libs -llber -lssl -lcrypto" 129 ldflags="$ldflags `%{l_prefix}/bin/pkg-config --libs-only-L openldap`"
130 libs="$libs `%{l_prefix}/bin/pkg-config --libs-only-l openldap`"
134 %endif 131 %endif
135 %if "%{with_mysql}" == "yes" 132 %if "%{with_mysql}" == "yes"
136 cppflags="$cppflags %{l_cppflags mysql}" 133 cppflags="$cppflags %{l_cppflags mysql}"
137 ldflags="$ldflags %{l_ldflags mysql}" 134 ldflags="$ldflags %{l_ldflags mysql}"
138 %endif 135 %endif
139 %if "%{with_pgsql}" == "yes" 136 %if "%{with_pgsql}" == "yes"
140 libs="$libs -lssl -lcrypto -lcrypt" 137 libs="$libs `%{l_prefix}/bin/pg_config --libs"
141 %endif 138 %endif
142 sql_drivers=`echo "$sql_drivers" | sed 's;^,;;'` 139 sql_drivers=`echo "$sql_drivers" | sed 's;^,;;'`
143 CC="%{l_cc}" \ 140 CC="%{l_cc}" \
144 CFLAGS="%{l_cflags -O}" \ 141 CFLAGS="%{l_cflags -O}" \
145 CPPFLAGS="$cppflags" \ 142 CPPFLAGS="$cppflags" \
213 %{l_make} %{l_mflags -O} 210 %{l_make} %{l_mflags -O}
214 ) || exit $? 211 ) || exit $?
215 %endif 212 %endif
216 213
217 %install 214 %install
218 # clean build cruft
219 rm -rf $RPM_BUILD_ROOT
220
221 # install Dovecot 215 # install Dovecot
222 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" 216 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
223 217
224 %if "%{with_sieve}" == "yes" 218 %if "%{with_sieve}" == "yes"
225 # install optional Dovecot LDA sieve plugin 219 # install optional Dovecot LDA sieve plugin
280 '%dir %attr(0750,%{l_susr},%{l_mgrp}) %{l_prefix}/var/dovecot/run/login' 274 '%dir %attr(0750,%{l_susr},%{l_mgrp}) %{l_prefix}/var/dovecot/run/login'
281 275
282 %files -f files 276 %files -f files
283 277
284 %clean 278 %clean
285 rm -rf $RPM_BUILD_ROOT
286 279
287 %post 280 %post
288 # after upgrade, restart service 281 # after upgrade, restart service
289 [ $1 -eq 2 ] || exit 0 282 [ $1 -eq 2 ] || exit 0
290 eval `%{l_rc} dovecot status 2>/dev/null` 283 eval `%{l_rc} dovecot status 2>/dev/null`

mercurial