(c) 2005 PD Inc LICENSE# 20050531P00 http://public.pdinc.us/rpms/php-xslt PHP SRC RPM patch to enable XSLT and create the php-xslt RPM --- SPECS/php.spec.orig-4.3.2-24.ent 2005-07-31 13:45:32.000000000 -0400 +++ SPECS/php.spec 2005-07-31 13:46:21.000000000 -0400 @@ -1,6 +1,10 @@ # To recompile using the Oracle Instant Client libraries, use: # rpmbuild --rebuild --define 'oracle 1' php-4.3.2-X.ent.src.rpm +# To recompile enabling the xslt libraries, use: +# rpmbuild --rebuild --define 'xslt 1' php-4.3.2-X.ent.src.rpm +# Portions (c) 2005 PD Inc http://www.pdinc.us LICENSE 20050531P00 %{!?oracle:%define oracle 0} +%{!?xslt:%define xslt 0} Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor) Name: php @@ -63,6 +67,10 @@ Patch59: php-4.3.2-CAN-2005-1921.patch Patch60: php-4.3.2-shtool.patch +%if %{xslt} +Patch99: php-4.3.2-xslt.patch +%endif + BuildRoot: %{_tmppath}/%{name}-root BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel, freetype-devel @@ -192,6 +200,21 @@ support for accessing OCI8 databases to PHP. %endif +%if %{xslt} +%package xslt +Group: Development/Languages +Summary: A XSLT module for PHP. +BuildRequires: js, js-devel, sablotron, sablotron-devel +Requires: php = %{version}-%{release} +#Provides: +AutoReq: 0 +Requires: js, sablotron + +%description xslt +This PHP extension provides an API to XSLT transformations. Currently this extension only supports the +Sablotron library from the Ginger Alliance. +%endif + %prep %setup -q %patch1 -p1 -b .apache2 @@ -239,6 +262,10 @@ %patch14 -p1 -b .serialperf %patch15 -p1 -b .serial64 +%if %{xslt} +%patch99 -p1 -b .xslt +%endif + # Prevent %doc confusion over LICENSE & Zend/LICENSE cp Zend/LICENSE Zend/ZEND_LICENSE @@ -358,6 +385,11 @@ --enable-discard-path \ --enable-track-vars \ --enable-trans-sid \ +%if %{xslt} + --enable-xslt=shared \ + --with-xslt-sablot=shared \ + --with-sablot-js=shared \ +%endif --enable-yp \ --enable-wddx \ %ifarch %{ix86} s390 ppc @@ -438,8 +470,11 @@ %if %{oracle} ocimod=oci8 %endif +%if %{xslt} +xsltmod=xslt +%endif # Generate files lists and stub .ini files for each subpackage -for mod in pgsql mysql odbc imap ldap ${ocimod}; do +for mod in pgsql mysql odbc imap ldap ${ocimod} ${xsltmod}; do cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini < + --INI-- + magic_quotes_runtime=0