(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 2005-06-10 15:20:17.000000000 -0400 +++ SPECS/php.spec 2005-06-10 16:46:37.000000000 -0400 @@ -2,6 +2,8 @@ %define with_oci8 %{?_with_oci8:1}%{!?_with_oci8:0} %define with_mssql %{?_with_mssql:1}%{!?_with_mssql:0} %define with_mhash %{?_with_mhash:1}%{!?_with_mhash:0} +# Portions (c) 2005 PD Inc http://www.pdinc.us LICENSE 20050531P00 +%{!?xslt:%define xslt 0} Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor) Name: php @@ -195,6 +197,21 @@ support for accessing OCI8 databases to PHP. %endif +%if %{xslt} +%package xslt +Group: Development/Languages +Summary: A module for PHP applications that use Sablotron XSLT. +BuildRequires: js, js-devel, sablotron, sablotron-devel +Requires: php = %{version}-%{release} +# why does this get AutoReq 0? +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 + %if %{with_mssql} %package mssql Group: Development/Languages @@ -408,6 +425,11 @@ --enable-sysvshm \ --enable-track-vars \ --enable-trans-sid \ +%if %{xslt} + --enable-xslt=shared \ + --with-xslt-sablot=shared \ + --with-sablot-js=shared \ +%endif --enable-yp \ --enable-wddx \ --with-pear=/usr/share/pear \ @@ -496,6 +518,7 @@ # Generate files lists and stub .ini files for each subpackage for mod in pgsql mysql odbc ldap snmp domxml xmlrpc imap \ mbstring ncurses gd \ + %{?xslt:xslt} \ %{?_with_oci8:oci8} %{?_with_mssql:mssql} %{?_with_mhash:mhash}; do cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <