Procházet zdrojové kódy

add optional support for Tidy

Christoph Schug před 17 roky
rodič
revize
6074a4de6c
2 změnil soubory, kde provedl 22 přidání a 2 odebrání
  1. 11 1
      apache-php/apache-php.spec
  2. 11 1
      php/php.spec

+ 11 - 1
apache-php/apache-php.spec

@@ -39,7 +39,7 @@ Class:        BASE
 Group:        Web
 License:      PHP
 Version:      %{V_php}
-Release:      20080114
+Release:      20080312
 
 #   package options
 %option       with_suhosin              no
@@ -81,6 +81,7 @@ Release:      20080114
 %option       with_snmp                 no
 %option       with_sqlite               no
 %option       with_ssl                  no
+%option       with_tidy                 no
 %option       with_versioning           no
 %option       with_wddx                 no
 %option       with_xml                  no
@@ -257,6 +258,10 @@ PreReq:       MTA
 BuildPreReq:  libxml
 PreReq:       libxml
 %endif
+%if "%{with_tidy}" == "yes"
+BuildPreReq:  tidy
+PreReq:       tidy
+%endif
 AutoReq:      no
 AutoReqProv:  no
 
@@ -527,6 +532,11 @@ AutoReqProv:  no
 %endif
 %if "%{with_iconv}" == "yes"
         --with-iconv=%{l_prefix} \
+%endif
+%if "%{with_tidy}" == "yes"
+        --with-tidy=%{l_prefix} \
+%else
+        --without-tidy \
 %endif
         --with-apxs2=%{l_prefix}/sbin/apxs \
         --disable-cli \

+ 11 - 1
php/php.spec

@@ -39,7 +39,7 @@ Class:        BASE
 Group:        Language
 License:      PHP
 Version:      %{V_php}
-Release:      20080114
+Release:      20080312
 
 #   package options
 %option       with_suhosin              no
@@ -81,6 +81,7 @@ Release:      20080114
 %option       with_snmp                 no
 %option       with_sqlite               no
 %option       with_ssl                  no
+%option       with_tidy                 no
 %option       with_versioning           no
 %option       with_wddx                 no
 %option       with_xml                  no
@@ -254,6 +255,10 @@ PreReq:       MTA
 BuildPreReq:  libxml
 PreReq:       libxml
 %endif
+%if "%{with_tidy}" == "yes"
+BuildPreReq:  tidy
+PreReq:       tidy
+%endif
 AutoReq:      no
 AutoReqProv:  no
 
@@ -523,6 +528,11 @@ AutoReqProv:  no
 %endif
 %if "%{with_iconv}" == "yes"
         --with-iconv=%{l_prefix} \
+%endif
+%if "%{with_tidy}" == "yes"
+        --with-tidy=%{l_prefix} \
+%else
+        --without-tidy \
 %endif
         --enable-cli \
         --enable-cgi \