|
|
@@ -33,11 +33,12 @@ Distribution: OpenPKG [PLUS]
|
|
|
Group: Cryptography
|
|
|
License: BSD
|
|
|
Version: 2.1.12
|
|
|
-Release: 20030213
|
|
|
+Release: 20030307
|
|
|
|
|
|
# package options
|
|
|
%option with_fsl no
|
|
|
%option with_pam no
|
|
|
+%option with_login no
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-%{version}.tar.gz
|
|
|
@@ -81,15 +82,18 @@ AutoReqProv: no
|
|
|
-e "s;javah;javah-xxx;g" \
|
|
|
-e "s;javadoc;javadoc-xxx;g" \
|
|
|
configure
|
|
|
- CC="%{l_cc}" \
|
|
|
- CFLAGS="%{l_cflags -O} %{l_cppflags}" \
|
|
|
+
|
|
|
+ cflags="%{l_cflags -O} %{l_cppflags}"
|
|
|
+ ldflags="-L%{l_prefix}/lib"
|
|
|
+ libs="-ldb"
|
|
|
%if "%{with_fsl}" == "yes"
|
|
|
- LDFLAGS="%{l_ldflags} `%{l_prefix}/bin/fsl-config --all --ldflags`" \
|
|
|
- LIBS="-ldb `%{l_prefix}/bin/fsl-config --all --libs`" \
|
|
|
-%else
|
|
|
- LDFLAGS="%{l_ldflags}" \
|
|
|
- LIBS="-ldb" \
|
|
|
+ ldflags="$ldflags `%{l_prefix}/bin/fsl-config --all --ldflags`"
|
|
|
+ libs="$libs `%{l_prefix}/bin/fsl-config --all --libs`"
|
|
|
%endif
|
|
|
+ CC="%{l_cc}" \
|
|
|
+ CFLAGS="$cflags" \
|
|
|
+ LDFLAGS="$ldflags" \
|
|
|
+ LIBS="$libs" \
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
--with-plugindir=%{l_prefix}/lib/sasl \
|
|
|
@@ -102,6 +106,9 @@ AutoReqProv: no
|
|
|
--with-pam \
|
|
|
%else
|
|
|
--without-pam \
|
|
|
+%endif
|
|
|
+%if "%{with_login}" == "yes"
|
|
|
+ --enable-login \
|
|
|
%endif
|
|
|
--disable-shared \
|
|
|
--enable-static \
|