|
|
@@ -43,6 +43,13 @@
|
|
|
# (requires mod_php set to "yes" above)
|
|
|
%define php_mysql no
|
|
|
%define php_gd no
|
|
|
+%define php_db no
|
|
|
+%define php_zlib no
|
|
|
+%define php_bzip2 no
|
|
|
+%define php_openssl no
|
|
|
+%define php_openldap no
|
|
|
+%define php_mm no
|
|
|
+%define php_pcre no
|
|
|
|
|
|
# the software versions
|
|
|
%define V_apache 1.3.22
|
|
|
@@ -143,6 +150,27 @@ BuildPreReq: mysql
|
|
|
%if "%{php_gd}" == "yes"
|
|
|
BuildPreReq: gd
|
|
|
%endif
|
|
|
+%if "%{php_db}" == "yes"
|
|
|
+BuildPreReq: db
|
|
|
+%endif
|
|
|
+%if "%{php_zlib}" == "yes"
|
|
|
+BuildPreReq: zlib
|
|
|
+%endif
|
|
|
+%if "%{php_bzip2}" == "yes"
|
|
|
+BuildPreReq: bzip2
|
|
|
+%endif
|
|
|
+%if "%{php_openssl}" == "yes"
|
|
|
+BuildPreReq: openssl
|
|
|
+%endif
|
|
|
+%if "%{php_openldap}" == "yes"
|
|
|
+BuildPreReq: openldap, openssl
|
|
|
+%endif
|
|
|
+%if "%{php_mm}" == "yes"
|
|
|
+BuildPreReq: mm
|
|
|
+%endif
|
|
|
+%if "%{php_pcre}" == "yes"
|
|
|
+BuildPreReq: pcre
|
|
|
+%endif
|
|
|
%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
@@ -300,6 +328,28 @@ AutoReqProv: no
|
|
|
%endif
|
|
|
%if "%{php_gd}" == "yes"
|
|
|
--with-gd=%{l_prefix} \
|
|
|
+%endif
|
|
|
+%if "%{php_db}" == "yes"
|
|
|
+ --with-db3=%{l_prefix} \
|
|
|
+%endif
|
|
|
+%if "%{php_zlib}" == "yes"
|
|
|
+ --with-zlib=%{l_prefix} \
|
|
|
+%endif
|
|
|
+%if "%{php_bzip2}" == "yes"
|
|
|
+ --with-bz2=%{l_prefix} \
|
|
|
+%endif
|
|
|
+%if "%{php_openssl}" == "yes" || "%{php_openldap}" == "yes"
|
|
|
+ --with-openssl=%{l_prefix} \
|
|
|
+%endif
|
|
|
+%if "%{php_openldap}" == "yes"
|
|
|
+ --with-ldap=%{l_prefix} \
|
|
|
+%endif
|
|
|
+%if "%{php_mm}" == "yes"
|
|
|
+ --with-mm=%{l_prefix} \
|
|
|
+ --enable-session \
|
|
|
+%endif
|
|
|
+%if "%{php_pcre}" == "yes"
|
|
|
+ --with-pcre=%{l_prefix} \
|
|
|
%endif
|
|
|
--disable-shared \
|
|
|
--enable-track-vars
|