carlwgeorge / rpms / php

Forked from rpms/php 5 years ago
Clone
cvsdist 98c359d
%define contentdir /var/www
28319a7
%define apiver 20041225
fca656f
%define zendver 220060519
cf65b89
%define pdover 20060511
1826c14
cvsdist 98c359d
Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
cvsdist 98c359d
Name: php
cf65b89
Version: 5.2.0
e2d1b8a
Release: 7
9086530
License: The PHP License v3.01
cvsdist 98c359d
Group: Development/Languages
cvsdist 98c359d
URL: http://www.php.net/
cvsdist 98c359d
cvsdist 7f43e12
Source0: http://www.php.net/distributions/php-%{version}.tar.gz
e7eb1f4
Source1: php.conf
e7eb1f4
Source2: php.ini
e7eb1f4
Source3: macros.php
cvsdist 98c359d
cf2850d
Patch1: php-5.1.4-gnusrc.patch
d09135d
Patch2: php-4.3.3-install.patch
d09135d
Patch3: php-5.0.4-norpath.patch
d09135d
Patch4: php-4.3.2-libtool15.patch
d09135d
Patch5: php-5.0.2-phpize64.patch
d09135d
Patch6: php-5.1.6-curl716.patch
cvsdist f03e0ee
cvsdist f03e0ee
# Fixes for extension modules
cvsdist f03e0ee
Patch21: php-4.3.1-odbc.patch
fbb2a69
Patch22: php-4.3.11-shutdown.patch
cvsdist f03e0ee
cvsdist f03e0ee
# Functional changes
8e68e30
Patch30: php-5.0.4-dlopen.patch
1826c14
Patch31: php-5.0.0-easter.patch
cvsdist f03e0ee
25e1e3b
# Fixes for tests
25e1e3b
Patch50: php-5.0.4-tests-dashn.patch
25e1e3b
Patch51: php-5.0.4-tests-wddx.patch
25e1e3b
cvsdist 98c359d
BuildRoot: %{_tmppath}/%{name}-root
cvsdist 98c359d
cvsdist aad1e13
BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel
cvsdist aad1e13
BuildRequires: gmp-devel, aspell-devel >= 0.50.0
cvsdist f03e0ee
BuildRequires: httpd-devel >= 2.0.46-1, libjpeg-devel, libpng-devel, pam-devel
a555159
BuildRequires: libstdc++-devel, openssl-devel, sqlite-devel >= 3.0.0
f77556c
BuildRequires: zlib-devel, pcre-devel >= 4.5, smtpdaemon, readline-devel
25e1e3b
BuildRequires: bzip2, fileutils, file >= 4.0, perl, libtool >= 1.4.3, gcc-c++
ad20b87
Obsoletes: php-dbg, php3, phpfi, stronghold-php
cvsdist a127ccc
# Enforce Apache module ABI compatibility
cvsdist e808555
Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)
cf2850d
Requires: file >= 4.0
cf2850d
Provides: mod_php = %{version}-%{release}
dd13c73
Requires: php-common = %{version}-%{release}
dd13c73
# For backwards-compatibility, require php-cli for the time being:
dd13c73
Requires: php-cli = %{version}-%{release}
dd13c73
dd13c73
%description
dd13c73
PHP is an HTML-embedded scripting language. PHP attempts to make it
dd13c73
easy for developers to write dynamically generated webpages. PHP also
dd13c73
offers built-in database integration for several commercial and
dd13c73
non-commercial database management systems, so writing a
dd13c73
database-enabled webpage with PHP is fairly simple. The most common
dd13c73
use of PHP coding is probably as a replacement for CGI scripts. 
dd13c73
dd13c73
The php package contains the module which adds support for the PHP
dd13c73
language to Apache HTTP Server.
dd13c73
dd13c73
%package cli
dd13c73
Group: Development/Languages
dd13c73
Summary: Command-line interface for PHP
dd13c73
Requires: php-common = %{version}-%{release}
079d95e
Provides: php-cgi = %{version}-%{release}
f77556c
Provides: php-pcntl, php-readline
dd13c73
dd13c73
%description cli
dd13c73
The php-cli package contains the command-line interface 
dd13c73
executing PHP scripts, /usr/bin/php, and the CGI interface.
dd13c73
dd13c73
%package common
dd13c73
Group: Development/Languages
dd13c73
Summary: Common files for PHP
fca656f
Provides: php-api = %{apiver}, php-zend-abi = %{zendver}
28319a7
# Provides for all builtin modules:
28319a7
Provides: php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif
28319a7
Provides: php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-libxml
f9db696
Provides: php-mime_magic, php-openssl, php-pcre, php-posix, php-pspell
28319a7
Provides: php-reflection, php-session, php-shmop, php-simplexml, php-sockets
28319a7
Provides: php-spl, php-sysvsem, php-sysvshm, php-sysvmsg, php-tokenizer
f77556c
Provides: php-wddx, php-zlib, php-json, php-zip
f77556c
Obsoletes: php-openssl, php-pecl-zip, php-json
cvsdist 98c359d
dd13c73
%description common
dd13c73
The php-common package contains files used by both the php
dd13c73
package and the php-cli package.
cvsdist 98c359d
cvsdist 98c359d
%package devel
cvsdist 98c359d
Group: Development/Libraries
cvsdist 98c359d
Summary: Files needed for building PHP extensions.
b3bd894
Requires: php = %{version}-%{release}, autoconf, automake
28319a7
Obsoletes: php-pecl-pdo-devel
cvsdist 98c359d
cvsdist 98c359d
%description devel
cvsdist 98c359d
The php-devel package contains the files needed for building PHP
cvsdist 98c359d
extensions. If you need to compile your own PHP extensions, you will
cvsdist 98c359d
need to install this package.
cvsdist 98c359d
cvsdist 98c359d
%package imap
dd13c73
Summary: A module for PHP applications that use IMAP.
cvsdist 98c359d
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}
cvsdist 6fe246b
Obsoletes: mod_php3-imap, stronghold-php-imap
cvsdist a466c8e
BuildRequires: krb5-devel, openssl-devel, libc-client-devel
cvsdist 98c359d
cvsdist 98c359d
%description imap
cvsdist 98c359d
The php-imap package contains a dynamic shared object (DSO) for the
cvsdist 98c359d
Apache Web server. When compiled into Apache, the php-imap module will
cvsdist 98c359d
add IMAP (Internet Message Access Protocol) support to PHP. IMAP is a
cvsdist 98c359d
protocol for retrieving and uploading e-mail messages on mail
cvsdist 98c359d
servers. PHP is an HTML-embedded scripting language. If you need IMAP
cvsdist 98c359d
support for PHP applications, you will need to install this package
cvsdist 98c359d
and the php package.
cvsdist 98c359d
cvsdist 98c359d
%package ldap
cvsdist 98c359d
Summary: A module for PHP applications that use LDAP.
cvsdist 98c359d
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}
cvsdist 6fe246b
Obsoletes: mod_php3-ldap, stronghold-php-ldap
cvsdist a127ccc
BuildRequires: cyrus-sasl-devel, openldap-devel, openssl-devel
cvsdist 98c359d
cvsdist 98c359d
%description ldap
cvsdist 98c359d
The php-ldap package is a dynamic shared object (DSO) for the Apache
cvsdist 98c359d
Web server that adds Lightweight Directory Access Protocol (LDAP)
cvsdist 98c359d
support to PHP. LDAP is a set of protocols for accessing directory
cvsdist 98c359d
services over the Internet. PHP is an HTML-embedded scripting
cvsdist 98c359d
language. If you need LDAP support for PHP applications, you will
cvsdist 98c359d
need to install this package in addition to the php package.
cvsdist 98c359d
a555159
%package pdo
a555159
Summary: A database access abstraction module for PHP applications
a555159
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}
28319a7
Obsoletes: php-pecl-pdo-sqlite, php-pecl-pdo
cf65b89
Provides: php-pdo-abi = %{pdover}
a555159
a555159
%description pdo
a555159
The php-pdo package contains a dynamic shared object that will add
a555159
a database access abstraction layer to PHP.  This module provides
a555159
a common interface for accessing MySQL, PostgreSQL or other 
a555159
databases.
a555159
cvsdist 98c359d
%package mysql
cvsdist 98c359d
Summary: A module for PHP applications that use MySQL databases.
cvsdist 98c359d
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}, php-pdo
7ed6c4d
Provides: php_database, php-mysqli
cvsdist 6fe246b
Obsoletes: mod_php3-mysql, stronghold-php-mysql
2e4ba13
BuildRequires: mysql-devel >= 4.1.0
cvsdist 98c359d
cvsdist 98c359d
%description mysql
cvsdist 98c359d
The php-mysql package contains a dynamic shared object that will add
cvsdist 98c359d
MySQL database support to PHP. MySQL is an object-relational database
cvsdist 98c359d
management system. PHP is an HTML-embeddable scripting language. If
cvsdist 98c359d
you need MySQL support for PHP applications, you will need to install
7ed6c4d
this package and the php package.
cvsdist 98c359d
cvsdist 98c359d
%package pgsql
cvsdist 98c359d
Summary: A PostgreSQL database module for PHP.
cvsdist 98c359d
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}, php-pdo
cvsdist 98c359d
Provides: php_database
cvsdist 6fe246b
Obsoletes: mod_php3-pgsql, stronghold-php-pgsql
cvsdist a127ccc
BuildRequires: krb5-devel, openssl-devel, postgresql-devel
cvsdist 98c359d
cvsdist 98c359d
%description pgsql
cvsdist 98c359d
The php-pgsql package includes a dynamic shared object (DSO) that can
cvsdist 98c359d
be compiled in to the Apache Web server to add PostgreSQL database
cvsdist 98c359d
support to PHP. PostgreSQL is an object-relational database management
cvsdist 98c359d
system that supports almost all SQL constructs. PHP is an
cvsdist 98c359d
HTML-embedded scripting language. If you need back-end support for
cvsdist 98c359d
PostgreSQL, you should install this package in addition to the main
cvsdist 98c359d
php package.
cvsdist 98c359d
cvsdist 98c359d
%package odbc
cvsdist 98c359d
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}, php-pdo
cvsdist 98c359d
Summary: A module for PHP applications that use ODBC databases.
cvsdist 98c359d
Provides: php_database
cvsdist 6fe246b
Obsoletes: stronghold-php-odbc
cvsdist 98c359d
BuildRequires: unixODBC-devel
cvsdist 98c359d
cvsdist 98c359d
%description odbc
cvsdist 98c359d
The php-odbc package contains a dynamic shared object that will add
cvsdist 98c359d
database support through ODBC to PHP. ODBC is an open specification
cvsdist 98c359d
which provides a consistent API for developers to use for accessing
cvsdist 98c359d
data sources (which are often, but not always, databases). PHP is an
cvsdist 98c359d
HTML-embeddable scripting language. If you need ODBC support for PHP
cvsdist 98c359d
applications, you will need to install this package and the php
cvsdist 98c359d
package.
cvsdist 98c359d
b9049bb
%package soap
b9049bb
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}
b9049bb
Summary: A module for PHP applications that use the SOAP protocol
b9049bb
BuildRequires: libxml2-devel
b9049bb
b9049bb
%description soap
b9049bb
The php-soap package contains a dynamic shared object that will add
b9049bb
support to PHP for using the SOAP web services protocol.
b9049bb
cvsdist 98c359d
%package snmp
cvsdist 98c359d
Summary: A module for PHP applications that query SNMP-managed devices.
cvsdist 98c359d
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}, net-snmp
1826c14
BuildRequires: net-snmp-devel
cvsdist 98c359d
cvsdist 98c359d
%description snmp
cvsdist 98c359d
The php-snmp package contains a dynamic shared object that will add
cvsdist 98c359d
support for querying SNMP devices to PHP.  PHP is an HTML-embeddable
cvsdist 98c359d
scripting language. If you need SNMP support for PHP applications, you
cvsdist 98c359d
will need to install this package and the php package.
cvsdist 98c359d
b9049bb
%package xml
b9049bb
Summary: A module for PHP applications which use XML
cvsdist f03e0ee
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}
b9049bb
Obsoletes: php-domxml, php-dom
cf65b89
Provides: php-dom, php-xsl, php-domxml
cvsdist f03e0ee
BuildRequires: libxslt-devel >= 1.0.18-1, libxml2-devel >= 2.4.14-1
cvsdist f03e0ee
b9049bb
%description xml
b9049bb
The php-xml package contains dynamic shared objects which add support
b9049bb
to PHP for manipulating XML documents using the DOM tree,
b9049bb
and performing XSL transformations on XML documents.
cvsdist f03e0ee
cvsdist f03e0ee
%package xmlrpc
cvsdist f03e0ee
Summary: A module for PHP applications which use the XML-RPC protocol
cvsdist f03e0ee
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}
cvsdist f03e0ee
BuildRequires: expat-devel
cvsdist f03e0ee
cvsdist f03e0ee
%description xmlrpc
cvsdist f03e0ee
The php-xmlrpc package contains a dynamic shared object that will add
cvsdist f03e0ee
support for the XML-RPC protocol to PHP.
cvsdist f03e0ee
cvsdist aad1e13
%package mbstring
cvsdist aad1e13
Summary: A module for PHP applications which need multi-byte string handling
cvsdist aad1e13
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}
cvsdist aad1e13
cvsdist aad1e13
%description mbstring
cvsdist aad1e13
The php-mbstring package contains a dynamic shared object that will add
cvsdist aad1e13
support for multi-byte string handling to PHP.
cvsdist aad1e13
cvsdist aad1e13
%package ncurses
cvsdist aad1e13
Summary: A module for PHP applications for using ncurses interfaces
cvsdist aad1e13
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}
cvsdist aad1e13
BuildRequires: ncurses-devel
cvsdist aad1e13
cvsdist aad1e13
%description ncurses
2e4ba13
The php-ncurses package contains a dynamic shared object that will add
cvsdist aad1e13
support for using the ncurses terminal output interfaces.
cvsdist aad1e13
cvsdist aad1e13
%package gd
cvsdist aad1e13
Summary: A module for PHP applications for using the gd graphics library
cvsdist aad1e13
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}
1826c14
BuildRequires: gd-devel, freetype-devel
cvsdist aad1e13
cvsdist aad1e13
%description gd
2e4ba13
The php-gd package contains a dynamic shared object that will add
cvsdist aad1e13
support for using the gd graphics library to PHP.
cvsdist aad1e13
25e1e3b
%package bcmath
25e1e3b
Summary: A module for PHP applications for using the bcmath library
25e1e3b
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}
25e1e3b
25e1e3b
%description bcmath
25e1e3b
The php-bcmath package contains a dynamic shared object that will add
25e1e3b
support for using the bcmath library to PHP.
25e1e3b
25e1e3b
%package dba
25e1e3b
Summary: A database abstraction layer module for PHP applications
25e1e3b
Group: Development/Languages
f77556c
Requires: php-common = %{version}-%{release}
25e1e3b
25e1e3b
%description dba
25e1e3b
The php-dba package contains a dynamic shared object that will add
25e1e3b
support for using the DBA database abstraction layer to PHP.
25e1e3b
cvsdist 98c359d
%prep
cvsdist 98c359d
%setup -q
cf2850d
%patch1 -p1 -b .gnusrc
d09135d
%patch2 -p1 -b .install
d09135d
%patch3 -p1 -b .norpath
d09135d
%patch4 -p1 -b .libtool15
d09135d
%patch5 -p1 -b .phpize64
d09135d
%patch6 -p1 -b .curl716
cvsdist f03e0ee
cvsdist f03e0ee
%patch21 -p1 -b .odbc
fbb2a69
%patch22 -p1 -b .shutdown
cvsdist f03e0ee
cvsdist f03e0ee
%patch30 -p1 -b .dlopen
cvsdist 6fe246b
%patch31 -p1 -b .easter
cvsdist 98c359d
25e1e3b
%patch50 -p1 -b .tests-dashn
25e1e3b
%patch51 -p1 -b .tests-wddx
25e1e3b
cvsdist b0e1265
# Prevent %%doc confusion over LICENSE files
cvsdist a127ccc
cp Zend/LICENSE Zend/ZEND_LICENSE
cvsdist b0e1265
cp TSRM/LICENSE TSRM_LICENSE
cvsdist b0e1265
cp regex/COPYRIGHT regex_COPYRIGHT
cvsdist b0e1265
cp ext/gd/libgd/README gd_README
cvsdist 98c359d
cvsdist a127ccc
# Source is built twice: once for /usr/bin/php, once for the Apache DSO.
cvsdist a127ccc
mkdir build-cgi build-apache
cvsdist 98c359d
cvsdist f03e0ee
# Remove bogus test; position of read position after fopen(, "a+")
cvsdist f03e0ee
# is not defined by C standard, so don't presume anything.
cvsdist f03e0ee
rm -f ext/standard/tests/file/bug21131.phpt
cvsdist f03e0ee
cvsdist f03e0ee
# Tests that fail.
cvsdist 93068c8
rm -f ext/standard/tests/file/bug22414.phpt \
cvsdist 93068c8
      ext/iconv/tests/bug16069.phpt
cvsdist f03e0ee
28319a7
# Safety check for API version change.
28319a7
vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`
28319a7
if test "x${vapi}" != "x%{apiver}"; then
28319a7
   : Error: Upstream API version is now ${vapi}, expecting %{apiver}.
28319a7
   : Update the apiver macro and rebuild.
28319a7
   exit 1
28319a7
fi
28319a7
fca656f
vzend=`sed -n '/#define ZEND_EXTENSION_API_NO/{s/^[^0-9]*//;p;}' Zend/zend_extensions.h`
fca656f
if test "x${vzend}" != "x%{zendver}"; then
fca656f
   : Error: Upstream Zend ABI version is now ${vzend}, expecting %{zendver}.
fca656f
   : Update the zendver macro and rebuild.
fca656f
   exit 1
fca656f
fi
fca656f
6ed14bb
# Safety check for PDO ABI version change
6ed14bb
vpdo=`sed -n '/#define PDO_DRIVER_API/{s/.*[ 	]//;p}' ext/pdo/php_pdo_driver.h`
6ed14bb
if test "x${vpdo}" != "x%{pdover}"; then
6ed14bb
   : Error: Upstream PDO ABI version is now ${vpdo}, expecting %{pdover}.
6ed14bb
   : Update the pdover macro and rebuild.
6ed14bb
   exit 1
6ed14bb
fi
6ed14bb
cvsdist 98c359d
%build
8e68e30
# Force use of system libtool:
cvsdist a127ccc
libtoolize --force --copy
8e68e30
cat `aclocal --print-ac-dir`/libtool.m4 > build/libtool.m4
cvsdist 98c359d
cvsdist 98c359d
# Regenerate configure scripts (patches change config.m4's)
cvsdist f03e0ee
./buildconf --force
cvsdist 98c359d
a555159
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-pointer-sign"
cf65b89
export CFLAGS
8e68e30
8e68e30
# Install extension modules in %{_libdir}/php/modules.
8e68e30
EXTENSION_DIR=%{_libdir}/php/modules; export EXTENSION_DIR
8e68e30
a3a274c
# Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
a3a274c
# includes the PEAR directory even though pear is packaged
a3a274c
# separately.
a3a274c
PEAR_INSTALLDIR=%{_datadir}/pear; export PEAR_INSTALLDIR
a3a274c
cvsdist 98c359d
# Shell function to configure and build a PHP tree.
cvsdist 98c359d
build() {
cvsdist f03e0ee
# bison-1.875-2 seems to produce a broken parser; workaround.
cvsdist 6fe246b
mkdir Zend && cp ../Zend/zend_{language,ini}_{parser,scanner}.[ch] Zend
cvsdist 98c359d
ln -sf ../configure
cvsdist 98c359d
%configure \
cvsdist a127ccc
	--cache-file=../config.cache \
1826c14
        --with-libdir=%{_lib} \
cvsdist 98c359d
	--with-config-file-path=%{_sysconfdir} \
cvsdist 1c982da
	--with-config-file-scan-dir=%{_sysconfdir}/php.d \
cvsdist 98c359d
	--disable-debug \
0b181fc
	--with-pic \
cvsdist 98c359d
	--disable-rpath \
79e334f
	--without-pear \
cvsdist 98c359d
	--with-bz2 \
cvsdist 98c359d
	--with-curl \
cvsdist 98c359d
	--with-exec-dir=%{_bindir} \
cvsdist 98c359d
	--with-freetype-dir=%{_prefix} \
cvsdist 98c359d
	--with-png-dir=%{_prefix} \
cvsdist 98c359d
	--enable-gd-native-ttf \
cvsdist a466c8e
	--without-gdbm \
cvsdist 98c359d
	--with-gettext \
cvsdist 98c359d
	--with-gmp \
cvsdist 98c359d
	--with-iconv \
cvsdist 98c359d
	--with-jpeg-dir=%{_prefix} \
cvsdist 93068c8
	--with-openssl \
cvsdist 98c359d
	--with-png \
cvsdist 98c359d
	--with-pspell \
cvsdist 98c359d
	--with-expat-dir=%{_prefix} \
cvsdist 6d6a06a
        --with-pcre-regex=%{_prefix} \
cvsdist 98c359d
	--with-zlib \
cvsdist 98c359d
	--with-layout=GNU \
cvsdist 98c359d
	--enable-exif \
cvsdist 98c359d
	--enable-ftp \
cvsdist 98c359d
	--enable-magic-quotes \
cvsdist 98c359d
	--enable-sockets \
f9c54ea
	--enable-sysvsem --enable-sysvshm --enable-sysvmsg \
cvsdist 98c359d
	--enable-track-vars \
cvsdist 98c359d
	--enable-trans-sid \
cvsdist 98c359d
	--enable-yp \
cvsdist 98c359d
	--enable-wddx \
cvsdist f03e0ee
	--with-kerberos \
cvsdist 98c359d
	--enable-ucd-snmp-hack \
cvsdist 6d6a06a
	--with-unixODBC=shared,%{_prefix} \
cvsdist 98c359d
	--enable-memory-limit \
cvsdist 98c359d
	--enable-shmop \
cvsdist 98c359d
	--enable-calendar \
cvsdist 98c359d
	--enable-dbx \
cvsdist 98c359d
	--enable-dio \
b3bd894
        --with-mime-magic=%{_sysconfdir}/httpd/conf/magic \
1826c14
        --without-sqlite \
b9049bb
        --with-libxml-dir=%{_prefix} \
b9049bb
	--with-xml \
1826c14
	$* 
1826c14
if test $? != 0; then 
20abac9
  tail -500 config.log
1826c14
  : configure failed
1826c14
  exit 1
1826c14
fi
cvsdist 98c359d
cvsdist a127ccc
make %{?_smp_mflags}
cvsdist 98c359d
}
cvsdist 98c359d
1005a1c
# Build /usr/bin/php-cgi with the CGI SAPI, and all the shared extensions
cvsdist 98c359d
pushd build-cgi
1826c14
build --enable-force-cgi-redirect \
7ed6c4d
      --enable-pcntl \
1826c14
      --with-imap=shared --with-imap-ssl \
1826c14
      --enable-mbstring=shared --enable-mbstr-enc-trans \
1826c14
      --enable-mbregex \
1826c14
      --with-ncurses=shared \
1826c14
      --with-gd=shared \
25e1e3b
      --enable-bcmath=shared \
48bfecb
      --enable-dba=shared --with-db4=%{_prefix} \
1826c14
      --with-xmlrpc=shared \
1826c14
      --with-ldap=shared \
1826c14
      --with-mysql=shared,%{_prefix} \
7ed6c4d
      --with-mysqli=shared,%{_bindir}/mysql_config \
1826c14
      --enable-dom=shared \
1826c14
      --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \
1826c14
      --with-pgsql=shared \
b9049bb
      --with-snmp=shared,%{_prefix} \
b9049bb
      --enable-soap=shared \
820eb1a
      --with-xsl=shared,%{_prefix} \
fbbd35c
      --enable-xmlreader=shared --enable-xmlwriter=shared \
a555159
      --enable-fastcgi \
a555159
      --enable-pdo=shared \
a555159
      --with-pdo-odbc=shared,unixODBC,%{_prefix} \
a555159
      --with-pdo-mysql=shared,%{_prefix} \
a555159
      --with-pdo-pgsql=shared,%{_prefix} \
f77556c
      --with-pdo-sqlite=shared,%{_prefix} \
f77556c
      --enable-json=shared \
f77556c
      --enable-zip=shared \
f77556c
      --with-readline
20abac9
popd
cvsdist 4928ff1
1005a1c
# Build Apache module, and the CLI SAPI, /usr/bin/php
20abac9
pushd build-apache
20abac9
build --with-apxs2=%{_sbindir}/apxs \
20abac9
      --without-mysql --without-gd \
25e1e3b
      --without-odbc --disable-dom \
0d7ff43
      --disable-dba --without-unixODBC \
f77556c
      --disable-pdo --disable-xmlreader --disable-xmlwriter \
f77556c
      --disable-json
20abac9
popd
20abac9
20abac9
%check
1005a1c
cd build-apache
1005a1c
# Run tests, using the CLI SAPI
cvsdist c1a8fc6
export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
cvsdist c1a8fc6
unset TZ LANG LC_ALL
cvsdist c1a8fc6
if ! make test; then
cvsdist c1a8fc6
  set +x
cvsdist 6fe246b
  for f in `find .. -name \*.diff -type f -print`; do
cvsdist c1a8fc6
    echo "TEST FAILURE: $f --"
cvsdist c1a8fc6
    cat "$f"
cvsdist c1a8fc6
    echo "-- $f result ends."
cvsdist 6fe246b
  done
1826c14
  set -x
20abac9
  #exit 1
cvsdist 6fe246b
fi
1826c14
unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
cvsdist 98c359d
cvsdist 98c359d
%install
cvsdist 98c359d
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
cvsdist 98c359d
1005a1c
# Install everything from the CGI SAPI build
cvsdist 98c359d
pushd build-cgi
cvsdist 98c359d
make install INSTALL_ROOT=$RPM_BUILD_ROOT 
1005a1c
mv $RPM_BUILD_ROOT%{_bindir}/php $RPM_BUILD_ROOT%{_bindir}/php-cgi
f9c54ea
# Install the CLI SAPI as /usr/bin/php
f9c54ea
make install-cli INSTALL_ROOT=$RPM_BUILD_ROOT
cvsdist 98c359d
popd
cvsdist 98c359d
f9c54ea
# Install the Apache module
cvsdist 98c359d
pushd build-apache
cvsdist f03e0ee
make install-sapi INSTALL_ROOT=$RPM_BUILD_ROOT
cvsdist 98c359d
popd
cvsdist 98c359d
cvsdist 1c982da
# Install the default configuration file and icons
cvsdist 98c359d
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/
a555159
install -m 644 $RPM_SOURCE_DIR/php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
cvsdist 98c359d
install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons
cvsdist 98c359d
install -m 644    *.gif $RPM_BUILD_ROOT%{contentdir}/icons/
cvsdist 98c359d
28319a7
# For PEAR packaging:
28319a7
install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/php/pear
28319a7
a555159
# Use correct libdir
a555159
sed -i -e 's|%{_prefix}/lib|%{_libdir}|' $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
a555159
cvsdist a127ccc
# install the DSO
cvsdist a127ccc
install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/httpd/modules
1826c14
install -m 755 build-apache/libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules
cvsdist 98c359d
cvsdist a127ccc
# Apache config fragment
cvsdist 98c359d
install -m 755 -d $RPM_BUILD_ROOT/etc/httpd/conf.d
cvsdist 98c359d
install -m 644 $RPM_SOURCE_DIR/php.conf $RPM_BUILD_ROOT/etc/httpd/conf.d
cvsdist 98c359d
cvsdist 1c982da
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php.d
cvsdist 6fe246b
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php
cvsdist 6fe246b
install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session
cvsdist 1c982da
cvsdist 1c982da
# Generate files lists and stub .ini files for each subpackage
7ed6c4d
for mod in pgsql mysql mysqli odbc ldap snmp xmlrpc imap \
fbbd35c
    mbstring ncurses gd dom xsl soap bcmath dba xmlreader xmlwriter \
f77556c
    pdo pdo_mysql pdo_pgsql pdo_odbc pdo_sqlite json zip; do
cvsdist 1c982da
    cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <
cvsdist 1c982da
; Enable ${mod} extension module
cvsdist 1c982da
extension=${mod}.so
cvsdist 1c982da
EOF
cvsdist 1c982da
    cat > files.${mod} <
1826c14
%attr(755,root,root) %{_libdir}/php/modules/${mod}.so
cvsdist 1c982da
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/php.d/${mod}.ini
cvsdist 1c982da
EOF
cvsdist 1c982da
done
cvsdist 1c982da
fbbd35c
# The dom, xsl and xml* modules are all packaged in php-xml
fbbd35c
cat files.dom files.xsl files.xml{reader,writer} > files.xml
b9049bb
7ed6c4d
# The mysql and mysqli modules are both packaged in php-mysql
7ed6c4d
cat files.mysqli >> files.mysql
7ed6c4d
a555159
# Split out the PDO modules
a555159
cat files.pdo_mysql >> files.mysql
a555159
cat files.pdo_pgsql >> files.pgsql
a555159
cat files.pdo_odbc >> files.odbc
cvsdist f03e0ee
0d7ff43
# Package pdo_sqlite with pdo; isolating the sqlite dependency
431c2bd
# isn't useful at this time since rpm itself requires sqlite.
431c2bd
cat files.pdo_sqlite >> files.pdo
431c2bd
f77556c
# Package json and zip in -common.
f77556c
cat files.json files.zip > files.common
f77556c
fca656f
# Install the macros file:
fca656f
install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
fca656f
sed -e "s/@PHP_APIVER@/%{apiver}/;s/@PHP_ZENDVER@/%{zendver}/;s/@PHP_PDOVER@/%{pdover}/" \
fca656f
    < $RPM_SOURCE_DIR/macros.php > macros.php
fca656f
install -m 644 -c macros.php \
fca656f
           $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.php
fca656f
cvsdist a127ccc
# Remove unpackaged files
37ac4c2
rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \
37ac4c2
       $RPM_BUILD_ROOT%{_bindir}/{phptar} \
37ac4c2
       $RPM_BUILD_ROOT%{_datadir}/pear
cvsdist 98c359d
cvsdist b0e1265
# Remove irrelevant docs
cvsdist 7f43e12
rm -f README.{Zeus,QNX,CVS-RULES}
cvsdist b0e1265
cvsdist 98c359d
%clean
cvsdist 98c359d
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
fca656f
rm files.* macros.php
cvsdist 98c359d
cvsdist 98c359d
%files
cvsdist a127ccc
%defattr(-,root,root)
dd13c73
%{_libdir}/httpd/modules/libphp5.so
dd13c73
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
dd13c73
%config %{_sysconfdir}/httpd/conf.d/php.conf
dd13c73
%{contentdir}/icons/php.gif
dd13c73
f77556c
%files common -f files.common
f9db696
%defattr(-,root,root)
cvsdist a127ccc
%doc CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE NEWS README*
cvsdist b0e1265
%doc Zend/ZEND_* gd_README TSRM_LICENSE regex_COPYRIGHT
1005a1c
%config %{_sysconfdir}/php.ini
dd13c73
%dir %{_sysconfdir}/php.d
1826c14
%dir %{_libdir}/php
1826c14
%dir %{_libdir}/php/modules
cvsdist 6fe246b
%dir %{_localstatedir}/lib/php
dd13c73
%dir %{_libdir}/php/pear
dd13c73
dd13c73
%files cli
f9db696
%defattr(-,root,root)
dd13c73
%{_bindir}/php
dd13c73
%{_bindir}/php-cgi
ad20b87
%{_mandir}/man1/php.1*
cvsdist a127ccc
cvsdist 98c359d
%files devel
cvsdist a127ccc
%defattr(-,root,root)
cvsdist a127ccc
%{_bindir}/php-config
cvsdist a127ccc
%{_bindir}/phpize
cvsdist a127ccc
%{_includedir}/php
1826c14
%{_libdir}/php/build
ad20b87
%{_mandir}/man1/php-config.1*
ad20b87
%{_mandir}/man1/phpize.1*
fca656f
%config %{_sysconfdir}/rpm/macros.php
cvsdist 98c359d
cvsdist 1c982da
%files pgsql -f files.pgsql
cvsdist 1c982da
%files mysql -f files.mysql
cvsdist 1c982da
%files odbc -f files.odbc
cvsdist aad1e13
%files imap -f files.imap
cvsdist aad1e13
%files ldap -f files.ldap
cvsdist aad1e13
%files snmp -f files.snmp
b9049bb
%files xml -f files.xml
cvsdist aad1e13
%files xmlrpc -f files.xmlrpc
cvsdist aad1e13
%files mbstring -f files.mbstring
cvsdist aad1e13
%files ncurses -f files.ncurses
cvsdist aad1e13
%files gd -f files.gd
b9049bb
%files soap -f files.soap
25e1e3b
%files bcmath -f files.bcmath
25e1e3b
%files dba -f files.dba
a555159
%files pdo -f files.pdo
cvsdist 6fe246b
cvsdist aad1e13
%changelog
e2d1b8a
* Tue Nov 28 2006 Joe Orton <jorton@redhat.com> 5.2.0-7
e2d1b8a
- rebuild again
e2d1b8a
2140ae3
* Tue Nov 28 2006 Joe Orton <jorton@redhat.com> 5.2.0-6
2140ae3
- rebuild for net-snmp soname bump
2140ae3
f77556c
* Mon Nov 27 2006 Joe Orton <jorton@redhat.com> 5.2.0-5
f77556c
- build json and zip shared, in -common (Remi Collet, #215966)
f77556c
- obsolete php-json and php-pecl-zip
f77556c
- build readline extension into /usr/bin/php* (#210585)
f77556c
- change module subpackages to require php-common not php (#177821)
f77556c
fca656f
* Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 5.2.0-4
fca656f
- provide php-zend-abi (#212804)
fca656f
- add /etc/rpm/macros.php exporting interface versions
574a1c2
- synch with upstream recommended php.ini
fca656f
cf65b89
* Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 5.2.0-3
cf65b89
- update to 5.2.0 (#213837)
cf65b89
- php-xml provides php-domxml (#215656)
cf65b89
- fix php-pdo-abi provide (#214281)
cf65b89
13501d9
* Tue Oct 31 2006 Joseph Orton <jorton@redhat.com> 5.1.6-4
13501d9
- rebuild for curl soname bump
ad20b87
- add build fix for curl 7.16 API
13501d9
f3037b7
* Wed Oct  4 2006 Joe Orton <jorton@redhat.com> 5.1.6-3
f3037b7
- from upstream: add safety checks against integer overflow in _ecalloc
f3037b7
46d6085
* Tue Aug 29 2006 Joe Orton <jorton@redhat.com> 5.1.6-2
c0ec579
- update to 5.1.6 (security fixes)
c0ec579
- bump default memory_limit to 16M (#196802)
c0ec579
c0ec579
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.1.4-8.1
ccf8576
- rebuild
ccf8576
f9db696
* Fri Jun  9 2006 Joe Orton <jorton@redhat.com> 5.1.4-8
f9db696
- Provide php-posix (#194583)
f9db696
- only provide php-pcntl from -cli subpackage
f9db696
- add missing defattr's (thanks to Matthias Saou)
f9db696
079d95e
* Fri Jun  9 2006 Joe Orton <jorton@redhat.com> 5.1.4-7
079d95e
- move Obsoletes for php-openssl to -common (#194501)
079d95e
- Provide: php-cgi from -cli subpackage
079d95e
dd13c73
* Fri Jun  2 2006 Joe Orton <jorton@redhat.com> 5.1.4-6
dd13c73
- split out php-cli, php-common subpackages (#177821)
6ed14bb
- add php-pdo-abi version export (#193202)
dd13c73
bfa44e0
* Wed May 24 2006 Radek Vokal <rvokal@redhat.com> 5.1.4-5.1
bfa44e0
- rebuilt for new libnetsnmp
bfa44e0
cf2850d
* Thu May 18 2006 Joe Orton <jorton@redhat.com> 5.1.4-5
cf2850d
- provide mod_php (#187891)
cf2850d
- provide php-cli (#192196)
cf2850d
- use correct LDAP fix (#181518)
cf2850d
- define _GNU_SOURCE in php_config.h and leave it defined
cf2850d
- drop (circular) dependency on php-pear
cf2850d
6905bc8
* Mon May  8 2006 Joe Orton <jorton@redhat.com> 5.1.4-3
6905bc8
- update to 5.1.4
6905bc8
9086530
* Wed May  3 2006 Joe Orton <jorton@redhat.com> 5.1.3-3
9086530
- update to 5.1.3
9086530
28319a7
* Tue Feb 28 2006 Joe Orton <jorton@redhat.com> 5.1.2-5
28319a7
- provide php-api (#183227)
28319a7
- add provides for all builtin modules (Tim Jackson, #173804)
28319a7
- own %%{_libdir}/php/pear for PEAR packages (per #176733)
28319a7
- add obsoletes to allow upgrade from FE4 PDO packages (#181863)
28319a7
3970e7f
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.1.2-4.3
f3c4701
- bump again for double-long bug on ppc(64)
f3c4701
3d3ca0d
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.1.2-4.1
3d3ca0d
- rebuilt for new gcc4.1 snapshot and glibc changes
3d3ca0d
6078987
* Tue Jan 31 2006 Joe Orton <jorton@redhat.com> 5.1.2-4
6078987
- rebuild for new libc-client soname
6078987
fbbd35c
* Mon Jan 16 2006 Joe Orton <jorton@redhat.com> 5.1.2-3
fbbd35c
- only build xmlreader and xmlwriter shared (#177810)
fbbd35c
0c68d3e
* Fri Jan 13 2006 Joe Orton <jorton@redhat.com> 5.1.2-2
0c68d3e
- update to 5.1.2
0c68d3e
c24e668
* Thu Jan  5 2006 Joe Orton <jorton@redhat.com> 5.1.1-8
c24e668
- rebuild again
c24e668
ced9474
* Mon Jan  2 2006 Joe Orton <jorton@redhat.com> 5.1.1-7
ced9474
- rebuild for new net-snmp
ced9474
03adf9e
* Mon Dec 12 2005 Joe Orton <jorton@redhat.com> 5.1.1-6
03adf9e
- enable short_open_tag in default php.ini again (#175381)
03adf9e
32ca733
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
32ca733
- rebuilt
32ca733
b9e81aa
* Thu Dec  8 2005 Joe Orton <jorton@redhat.com> 5.1.1-5
b9e81aa
- require net-snmp for php-snmp (#174800)
b9e81aa
a3a274c
* Sun Dec  4 2005 Joe Orton <jorton@redhat.com> 5.1.1-4
a3a274c
- add /usr/share/pear back to hard-coded include_path (#174885)
a3a274c
cda6507
* Fri Dec  2 2005 Joe Orton <jorton@redhat.com> 5.1.1-3
cda6507
- rebuild for httpd 2.2
cda6507
a555159
* Mon Nov 28 2005 Joe Orton <jorton@redhat.com> 5.1.1-2
a555159
- update to 5.1.1
a555159
- remove pear subpackage
a555159
- enable pdo extensions (php-pdo subpackage)
a555159
- remove non-standard conditional module builds
0d7ff43
- enable xmlreader extension
a555159
9411f16
* Thu Nov 10 2005 Tomas Mraz <tmraz@redhat.com> 5.0.5-6
9411f16
- rebuilt against new openssl
9411f16
6704a65
* Mon Nov  7 2005 Joe Orton <jorton@redhat.com> 5.0.5-5
6704a65
- pear: update to XML_RPC 1.4.4, XML_Parser 1.2.7, Mail 1.1.9 (#172528)
6704a65
a555159
* Tue Nov  1 2005 Joe Orton <jorton@redhat.com> 5.0.5-4
9df721e
- rebuild for new libnetsnmp
9df721e
b3bd894
* Wed Sep 14 2005 Joe Orton <jorton@redhat.com> 5.0.5-3
b3bd894
- update to 5.0.5
b3bd894
- add fix for upstream #34435
b3bd894
- devel: require autoconf, automake (#159283)
b3bd894
- pear: update to HTTP-1.3.6, Mail-1.1.8, Net_SMTP-1.2.7, XML_RPC-1.4.1
1a1c763
- fix imagettftext et al (upstream, #161001)
b3bd894
e6c3d5a
* Thu Jun 16 2005 Joe Orton <jorton@redhat.com> 5.0.4-11
e6c3d5a
- ldap: restore ldap_start_tls() function
e6c3d5a
231013c
* Fri May  6 2005 Joe Orton <jorton@redhat.com> 5.0.4-10
231013c
- disable RPATHs in shared extensions (#156974)
231013c
f9c54ea
* Tue May  3 2005 Joe Orton <jorton@redhat.com> 5.0.4-9
f9c54ea
- build simplexml_import_dom even with shared dom (#156434)
f9c54ea
- prevent truncation of copied files to ~2Mb (#155916)
f9c54ea
- install /usr/bin/php from CLI build alongside CGI
f9c54ea
- enable sysvmsg extension (#142988)
f9c54ea
48bfecb
* Mon Apr 25 2005 Joe Orton <jorton@redhat.com> 5.0.4-8
48bfecb
- prevent build of builtin dba as well as shared extension
48bfecb
25e1e3b
* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-7
25e1e3b
- split out dba and bcmath extensions into subpackages
25e1e3b
- BuildRequire gcc-c++ to avoid AC_PROG_CXX{,CPP} failure (#155221)
820eb1a
- pear: update to DB-1.7.6
820eb1a
- enable FastCGI support in /usr/bin/php-cgi (#149596)
25e1e3b
1005a1c
* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-6
1005a1c
- build /usr/bin/php with the CLI SAPI, and add /usr/bin/php-cgi,
1005a1c
  built with the CGI SAPI (thanks to Edward Rudd, #137704)
1005a1c
- add php(1) man page for CLI
1005a1c
- fix more test cases to use -n when invoking php
1005a1c
79b22fd
* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-5
79b22fd
- rebuild for new libpq soname
79b22fd
fbb2a69
* Tue Apr 12 2005 Joe Orton <jorton@redhat.com> 5.0.4-4
fbb2a69
- bundle from PEAR: HTTP, Mail, XML_Parser, Net_Socket, Net_SMTP
fbb2a69
- snmp: disable MSHUTDOWN function to prevent error_log noise (#153988)
fbb2a69
- mysqli: add fix for crash on x86_64 (Georg Richter, upstream #32282)
fbb2a69
0b181fc
* Mon Apr 11 2005 Joe Orton <jorton@redhat.com> 5.0.4-3
0b181fc
- build shared objects as PIC (#154195)
0b181fc
3dcb968
* Mon Apr  4 2005 Joe Orton <jorton@redhat.com> 5.0.4-2
3dcb968
- fix PEAR installation and bundle PEAR DB-1.7.5 package
3dcb968
8e68e30
* Fri Apr  1 2005 Joe Orton <jorton@redhat.com> 5.0.4-1
8e68e30
- update to 5.0.4 (#153068)
8e68e30
- add .phps AddType to php.conf (#152973)
55a0e78
- better gcc4 fix for libxmlrpc
8e68e30
2e4ba13
* Wed Mar 30 2005 Joe Orton <jorton@redhat.com> 5.0.3-5
2e4ba13
- BuildRequire mysql-devel >= 4.1
2e4ba13
- don't mark php.ini as noreplace to make upgrades work (#152171)
2e4ba13
- fix subpackage descriptions (#152628)
2e4ba13
- fix memset(,,0) in Zend (thanks to Dave Jones)
2e4ba13
- fix various compiler warnings in Zend
2e4ba13
7ed6c4d
* Thu Mar 24 2005 Joe Orton <jorton@redhat.com> 5.0.3-4
7ed6c4d
- package mysqli extension in php-mysql
7ed6c4d
- really enable pcntl (#142903)
7ed6c4d
- don't build with --enable-safe-mode (#148969)
7ed6c4d
- use "Instant Client" libraries for oci8 module (Kai Bolay, #149873)
7ed6c4d
8f1c3b2
* Fri Feb 18 2005 Joe Orton <jorton@redhat.com> 5.0.3-3
8f1c3b2
- fix build with GCC 4
8f1c3b2
f5f5795
* Wed Feb  9 2005 Joe Orton <jorton@redhat.com> 5.0.3-2
f5f5795
- install the ext/gd headers (#145891)
f5f5795
- enable pcntl extension in /usr/bin/php (#142903)
f5f5795
- add libmbfl array arithmetic fix (dcb314@hotmail.com, #143795)
f5f5795
- add BuildRequire for recent pcre-devel (#147448)
f5f5795
b9049bb
* Wed Jan 12 2005 Joe Orton <jorton@redhat.com> 5.0.3-1
b9049bb
- update to 5.0.3 (thanks to Robert Scheck et al, #143101)
b9049bb
- enable xsl extension (#142174)
b9049bb
- package both the xsl and dom extensions in php-xml
b9049bb
- enable soap extension, shared (php-soap package) (#142901)
55c9ee3
- add patches from upstream 5.0 branch:
55c9ee3
 * Zend_strtod.c compile fixes
55c9ee3
 * correct php_sprintf return value usage
b9049bb
20abac9
* Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 5.0.2-8
20abac9
- update for db4-4.3 (Robert Scheck, #140167)
20abac9
- build against mysql-devel
20abac9
- run tests in %%check
20abac9
1826c14
* Wed Nov 10 2004 Joe Orton <jorton@redhat.com> 5.0.2-7
1826c14
- truncate changelog at 4.3.1-1
1826c14
- merge from 4.3.x package:
1826c14
 - enable mime_magic extension and Require: file (#130276)
66820e9
1826c14
* Mon Nov  8 2004 Joe Orton <jorton@redhat.com> 5.0.2-6
1826c14
- fix dom/sqlite enable/without confusion
694c19a
1826c14
* Mon Nov  8 2004 Joe Orton <jorton@redhat.com> 5.0.2-5
1826c14
- fix phpize installation for lib64 platforms
1826c14
- add fix for segfault in variable parsing introduced in 5.0.2
1826c14
1826c14
* Mon Nov  8 2004 Joe Orton <jorton@redhat.com> 5.0.2-4
1826c14
- update to 5.0.2 (#127980)
1826c14
- build against mysqlclient10-devel
967228f
- use new RTLD_DEEPBIND to load extension modules
1826c14
- drop explicit requirement for elfutils-devel
1826c14
- use AddHandler in default conf.d/php.conf (#135664)
1826c14
- "fix" round() fudging for recent gcc on x86
1826c14
- disable sqlite pending audit of warnings and subpackage split
967228f
1826c14
* Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-4
1826c14
- don't build dom extension into 2.0 SAPI
34cd870
1826c14
* Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-3
1826c14
- ExclusiveArch: x86 ppc x86_64 for the moment
cvsdist 4928ff1
1826c14
* Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-2
1826c14
- fix default extension_dir and conf.d/php.conf
cvsdist 2241781
1826c14
* Thu Sep  9 2004 Joe Orton <jorton@redhat.com> 5.0.1-1
1826c14
- update to 5.0.1
1826c14
- only build shared modules once
1826c14
- put dom extension in php-dom subpackage again
1826c14
- move extension modules into %%{_libdir}/php/modules
1826c14
- don't use --with-regex=system, it's ignored for the apache* SAPIs
cvsdist aad8a22
1826c14
* Wed Aug 11 2004 Tom Callaway <tcallawa@redhat.com>
1826c14
- Merge in some spec file changes from Jeff Stern (jastern@uci.edu)
cvsdist 93068c8
1826c14
* Mon Aug 09 2004 Tom Callaway <tcallawa@redhat.com>
1826c14
- bump to 5.0.0
1826c14
- add patch to prevent clobbering struct re_registers from regex.h
1826c14
- remove domxml references, replaced with dom now built-in
1826c14
- fix php.ini to refer to php5 not php4
cvsdist 7e09c72
cvsdist dbaec7f
* Wed Aug 04 2004 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist dbaec7f
- rebuild
cvsdist dbaec7f
cvsdist c6c6bec
* Wed Jul 14 2004 Joe Orton <jorton@redhat.com> 4.3.8-3
cvsdist c6c6bec
- update to 4.3.8
cvsdist c6c6bec
- catch some fd > FD_SETSIZE vs select() issues (#125258)
cvsdist c6c6bec
cvsdist c1a8fc6
* Mon Jun 21 2004 Joe Orton <jorton@redhat.com> 4.3.7-4
cvsdist c1a8fc6
- pick up test failures again
cvsdist c6c6bec
- have -devel require php of same release
cvsdist c1a8fc6
cvsdist aad1e13
* Thu Jun 17 2004 Joe Orton <jorton@redhat.com> 4.3.7-3
cvsdist aad1e13
- add gmp_powm fix (Oskari Saarenmaa, #124318)
cvsdist aad1e13
- split mbstring, ncurses, gd, openssl extns into subpackages
cvsdist aad1e13
- fix memory leak in apache2handler; use ap_r{write,flush}
cvsdist aad1e13
  rather than brigade interfaces
cvsdist f03e0ee
cvsdist aad1e13
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist aad1e13
- rebuilt
cvsdist f03e0ee
cvsdist 7f43e12
* Thu Jun  3 2004 Joe Orton <jorton@redhat.com> 4.3.7-1
cvsdist 7f43e12
- update to 4.3.7
cvsdist 7f43e12
- have -pear subpackage require php of same VR
cvsdist 7f43e12
cvsdist 7f43e12
* Wed May 26 2004 Joe Orton <jorton@redhat.com> 4.3.6-6
cvsdist 7f43e12
- buildrequire smtpdaemon (#124430)
cvsdist 7f43e12
- try switching to system libgd again (prevent symbol conflicts
cvsdist 7f43e12
  when e.g. mod_perl loads the system libgd library.)
cvsdist 7f43e12
cvsdist 7f43e12
* Wed May 19 2004 Joe Orton <jorton@redhat.com> 4.3.6-5
cvsdist 7f43e12
- don't obsolete php-imap (#123580)
cvsdist 7f43e12
- unconditionally build -imap subpackage
cvsdist 7f43e12
cvsdist 7f43e12
* Thu May 13 2004 Joe Orton <jorton@redhat.com> 4.3.6-4
cvsdist 7f43e12
- remove trigger
cvsdist 7f43e12
cvsdist 7f43e12
* Thu Apr 22 2004 Joe Orton <jorton@redhat.com> 4.3.6-3
cvsdist 7f43e12
- fix umask reset "feature" (#121454)
cvsdist 7f43e12
- don't use DL_GLOBAL when dlopen'ing extension modules
cvsdist 7f43e12
cvsdist 7f43e12
* Sun Apr 18 2004 Joe Orton <jorton@redhat.com> 4.3.6-2
cvsdist 7f43e12
- fix segfault on httpd SIGHUP (upstream #27810)
cvsdist 7f43e12
cvsdist 7f43e12
* Fri Apr 16 2004 Joe Orton <jorton@redhat.com> 4.3.6-1
cvsdist 7f43e12
- update to 4.3.6 (Robert Scheck, #121011)
cvsdist 7f43e12
cvsdist a466c8e
* Wed Apr  7 2004 Joe Orton <jorton@redhat.com> 4.3.4-11
cvsdist a466c8e
- add back imap subpackage, using libc-client (#115535)
cvsdist a466c8e
cvsdist 6d6a06a
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 6d6a06a
- rebuilt
cvsdist 6d6a06a
cvsdist 6d6a06a
* Wed Feb 18 2004 Joe Orton <jorton@redhat.com> 4.3.4-10
cvsdist 6d6a06a
- eliminate /usr/local/lib RPATH in odbc.so
cvsdist 6d6a06a
- really use system pcre library
cvsdist 6d6a06a
cvsdist 6d6a06a
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 4.3.4-9
cvsdist 6d6a06a
- rebuilt
cvsdist 6d6a06a
cvsdist 6d6a06a
* Mon Feb  2 2004 Bill Nottingham <notting@redhat.com> 4.3.4-8
cvsdist 6d6a06a
- obsolete php-imap if we're not building it
cvsdist 6d6a06a
cvsdist 6fe246b
* Wed Jan 28 2004 Joe Orton <jorton@redhat.com> 4.3.4-7
cvsdist 6fe246b
- gd fix for build with recent Freetype2 (from upstream)
cvsdist 6fe246b
- remove easter egg (Oden Eriksson, Mandrake)
cvsdist 6fe246b
cvsdist 6fe246b
* Wed Jan 21 2004 Joe Orton <jorton@redhat.com> 4.3.4-6
cvsdist 6fe246b
- php-pear requires php
cvsdist 6fe246b
- also remove extension=imap from php.ini in upgrade trigger
cvsdist 6fe246b
- merge from Taroon: allow upgrade from Stronghold 4.0
cvsdist 6fe246b
cvsdist 6fe246b
* Wed Jan 21 2004 Joe Orton <jorton@redhat.com> 4.3.4-5
cvsdist 6fe246b
- add defattr for php-pear subpackage
cvsdist 6fe246b
- restore defaults: output_buffering=Off, register_argc_argv=On
cvsdist 6fe246b
- add trigger to handle php.ini upgrades smoothly (#112470)
cvsdist 6fe246b
cvsdist 6fe246b
* Tue Jan 13 2004 Joe Orton <jorton@redhat.com> 4.3.4-4
cvsdist 6fe246b
- conditionalize support for imap extension for the time being
cvsdist 6fe246b
- switch /etc/php.ini to use php.ini-recommended (but leave
cvsdist 6fe246b
  variables_order as EGPCS) (#97765)
cvsdist 6fe246b
- set session.path to /var/lib/php/session by default (#89975)
cvsdist 6fe246b
- own /var/lib/php{,/session} and have apache own the latter
cvsdist 6fe246b
- split off php-pear subpackage (#83771)
cvsdist 6fe246b
cvsdist 6fe246b
* Sat Dec 13 2003 Jeff Johnson <jbj@jbj.org> 4.3.4-3
cvsdist 6fe246b
- rebuild against db-4.2.52.
cvsdist 6fe246b
cvsdist 6fe246b
* Mon Dec  1 2003 Joe Orton <jorton@redhat.com> 4.3.4-2
cvsdist 6fe246b
- rebuild for new libxslt (#110658) 
cvsdist 6fe246b
- use --with-{mssql,oci8} for enabling extensions (#110482)
cvsdist 6fe246b
- fix rebuild issues (Jan Visser, #110274)
cvsdist 6fe246b
- remove hard-coded LIBS
cvsdist 6fe246b
- conditional support for mhash (Aleksander Adamowski, #111251)
cvsdist 6fe246b
cvsdist b0e1265
* Mon Nov 10 2003 Joe Orton <jorton@redhat.com> 4.3.4-1.1
cvsdist b0e1265
- rebuild for FC1 updates
cvsdist b0e1265
cvsdist b0e1265
* Mon Nov 10 2003 Joe Orton <jorton@redhat.com> 4.3.4-1
cvsdist b0e1265
- update to 4.3.4
cvsdist b0e1265
- include all licence files
cvsdist b0e1265
- libxmlrpc fixes
cvsdist b0e1265
cvsdist f03e0ee
* Mon Oct 20 2003 Joe Orton <jorton@redhat.com> 4.3.3-6
cvsdist f03e0ee
- use bundled libgd (#107407)
cvsdist f03e0ee
- remove manual: up-to-date manual sources are no longer DFSG-free;
cvsdist f03e0ee
  it's too big; it's on the web anyway; #91292, #105804, #107384
cvsdist f03e0ee
cvsdist f03e0ee
* Wed Oct 15 2003 Joe Orton <jorton@redhat.com> 4.3.3-5
cvsdist f03e0ee
- add php-xmlrpc subpackage (#107138)
cvsdist f03e0ee
cvsdist f03e0ee
* Mon Oct 13 2003 Joe Orton <jorton@redhat.com> 4.3.3-4
cvsdist f03e0ee
- drop recode support, symbols collide with MySQL
cvsdist f03e0ee
cvsdist f03e0ee
* Sun Oct 12 2003 Joe Orton <jorton@redhat.com> 4.3.3-3
cvsdist f03e0ee
- split domxml extension into php-domxml subpackage
cvsdist f03e0ee
- enable xslt and xml support in domxml extension (#106042)
cvsdist f03e0ee
- fix httpd-devel build requirement (#104341)
cvsdist f03e0ee
- enable recode extension (#106755)
cvsdist f03e0ee
- add workaround for #103982
cvsdist f03e0ee
cvsdist 6fe246b
* Thu Sep 25 2003 Jeff Johnson <jbj@jbj.org> 4.3.3-3
cvsdist 6fe246b
- rebuild against db-4.2.42.
cvsdist 6fe246b
cvsdist f03e0ee
* Sun Sep  7 2003 Joe Orton <jorton@redhat.com> 4.3.3-2
cvsdist f03e0ee
- don't use --enable-versioning, it depends on libtool being
cvsdist f03e0ee
 broken (#103690)
cvsdist f03e0ee
cvsdist f03e0ee
* Sun Sep  7 2003 Joe Orton <jorton@redhat.com> 4.3.3-1
cvsdist f03e0ee
- update to 4.3.3
cvsdist f03e0ee
- add libtool build prereq (#103388)
cvsdist f03e0ee
- switch to apache2handler
cvsdist f03e0ee
cvsdist f03e0ee
* Mon Jul 28 2003 Joe Orton <jorton@redhat.com> 4.3.2-8
cvsdist f03e0ee
- rebuild
cvsdist f03e0ee
cvsdist f03e0ee
* Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 4.3.2-7
cvsdist f03e0ee
- rebuild
cvsdist f03e0ee
cvsdist f03e0ee
* Tue Jul  8 2003 Joe Orton <jorton@redhat.com> 4.3.2-6
cvsdist f03e0ee
- use system pcre library
cvsdist f03e0ee
cvsdist f03e0ee
* Mon Jun  9 2003 Joe Orton <jorton@redhat.com> 4.3.2-5
cvsdist f03e0ee
- enable mbstring and mbregex (#81336)
cvsdist f03e0ee
- fix use of libtool 1.5
cvsdist f03e0ee
cvsdist f03e0ee
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist f03e0ee
- rebuilt
cvsdist f03e0ee
cvsdist f03e0ee
* Tue Jun  3 2003 Joe Orton <jorton@redhat.com> 4.3.2-3
cvsdist f03e0ee
- add lib64 and domxml fixes
cvsdist f03e0ee
cvsdist f03e0ee
* Tue Jun  3 2003 Frank Dauer <f@paf.net>
cvsdist f03e0ee
- added conditional support for mssql module (#92149)
cvsdist f03e0ee
cvsdist f03e0ee
* Fri May 30 2003 Joe Orton <jorton@redhat.com> 4.3.2-2
cvsdist f03e0ee
- update the -tests and -lib64 patches
cvsdist f03e0ee
- fixes for db4 detection
cvsdist f03e0ee
- require aspell-devel >= 0.50.0 for pspell compatibility
cvsdist f03e0ee
cvsdist f03e0ee
* Thu May 29 2003 Joe Orton <jorton@redhat.com> 4.3.2-1
cvsdist f03e0ee
- update to 4.3.2
cvsdist f03e0ee
cvsdist f03e0ee
* Fri May 16 2003 Joe Orton <jorton@redhat.com> 4.3.1-3
cvsdist f03e0ee
- link odbc module correctly
cvsdist f03e0ee
- patch so that php -n doesn't scan inidir
cvsdist f03e0ee
- run tests using php -n, avoid loading system modules
cvsdist f03e0ee
cvsdist f03e0ee
* Wed May 14 2003 Joe Orton <jorton@redhat.com> 4.3.1-2
cvsdist f03e0ee
- workaround broken parser produced by bison-1.875
cvsdist 4567a4b
cvsdist f03e0ee
* Tue May  6 2003 Joe Orton <jorton@redhat.com> 4.3.1-1
cvsdist f03e0ee
- update to 4.3.1; run test suite
cvsdist f03e0ee
- open extension modules with RTLD_NOW rather than _LAZY