|
|
@@ -41,6 +41,11 @@ Version: %{V_mutt}
|
|
|
Release: 20070805
|
|
|
|
|
|
# build options
|
|
|
+%option with_pop no
|
|
|
+%option with_imap no
|
|
|
+%option with_smtp no
|
|
|
+%option with_sasl no
|
|
|
+%option with_ssl no
|
|
|
%option with_hcache no
|
|
|
%option with_comp no
|
|
|
%option with_nntp no
|
|
|
@@ -64,8 +69,16 @@ Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20060622, make
|
|
|
PreReq: OpenPKG, openpkg >= 20060622
|
|
|
-BuildPreReq: openssl, libidn, libiconv
|
|
|
-PreReq: openssl, libidn, libiconv
|
|
|
+BuildPreReq: libidn, libiconv
|
|
|
+PreReq: libidn, libiconv
|
|
|
+%if "%{with_ssl}" == "yes"
|
|
|
+BuildPreReq: openssl
|
|
|
+PreReq: openssl
|
|
|
+%endif
|
|
|
+%if "%{with_sasl}" == "yes"
|
|
|
+BuildPreReq: sasl
|
|
|
+PreReq: sasl
|
|
|
+%endif
|
|
|
%if "%{with_hcache}" == "yes"
|
|
|
BuildPreReq: qdbm
|
|
|
PreReq: qdbm
|
|
|
@@ -187,10 +200,21 @@ AutoReqProv: no
|
|
|
%else
|
|
|
--with-slang=%{l_prefix} \
|
|
|
%endif
|
|
|
- --with-ssl=%{l_prefix} \
|
|
|
+%if "%{with_pop}" == "yes"
|
|
|
--enable-pop \
|
|
|
+%endif
|
|
|
+%if "%{with_imap}" == "yes"
|
|
|
--enable-imap \
|
|
|
+%endif
|
|
|
+%if "%{with_smtp}" == "yes"
|
|
|
--enable-smtp \
|
|
|
+%endif
|
|
|
+%if "%{with_sasl}" == "yes"
|
|
|
+ --with-sasl=%{l_prefix} \
|
|
|
+%endif
|
|
|
+%if "%{with_ssl}" == "yes"
|
|
|
+ --with-ssl=%{l_prefix} \
|
|
|
+%endif
|
|
|
%if "%{with_hcache}" == "yes"
|
|
|
--enable-hcache \
|
|
|
--with-qdbm=%{l_prefix} \
|
|
|
@@ -204,8 +228,8 @@ AutoReqProv: no
|
|
|
--enable-pgp \
|
|
|
--enable-smime \
|
|
|
--enable-buffy-size \
|
|
|
- --disable-warnings \
|
|
|
--with-iconv \
|
|
|
+ --disable-warnings \
|
|
|
--disable-nls \
|
|
|
$options
|
|
|
|