Browse Source

synchronize PHP package with Apache package according to PHP options

Ralf S. Engelschall 21 years ago
parent
commit
565695ad41
1 changed files with 21 additions and 1 deletions
  1. 21 1
      php/php.spec

+ 21 - 1
php/php.spec

@@ -68,10 +68,14 @@ Release:      20040421
 %option       with_wddx          no
 %option       with_gdbm          no
 %option       with_versioning    no
-%option       with_pear          no
 %option       with_snmp          no
+%option       with_odbc          no
+%option       with_mbregex       no
+%option       with_mbstring      no
+%option       with_exif          no
 %option       with_iconv         no
 %option       with_sendmail      no
+%option       with_pear          no
 
 #   fixing implicit extension dependencies and correlations
 %if "%{with_pear}" == "yes"
@@ -201,6 +205,10 @@ BuildPreReq:  ORACLE
 BuildPreReq:  snmp
 PreReq:       snmp
 %endif
+%if "%{with_odbc}" == "yes"
+BuildPreReq:  unixodbc
+PreReq:       unixodbc
+%endif
 %if "%{with_sendmail}" == "yes"
 BuildPreReq:  MTA
 PreReq:       MTA
@@ -394,6 +402,18 @@ AutoReqProv:  no
 %if "%{with_snmp}" == "yes"
         --with-snmp=%{l_prefix} \
 %endif
+%if "%{with_odbc}" == "yes"
+        --with-unixODBC=%{l_prefix} \
+%endif
+%if "%{with_mbregex}" == "yes"
+        --enable-mbregex \
+%endif
+%if "%{with_mbstring}" == "yes"
+        --enable-mbstring \
+%endif
+%if "%{with_exif}" == "yes"
+        --with-exif \
+%endif
 %if "%{with_iconv}" == "yes"
         --with-iconv=%{l_prefix} \
 %endif