|
|
|
@ -44,12 +44,16 @@
|
|
|
|
|
%define php_mysql no |
|
|
|
|
%define php_gd no |
|
|
|
|
%define php_db no |
|
|
|
|
%define php_pdflib 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 |
|
|
|
|
%define php_ftp no |
|
|
|
|
%define php_java no |
|
|
|
|
%define php_oci8 no # ORACLE 8i (requires $ORACLE_HOME set!) |
|
|
|
|
|
|
|
|
|
# the software versions |
|
|
|
|
%define V_apache 1.3.22 |
|
|
|
@ -78,7 +82,7 @@ Distribution: OpenPKG [REL]
|
|
|
|
|
Group: Web |
|
|
|
|
License: BSD-style |
|
|
|
|
Version: %{V_apache} |
|
|
|
|
Release: 20020101 |
|
|
|
|
Release: 20020109 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://httpd.apache.org/dist/httpd/apache_%{V_apache}.tar.gz |
|
|
|
@ -152,6 +156,9 @@ BuildPreReq: gd
|
|
|
|
|
%if "%{php_db}" == "yes" |
|
|
|
|
BuildPreReq: db |
|
|
|
|
%endif |
|
|
|
|
%if "%{php_pdflib}" == "yes" |
|
|
|
|
BuildPreReq: pdflib, zlib |
|
|
|
|
%endif |
|
|
|
|
%if "%{php_zlib}" == "yes" |
|
|
|
|
BuildPreReq: zlib |
|
|
|
|
%endif |
|
|
|
@ -170,6 +177,9 @@ BuildPreReq: mm
|
|
|
|
|
%if "%{php_pcre}" == "yes" |
|
|
|
|
BuildPreReq: pcre |
|
|
|
|
%endif |
|
|
|
|
%if "%{php_java}" == "yes" |
|
|
|
|
BuildPreReq: jdk-sun |
|
|
|
|
%endif |
|
|
|
|
%endif |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
@ -330,12 +340,15 @@ AutoReqProv: no
|
|
|
|
|
%if "%{php_db}" == "yes" |
|
|
|
|
--with-db3=%{l_prefix} \ |
|
|
|
|
%endif |
|
|
|
|
%if "%{php_zlib}" == "yes" |
|
|
|
|
%if "%{php_zlib}" == "yes" || "%{php_pdflib}" == "yes" |
|
|
|
|
--with-zlib=%{l_prefix} \ |
|
|
|
|
%endif |
|
|
|
|
%if "%{php_bzip2}" == "yes" |
|
|
|
|
--with-bz2=%{l_prefix} \ |
|
|
|
|
%endif |
|
|
|
|
%if "%{php_pdflib}" == "yes" |
|
|
|
|
--with-pdflib=%{l_prefix} \ |
|
|
|
|
%endif |
|
|
|
|
%if "%{php_openssl}" == "yes" || "%{php_openldap}" == "yes" |
|
|
|
|
--with-openssl=%{l_prefix} \ |
|
|
|
|
%endif |
|
|
|
@ -348,6 +361,15 @@ AutoReqProv: no
|
|
|
|
|
%endif |
|
|
|
|
%if "%{php_pcre}" == "yes" |
|
|
|
|
--with-pcre=%{l_prefix} \ |
|
|
|
|
%endif |
|
|
|
|
%if "%{php_ftp}" == "yes" |
|
|
|
|
--enable-ftp \ |
|
|
|
|
%endif |
|
|
|
|
%if "%{php_java}" == "yes" |
|
|
|
|
--with-java=%{l_prefix}/libexec/jdk-sun \ |
|
|
|
|
%endif |
|
|
|
|
%if "%{php_oci8}" == "yes" |
|
|
|
|
--with-oci8 \ |
|
|
|
|
%endif |
|
|
|
|
--disable-shared \ |
|
|
|
|
--enable-track-vars |
|
|
|
|