af9dc8
# API/ABI check
af9dc8
%global apiver      20100412
af9dc8
%global zendver     20100525
af9dc8
%global pdover      20080721
af9dc8
# Extension version
af9dc8
%global fileinfover 1.0.5
af9dc8
%global pharver     2.0.1
af9dc8
%global zipver      1.11.0
af9dc8
%global jsonver     1.2.1
af9dc8
af9dc8
# Adds -z now to the linker flags
af9dc8
%global _hardened_build 1
af9dc8
af9dc8
# version used for php embedded library soname
af9dc8
%global embed_version 5.4
af9dc8
af9dc8
%global mysql_sock %(mysql_config --socket 2>/dev/null || echo /var/lib/mysql/mysql.sock)
af9dc8
af9dc8
# Regression tests take a long time, you can skip 'em with this
af9dc8
%{!?runselftest: %{expand: %%global runselftest 1}}
af9dc8
af9dc8
# Use the arch-specific mysql_config binary to avoid mismatch with the
af9dc8
# arch detection heuristic used by bindir/mysql_config.
af9dc8
%global mysql_config %{_libdir}/mysql/mysql_config
af9dc8
af9dc8
%global with_fpm 1
af9dc8
af9dc8
# Build mysql/mysqli/pdo extensions using libmysqlclient or only mysqlnd
af9dc8
%global with_libmysql 1
af9dc8
af9dc8
# Build ZTS extension or only NTS
af9dc8
%global with_zts 0
af9dc8
af9dc8
%if 0%{?__isa_bits:1}
af9dc8
%global isasuffix -%{__isa_bits}
af9dc8
%else
af9dc8
%global isasuffix %nil
af9dc8
%endif
af9dc8
af9dc8
# /usr/sbin/apsx with httpd < 2.4 and defined as /usr/bin/apxs with httpd >= 2.4
af9dc8
%{!?_httpd_apxs:       %{expand: %%global _httpd_apxs       %%{_sbindir}/apxs}}
af9dc8
%{!?_httpd_mmn:        %{expand: %%global _httpd_mmn        %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo missing-httpd-devel)}}
af9dc8
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
af9dc8
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
af9dc8
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
af9dc8
%{!?_httpd_moddir:     %{expand: %%global _httpd_moddir     %%{_libdir}/httpd/modules}}
af9dc8
%{!?_httpd_contentdir: %{expand: %%global _httpd_contentdir /var/www}}
af9dc8
af9dc8
%if 0%{?fedora} < 17 && 0%{?rhel} < 7
af9dc8
%global with_zip     0
af9dc8
%global with_libzip  0
af9dc8
%global zipmod       %nil
af9dc8
%else
af9dc8
%global with_zip     1
af9dc8
%global with_libzip  1
af9dc8
%global zipmod       zip
af9dc8
%endif
af9dc8
af9dc8
%if 0%{?fedora} < 18 && 0%{?rhel} < 7
af9dc8
%global db_devel  db4-devel
af9dc8
%else
af9dc8
%global db_devel  libdb-devel
af9dc8
%endif
af9dc8
af9dc8
%global _performance_build 1
af9dc8
af9dc8
#global rcver RC2
af9dc8
af9dc8
Summary: PHP scripting language for creating dynamic web sites
af9dc8
Name: php
af9dc8
Version: 5.4.16
c2cf26
Release: 46%{?dist}
af9dc8
# All files licensed under PHP version 3.01, except
af9dc8
# Zend is licensed under Zend
af9dc8
# TSRM is licensed under BSD
af9dc8
License: PHP and Zend and BSD
af9dc8
Group: Development/Languages
af9dc8
URL: http://www.php.net/
af9dc8
af9dc8
Source0: http://www.php.net/distributions/php-%{version}%{?rcver}.tar.bz2
af9dc8
Source1: php.conf
af9dc8
Source2: php.ini
af9dc8
Source3: macros.php
af9dc8
Source4: php-fpm.conf
af9dc8
Source5: php-fpm-www.conf
af9dc8
Source6: php-fpm.service
af9dc8
Source7: php-fpm.logrotate
af9dc8
Source8: php-fpm.sysconfig
af9dc8
Source9: php.modconf
af9dc8
Source10: php.ztsmodconf
af9dc8
af9dc8
# Build fixes
af9dc8
Patch5: php-5.2.0-includedir.patch
af9dc8
Patch6: php-5.2.4-embed.patch
af9dc8
Patch7: php-5.3.0-recode.patch
af9dc8
Patch8: php-5.4.7-libdb.patch
af9dc8
af9dc8
# Fixes for extension modules
af9dc8
# https://bugs.php.net/63171 no odbc call during timeout
af9dc8
Patch21: php-5.4.7-odbctimer.patch
af9dc8
# Fixed Bug #64949 (Buffer overflow in _pdo_pgsql_error)
af9dc8
Patch22: php-5.4.16-pdopgsql.patch
af9dc8
# Fixed bug #64960 (Segfault in gc_zval_possible_root)
af9dc8
Patch23: php-5.4.16-gc.patch
af9dc8
# Fixed Bug #64915 (error_log ignored when daemonize=0)
af9dc8
Patch24: php-5.4.16-fpm.patch
af9dc8
# https://bugs.php.net/65143 php-cgi man page
af9dc8
# https://bugs.php.net/65142 phar man page
af9dc8
Patch25: php-5.4.16-man.patch
af9dc8
# https://bugs.php.net/66987 fileinfo / bigendian
af9dc8
Patch26: php-5.4.16-bug66987.patch
af9dc8
# https://bugs.php.net/50444 pdo_odbc / x86_64
af9dc8
Patch27: php-5.4.16-bug50444.patch
af9dc8
# https://bugs.php.net/63595 gmp memory allocator
af9dc8
Patch28: php-5.4.16-bug63595.patch
af9dc8
# https://bugs.php.net/62129 session rfc1867
af9dc8
Patch29: php-5.4.16-bug62129.patch
af9dc8
# https://bugs.php.net/66762 mysqli segfault
af9dc8
Patch30: php-5.4.16-bug66762.patch
af9dc8
# https://bugs.php.net/65641 fpm script name
af9dc8
Patch31: php-5.4.6-bug65641.patch
af9dc8
# https://bugs.php.net/71089 duplicate ext
af9dc8
Patch32: php-5.4.16-bug71089.patch
af9dc8
# https://bugs.php.net/66833 default digest algo
af9dc8
Patch33: php-5.4.16-bug66833.patch
af9dc8
# fixed variable corruption
af9dc8
Patch34: php-5.4.16-wddx.patch
af9dc8
# bad logic in sapi header callback routine
af9dc8
Patch35: php-5.4.16-bug66375.patch
af9dc8
af9dc8
# Functional changes
af9dc8
Patch40: php-5.4.0-dlopen.patch
af9dc8
Patch41: php-5.4.0-easter.patch
af9dc8
Patch42: php-5.3.1-systzdata-v10.patch
af9dc8
# See http://bugs.php.net/53436
af9dc8
Patch43: php-5.4.0-phpize.patch
af9dc8
# Use system libzip instead of bundled one
af9dc8
Patch44: php-5.4.15-system-libzip.patch
af9dc8
# Use -lldap_r for OpenLDAP
af9dc8
Patch45: php-5.4.8-ldap_r.patch
af9dc8
# Make php_config.h constant across builds
af9dc8
Patch46: php-5.4.9-fixheader.patch
af9dc8
# drop "Configure command" from phpinfo output
af9dc8
Patch47: php-5.4.9-phpinfo.patch
af9dc8
# Fix php_select on aarch64 (http://bugs.php.net/67406)
af9dc8
Patch48: php-5.4.16-aarch64-select.patch
af9dc8
Patch49: php-5.4.16-curltls.patch
cfc571
# add clear_env option to FPM config
cfc571
Patch50: php-5.4.16-fpmclearenv.patch
cfc571
# fix default_socket_timeout does not work with SSL
cfc571
Patch51: php-5.4.16-openssl-timeout.patch
c2cf26
# load openssl configuration file
c2cf26
Patch52: php-5.4.16-openssl-config.patch
af9dc8
af9dc8
# Fixes for tests
af9dc8
Patch60: php-5.4.16-pdotests.patch
af9dc8
af9dc8
# Security fixes
af9dc8
Patch100: php-5.4.17-CVE-2013-4013.patch
af9dc8
Patch101: php-5.4.16-CVE-2013-4248.patch
af9dc8
Patch102: php-5.4.16-CVE-2013-6420.patch
af9dc8
Patch104: php-5.4.16-CVE-2014-1943.patch
af9dc8
Patch105: php-5.4.16-CVE-2013-6712.patch
af9dc8
Patch107: php-5.4.16-CVE-2014-2270.patch
af9dc8
Patch108: php-5.4.16-CVE-2013-7345.patch
af9dc8
Patch109: php-5.4.16-CVE-2014-0237.patch
af9dc8
Patch110: php-5.4.16-CVE-2014-0238.patch
af9dc8
Patch111: php-5.4.16-CVE-2014-3479.patch
af9dc8
Patch112: php-5.4.16-CVE-2014-3480.patch
af9dc8
Patch113: php-5.4.16-CVE-2014-4721.patch
af9dc8
Patch114: php-5.4.16-CVE-2014-4049.patch
af9dc8
Patch115: php-5.4.16-CVE-2014-3515.patch
af9dc8
Patch116: php-5.4.16-CVE-2014-0207.patch
af9dc8
Patch117: php-5.4.16-CVE-2014-3487.patch
af9dc8
Patch118: php-5.4.16-CVE-2014-2497.patch
af9dc8
Patch119: php-5.4.16-CVE-2014-3478.patch
af9dc8
Patch120: php-5.4.16-CVE-2014-3538.patch
af9dc8
Patch121: php-5.4.16-CVE-2014-3587.patch
af9dc8
Patch122: php-5.4.16-CVE-2014-5120.patch
af9dc8
Patch123: php-5.4.16-CVE-2014-4698.patch
af9dc8
Patch124: php-5.4.16-CVE-2014-4670.patch
af9dc8
Patch125: php-5.4.16-CVE-2014-3597.patch
af9dc8
Patch126: php-5.4.16-CVE-2014-3668.patch
af9dc8
Patch127: php-5.4.16-CVE-2014-3669.patch
af9dc8
Patch128: php-5.4.16-CVE-2014-3670.patch
af9dc8
Patch129: php-5.4.16-CVE-2014-3710.patch
af9dc8
Patch130: php-5.4.16-CVE-2014-8142.patch
af9dc8
Patch131: php-5.4.16-CVE-2015-0231.patch
af9dc8
Patch132: php-5.4.16-CVE-2015-0232.patch
af9dc8
Patch133: php-5.4.16-CVE-2014-9652.patch
af9dc8
Patch134: php-5.4.16-CVE-2014-9709.patch
af9dc8
Patch135: php-5.4.16-CVE-2015-0273.patch
af9dc8
Patch136: php-5.4.16-CVE-2014-9705.patch
af9dc8
Patch137: php-5.4.16-CVE-2015-2301.patch
af9dc8
Patch138: php-5.4.16-bug69085.patch
af9dc8
Patch139: php-5.4.16-CVE-2015-2787.patch
af9dc8
Patch140: php-5.4.16-CVE-2015-2348.patch
af9dc8
Patch145: php-5.4.16-CVE-2015-4022.patch
af9dc8
Patch146: php-5.4.16-CVE-2015-4021.patch
af9dc8
Patch147: php-5.4.16-CVE-2015-4024.patch
af9dc8
Patch148: php-5.4.16-CVE-2015-4025.patch
af9dc8
Patch149: php-5.4.16-CVE-2015-3330.patch
af9dc8
Patch150: php-5.4.16-bug69353.patch
af9dc8
Patch151: php-5.4.16-CVE-2015-2783.patch
af9dc8
Patch152: php-5.4.16-CVE-2015-3329.patch
af9dc8
Patch153: php-5.4.16-bug68819.patch
af9dc8
Patch154: php-5.4.16-bug69152.patch
af9dc8
Patch155: php-5.4.16-CVE-2016-5385.patch
af9dc8
Patch156: php-5.4.16-CVE-2016-5766.patch
af9dc8
Patch157: php-5.4.16-CVE-2016-5767.patch
af9dc8
Patch158: php-5.4.16-CVE-2016-5768.patch
af9dc8
Patch159: php-5.4.16-CVE-2016-5399.patch
af9dc8
Patch160: php-5.4.16-CVE-2016-10167.patch
af9dc8
Patch161: php-5.4.16-CVE-2016-10168.patch
3e6383
Patch162: php-5.4.16-CVE-2017-7890.patch
af9dc8
af9dc8
af9dc8
BuildRequires: bzip2-devel, curl-devel >= 7.9, gmp-devel
af9dc8
BuildRequires: httpd-devel >= 2.0.46-1, pam-devel
af9dc8
BuildRequires: libstdc++-devel, openssl-devel
af9dc8
BuildRequires: sqlite-devel >= 3.6.0
af9dc8
BuildRequires: zlib-devel, smtpdaemon, libedit-devel
af9dc8
BuildRequires: pcre-devel >= 6.6
af9dc8
BuildRequires: bzip2, perl, libtool >= 1.4.3, gcc-c++
af9dc8
BuildRequires: libtool-ltdl-devel
af9dc8
%if %{with_libzip}
af9dc8
BuildRequires: libzip-devel >= 0.10
af9dc8
%endif
af9dc8
af9dc8
Obsoletes: php-dbg, php3, phpfi, stronghold-php
af9dc8
%if %{with_zts}
af9dc8
Obsoletes: php-zts < 5.3.7
af9dc8
Provides: php-zts = %{version}-%{release}
af9dc8
Provides: php-zts%{?_isa} = %{version}-%{release}
af9dc8
%endif
cfc571
# php engine for webserver working out of the box
cfc571
Provides: php(httpd)
af9dc8
af9dc8
Requires: httpd-mmn = %{_httpd_mmn}
af9dc8
Provides: mod_php = %{version}-%{release}
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
# For backwards-compatibility, require php-cli for the time being:
af9dc8
Requires: php-cli%{?_isa} = %{version}-%{release}
af9dc8
# To ensure correct /var/lib/php/session ownership:
af9dc8
Requires(pre): httpd
af9dc8
af9dc8
af9dc8
# Don't provides extensions, which are not shared library, as .so
af9dc8
%{?filter_provides_in: %filter_provides_in %{_libdir}/php/modules/.*\.so$}
af9dc8
%{?filter_provides_in: %filter_provides_in %{_libdir}/php-zts/modules/.*\.so$}
af9dc8
%{?filter_provides_in: %filter_provides_in %{_httpd_moddir}/.*\.so$}
af9dc8
%{?filter_setup}
af9dc8
af9dc8
af9dc8
%description
af9dc8
PHP is an HTML-embedded scripting language. PHP attempts to make it
af9dc8
easy for developers to write dynamically generated web pages. PHP also
af9dc8
offers built-in database integration for several commercial and
af9dc8
non-commercial database management systems, so writing a
af9dc8
database-enabled webpage with PHP is fairly simple. The most common
af9dc8
use of PHP coding is probably as a replacement for CGI scripts. 
af9dc8
af9dc8
The php package contains the module (often referred to as mod_php)
af9dc8
which adds support for the PHP language to Apache HTTP Server.
af9dc8
af9dc8
%package cli
af9dc8
Group: Development/Languages
af9dc8
Summary: Command-line interface for PHP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
Provides: php-cgi = %{version}-%{release}, php-cgi%{?_isa} = %{version}-%{release}
af9dc8
Provides: php-pcntl, php-pcntl%{?_isa}
af9dc8
Provides: php-readline, php-readline%{?_isa}
af9dc8
af9dc8
%description cli
af9dc8
The php-cli package contains the command-line interface 
af9dc8
executing PHP scripts, /usr/bin/php, and the CGI interface.
af9dc8
af9dc8
af9dc8
%if %{with_fpm}
af9dc8
%package fpm
af9dc8
Group: Development/Languages
af9dc8
Summary: PHP FastCGI Process Manager
af9dc8
# All files licensed under PHP version 3.01, except
af9dc8
# Zend is licensed under Zend
af9dc8
# TSRM and fpm are licensed under BSD
af9dc8
License: PHP and Zend and BSD
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
BuildRequires: systemd-devel
af9dc8
BuildRequires: systemd-units
af9dc8
Requires: systemd-units
af9dc8
Requires(pre): /usr/sbin/useradd
af9dc8
Requires(post): systemd-units
af9dc8
Requires(preun): systemd-units
af9dc8
Requires(postun): systemd-units
af9dc8
# This is actually needed for the %%triggerun script but Requires(triggerun)
af9dc8
# is not valid.  We can use %%post because this particular %%triggerun script
af9dc8
# should fire just after this package is installed.
af9dc8
Requires(post): systemd-sysv
af9dc8
af9dc8
%description fpm
af9dc8
PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI
af9dc8
implementation with some additional features useful for sites of
af9dc8
any size, especially busier sites.
af9dc8
%endif
af9dc8
af9dc8
%package common
af9dc8
Group: Development/Languages
af9dc8
Summary: Common files for PHP
af9dc8
# All files licensed under PHP version 3.01, except
af9dc8
# fileinfo is licensed under PHP version 3.0
af9dc8
# regex, libmagic are licensed under BSD
af9dc8
# main/snprintf.c, main/spprintf.c and main/rfc1867.c are ASL 1.0
af9dc8
License: PHP and BSD and ASL 1.0
af9dc8
# ABI/API check - Arch specific
af9dc8
Provides: php-api = %{apiver}%{isasuffix}, php-zend-abi = %{zendver}%{isasuffix}
af9dc8
Provides: php(api) = %{apiver}%{isasuffix}, php(zend-abi) = %{zendver}%{isasuffix}
af9dc8
Provides: php(language) = %{version}, php(language)%{?_isa} = %{version}
af9dc8
# Provides for all builtin/shared modules:
af9dc8
Provides: php-bz2, php-bz2%{?_isa}
af9dc8
Provides: php-calendar, php-calendar%{?_isa}
af9dc8
Provides: php-core = %{version}, php-core%{?_isa} = %{version}
af9dc8
Provides: php-ctype, php-ctype%{?_isa}
af9dc8
Provides: php-curl, php-curl%{?_isa}
af9dc8
Provides: php-date, php-date%{?_isa}
af9dc8
Provides: php-ereg, php-ereg%{?_isa}
af9dc8
Provides: php-exif, php-exif%{?_isa}
af9dc8
Provides: php-fileinfo, php-fileinfo%{?_isa}
af9dc8
Provides: php-pecl-Fileinfo = %{fileinfover}, php-pecl-Fileinfo%{?_isa} = %{fileinfover}
af9dc8
Provides: php-pecl(Fileinfo) = %{fileinfover}, php-pecl(Fileinfo)%{?_isa} = %{fileinfover}
af9dc8
Provides: php-filter, php-filter%{?_isa}
af9dc8
Provides: php-ftp, php-ftp%{?_isa}
af9dc8
Provides: php-gettext, php-gettext%{?_isa}
af9dc8
Provides: php-gmp, php-gmp%{?_isa}
af9dc8
Provides: php-hash, php-hash%{?_isa}
af9dc8
Provides: php-mhash = %{version}, php-mhash%{?_isa} = %{version}
af9dc8
Provides: php-iconv, php-iconv%{?_isa}
af9dc8
Provides: php-json, php-json%{?_isa}
af9dc8
Provides: php-pecl-json = %{jsonver}, php-pecl-json%{?_isa} = %{jsonver}
af9dc8
Provides: php-pecl(json) = %{jsonver}, php-pecl(json)%{?_isa} = %{jsonver}
af9dc8
Provides: php-libxml, php-libxml%{?_isa}
af9dc8
Provides: php-openssl, php-openssl%{?_isa}
af9dc8
Provides: php-pecl-phar = %{pharver}, php-pecl-phar%{?_isa} = %{pharver}
af9dc8
Provides: php-pecl(phar) = %{pharver}, php-pecl(phar)%{?_isa} = %{pharver}
af9dc8
Provides: php-phar, php-phar%{?_isa}
af9dc8
Provides: php-pcre, php-pcre%{?_isa}
af9dc8
Provides: php-reflection, php-reflection%{?_isa}
af9dc8
Provides: php-session, php-session%{?_isa}
af9dc8
Provides: php-shmop, php-shmop%{?_isa}
af9dc8
Provides: php-simplexml, php-simplexml%{?_isa}
af9dc8
Provides: php-sockets, php-sockets%{?_isa}
af9dc8
Provides: php-spl, php-spl%{?_isa}
af9dc8
Provides: php-standard = %{version}, php-standard%{?_isa} = %{version}
af9dc8
Provides: php-tokenizer, php-tokenizer%{?_isa}
af9dc8
%if %{with_zip}
af9dc8
Provides: php-zip, php-zip%{?_isa}
af9dc8
Provides: php-pecl-zip = %{zipver}, php-pecl-zip%{?_isa} = %{zipver}
af9dc8
Provides: php-pecl(zip) = %{zipver}, php-pecl(zip)%{?_isa} = %{zipver}
af9dc8
Obsoletes: php-pecl-zip < 1.11
af9dc8
%endif
af9dc8
Provides: php-zlib, php-zlib%{?_isa}
af9dc8
Obsoletes: php-openssl
af9dc8
Obsoletes: php-pecl-json < 1.2.2
af9dc8
Obsoletes: php-pecl-phar < 1.2.4
af9dc8
Obsoletes: php-pecl-Fileinfo < 1.0.5
af9dc8
Obsoletes: php-mhash < 5.3.0
af9dc8
%description common
af9dc8
The php-common package contains files used by both the php
af9dc8
package and the php-cli package.
af9dc8
af9dc8
%package devel
af9dc8
Group: Development/Libraries
af9dc8
Summary: Files needed for building PHP extensions
af9dc8
Requires: php-cli%{?_isa} = %{version}-%{release}, autoconf, automake
af9dc8
Requires: pcre-devel%{?_isa}
af9dc8
Obsoletes: php-pecl-pdo-devel
af9dc8
%if %{with_zts}
af9dc8
Provides: php-zts-devel = %{version}-%{release}
af9dc8
Provides: php-zts-devel%{?_isa} = %{version}-%{release}
af9dc8
%endif
af9dc8
af9dc8
%description devel
af9dc8
The php-devel package contains the files needed for building PHP
af9dc8
extensions. If you need to compile your own PHP extensions, you will
af9dc8
need to install this package.
af9dc8
af9dc8
%package ldap
af9dc8
Summary: A module for PHP applications that use LDAP
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
Obsoletes: mod_php3-ldap, stronghold-php-ldap
af9dc8
BuildRequires: cyrus-sasl-devel, openldap-devel, openssl-devel
af9dc8
af9dc8
%description ldap
af9dc8
The php-ldap adds Lightweight Directory Access Protocol (LDAP)
af9dc8
support to PHP. LDAP is a set of protocols for accessing directory
af9dc8
services over the Internet. PHP is an HTML-embedded scripting
af9dc8
language.
af9dc8
af9dc8
%package pdo
af9dc8
Summary: A database access abstraction module for PHP applications
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
Obsoletes: php-pecl-pdo-sqlite, php-pecl-pdo
af9dc8
# ABI/API check - Arch specific
af9dc8
Provides: php-pdo-abi = %{pdover}%{isasuffix}
af9dc8
Provides: php(pdo-abi) = %{pdover}%{isasuffix}
af9dc8
Provides: php-sqlite3, php-sqlite3%{?_isa}
af9dc8
Provides: php-pdo_sqlite, php-pdo_sqlite%{?_isa}
af9dc8
af9dc8
%description pdo
af9dc8
The php-pdo package contains a dynamic shared object that will add
af9dc8
a database access abstraction layer to PHP.  This module provides
af9dc8
a common interface for accessing MySQL, PostgreSQL or other 
af9dc8
databases.
af9dc8
af9dc8
%if %{with_libmysql}
af9dc8
%package mysql
af9dc8
Summary: A module for PHP applications that use MySQL databases
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-pdo%{?_isa} = %{version}-%{release}
af9dc8
Provides: php_database
af9dc8
Provides: php-mysqli = %{version}-%{release}
af9dc8
Provides: php-mysqli%{?_isa} = %{version}-%{release}
af9dc8
Provides: php-pdo_mysql, php-pdo_mysql%{?_isa}
af9dc8
Obsoletes: mod_php3-mysql, stronghold-php-mysql
af9dc8
BuildRequires: mysql-devel >= 4.1.0
af9dc8
Conflicts: php-mysqlnd
af9dc8
af9dc8
%description mysql
af9dc8
The php-mysql package contains a dynamic shared object that will add
af9dc8
MySQL database support to PHP. MySQL is an object-relational database
af9dc8
management system. PHP is an HTML-embeddable scripting language. If
af9dc8
you need MySQL support for PHP applications, you will need to install
af9dc8
this package and the php package.
af9dc8
%endif
af9dc8
af9dc8
%package mysqlnd
af9dc8
Summary: A module for PHP applications that use MySQL databases
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-pdo%{?_isa} = %{version}-%{release}
af9dc8
Provides: php_database
af9dc8
Provides: php-mysql = %{version}-%{release}
af9dc8
Provides: php-mysql%{?_isa} = %{version}-%{release}
af9dc8
Provides: php-mysqli = %{version}-%{release}
af9dc8
Provides: php-mysqli%{?_isa} = %{version}-%{release}
af9dc8
Provides: php-pdo_mysql, php-pdo_mysql%{?_isa}
af9dc8
%if ! %{with_libmysql}
af9dc8
Obsoletes: php-mysql < %{version}-%{release}
af9dc8
%endif
af9dc8
af9dc8
%description mysqlnd
af9dc8
The php-mysqlnd package contains a dynamic shared object that will add
af9dc8
MySQL database support to PHP. MySQL is an object-relational database
af9dc8
management system. PHP is an HTML-embeddable scripting language. If
af9dc8
you need MySQL support for PHP applications, you will need to install
af9dc8
this package and the php package.
af9dc8
af9dc8
This package use the MySQL Native Driver
af9dc8
af9dc8
%package pgsql
af9dc8
Summary: A PostgreSQL database module for PHP
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-pdo%{?_isa} = %{version}-%{release}
af9dc8
Provides: php_database
af9dc8
Provides: php-pdo_pgsql, php-pdo_pgsql%{?_isa}
af9dc8
Obsoletes: mod_php3-pgsql, stronghold-php-pgsql
af9dc8
BuildRequires: krb5-devel, openssl-devel, postgresql-devel
af9dc8
af9dc8
%description pgsql
af9dc8
The php-pgsql add PostgreSQL database support to PHP.
af9dc8
PostgreSQL is an object-relational database management
af9dc8
system that supports almost all SQL constructs. PHP is an
af9dc8
HTML-embedded scripting language. If you need back-end support for
af9dc8
PostgreSQL, you should install this package in addition to the main
af9dc8
php package.
af9dc8
af9dc8
%package process
af9dc8
Summary: Modules for PHP script using system process interfaces
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
Provides: php-posix, php-posix%{?_isa}
af9dc8
Provides: php-sysvsem, php-sysvsem%{?_isa}
af9dc8
Provides: php-sysvshm, php-sysvshm%{?_isa}
af9dc8
Provides: php-sysvmsg, php-sysvmsg%{?_isa}
af9dc8
af9dc8
%description process
af9dc8
The php-process package contains dynamic shared objects which add
af9dc8
support to PHP using system interfaces for inter-process
af9dc8
communication.
af9dc8
af9dc8
%package odbc
af9dc8
Summary: A module for PHP applications that use ODBC databases
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01, except
af9dc8
# pdo_odbc is licensed under PHP version 3.0
af9dc8
License: PHP
af9dc8
Requires: php-pdo%{?_isa} = %{version}-%{release}
af9dc8
Provides: php_database
af9dc8
Provides: php-pdo_odbc, php-pdo_odbc%{?_isa}
af9dc8
Obsoletes: stronghold-php-odbc
af9dc8
BuildRequires: unixODBC-devel
af9dc8
af9dc8
%description odbc
af9dc8
The php-odbc package contains a dynamic shared object that will add
af9dc8
database support through ODBC to PHP. ODBC is an open specification
af9dc8
which provides a consistent API for developers to use for accessing
af9dc8
data sources (which are often, but not always, databases). PHP is an
af9dc8
HTML-embeddable scripting language. If you need ODBC support for PHP
af9dc8
applications, you will need to install this package and the php
af9dc8
package.
af9dc8
af9dc8
%package soap
af9dc8
Summary: A module for PHP applications that use the SOAP protocol
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
BuildRequires: libxml2-devel
af9dc8
af9dc8
%description soap
af9dc8
The php-soap package contains a dynamic shared object that will add
af9dc8
support to PHP for using the SOAP web services protocol.
af9dc8
af9dc8
%package snmp
af9dc8
Summary: A module for PHP applications that query SNMP-managed devices
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}, net-snmp
af9dc8
BuildRequires: net-snmp-devel
cfc571
# Workaround, see https://bugzilla.redhat.com/1486733
cfc571
BuildRequires: net-snmp
af9dc8
af9dc8
%description snmp
af9dc8
The php-snmp package contains a dynamic shared object that will add
af9dc8
support for querying SNMP devices to PHP.  PHP is an HTML-embeddable
af9dc8
scripting language. If you need SNMP support for PHP applications, you
af9dc8
will need to install this package and the php package.
af9dc8
af9dc8
%package xml
af9dc8
Summary: A module for PHP applications which use XML
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
Obsoletes: php-domxml, php-dom
af9dc8
Provides: php-dom, php-dom%{?_isa}
af9dc8
Provides: php-xsl, php-xsl%{?_isa}
af9dc8
Provides: php-domxml, php-domxml%{?_isa}
af9dc8
Provides: php-wddx, php-wddx%{?_isa}
af9dc8
Provides: php-xmlreader, php-xmlreader%{?_isa}
af9dc8
Provides: php-xmlwriter, php-xmlwriter%{?_isa}
af9dc8
BuildRequires: libxslt-devel >= 1.0.18-1, libxml2-devel >= 2.4.14-1
af9dc8
af9dc8
%description xml
af9dc8
The php-xml package contains dynamic shared objects which add support
af9dc8
to PHP for manipulating XML documents using the DOM tree,
af9dc8
and performing XSL transformations on XML documents.
af9dc8
af9dc8
%package xmlrpc
af9dc8
Summary: A module for PHP applications which use the XML-RPC protocol
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01, except
af9dc8
# libXMLRPC is licensed under BSD
af9dc8
License: PHP and BSD
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
af9dc8
%description xmlrpc
af9dc8
The php-xmlrpc package contains a dynamic shared object that will add
af9dc8
support for the XML-RPC protocol to PHP.
af9dc8
af9dc8
%package mbstring
af9dc8
Summary: A module for PHP applications which need multi-byte string handling
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01, except
af9dc8
# libmbfl is licensed under LGPLv2
af9dc8
# onigurama is licensed under BSD
af9dc8
# ucgendat is licensed under OpenLDAP
af9dc8
License: PHP and LGPLv2 and BSD and OpenLDAP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
af9dc8
%description mbstring
af9dc8
The php-mbstring package contains a dynamic shared object that will add
af9dc8
support for multi-byte string handling to PHP.
af9dc8
af9dc8
%package gd
af9dc8
Summary: A module for PHP applications for using the gd graphics library
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01, except
af9dc8
# libgd is licensed under BSD
af9dc8
License: PHP and BSD
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
# Required to build the bundled GD library
af9dc8
BuildRequires: libjpeg-devel, libpng-devel, freetype-devel
af9dc8
BuildRequires: libXpm-devel, t1lib-devel
af9dc8
af9dc8
%description gd
af9dc8
The php-gd package contains a dynamic shared object that will add
af9dc8
support for using the gd graphics library to PHP.
af9dc8
af9dc8
%package bcmath
af9dc8
Summary: A module for PHP applications for using the bcmath library
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01, except
af9dc8
# libbcmath is licensed under LGPLv2+
af9dc8
License: PHP and LGPLv2+
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
af9dc8
%description bcmath
af9dc8
The php-bcmath package contains a dynamic shared object that will add
af9dc8
support for using the bcmath library to PHP.
af9dc8
af9dc8
%package dba
af9dc8
Summary: A database abstraction layer module for PHP applications
af9dc8
Group: Development/Languages
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
BuildRequires: %{db_devel}, tokyocabinet-devel
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
af9dc8
%description dba
af9dc8
The php-dba package contains a dynamic shared object that will add
af9dc8
support for using the DBA database abstraction layer to PHP.
af9dc8
af9dc8
%package embedded
af9dc8
Summary: PHP library for embedding in applications
af9dc8
Group: System Environment/Libraries
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
# doing a real -devel package for just the .so symlink is a bit overkill
af9dc8
Provides: php-embedded-devel = %{version}-%{release}
af9dc8
Provides: php-embedded-devel%{?_isa} = %{version}-%{release}
af9dc8
af9dc8
%description embedded
af9dc8
The php-embedded package contains a library which can be embedded
af9dc8
into applications to provide PHP scripting language support.
af9dc8
af9dc8
%package pspell
af9dc8
Summary: A module for PHP applications for using pspell interfaces
af9dc8
Group: System Environment/Libraries
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
BuildRequires: aspell-devel >= 0.50.0
af9dc8
af9dc8
%description pspell
af9dc8
The php-pspell package contains a dynamic shared object that will add
af9dc8
support for using the pspell library to PHP.
af9dc8
af9dc8
%package recode
af9dc8
Summary: A module for PHP applications for using the recode library
af9dc8
Group: System Environment/Libraries
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
BuildRequires: recode-devel
af9dc8
af9dc8
%description recode
af9dc8
The php-recode package contains a dynamic shared object that will add
af9dc8
support for using the recode library to PHP.
af9dc8
af9dc8
%package intl
af9dc8
Summary: Internationalization extension for PHP applications
af9dc8
Group: System Environment/Libraries
af9dc8
# All files licensed under PHP version 3.01
af9dc8
License: PHP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
BuildRequires: libicu-devel >= 3.6
af9dc8
af9dc8
%description intl
af9dc8
The php-intl package contains a dynamic shared object that will add
af9dc8
support for using the ICU library to PHP.
af9dc8
af9dc8
%package enchant
af9dc8
Summary: Enchant spelling extension for PHP applications
af9dc8
Group: System Environment/Libraries
af9dc8
# All files licensed under PHP version 3.0
af9dc8
License: PHP
af9dc8
Requires: php-common%{?_isa} = %{version}-%{release}
af9dc8
BuildRequires: enchant-devel >= 1.2.4
af9dc8
af9dc8
%description enchant
af9dc8
The php-enchant package contains a dynamic shared object that will add
af9dc8
support for using the enchant library to PHP.
af9dc8
af9dc8
af9dc8
%prep
af9dc8
%setup -q -n php-%{version}%{?rcver}
af9dc8
af9dc8
%patch5 -p1 -b .includedir
af9dc8
%patch6 -p1 -b .embed
af9dc8
%patch7 -p1 -b .recode
af9dc8
%patch8 -p1 -b .libdb
af9dc8
af9dc8
%patch21 -p1 -b .odbctimer
af9dc8
%patch22 -p1 -b .pdopgsql
af9dc8
%patch23 -p1 -b .gc
af9dc8
%patch24 -p1 -b .fpm
af9dc8
%patch25 -p1 -b .manpages
af9dc8
%patch26 -p1 -b .bug66987
af9dc8
%patch27 -p1 -b .bug50444
af9dc8
%patch28 -p1 -b .bug63595
af9dc8
%patch29 -p1 -b .bug62129
af9dc8
%patch30 -p1 -b .bug66762
af9dc8
%patch31 -p1 -b .bug65641
af9dc8
%patch32 -p1 -b .bug71089
af9dc8
%patch33 -p1 -b .bug66833
af9dc8
%patch34 -p1 -b .fix
af9dc8
%patch35 -p1 -b .bug66375
af9dc8
af9dc8
%patch40 -p1 -b .dlopen
af9dc8
%patch41 -p1 -b .easter
af9dc8
%patch42 -p1 -b .systzdata
af9dc8
%patch43 -p1 -b .headers
af9dc8
%if %{with_libzip}
af9dc8
%patch44 -p1 -b .systzip
af9dc8
%endif
af9dc8
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
af9dc8
%patch45 -p1 -b .ldap_r
af9dc8
%endif
af9dc8
%patch46 -p1 -b .fixheader
af9dc8
%patch47 -p1 -b .phpinfo
af9dc8
%patch48 -p1 -b .aarch64select
af9dc8
%patch49 -p1 -b .curltls
cfc571
%patch50 -p1 -b .clearenv
cfc571
%patch51 -p1 -b .ssl_timeout
c2cf26
%patch52 -p1 -b .config
af9dc8
af9dc8
%patch60 -p1 -b .pdotests
af9dc8
af9dc8
%patch100 -p1 -b .cve4113
af9dc8
%patch101 -p1 -b .cve4248
af9dc8
%patch102 -p1 -b .cve6420
af9dc8
%patch104 -p1 -b .cve1943
af9dc8
%patch105 -p1 -b .cve6712
af9dc8
%patch107 -p1 -b .cve2270
af9dc8
%patch108 -p1 -b .cve7345
af9dc8
%patch109 -p1 -b .cve0237
af9dc8
%patch110 -p1 -b .cve0238
af9dc8
%patch111 -p1 -b .cve3479
af9dc8
%patch112 -p1 -b .cve3480
af9dc8
%patch113 -p1 -b .cve4721
af9dc8
%patch114 -p1 -b .cve4049
af9dc8
%patch115 -p1 -b .cve3515
af9dc8
%patch116 -p1 -b .cve0207
af9dc8
%patch117 -p1 -b .cve3487
af9dc8
%patch118 -p1 -b .cve2497
af9dc8
%patch119 -p1 -b .cve3478
af9dc8
%patch120 -p1 -b .cve3538
af9dc8
%patch121 -p1 -b .cve3587
af9dc8
%patch122 -p1 -b .cve5120
af9dc8
%patch123 -p1 -b .cve4698
af9dc8
%patch124 -p1 -b .cve4670
af9dc8
%patch125 -p1 -b .cve3597
af9dc8
%patch126 -p1 -b .cve3668
af9dc8
%patch127 -p1 -b .cve3669
af9dc8
%patch128 -p1 -b .cve3670
af9dc8
%patch129 -p1 -b .cve3710
af9dc8
%patch130 -p1 -b .cve8142
af9dc8
%patch131 -p1 -b .cve0231
af9dc8
%patch132 -p1 -b .cve0232
af9dc8
%patch133 -p1 -b .cve9652
af9dc8
%patch134 -p1 -b .cve9709
af9dc8
%patch135 -p1 -b .cve0273
af9dc8
%patch136 -p1 -b .cve9705
af9dc8
%patch137 -p1 -b .cve2301
af9dc8
%patch138 -p1 -b .bug68095
af9dc8
%patch139 -p1 -b .cve2787
af9dc8
%patch140 -p1 -b .cve2348
af9dc8
%patch145 -p1 -b .cve4022
af9dc8
%patch146 -p1 -b .cve4021
af9dc8
%patch147 -p1 -b .cve4024
af9dc8
%patch148 -p1 -b .cve4025
af9dc8
%patch149 -p1 -b .cve3330
af9dc8
%patch150 -p1 -b .bug69353
af9dc8
%patch151 -p1 -b .cve2783
af9dc8
%patch152 -p1 -b .cve3329
af9dc8
%patch153 -p1 -b .bug68819
af9dc8
%patch154 -p1 -b .bug69152
af9dc8
%patch155 -p1 -b .cve5385
af9dc8
%patch156 -p1 -b .cve5766
af9dc8
%patch157 -p1 -b .cve5767
af9dc8
%patch158 -p1 -b .cve5768
af9dc8
%patch159 -p1 -b .cve5399
af9dc8
%patch160 -p1 -b .cve10167
af9dc8
%patch161 -p1 -b .cve10168
3e6383
%patch162 -p1 -b .cve7890
af9dc8
af9dc8
af9dc8
# Prevent %%doc confusion over LICENSE files
af9dc8
cp Zend/LICENSE Zend/ZEND_LICENSE
af9dc8
cp TSRM/LICENSE TSRM_LICENSE
af9dc8
cp ext/ereg/regex/COPYRIGHT regex_COPYRIGHT
af9dc8
cp ext/gd/libgd/README libgd_README
af9dc8
cp ext/gd/libgd/COPYING libgd_COPYING
af9dc8
cp sapi/fpm/LICENSE fpm_LICENSE
af9dc8
cp ext/mbstring/libmbfl/LICENSE libmbfl_LICENSE
af9dc8
cp ext/mbstring/oniguruma/COPYING oniguruma_COPYING
af9dc8
cp ext/mbstring/ucgendat/OPENLDAP_LICENSE ucgendat_LICENSE
af9dc8
cp ext/fileinfo/libmagic/LICENSE libmagic_LICENSE
af9dc8
cp ext/phar/LICENSE phar_LICENSE
af9dc8
cp ext/bcmath/libbcmath/COPYING.LIB libbcmath_COPYING
af9dc8
af9dc8
# Multiple builds for multiple SAPIs
af9dc8
mkdir build-cgi build-apache build-embedded \
af9dc8
%if %{with_zts}
af9dc8
    build-zts build-ztscli \
af9dc8
%endif
af9dc8
%if %{with_fpm}
af9dc8
    build-fpm
af9dc8
%endif
af9dc8
af9dc8
# ----- Manage known as failed test -------
af9dc8
# php_egg_logo_guid() removed by patch41
af9dc8
rm -f tests/basic/php_egg_logo_guid.phpt
af9dc8
# affected by systzdata patch
af9dc8
rm -f ext/date/tests/timezone_location_get.phpt
af9dc8
# fails sometime
af9dc8
rm -f ext/sockets/tests/mcast_ipv?_recv.phpt
af9dc8
af9dc8
# Safety check for API version change.
af9dc8
pver=$(sed -n '/#define PHP_VERSION /{s/.* "//;s/".*$//;p}' main/php_version.h)
af9dc8
if test "x${pver}" != "x%{version}%{?rcver}"; then
af9dc8
   : Error: Upstream PHP version is now ${pver}, expecting %{version}%{?rcver}.
af9dc8
   : Update the version/rcver macros and rebuild.
af9dc8
   exit 1
af9dc8
fi
af9dc8
af9dc8
vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`
af9dc8
if test "x${vapi}" != "x%{apiver}"; then
af9dc8
   : Error: Upstream API version is now ${vapi}, expecting %{apiver}.
af9dc8
   : Update the apiver macro and rebuild.
af9dc8
   exit 1
af9dc8
fi
af9dc8
af9dc8
vzend=`sed -n '/#define ZEND_MODULE_API_NO/{s/^[^0-9]*//;p;}' Zend/zend_modules.h`
af9dc8
if test "x${vzend}" != "x%{zendver}"; then
af9dc8
   : Error: Upstream Zend ABI version is now ${vzend}, expecting %{zendver}.
af9dc8
   : Update the zendver macro and rebuild.
af9dc8
   exit 1
af9dc8
fi
af9dc8
af9dc8
# Safety check for PDO ABI version change
af9dc8
vpdo=`sed -n '/#define PDO_DRIVER_API/{s/.*[ 	]//;p}' ext/pdo/php_pdo_driver.h`
af9dc8
if test "x${vpdo}" != "x%{pdover}"; then
af9dc8
   : Error: Upstream PDO ABI version is now ${vpdo}, expecting %{pdover}.
af9dc8
   : Update the pdover macro and rebuild.
af9dc8
   exit 1
af9dc8
fi
af9dc8
af9dc8
# Check for some extension version
af9dc8
ver=$(sed -n '/#define PHP_FILEINFO_VERSION /{s/.* "//;s/".*$//;p}' ext/fileinfo/php_fileinfo.h)
af9dc8
if test "$ver" != "%{fileinfover}"; then
af9dc8
   : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
af9dc8
   : Update the fileinfover macro and rebuild.
af9dc8
   exit 1
af9dc8
fi
af9dc8
ver=$(sed -n '/#define PHP_PHAR_VERSION /{s/.* "//;s/".*$//;p}' ext/phar/php_phar.h)
af9dc8
if test "$ver" != "%{pharver}"; then
af9dc8
   : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
af9dc8
   : Update the pharver macro and rebuild.
af9dc8
   exit 1
af9dc8
fi
af9dc8
ver=$(sed -n '/#define PHP_ZIP_VERSION_STRING /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
af9dc8
if test "$ver" != "%{zipver}"; then
af9dc8
   : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
af9dc8
   : Update the zipver macro and rebuild.
af9dc8
   exit 1
af9dc8
fi
af9dc8
ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
af9dc8
if test "$ver" != "%{jsonver}"; then
af9dc8
   : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
af9dc8
   : Update the jsonver macro and rebuild.
af9dc8
   exit 1
af9dc8
fi
af9dc8
af9dc8
# https://bugs.php.net/63362 - Not needed but installed headers.
af9dc8
# Drop some Windows specific headers to avoid installation,
af9dc8
# before build to ensure they are really not needed.
af9dc8
rm -f TSRM/tsrm_win32.h \
af9dc8
      TSRM/tsrm_config.w32.h \
af9dc8
      Zend/zend_config.w32.h \
af9dc8
      ext/mysqlnd/config-win.h \
af9dc8
      ext/standard/winver.h \
af9dc8
      main/win32_internal_function_disabled.h \
af9dc8
      main/win95nt.h
af9dc8
af9dc8
# Fix some bogus permissions
af9dc8
find . -name \*.[ch] -exec chmod 644 {} \;
af9dc8
chmod 644 README.*
af9dc8
af9dc8
# php-fpm configuration files for tmpfiles.d
af9dc8
echo "d /run/php-fpm 755 root root" >php-fpm.tmpfiles
af9dc8
af9dc8
# bring in newer Red Hat config.guess and config.sub for aarch64/ppc64p7 support
af9dc8
cp -f /usr/lib/rpm/redhat/config.{guess,sub} .
af9dc8
af9dc8
af9dc8
%build
af9dc8
# aclocal workaround - to be improved
af9dc8
cat `aclocal --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 >>aclocal.m4
af9dc8
af9dc8
# Force use of system libtool:
af9dc8
libtoolize --force --copy
af9dc8
cat `aclocal --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 >build/libtool.m4
af9dc8
af9dc8
# Regenerate configure scripts (patches change config.m4's)
af9dc8
touch configure.in
af9dc8
./buildconf --force
af9dc8
af9dc8
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-pointer-sign"
af9dc8
export CFLAGS
af9dc8
af9dc8
# Install extension modules in %{_libdir}/php/modules.
af9dc8
EXTENSION_DIR=%{_libdir}/php/modules; export EXTENSION_DIR
af9dc8
af9dc8
# Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
af9dc8
# includes the PEAR directory even though pear is packaged
af9dc8
# separately.
af9dc8
PEAR_INSTALLDIR=%{_datadir}/pear; export PEAR_INSTALLDIR
af9dc8
af9dc8
# Shell function to configure and build a PHP tree.
af9dc8
build() {
af9dc8
# Old/recent bison version seems to produce a broken parser;
af9dc8
# upstream uses GNU Bison 2.3. Workaround:
af9dc8
mkdir Zend && cp ../Zend/zend_{language,ini}_{parser,scanner}.[ch] Zend
af9dc8
ln -sf ../configure
af9dc8
%configure \
af9dc8
	--cache-file=../config.cache \
af9dc8
        --with-libdir=%{_lib} \
af9dc8
	--with-config-file-path=%{_sysconfdir} \
af9dc8
	--with-config-file-scan-dir=%{_sysconfdir}/php.d \
af9dc8
	--disable-debug \
af9dc8
	--with-pic \
af9dc8
	--disable-rpath \
af9dc8
	--without-pear \
af9dc8
	--with-bz2 \
af9dc8
	--with-exec-dir=%{_bindir} \
af9dc8
	--with-freetype-dir=%{_prefix} \
af9dc8
	--with-png-dir=%{_prefix} \
af9dc8
	--with-xpm-dir=%{_prefix} \
af9dc8
	--enable-gd-native-ttf \
af9dc8
	--with-t1lib=%{_prefix} \
af9dc8
	--without-gdbm \
af9dc8
	--with-gettext \
af9dc8
	--with-gmp \
af9dc8
	--with-iconv \
af9dc8
	--with-jpeg-dir=%{_prefix} \
af9dc8
	--with-openssl \
af9dc8
        --with-pcre-regex=%{_prefix} \
af9dc8
	--with-zlib \
af9dc8
	--with-layout=GNU \
af9dc8
	--enable-exif \
af9dc8
	--enable-ftp \
af9dc8
	--enable-sockets \
af9dc8
	--with-kerberos \
af9dc8
	--enable-shmop \
af9dc8
	--enable-calendar \
af9dc8
        --with-libxml-dir=%{_prefix} \
af9dc8
	--enable-xml \
af9dc8
        --with-system-tzdata \
af9dc8
	--with-mhash \
af9dc8
	$* 
af9dc8
if test $? != 0; then 
af9dc8
  tail -500 config.log
af9dc8
  : configure failed
af9dc8
  exit 1
af9dc8
fi
af9dc8
af9dc8
make %{?_smp_mflags}
af9dc8
}
af9dc8
af9dc8
# Build /usr/bin/php-cgi with the CGI SAPI, and all the shared extensions
af9dc8
pushd build-cgi
af9dc8
af9dc8
build --libdir=%{_libdir}/php \
af9dc8
      --enable-pcntl \
af9dc8
      --enable-mbstring=shared \
af9dc8
      --enable-mbregex \
af9dc8
      --with-gd=shared \
af9dc8
      --enable-bcmath=shared \
af9dc8
      --enable-dba=shared --with-db4=%{_prefix} \
af9dc8
                          --with-tcadb=%{_prefix} \
af9dc8
      --with-xmlrpc=shared \
af9dc8
      --with-ldap=shared --with-ldap-sasl \
af9dc8
      --enable-mysqlnd=shared \
af9dc8
      --with-mysql=shared,mysqlnd \
af9dc8
      --with-mysqli=shared,mysqlnd \
af9dc8
      --with-mysql-sock=%{mysql_sock} \
af9dc8
      --enable-dom=shared \
af9dc8
      --with-pgsql=shared \
af9dc8
      --enable-wddx=shared \
af9dc8
      --with-snmp=shared,%{_prefix} \
af9dc8
      --enable-soap=shared \
af9dc8
      --with-xsl=shared,%{_prefix} \
af9dc8
      --enable-xmlreader=shared --enable-xmlwriter=shared \
af9dc8
      --with-curl=shared,%{_prefix} \
af9dc8
      --enable-pdo=shared \
af9dc8
      --with-pdo-odbc=shared,unixODBC,%{_prefix} \
af9dc8
      --with-pdo-mysql=shared,mysqlnd \
af9dc8
      --with-pdo-pgsql=shared,%{_prefix} \
af9dc8
      --with-pdo-sqlite=shared,%{_prefix} \
af9dc8
      --with-sqlite3=shared,%{_prefix} \
af9dc8
      --enable-json=shared \
af9dc8
%if %{with_zip}
af9dc8
      --enable-zip=shared \
af9dc8
%endif
af9dc8
%if %{with_libzip}
af9dc8
      --with-libzip \
af9dc8
%endif
af9dc8
      --without-readline \
af9dc8
      --with-libedit \
af9dc8
      --with-pspell=shared \
af9dc8
      --enable-phar=shared \
af9dc8
      --enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \
af9dc8
      --enable-posix=shared \
af9dc8
      --with-unixODBC=shared,%{_prefix} \
af9dc8
      --enable-fileinfo=shared \
af9dc8
      --enable-intl=shared \
af9dc8
      --with-icu-dir=%{_prefix} \
af9dc8
      --with-enchant=shared,%{_prefix} \
af9dc8
      --with-recode=shared,%{_prefix}
af9dc8
popd
af9dc8
af9dc8
without_shared="--without-gd \
af9dc8
      --disable-dom --disable-dba --without-unixODBC \
af9dc8
      --disable-xmlreader --disable-xmlwriter \
af9dc8
      --without-sqlite3 --disable-phar --disable-fileinfo \
af9dc8
      --disable-json --without-pspell --disable-wddx \
af9dc8
      --without-curl --disable-posix \
af9dc8
      --disable-sysvmsg --disable-sysvshm --disable-sysvsem"
af9dc8
af9dc8
# Build Apache module, and the CLI SAPI, /usr/bin/php
af9dc8
pushd build-apache
af9dc8
build --with-apxs2=%{_httpd_apxs} \
af9dc8
      --libdir=%{_libdir}/php \
af9dc8
%if %{with_libmysql}
af9dc8
      --enable-pdo=shared \
af9dc8
      --with-mysql=shared,%{_prefix} \
af9dc8
      --with-mysqli=shared,%{mysql_config} \
af9dc8
      --with-pdo-mysql=shared,%{mysql_config} \
af9dc8
      --without-pdo-sqlite \
af9dc8
%else
af9dc8
      --without-mysql \
af9dc8
      --disable-pdo \
af9dc8
%endif
af9dc8
      ${without_shared}
af9dc8
popd
af9dc8
af9dc8
%if %{with_fpm}
af9dc8
# Build php-fpm
af9dc8
pushd build-fpm
af9dc8
build --enable-fpm \
af9dc8
      --with-fpm-systemd \
af9dc8
      --libdir=%{_libdir}/php \
af9dc8
      --without-mysql \
af9dc8
      --disable-pdo \
af9dc8
      ${without_shared}
af9dc8
popd
af9dc8
%endif
af9dc8
af9dc8
# Build for inclusion as embedded script language into applications,
af9dc8
# /usr/lib[64]/libphp5.so
af9dc8
pushd build-embedded
af9dc8
build --enable-embed \
af9dc8
      --without-mysql --disable-pdo \
af9dc8
      ${without_shared}
af9dc8
popd
af9dc8
af9dc8
%if %{with_zts}
af9dc8
# Build a special thread-safe (mainly for modules)
af9dc8
pushd build-ztscli
af9dc8
af9dc8
EXTENSION_DIR=%{_libdir}/php-zts/modules
af9dc8
build --includedir=%{_includedir}/php-zts \
af9dc8
      --libdir=%{_libdir}/php-zts \
af9dc8
      --enable-maintainer-zts \
af9dc8
      --with-config-file-scan-dir=%{_sysconfdir}/php-zts.d \
af9dc8
      --enable-pcntl \
af9dc8
      --enable-mbstring=shared \
af9dc8
      --enable-mbregex \
af9dc8
      --with-gd=shared \
af9dc8
      --enable-bcmath=shared \
af9dc8
      --enable-dba=shared --with-db4=%{_prefix} \
af9dc8
                          --with-tcadb=%{_prefix} \
af9dc8
      --with-xmlrpc=shared \
af9dc8
      --with-ldap=shared --with-ldap-sasl \
af9dc8
      --enable-mysqlnd=shared \
af9dc8
      --with-mysql=shared,mysqlnd \
af9dc8
      --with-mysqli=shared,mysqlnd \
af9dc8
      --with-mysql-sock=%{mysql_sock} \
af9dc8
      --enable-mysqlnd-threading \
af9dc8
      --enable-dom=shared \
af9dc8
      --with-pgsql=shared \
af9dc8
      --enable-wddx=shared \
af9dc8
      --with-snmp=shared,%{_prefix} \
af9dc8
      --enable-soap=shared \
af9dc8
      --with-xsl=shared,%{_prefix} \
af9dc8
      --enable-xmlreader=shared --enable-xmlwriter=shared \
af9dc8
      --with-curl=shared,%{_prefix} \
af9dc8
      --enable-pdo=shared \
af9dc8
      --with-pdo-odbc=shared,unixODBC,%{_prefix} \
af9dc8
      --with-pdo-mysql=shared,mysqlnd \
af9dc8
      --with-pdo-pgsql=shared,%{_prefix} \
af9dc8
      --with-pdo-sqlite=shared,%{_prefix} \
af9dc8
      --with-sqlite3=shared,%{_prefix} \
af9dc8
      --enable-json=shared \
af9dc8
%if %{with_zip}
af9dc8
      --enable-zip=shared \
af9dc8
%endif
af9dc8
%if %{with_libzip}
af9dc8
      --with-libzip \
af9dc8
%endif
af9dc8
      --without-readline \
af9dc8
      --with-libedit \
af9dc8
      --with-pspell=shared \
af9dc8
      --enable-phar=shared \
af9dc8
      --enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \
af9dc8
      --enable-posix=shared \
af9dc8
      --with-unixODBC=shared,%{_prefix} \
af9dc8
      --enable-fileinfo=shared \
af9dc8
      --enable-intl=shared \
af9dc8
      --with-icu-dir=%{_prefix} \
af9dc8
      --with-enchant=shared,%{_prefix} \
af9dc8
      --with-recode=shared,%{_prefix}
af9dc8
popd
af9dc8
af9dc8
# Build a special thread-safe Apache SAPI
af9dc8
pushd build-zts
af9dc8
build --with-apxs2=%{_httpd_apxs} \
af9dc8
      --includedir=%{_includedir}/php-zts \
af9dc8
      --libdir=%{_libdir}/php-zts \
af9dc8
      --enable-maintainer-zts \
af9dc8
      --with-config-file-scan-dir=%{_sysconfdir}/php-zts.d \
af9dc8
%if %{with_libmysql}
af9dc8
      --enable-pdo=shared \
af9dc8
      --with-mysql=shared,%{_prefix} \
af9dc8
      --with-mysqli=shared,%{mysql_config} \
af9dc8
      --with-pdo-mysql=shared,%{mysql_config} \
af9dc8
      --without-pdo-sqlite \
af9dc8
%else
af9dc8
      --without-mysql \
af9dc8
      --disable-pdo \
af9dc8
%endif
af9dc8
      ${without_shared}
af9dc8
popd
af9dc8
af9dc8
### NOTE!!! EXTENSION_DIR was changed for the -zts build, so it must remain
af9dc8
### the last SAPI to be built.
af9dc8
%endif
af9dc8
af9dc8
af9dc8
%check
af9dc8
%if %runselftest
af9dc8
cd build-apache
af9dc8
# Run tests, using the CLI SAPI
af9dc8
export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
af9dc8
export SKIP_ONLINE_TESTS=1
af9dc8
unset TZ LANG LC_ALL
af9dc8
if ! make test; then
af9dc8
  set +x
af9dc8
  for f in `find .. -name \*.diff -type f -print`; do
af9dc8
    echo "TEST FAILURE: $f --"
af9dc8
    cat "$f"
af9dc8
    echo "-- $f result ends."
af9dc8
  done
af9dc8
  set -x
af9dc8
  #exit 1
af9dc8
fi
af9dc8
unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
af9dc8
%endif
af9dc8
af9dc8
%install
af9dc8
%if %{with_zts}
af9dc8
# Install the extensions for the ZTS version
af9dc8
make -C build-ztscli install \
af9dc8
     INSTALL_ROOT=$RPM_BUILD_ROOT
af9dc8
af9dc8
# rename extensions build with mysqlnd
af9dc8
mv $RPM_BUILD_ROOT%{_libdir}/php-zts/modules/mysql.so \
af9dc8
   $RPM_BUILD_ROOT%{_libdir}/php-zts/modules/mysqlnd_mysql.so
af9dc8
mv $RPM_BUILD_ROOT%{_libdir}/php-zts/modules/mysqli.so \
af9dc8
   $RPM_BUILD_ROOT%{_libdir}/php-zts/modules/mysqlnd_mysqli.so
af9dc8
mv $RPM_BUILD_ROOT%{_libdir}/php-zts/modules/pdo_mysql.so \
af9dc8
   $RPM_BUILD_ROOT%{_libdir}/php-zts/modules/pdo_mysqlnd.so
af9dc8
af9dc8
%if %{with_libmysql}
af9dc8
# Install the extensions for the ZTS version modules for libmysql
af9dc8
make -C build-zts install-modules \
af9dc8
     INSTALL_ROOT=$RPM_BUILD_ROOT
af9dc8
%endif
af9dc8
af9dc8
# rename ZTS binary
af9dc8
mv $RPM_BUILD_ROOT%{_bindir}/php        $RPM_BUILD_ROOT%{_bindir}/zts-php
af9dc8
mv $RPM_BUILD_ROOT%{_bindir}/phpize     $RPM_BUILD_ROOT%{_bindir}/zts-phpize
af9dc8
mv $RPM_BUILD_ROOT%{_bindir}/php-config $RPM_BUILD_ROOT%{_bindir}/zts-php-config
af9dc8
%endif
af9dc8
af9dc8
# Install the version for embedded script language in applications + php_embed.h
af9dc8
make -C build-embedded install-sapi install-headers \
af9dc8
     INSTALL_ROOT=$RPM_BUILD_ROOT
af9dc8
af9dc8
%if %{with_fpm}
af9dc8
# Install the php-fpm binary
af9dc8
make -C build-fpm install-fpm \
af9dc8
     INSTALL_ROOT=$RPM_BUILD_ROOT
af9dc8
%endif
af9dc8
af9dc8
# Install everything from the CGI SAPI build
af9dc8
make -C build-cgi install \
af9dc8
     INSTALL_ROOT=$RPM_BUILD_ROOT
af9dc8
af9dc8
# rename extensions build with mysqlnd
af9dc8
mv $RPM_BUILD_ROOT%{_libdir}/php/modules/mysql.so \
af9dc8
   $RPM_BUILD_ROOT%{_libdir}/php/modules/mysqlnd_mysql.so
af9dc8
mv $RPM_BUILD_ROOT%{_libdir}/php/modules/mysqli.so \
af9dc8
   $RPM_BUILD_ROOT%{_libdir}/php/modules/mysqlnd_mysqli.so
af9dc8
mv $RPM_BUILD_ROOT%{_libdir}/php/modules/pdo_mysql.so \
af9dc8
   $RPM_BUILD_ROOT%{_libdir}/php/modules/pdo_mysqlnd.so
af9dc8
af9dc8
%if %{with_libmysql}
af9dc8
# Install the mysql extension build with libmysql
af9dc8
make -C build-apache install-modules \
af9dc8
     INSTALL_ROOT=$RPM_BUILD_ROOT
af9dc8
%endif
af9dc8
af9dc8
# Install the default configuration file and icons
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/
af9dc8
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_httpd_contentdir}/icons
af9dc8
install -m 644 php.gif $RPM_BUILD_ROOT%{_httpd_contentdir}/icons/php.gif
af9dc8
af9dc8
# For third-party packaging:
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/php
af9dc8
af9dc8
# install the DSO
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_httpd_moddir}
af9dc8
install -m 755 build-apache/libs/libphp5.so $RPM_BUILD_ROOT%{_httpd_moddir}
af9dc8
af9dc8
%if %{with_zts}
af9dc8
# install the ZTS DSO
af9dc8
install -m 755 build-zts/libs/libphp5.so $RPM_BUILD_ROOT%{_httpd_moddir}/libphp5-zts.so
af9dc8
%endif
af9dc8
af9dc8
# Apache config fragment
af9dc8
%if "%{_httpd_modconfdir}" == "%{_httpd_confdir}"
af9dc8
# Single config file with httpd < 2.4 (fedora <= 17)
af9dc8
install -D -m 644 %{SOURCE9} $RPM_BUILD_ROOT%{_httpd_confdir}/php.conf
af9dc8
%if %{with_zts}
af9dc8
cat %{SOURCE10} >>$RPM_BUILD_ROOT%{_httpd_confdir}/php.conf
af9dc8
%endif
af9dc8
cat %{SOURCE1} >>$RPM_BUILD_ROOT%{_httpd_confdir}/php.conf
af9dc8
%else
af9dc8
# Dual config file with httpd >= 2.4 (fedora >= 18)
af9dc8
install -D -m 644 %{SOURCE9} $RPM_BUILD_ROOT%{_httpd_modconfdir}/10-php.conf
af9dc8
%if %{with_zts}
af9dc8
cat %{SOURCE10} >>$RPM_BUILD_ROOT%{_httpd_modconfdir}/10-php.conf
af9dc8
%endif
af9dc8
install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_httpd_confdir}/php.conf
af9dc8
%endif
af9dc8
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php.d
af9dc8
%if %{with_zts}
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d
af9dc8
%endif
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php
af9dc8
install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session
af9dc8
af9dc8
%if %{with_fpm}
af9dc8
# PHP-FPM stuff
af9dc8
# Log
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/log/php-fpm
af9dc8
install -m 755 -d $RPM_BUILD_ROOT/run/php-fpm
af9dc8
# Config
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
af9dc8
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.conf
af9dc8
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d/www.conf
af9dc8
mv $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.conf.default .
af9dc8
# tmpfiles.d
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d
af9dc8
install -m 644 php-fpm.tmpfiles $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/php-fpm.conf
af9dc8
# install systemd unit files and scripts for handling server startup
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_unitdir}
af9dc8
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_unitdir}/
af9dc8
# LogRotate
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
af9dc8
install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/php-fpm
af9dc8
# Environment file
af9dc8
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
af9dc8
install -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/php-fpm
af9dc8
%endif
af9dc8
# Fix the link
af9dc8
(cd $RPM_BUILD_ROOT%{_bindir}; ln -sfn phar.phar phar)
af9dc8
af9dc8
# Generate files lists and stub .ini files for each subpackage
af9dc8
for mod in pgsql odbc ldap snmp xmlrpc \
af9dc8
    mysqlnd mysqlnd_mysql mysqlnd_mysqli pdo_mysqlnd \
af9dc8
    mbstring gd dom xsl soap bcmath dba xmlreader xmlwriter \
af9dc8
    pdo pdo_pgsql pdo_odbc pdo_sqlite json %{zipmod} \
af9dc8
    sqlite3 \
af9dc8
    enchant phar fileinfo intl \
af9dc8
    pspell curl wddx \
af9dc8
    posix sysvshm sysvsem sysvmsg recode \
af9dc8
%if %{with_libmysql}
af9dc8
    mysql mysqli pdo_mysql \
af9dc8
%endif
af9dc8
    ; do
af9dc8
    cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <
af9dc8
; Enable ${mod} extension module
af9dc8
extension=${mod}.so
af9dc8
EOF
af9dc8
%if %{with_zts}
af9dc8
    cat > $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/${mod}.ini <
af9dc8
; Enable ${mod} extension module
af9dc8
extension=${mod}.so
af9dc8
EOF
af9dc8
%endif
af9dc8
    cat > files.${mod} <
af9dc8
%attr(755,root,root) %{_libdir}/php/modules/${mod}.so
af9dc8
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/php.d/${mod}.ini
af9dc8
%if %{with_zts}
af9dc8
%attr(755,root,root) %{_libdir}/php-zts/modules/${mod}.so
af9dc8
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/php-zts.d/${mod}.ini
af9dc8
%endif
af9dc8
EOF
af9dc8
done
af9dc8
af9dc8
# The dom, xsl and xml* modules are all packaged in php-xml
af9dc8
cat files.dom files.xsl files.xml{reader,writer} files.wddx > files.xml
af9dc8
af9dc8
# The mysql and mysqli modules are both packaged in php-mysql
af9dc8
%if %{with_libmysql}
af9dc8
cat files.mysqli >> files.mysql
af9dc8
cat files.pdo_mysql >> files.mysql
af9dc8
%endif
af9dc8
af9dc8
# mysqlnd
af9dc8
cat files.mysqlnd_mysql \
af9dc8
    files.mysqlnd_mysqli \
af9dc8
    files.pdo_mysqlnd \
af9dc8
    >> files.mysqlnd
af9dc8
af9dc8
# Split out the PDO modules
af9dc8
cat files.pdo_pgsql >> files.pgsql
af9dc8
cat files.pdo_odbc >> files.odbc
af9dc8
af9dc8
# sysv* and posix in packaged in php-process
af9dc8
cat files.sysv* files.posix > files.process
af9dc8
af9dc8
# Package sqlite3 and pdo_sqlite with pdo; isolating the sqlite dependency
af9dc8
# isn't useful at this time since rpm itself requires sqlite.
af9dc8
cat files.pdo_sqlite >> files.pdo
af9dc8
cat files.sqlite3 >> files.pdo
af9dc8
af9dc8
# Package json, zip, curl, phar and fileinfo in -common.
af9dc8
cat files.json files.curl files.phar files.fileinfo > files.common
af9dc8
%if %{with_zip}
af9dc8
cat files.zip >> files.common
af9dc8
%endif
af9dc8
af9dc8
# Install the macros file:
af9dc8
install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
af9dc8
sed -e "s/@PHP_APIVER@/%{apiver}%{isasuffix}/" \
af9dc8
    -e "s/@PHP_ZENDVER@/%{zendver}%{isasuffix}/" \
af9dc8
    -e "s/@PHP_PDOVER@/%{pdover}%{isasuffix}/" \
af9dc8
    -e "s/@PHP_VERSION@/%{version}/" \
af9dc8
%if ! %{with_zts}
af9dc8
    -e "/zts/d" \
af9dc8
%endif
af9dc8
    < %{SOURCE3} > macros.php
af9dc8
install -m 644 -c macros.php \
af9dc8
           $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.php
af9dc8
af9dc8
# Remove unpackaged files
af9dc8
rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \
af9dc8
       $RPM_BUILD_ROOT%{_libdir}/php-zts/modules/*.a \
af9dc8
       $RPM_BUILD_ROOT%{_bindir}/{phptar} \
af9dc8
       $RPM_BUILD_ROOT%{_datadir}/pear \
af9dc8
       $RPM_BUILD_ROOT%{_libdir}/libphp5.la
af9dc8
af9dc8
# Remove irrelevant docs
af9dc8
rm -f README.{Zeus,QNX,CVS-RULES}
af9dc8
af9dc8
af9dc8
%if %{with_fpm}
af9dc8
%pre fpm
af9dc8
# Add the "apache" user as we don't require httpd
af9dc8
getent group  apache >/dev/null || \
af9dc8
  groupadd -g 48 -r apache
af9dc8
getent passwd apache >/dev/null || \
af9dc8
  useradd -r -u 48 -g apache -s /sbin/nologin \
af9dc8
    -d %{_httpd_contentdir} -c "Apache" apache
af9dc8
exit 0
af9dc8
af9dc8
%post fpm
af9dc8
%if 0%{?systemd_post:1}
af9dc8
%systemd_post php-fpm.service
af9dc8
%else
af9dc8
if [ $1 = 1 ]; then
af9dc8
    # Initial installation
af9dc8
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
af9dc8
fi
af9dc8
%endif
af9dc8
af9dc8
%preun fpm
af9dc8
%if 0%{?systemd_preun:1}
af9dc8
%systemd_preun php-fpm.service
af9dc8
%else
af9dc8
if [ $1 = 0 ]; then
af9dc8
    # Package removal, not upgrade
af9dc8
    /bin/systemctl --no-reload disable php-fpm.service >/dev/null 2>&1 || :
af9dc8
    /bin/systemctl stop php-fpm.service >/dev/null 2>&1 || :
af9dc8
fi
af9dc8
%endif
af9dc8
af9dc8
%postun fpm
af9dc8
%if 0%{?systemd_postun_with_restart:1}
af9dc8
%systemd_postun_with_restart php-fpm.service
af9dc8
%else
af9dc8
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
af9dc8
if [ $1 -ge 1 ]; then
af9dc8
    # Package upgrade, not uninstall
af9dc8
    /bin/systemctl try-restart php-fpm.service >/dev/null 2>&1 || :
af9dc8
fi
af9dc8
%endif
af9dc8
af9dc8
# Handle upgrading from SysV initscript to native systemd unit.
af9dc8
# We can tell if a SysV version of php-fpm was previously installed by
af9dc8
# checking to see if the initscript is present.
af9dc8
%triggerun fpm -- php-fpm
af9dc8
if [ -f /etc/rc.d/init.d/php-fpm ]; then
af9dc8
    # Save the current service runlevel info
af9dc8
    # User must manually run systemd-sysv-convert --apply php-fpm
af9dc8
    # to migrate them to systemd targets
af9dc8
    /usr/bin/systemd-sysv-convert --save php-fpm >/dev/null 2>&1 || :
af9dc8
af9dc8
    # Run these because the SysV package being removed won't do them
af9dc8
    /sbin/chkconfig --del php-fpm >/dev/null 2>&1 || :
af9dc8
    /bin/systemctl try-restart php-fpm.service >/dev/null 2>&1 || :
af9dc8
fi
af9dc8
%endif
af9dc8
af9dc8
%post embedded -p /sbin/ldconfig
af9dc8
%postun embedded -p /sbin/ldconfig
af9dc8
af9dc8
%files
af9dc8
%{_httpd_moddir}/libphp5.so
af9dc8
%if %{with_zts}
af9dc8
%{_httpd_moddir}/libphp5-zts.so
af9dc8
%endif
af9dc8
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
af9dc8
%config(noreplace) %{_httpd_confdir}/php.conf
af9dc8
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
af9dc8
%config(noreplace) %{_httpd_modconfdir}/10-php.conf
af9dc8
%endif
af9dc8
%{_httpd_contentdir}/icons/php.gif
af9dc8
af9dc8
%files common -f files.common
af9dc8
%doc CODING_STANDARDS CREDITS EXTENSIONS LICENSE NEWS README*
af9dc8
%doc Zend/ZEND_* TSRM_LICENSE regex_COPYRIGHT
af9dc8
%doc libmagic_LICENSE
af9dc8
%doc phar_LICENSE
af9dc8
%doc php.ini-*
af9dc8
%config(noreplace) %{_sysconfdir}/php.ini
af9dc8
%dir %{_sysconfdir}/php.d
af9dc8
%dir %{_libdir}/php
af9dc8
%dir %{_libdir}/php/modules
af9dc8
%if %{with_zts}
af9dc8
%dir %{_sysconfdir}/php-zts.d
af9dc8
%dir %{_libdir}/php-zts
af9dc8
%dir %{_libdir}/php-zts/modules
af9dc8
%endif
af9dc8
%dir %{_localstatedir}/lib/php
af9dc8
%dir %{_datadir}/php
af9dc8
af9dc8
%files cli
af9dc8
%{_bindir}/php
af9dc8
%{_bindir}/php-cgi
af9dc8
%{_bindir}/phar.phar
af9dc8
%{_bindir}/phar
af9dc8
# provides phpize here (not in -devel) for pecl command
af9dc8
%{_bindir}/phpize
af9dc8
%{_mandir}/man1/php.1*
af9dc8
%{_mandir}/man1/php-cgi.1*
af9dc8
%{_mandir}/man1/phar.1*
af9dc8
%{_mandir}/man1/phar.phar.1*
af9dc8
%{_mandir}/man1/phpize.1*
af9dc8
%doc sapi/cgi/README* sapi/cli/README
af9dc8
af9dc8
%if %{with_fpm}
af9dc8
%files fpm
af9dc8
%doc php-fpm.conf.default
af9dc8
%doc fpm_LICENSE
af9dc8
%config(noreplace) %{_sysconfdir}/php-fpm.conf
af9dc8
%config(noreplace) %{_sysconfdir}/php-fpm.d/www.conf
af9dc8
%config(noreplace) %{_sysconfdir}/logrotate.d/php-fpm
af9dc8
%config(noreplace) %{_sysconfdir}/sysconfig/php-fpm
af9dc8
%{_prefix}/lib/tmpfiles.d/php-fpm.conf
af9dc8
%{_unitdir}/php-fpm.service
af9dc8
%{_sbindir}/php-fpm
af9dc8
%dir %{_sysconfdir}/php-fpm.d
af9dc8
# log owned by apache for log
af9dc8
%attr(770,apache,root) %dir %{_localstatedir}/log/php-fpm
af9dc8
%dir /run/php-fpm
af9dc8
%{_mandir}/man8/php-fpm.8*
af9dc8
%dir %{_datadir}/fpm
af9dc8
%{_datadir}/fpm/status.html
af9dc8
%endif
af9dc8
af9dc8
%files devel
af9dc8
%{_bindir}/php-config
af9dc8
%{_includedir}/php
af9dc8
%{_libdir}/php/build
af9dc8
%if %{with_zts}
af9dc8
%{_bindir}/zts-php-config
af9dc8
%{_includedir}/php-zts
af9dc8
%{_bindir}/zts-phpize
af9dc8
# usefull only to test other module during build
af9dc8
%{_bindir}/zts-php
af9dc8
%{_libdir}/php-zts/build
af9dc8
%endif
af9dc8
%{_mandir}/man1/php-config.1*
af9dc8
%{_sysconfdir}/rpm/macros.php
af9dc8
af9dc8
%files embedded
af9dc8
%{_libdir}/libphp5.so
af9dc8
%{_libdir}/libphp5-%{embed_version}.so
af9dc8
af9dc8
%files pgsql -f files.pgsql
af9dc8
%if %{with_libmysql}
af9dc8
%files mysql -f files.mysql
af9dc8
%endif
af9dc8
%files odbc -f files.odbc
af9dc8
%files ldap -f files.ldap
af9dc8
%files snmp -f files.snmp
af9dc8
%files xml -f files.xml
af9dc8
%files xmlrpc -f files.xmlrpc
af9dc8
%files mbstring -f files.mbstring
af9dc8
%doc libmbfl_LICENSE
af9dc8
%doc oniguruma_COPYING
af9dc8
%doc ucgendat_LICENSE
af9dc8
%files gd -f files.gd
af9dc8
%doc libgd_README
af9dc8
%doc libgd_COPYING
af9dc8
%files soap -f files.soap
af9dc8
%files bcmath -f files.bcmath
af9dc8
%doc libbcmath_COPYING
af9dc8
%files dba -f files.dba
af9dc8
%files pdo -f files.pdo
af9dc8
%files pspell -f files.pspell
af9dc8
%files intl -f files.intl
af9dc8
%files process -f files.process
af9dc8
%files recode -f files.recode
af9dc8
%files enchant -f files.enchant
af9dc8
%files mysqlnd -f files.mysqlnd
af9dc8
af9dc8
af9dc8
%changelog
c2cf26
* Tue Jun 19 2018 Remi Collet <rcollet@redhat.com> - 5.4.16-46
c2cf26
- load openssl configuration file on startup #1408301
c2cf26
cfc571
* Tue Jan 23 2018 Remi Collet <rcollet@redhat.com> - 5.4.16-45
3e6383
- gd: fix buffer over-read into uninitialized memory CVE-2017-7890
3e6383
cfc571
* Thu Oct 12 2017 Remi Collet <rcollet@redhat.com> - 5.4.16-44
cfc571
- fix php should provide php(httpd) #1215429
cfc571
- fpm: backport PHP-FPM's clear_env option from 5.4.27 #1410010
cfc571
  default value is "yes", preserving previous behaviour
cfc571
- openssl: fix default_socket_timeout does not work with SSL #1378196
cfc571
af9dc8
* Wed Oct  4 2017 Remi Collet <rcollet@redhat.com> - 5.4.16-43
af9dc8
- gd: fix DoS vulnerability in gdImageCreateFromGd2Ctx() CVE-2016-10167
af9dc8
- gd: Signed Integer Overflow gd_io.c CVE-2016-10168
af9dc8
af9dc8
* Fri Aug  5 2016 Remi Collet <rcollet@redhat.com> - 5.4.16-42
af9dc8
- bz2: fix improper error handling in bzread() CVE-2016-5399
af9dc8
af9dc8
* Mon Aug  1 2016 Remi Collet <rcollet@redhat.com> - 5.4.16-41
af9dc8
- gd: fix integer overflow in _gd2GetHeader() resulting in
af9dc8
  heap overflow CVE-2016-5766
af9dc8
- gd: fix integer overflow in gdImagePaletteToTrueColor()
af9dc8
  resulting in heap overflow CVE-2016-5767
af9dc8
- mbstring: fix double free in _php_mb_regex_ereg_replace_exec
af9dc8
  CVE-2016-5768
af9dc8
af9dc8
* Fri Jul 22 2016 Remi Collet <rcollet@redhat.com> - 5.4.16-40
af9dc8
- don't set environmental variable based on user supplied Proxy
af9dc8
  request header CVE-2016-5385
af9dc8
af9dc8
* Wed Jun 15 2016 Remi Collet <rcollet@redhat.com> - 5.4.16-39
af9dc8
- fix segmentation fault in header_register_callback #1344578
af9dc8
af9dc8
* Mon May 30 2016 Remi Collet <rcollet@redhat.com> - 5.4.16-38
af9dc8
- curl: add options to enable TLS #1291667
af9dc8
- mysqli: fix segfault in mysqli_stmt::bind_result() when
af9dc8
  link is closed #1096800
af9dc8
- fpm: fix incorrectly defined SCRIPT_NAME variable when
af9dc8
  using Apache #1138563
af9dc8
- core: fix segfault when a zend_extension is loaded twice #1289457
af9dc8
- openssl: change default_md algo from MD5 to SHA1 #1073388
af9dc8
- wddx: fix segfault in php_wddx_serialize_var #1131979
af9dc8
af9dc8
* Mon Apr  4 2016 Remi Collet <rcollet@redhat.com> - 5.4.16-37
af9dc8
- session: fix segfault in session with rfc1867 #1297179
af9dc8
af9dc8
* Wed Jun 10 2015 Remi Collet <rcollet@redhat.com> - 5.4.16-36
af9dc8
- fix more functions accept paths with NUL character #1213407
af9dc8
af9dc8
* Fri Jun  5 2015 Remi Collet <rcollet@redhat.com> - 5.4.16-35
af9dc8
- core: fix multipart/form-data request can use excessive
af9dc8
  amount of CPU usage CVE-2015-4024
af9dc8
- fix various functions accept paths with NUL character
af9dc8
  CVE-2015-4025, CVE-2015-4026, #1213407
af9dc8
- fileinfo: fix denial of service when processing a crafted
af9dc8
  file #1213442
af9dc8
- ftp: fix integer overflow leading to heap overflow when
af9dc8
  reading FTP file listing CVE-2015-4022
af9dc8
- phar: fix buffer over-read in metadata parsing CVE-2015-2783
af9dc8
- phar: invalid pointer free() in phar_tar_process_metadata()
af9dc8
  CVE-2015-3307
af9dc8
- phar: fix buffer overflow in phar_set_inode() CVE-2015-3329
af9dc8
- phar: fix memory corruption in phar_parse_tarfile caused by
af9dc8
  empty entry file name CVE-2015-4021
af9dc8
- soap: fix type confusion through unserialize #1222538
af9dc8
- apache2handler: fix pipelined request executed in deinitialized
af9dc8
  interpreter under httpd 2.4 CVE-2015-3330
af9dc8
af9dc8
* Thu Apr 16 2015 Remi Collet <rcollet@redhat.com> - 5.4.16-34
af9dc8
- fix memory corruption in fileinfo module on big endian
af9dc8
  machines #1082624
af9dc8
- fix segfault in pdo_odbc on x86_64 #1159892
af9dc8
- fix segfault in gmp allocator #1154760
af9dc8
af9dc8
* Fri Apr 10 2015 Remi Collet <rcollet@redhat.com> - 5.4.16-33
af9dc8
- core: use after free vulnerability in unserialize()
af9dc8
  CVE-2014-8142 and CVE-2015-0231
af9dc8
- core: fix use-after-free in unserialize CVE-2015-2787
af9dc8
- core: fix NUL byte injection in file name argument of
af9dc8
  move_uploaded_file() CVE-2015-2348
af9dc8
- date: use after free vulnerability in unserialize CVE-2015-0273
af9dc8
- enchant: fix heap buffer overflow in enchant_broker_request_dict
af9dc8
  CVE-2014-9705
af9dc8
- exif: free called on unitialized pointer CVE-2015-0232
af9dc8
- fileinfo: fix out of bounds read in mconvert CVE-2014-9652
af9dc8
- gd: fix buffer read overflow in gd_gif_in.c CVE-2014-9709
af9dc8
- phar: use after free in phar_object.c CVE-2015-2301
af9dc8
- soap: fix type confusion through unserialize
af9dc8
af9dc8
* Thu Oct 23 2014 Jan Kaluza <jkaluza@redhat.com> - 5.4.16-31
af9dc8
- fileinfo: fix out-of-bounds read in elf note headers. CVE-2014-3710
af9dc8
af9dc8
* Tue Oct 21 2014 Remi Collet <rcollet@redhat.com> - 5.4.16-29
af9dc8
- xmlrpc: fix out-of-bounds read flaw in mkgmtime() CVE-2014-3668
af9dc8
- core: fix integer overflow in unserialize() CVE-2014-3669
af9dc8
- exif: fix heap corruption issue in exif_thumbnail() CVE-2014-3670
af9dc8
af9dc8
* Fri Sep 12 2014 Remi Collet <rcollet@redhat.com> - 5.4.16-27
af9dc8
- gd: fix NULL pointer dereference in gdImageCreateFromXpm().
af9dc8
  CVE-2014-2497
af9dc8
- gd: fix NUL byte injection in file names. CVE-2014-5120
af9dc8
- fileinfo: fix extensive backtracking in regular expression
af9dc8
  (incomplete fix for CVE-2013-7345). CVE-2014-3538
af9dc8
- fileinfo: fix mconvert incorrect handling of truncated
af9dc8
  pascal string size. CVE-2014-3478
af9dc8
- fileinfo: fix cdf_read_property_info
af9dc8
  (incomplete fix for CVE-2012-1571). CVE-2014-3587
af9dc8
- spl: fix use-after-free in ArrayIterator due to object
af9dc8
  change during sorting. CVE-2014-4698
af9dc8
- spl: fix use-after-free in SPL Iterators. CVE-2014-4670
af9dc8
- network: fix segfault in dns_get_record
af9dc8
  (incomplete fix for CVE-2014-4049). CVE-2014-3597
af9dc8
af9dc8
af9dc8
* Thu Aug 21 2014 Jan Kaluza <jkaluza@redhat.com> - 5.4.16-25
af9dc8
- fix segfault after startup on aarch64 (#1107567)
af9dc8
- compile php with -O3 on ppc64le (#1123499)
af9dc8
af9dc8
* Fri Jun 13 2014 Remi Collet <rcollet@redhat.com> - 5.4.16-23
af9dc8
- fileinfo: cdf_unpack_summary_info() excessive looping
af9dc8
  DoS. CVE-2014-0237
af9dc8
- fileinfo: CDF property info parsing nelements infinite
af9dc8
  loop. CVE-2014-0238
af9dc8
- fileinfo: cdf_check_stream_offset insufficient boundary
af9dc8
  check. CVE-2014-3479
af9dc8
- fileinfo: cdf_count_chain insufficient boundary check
af9dc8
  CVE-2014-3480
af9dc8
- fileinfo: cdf_read_short_sector insufficient boundary
af9dc8
  check. CVE-2014-0207
af9dc8
- fileinfo: cdf_read_property_info insufficient boundary
af9dc8
  check. CVE-2014-3487
af9dc8
- fileinfo: fix extensive backtracking CVE-2013-7345
af9dc8
- core: type confusion issue in phpinfo(). CVE-2014-4721
af9dc8
- core: fix heap-based buffer overflow in DNS TXT record
af9dc8
  parsing. CVE-2014-4049
af9dc8
- core: unserialize() SPL ArrayObject / SPLObjectStorage
af9dc8
  type confusion flaw. CVE-2014-3515
af9dc8
af9dc8
* Fri Mar  7 2014 Remi Collet <rcollet@redhat.com> - 5.4.16-21
af9dc8
- fix out-of-bounds memory access in fileinfo CVE-2014-2270
af9dc8
af9dc8
* Fri Feb 21 2014 Remi Collet <rcollet@redhat.com> - 5.4.16-19
af9dc8
- fix memory leak introduce in patch for CVE-2014-1943
af9dc8
- fix heap-based buffer over-read in DateInterval CVE-2013-6712
af9dc8
af9dc8
* Wed Feb 19 2014 Remi Collet <rcollet@redhat.com> - 5.4.16-17
af9dc8
- fix infinite recursion in fileinfo CVE-2014-1943
af9dc8
af9dc8
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 5.4.16-15
af9dc8
- Mass rebuild 2014-01-24
af9dc8
af9dc8
* Wed Jan 15 2014 Honza Horak <hhorak@redhat.com> - 5.4.16-14
af9dc8
- Rebuild for mariadb-libs
af9dc8
  Related: #1045013
af9dc8
af9dc8
* Fri Jan 10 2014 Remi Collet <rcollet@redhat.com> - 5.4.16-13
af9dc8
- build with -O3 on ppc64 #1051073
af9dc8
af9dc8
* Thu Jan  9 2014 Remi Collet <rcollet@redhat.com> - 5.4.16-11
af9dc8
- use correct config.{guess,sub} for ppc64p7 #1048892
af9dc8
af9dc8
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 5.4.16-10
af9dc8
- Mass rebuild 2013-12-27
af9dc8
af9dc8
* Fri Dec  6 2013 Remi Collet <rcollet@redhat.com> - 5.4.16-9
af9dc8
- add security fix for CVE-2013-6420
af9dc8
af9dc8
* Mon Nov  4 2013 Remi Collet <rcollet@redhat.com> - 5.4.16-7
af9dc8
- fix for non x86 build #1023796
af9dc8
af9dc8
* Mon Aug 19 2013 Remi Collet <rcollet@redhat.com> - 5.4.16-5
af9dc8
- fix enchant package summary and description
af9dc8
- add security fix for CVE-2013-4248
af9dc8
af9dc8
* Thu Jul 18 2013 Remi Collet <rcollet@redhat.com> - 5.4.16-4
af9dc8
- improve mod_php, pgsql and ldap description
af9dc8
- add provides php(pdo-abi) for consistency with php(api) and php(zend-abi)
af9dc8
- use %%__isa_bits instead of %%__isa in ABI suffix
af9dc8
af9dc8
* Fri Jul 12 2013 Remi Collet <rcollet@redhat.com> - 5.4.16-3
af9dc8
- add security fix for CVE-2013-4113
af9dc8
- add missing ASL 1.0 license
af9dc8
- rebuild for net-snmp
af9dc8
af9dc8
* Tue Jul  2 2013 Remi Collet <rcollet@redhat.com> 5.4.16-2
af9dc8
- add missing man pages (phar, php-cgi) #948873
af9dc8
af9dc8
* Thu Jun  6 2013 Remi Collet <rcollet@redhat.com> 5.4.16-1
af9dc8
- update to 5.4.16
af9dc8
- switch systemd unit to Type=notify
af9dc8
- patch for upstream Bug #64915 error_log ignored when daemonize=0
af9dc8
- patch for upstream Bug #64949 Buffer overflow in _pdo_pgsql_error
af9dc8
- patch for upstream bug #64960 Segfault in gc_zval_possible_root
af9dc8
- add version to "Obsoletes"
af9dc8
- own /usr/share/fpm
af9dc8
af9dc8
* Tue Apr 30 2013 Daniel Mach <dmach@redhat.com> - 5.4.14-1.2
af9dc8
- Rebuild for cyrus-sasl
af9dc8
af9dc8
* Thu Apr 11 2013 Remi Collet <rcollet@redhat.com> 5.4.14-1
af9dc8
- update to 5.4.14
af9dc8
- clean old deprecated options
af9dc8
af9dc8
* Mon Apr 08 2013 Daniel Mach <dmach@redhat.com> - 5.4.13-1.1
af9dc8
- Rebuild for icu
af9dc8
af9dc8
* Thu Mar 14 2013 Remi Collet <rcollet@redhat.com> 5.4.13-1
af9dc8
- update to 5.4.13
af9dc8
- security fix for CVE-2013-1643
af9dc8
- Hardened build (links with -z now option)
af9dc8
- Remove %%config from /etc/rpm/macros.php
af9dc8
af9dc8
* Thu Feb 21 2013 Remi Collet <rcollet@redhat.com> 5.4.12-2
af9dc8
- make php-mysql package optional (still enabled)
af9dc8
- make ZTS build optional (and disabled)
af9dc8
af9dc8
* Wed Feb 20 2013 Remi Collet <remi@fedoraproject.org> 5.4.12-1
af9dc8
- update to 5.4.12
af9dc8
- security fix for CVE-2013-1635
af9dc8
- enable tokyocabinet dba handler
af9dc8
- upstream patch (5.4.13) to fix dval to lval conversion
af9dc8
  https://bugs.php.net/64142
af9dc8
- upstream patch (5.4.13) for 2 failed tests
af9dc8
- fix buit-in web server on ppc64 (fdset usage)
af9dc8
  https://bugs.php.net/64128
af9dc8
af9dc8
* Wed Jan 16 2013 Remi Collet <rcollet@redhat.com> 5.4.11-1
af9dc8
- update to 5.4.11
af9dc8
- fix php.conf to allow MultiViews managed by php scripts
af9dc8
af9dc8
* Wed Dec 19 2012 Remi Collet <rcollet@redhat.com> 5.4.10-1
af9dc8
- update to 5.4.10
af9dc8
- remove patches merged upstream
af9dc8
af9dc8
* Tue Dec 11 2012 Remi Collet <rcollet@redhat.com> 5.4.9-3
af9dc8
- drop "Configure Command" from phpinfo output
af9dc8
af9dc8
* Tue Dec 11 2012 Joe Orton <jorton@redhat.com> - 5.4.9-2
af9dc8
- prevent php_config.h changes across (otherwise identical) rebuilds
af9dc8
af9dc8
* Thu Nov 22 2012 Remi Collet <rcollet@redhat.com> 5.4.9-1
af9dc8
- update to 5.4.9
af9dc8
af9dc8
* Thu Nov 15 2012 Remi Collet <rcollet@redhat.com> 5.4.9-0.5.RC1
af9dc8
- switch back to upstream generated scanner/parser
af9dc8
af9dc8
* Thu Nov 15 2012 Remi Collet <rcollet@redhat.com> 5.4.9-0.4.RC1
af9dc8
- use _httpd_contentdir macro and fix php.gif path
af9dc8
af9dc8
* Wed Nov 14 2012 Remi Collet <rcollet@redhat.com> 5.4.9-0.3.RC1
af9dc8
- improve system libzip patch to use pkg-config
af9dc8
af9dc8
* Wed Nov 14 2012 Remi Collet <rcollet@redhat.com> 5.4.9-0.2.RC1
af9dc8
- use _httpd_moddir macro
af9dc8
af9dc8
* Wed Nov 14 2012 Remi Collet <rcollet@redhat.com> 5.4.9-0.1.RC1
af9dc8
- update to 5.4.9RC1
af9dc8
- improves php.conf (use FilesMatch + SetHandler)
af9dc8
- improves filter (httpd module)
af9dc8
- apply ldap_r patch on fedora >= 18 only
af9dc8
af9dc8
* Fri Nov  9 2012 Remi Collet <rcollet@redhat.com> 5.4.8-6
af9dc8
- clarify Licenses
af9dc8
- missing provides xmlreader and xmlwriter
af9dc8
- modernize spec
af9dc8
- change php embedded library soname version to 5.4
af9dc8
af9dc8
* Tue Nov  6 2012 Remi Collet <rcollet@redhat.com> 5.4.8-5
af9dc8
- fix _httpd_mmn macro definition
af9dc8
af9dc8
* Mon Nov  5 2012 Remi Collet <rcollet@redhat.com> 5.4.8-4
af9dc8
- fix mysql_sock macro definition
af9dc8
af9dc8
* Thu Oct 25 2012 Remi Collet <rcollet@redhat.com> 5.4.8-3
af9dc8
- fix installed headers
af9dc8
af9dc8
* Tue Oct 23 2012 Joe Orton <jorton@redhat.com> - 5.4.8-2
af9dc8
- use libldap_r for ldap extension
af9dc8
af9dc8
* Thu Oct 18 2012 Remi Collet <remi@fedoraproject.org> 5.4.8-1
af9dc8
- update to 5.4.8
af9dc8
- define both session.save_handler and session.save_path
af9dc8
- fix possible segfault in libxml (#828526)
af9dc8
- php-fpm: create apache user if needed
af9dc8
- use SKIP_ONLINE_TEST during make test
af9dc8
- php-devel requires pcre-devel and php-cli (instead of php)
af9dc8
af9dc8
* Fri Oct  5 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-11
af9dc8
- provides php-phar
af9dc8
- update systzdata patch to v10, timezone are case insensitive
af9dc8
af9dc8
* Mon Oct  1 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-10
af9dc8
- fix typo in systemd macro
af9dc8
af9dc8
* Mon Oct  1 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-9
af9dc8
- php-fpm: enable PrivateTmp
af9dc8
- php-fpm: new systemd macros (#850268)
af9dc8
- php-fpm: add upstream patch for startup issue (#846858)
af9dc8
af9dc8
* Fri Sep 28 2012 Remi Collet <rcollet@redhat.com> 5.4.7-8
af9dc8
- systemd integration, https://bugs.php.net/63085
af9dc8
- no odbc call during timeout, https://bugs.php.net/63171
af9dc8
- check sqlite3_column_table_name, https://bugs.php.net/63149
af9dc8
af9dc8
* Mon Sep 24 2012 Remi Collet <rcollet@redhat.com> 5.4.7-7
af9dc8
- most failed tests explained (i386, x86_64)
af9dc8
af9dc8
* Wed Sep 19 2012 Remi Collet <rcollet@redhat.com> 5.4.7-6
af9dc8
- fix for http://bugs.php.net/63126 (#783967)
af9dc8
af9dc8
* Wed Sep 19 2012 Remi Collet <rcollet@redhat.com> 5.4.7-5
af9dc8
- patch to ensure we use latest libdb (not libdb4)
af9dc8
af9dc8
* Wed Sep 19 2012 Remi Collet <rcollet@redhat.com> 5.4.7-4
af9dc8
- really fix rhel tests (use libzip and libdb)
af9dc8
af9dc8
* Tue Sep 18 2012 Remi Collet <rcollet@redhat.com> 5.4.7-3
af9dc8
- fix test to enable zip extension on RHEL-7
af9dc8
af9dc8
* Mon Sep 17 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-2
af9dc8
- remove session.save_path from php.ini
af9dc8
  move it to apache and php-fpm configuration files
af9dc8
af9dc8
* Fri Sep 14 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-1
af9dc8
- update to 5.4.7
af9dc8
  http://www.php.net/releases/5_4_7.php
af9dc8
- php-fpm: don't daemonize
af9dc8
af9dc8
* Fri Aug 31 2012 Joe Orton <jorton@redhat.com> - 5.4.6-2.1
af9dc8
- drop mcrypt, tidy, mssql, dblib, imap, interbase support
af9dc8
af9dc8
* Mon Aug 20 2012 Remi Collet <remi@fedoraproject.org> 5.4.6-2
af9dc8
- enable php-fpm on secondary arch (#849490)
af9dc8
af9dc8
* Fri Aug 17 2012 Remi Collet <remi@fedoraproject.org> 5.4.6-1
af9dc8
- update to 5.4.6
af9dc8
- update to v9 of systzdata patch
af9dc8
- backport fix for new libxml
af9dc8
af9dc8
* Fri Jul 20 2012 Remi Collet <remi@fedoraproject.org> 5.4.5-1
af9dc8
- update to 5.4.5
af9dc8
af9dc8
* Mon Jul 02 2012 Remi Collet <remi@fedoraproject.org> 5.4.4-4
af9dc8
- also provide php(language)%%{_isa}
af9dc8
- define %%{php_version}
af9dc8
af9dc8
* Mon Jul 02 2012 Remi Collet <remi@fedoraproject.org> 5.4.4-3
af9dc8
- drop BR for libevent (#835671)
af9dc8
- provide php(language) to allow version check
af9dc8
af9dc8
* Thu Jun 21 2012 Remi Collet <remi@fedoraproject.org> 5.4.4-2
af9dc8
- add missing provides (core, ereg, filter, standard)
af9dc8
af9dc8
* Thu Jun 14 2012 Remi Collet <remi@fedoraproject.org> 5.4.4-1
af9dc8
- update to 5.4.4 (CVE-2012-2143, CVE-2012-2386)
af9dc8
- use /usr/lib/tmpfiles.d instead of /etc/tmpfiles.d
af9dc8
- use /run/php-fpm instead of /var/run/php-fpm
af9dc8
af9dc8
* Wed May 09 2012 Remi Collet <remi@fedoraproject.org> 5.4.3-1
af9dc8
- update to 5.4.3 (CVE-2012-2311, CVE-2012-2329)
af9dc8
af9dc8
* Thu May 03 2012 Remi Collet <remi@fedoraproject.org> 5.4.2-1
af9dc8
- update to 5.4.2 (CVE-2012-1823)
af9dc8
af9dc8
* Fri Apr 27 2012 Remi Collet <remi@fedoraproject.org> 5.4.1-1
af9dc8
- update to 5.4.1
af9dc8
af9dc8
* Wed Apr 25 2012 Joe Orton <jorton@redhat.com> - 5.4.0-6
af9dc8
- rebuild for new icu
af9dc8
- switch (conditionally) to libdb-devel
af9dc8
af9dc8
* Sat Mar 31 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-5
af9dc8
- fix Loadmodule with MPM event (use ZTS if not MPM worker)
af9dc8
- split conf.d/php.conf + conf.modules.d/10-php.conf with httpd 2.4
af9dc8
af9dc8
* Thu Mar 29 2012 Joe Orton <jorton@redhat.com> - 5.4.0-4
af9dc8
- rebuild for missing automatic provides (#807889)
af9dc8
af9dc8
* Mon Mar 26 2012 Joe Orton <jorton@redhat.com> - 5.4.0-3
af9dc8
- really use _httpd_mmn
af9dc8
af9dc8
* Mon Mar 26 2012 Joe Orton <jorton@redhat.com> - 5.4.0-2
af9dc8
- rebuild against httpd 2.4
af9dc8
- use _httpd_mmn, _httpd_apxs macros
af9dc8
af9dc8
* Fri Mar 02 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-1
af9dc8
- update to PHP 5.4.0 finale
af9dc8
af9dc8
* Sat Feb 18 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-0.4.RC8
af9dc8
- update to PHP 5.4.0RC8
af9dc8
af9dc8
* Sat Feb 04 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-0.3.RC7
af9dc8
- update to PHP 5.4.0RC7
af9dc8
- provides env file for php-fpm (#784770)
af9dc8
- add patch to use system libzip (thanks to spot)
af9dc8
- don't provide INSTALL file
af9dc8
af9dc8
* Wed Jan 25 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-0.2.RC6
af9dc8
- all binaries in /usr/bin with zts prefix
af9dc8
af9dc8
* Wed Jan 18 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-0.1.RC6
af9dc8
- update to PHP 5.4.0RC6
af9dc8
  https://fedoraproject.org/wiki/Features/Php54
af9dc8
af9dc8
* Sun Jan 08 2012 Remi Collet <remi@fedoraproject.org> 5.3.8-4.4
af9dc8
- fix systemd unit
af9dc8
af9dc8
* Mon Dec 12 2011 Remi Collet <remi@fedoraproject.org> 5.3.8-4.3
af9dc8
- switch to systemd
af9dc8
af9dc8
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 5.3.8-4.2
af9dc8
- Rebuild for new libpng
af9dc8
af9dc8
* Wed Oct 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 5.3.8-3.2
af9dc8
- rebuild with new gmp without compat lib
af9dc8
af9dc8
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 5.3.8-3.1
af9dc8
- rebuild with new gmp
af9dc8
af9dc8
* Wed Sep 28 2011 Remi Collet <remi@fedoraproject.org> 5.3.8-3
af9dc8
- revert is_a() to php <= 5.3.6 behavior (from upstream)
af9dc8
  with new option (allow_string) for new behavior
af9dc8
af9dc8
* Tue Sep 13 2011 Remi Collet <remi@fedoraproject.org> 5.3.8-2
af9dc8
- add mysqlnd sub-package
af9dc8
- drop patch4, use --libdir to use /usr/lib*/php/build
af9dc8
- add patch to redirect mysql.sock (in mysqlnd)
af9dc8
af9dc8
* Tue Aug 23 2011 Remi Collet <remi@fedoraproject.org> 5.3.8-1
af9dc8
- update to 5.3.8
af9dc8
  http://www.php.net/ChangeLog-5.php#5.3.8
af9dc8
af9dc8
* Thu Aug 18 2011 Remi Collet <remi@fedoraproject.org> 5.3.7-1
af9dc8
- update to 5.3.7
af9dc8
  http://www.php.net/ChangeLog-5.php#5.3.7
af9dc8
- merge php-zts into php (#698084)
af9dc8
af9dc8
* Tue Jul 12 2011 Joe Orton <jorton@redhat.com> - 5.3.6-4
af9dc8
- rebuild for net-snmp SONAME bump
af9dc8
af9dc8
* Mon Apr  4 2011 Remi Collet <Fedora@famillecollet.com> 5.3.6-3
af9dc8
- enable mhash extension (emulated by hash extension)
af9dc8
af9dc8
* Wed Mar 23 2011 Remi Collet <Fedora@famillecollet.com> 5.3.6-2
af9dc8
- rebuild for new MySQL client library
af9dc8
af9dc8
* Thu Mar 17 2011 Remi Collet <Fedora@famillecollet.com> 5.3.6-1
af9dc8
- update to 5.3.6
af9dc8
  http://www.php.net/ChangeLog-5.php#5.3.6
af9dc8
- fix php-pdo arch specific requires
af9dc8
af9dc8
* Tue Mar 15 2011 Joe Orton <jorton@redhat.com> - 5.3.5-6
af9dc8
- disable zip extension per "No Bundled Libraries" policy (#551513)
af9dc8
af9dc8
* Mon Mar 07 2011 Caolán McNamara <caolanm@redhat.com> 5.3.5-5
af9dc8
- rebuild for icu 4.6
af9dc8
af9dc8
* Mon Feb 28 2011 Remi Collet <Fedora@famillecollet.com> 5.3.5-4
af9dc8
- fix systemd-units requires
af9dc8
af9dc8
* Thu Feb 24 2011 Remi Collet <Fedora@famillecollet.com> 5.3.5-3
af9dc8
- add tmpfiles.d configuration for php-fpm
af9dc8
- add Arch specific requires/provides
af9dc8
af9dc8
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.5-2
af9dc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
af9dc8
af9dc8
* Fri Jan 07 2011 Remi Collet <Fedora@famillecollet.com> 5.3.5-1
af9dc8
- update to 5.3.5
af9dc8
  http://www.php.net/ChangeLog-5.php#5.3.5
af9dc8
- clean duplicate configure options
af9dc8
af9dc8
* Tue Dec 28 2010 Remi Collet <rpms@famillecollet.com> 5.3.4-2
af9dc8
- rebuild against MySQL 5.5.8
af9dc8
- remove all RPM_SOURCE_DIR
af9dc8
af9dc8
* Sun Dec 12 2010 Remi Collet <rpms@famillecollet.com> 5.3.4-1.1
af9dc8
- security patch from upstream for #660517
af9dc8
af9dc8
* Sat Dec 11 2010 Remi Collet <Fedora@famillecollet.com> 5.3.4-1
af9dc8
- update to 5.3.4
af9dc8
  http://www.php.net/ChangeLog-5.php#5.3.4
af9dc8
- move phpize to php-cli (see #657812)
af9dc8
af9dc8
* Wed Dec  1 2010 Remi Collet <Fedora@famillecollet.com> 5.3.3-5
af9dc8
- ghost /var/run/php-fpm (see #656660)
af9dc8
- add filter_setup to not provides extensions as .so
af9dc8
af9dc8
* Mon Nov  1 2010 Joe Orton <jorton@redhat.com> - 5.3.3-4
af9dc8
- use mysql_config in libdir directly to avoid biarch build failures
af9dc8
af9dc8
* Fri Oct 29 2010 Joe Orton <jorton@redhat.com> - 5.3.3-3
af9dc8
- rebuild for new net-snmp
af9dc8
af9dc8
* Sun Oct 10 2010 Remi Collet <Fedora@famillecollet.com> 5.3.3-2
af9dc8
- add php-fpm sub-package
af9dc8
af9dc8
* Thu Jul 22 2010 Remi Collet <Fedora@famillecollet.com> 5.3.3-1
af9dc8
- PHP 5.3.3 released
af9dc8
af9dc8
* Fri Apr 30 2010 Remi Collet <Fedora@famillecollet.com> 5.3.2-3
af9dc8
- garbage collector upstream  patches (#580236)
af9dc8
af9dc8
* Fri Apr 02 2010 Caolán McNamara <caolanm@redhat.com> 5.3.2-2
af9dc8
- rebuild for icu 4.4
af9dc8
af9dc8
* Sat Mar 06 2010 Remi Collet <Fedora@famillecollet.com> 5.3.2-1
af9dc8
- PHP 5.3.2 Released!
af9dc8
- remove mime_magic option (now provided by fileinfo, by emu)
af9dc8
- add patch for http://bugs.php.net/50578
af9dc8
- remove patch for libedit (upstream)
af9dc8
- add runselftest option to allow build without test suite
af9dc8
af9dc8
* Fri Nov 27 2009 Joe Orton <jorton@redhat.com> - 5.3.1-3
af9dc8
- update to v7 of systzdata patch
af9dc8
af9dc8
* Wed Nov 25 2009 Joe Orton <jorton@redhat.com> - 5.3.1-2
af9dc8
- fix build with autoconf 2.6x
af9dc8
af9dc8
* Fri Nov 20 2009 Remi Collet <Fedora@famillecollet.com> 5.3.1-1
af9dc8
- update to 5.3.1
af9dc8
- remove openssl patch (merged upstream)
af9dc8
- add provides for php-pecl-json
af9dc8
- add prod/devel php.ini in doc
af9dc8
af9dc8
* Tue Nov 17 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 5.3.0-7
af9dc8
- use libedit instead of readline to resolve licensing issues
af9dc8
af9dc8
* Tue Aug 25 2009 Tomas Mraz <tmraz@redhat.com> - 5.3.0-6
af9dc8
- rebuilt with new openssl
af9dc8
af9dc8
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-5
af9dc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
af9dc8
af9dc8
* Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-4
af9dc8
- rediff systzdata patch
af9dc8
af9dc8
* Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-3
af9dc8
- update to v6 of systzdata patch; various fixes
af9dc8
af9dc8
* Tue Jul 14 2009 Joe Orton <jorton@redhat.com> 5.3.0-2
af9dc8
- update to v5 of systzdata patch; parses zone.tab and extracts
af9dc8
  timezone->{country-code,long/lat,comment} mapping table
af9dc8
af9dc8
* Sun Jul 12 2009 Remi Collet <Fedora@famillecollet.com> 5.3.0-1
af9dc8
- update to 5.3.0
af9dc8
- remove ncurses, dbase, mhash extensions
af9dc8
- add enchant, sqlite3, intl, phar, fileinfo extensions
af9dc8
- raise sqlite version to 3.6.0 (for sqlite3, build with --enable-load-extension)
af9dc8
- sync with upstream "production" php.ini
af9dc8
af9dc8
* Sun Jun 21 2009 Remi Collet <Fedora@famillecollet.com> 5.2.10-1
af9dc8
- update to 5.2.10
af9dc8
- add interbase sub-package
af9dc8
af9dc8
* Sat Feb 28 2009 Remi Collet <Fedora@FamilleCollet.com> - 5.2.9-1
af9dc8
- update to 5.2.9
af9dc8
af9dc8
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.8-10
af9dc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
af9dc8
af9dc8
* Thu Feb  5 2009 Joe Orton <jorton@redhat.com> 5.2.8-9
af9dc8
- add recode support, -recode subpackage (#106755)
af9dc8
- add -zts subpackage with ZTS-enabled build of httpd SAPI
af9dc8
- adjust php.conf to use -zts SAPI build for worker MPM
af9dc8
af9dc8
* Wed Feb  4 2009 Joe Orton <jorton@redhat.com> 5.2.8-8
af9dc8
- fix patch fuzz, renumber patches
af9dc8
af9dc8
* Wed Feb  4 2009 Joe Orton <jorton@redhat.com> 5.2.8-7
af9dc8
- drop obsolete configure args
af9dc8
- drop -odbc patch (#483690)
af9dc8
af9dc8
* Mon Jan 26 2009 Joe Orton <jorton@redhat.com> 5.2.8-5
af9dc8
- split out sysvshm, sysvsem, sysvmsg, posix into php-process
af9dc8
af9dc8
* Sun Jan 25 2009 Joe Orton <jorton@redhat.com> 5.2.8-4
af9dc8
- move wddx to php-xml, build curl shared in -common
af9dc8
- remove BR for expat-devel, bogus configure option
af9dc8
af9dc8
* Fri Jan 23 2009 Joe Orton <jorton@redhat.com> 5.2.8-3
af9dc8
- rebuild for new MySQL
af9dc8
af9dc8
* Sat Dec 13 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.8-2
af9dc8
- libtool 2 workaround for phpize (#476004)
af9dc8
- add missing php_embed.h (#457777)
af9dc8
af9dc8
* Tue Dec 09 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.8-1
af9dc8
- update to 5.2.8
af9dc8
af9dc8
* Sat Dec 06 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.7-1.1
af9dc8
- libtool 2 workaround
af9dc8
af9dc8
* Fri Dec 05 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.7-1
af9dc8
- update to 5.2.7
af9dc8
- enable pdo_dblib driver in php-mssql
af9dc8
af9dc8
* Mon Nov 24 2008 Joe Orton <jorton@redhat.com> 5.2.6-7
af9dc8
- tweak Summary, thanks to Richard Hughes
af9dc8
af9dc8
* Tue Nov  4 2008 Joe Orton <jorton@redhat.com> 5.2.6-6
af9dc8
- move gd_README to php-gd
af9dc8
- update to r4 of systzdata patch; introduces a default timezone
af9dc8
  name of "System/Localtime", which uses /etc/localtime (#469532)
af9dc8
af9dc8
* Sat Sep 13 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.6-5
af9dc8
- enable XPM support in php-gd
af9dc8
- Fix BR for php-gd
af9dc8
af9dc8
* Sun Jul 20 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.6-4
af9dc8
- enable T1lib support in php-gd
af9dc8
af9dc8
* Mon Jul 14 2008 Joe Orton <jorton@redhat.com> 5.2.6-3
af9dc8
- update to 5.2.6
af9dc8
- sync default php.ini with upstream
af9dc8
- drop extension_dir from default php.ini, rely on hard-coded
af9dc8
  default, to make php-common multilib-safe (#455091)
af9dc8
- update to r3 of systzdata patch
af9dc8
af9dc8
* Thu Apr 24 2008 Joe Orton <jorton@redhat.com> 5.2.5-7
af9dc8
- split pspell extension out into php-spell (#443857)
af9dc8
af9dc8
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.2.5-6
af9dc8
- Autorebuild for GCC 4.3
af9dc8
af9dc8
* Fri Jan 11 2008 Joe Orton <jorton@redhat.com> 5.2.5-5
af9dc8
- ext/date: use system timezone database
af9dc8
af9dc8
* Fri Dec 28 2007 Joe Orton <jorton@redhat.com> 5.2.5-4
af9dc8
- rebuild for libc-client bump
af9dc8
af9dc8
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 5.2.5-3
af9dc8
 - Rebuild for openssl bump
af9dc8
af9dc8
* Wed Dec  5 2007 Joe Orton <jorton@redhat.com> 5.2.5-2
af9dc8
- update to 5.2.5
af9dc8
af9dc8
* Mon Oct 15 2007 Joe Orton <jorton@redhat.com> 5.2.4-3
af9dc8
- correct pcre BR version (#333021)
af9dc8
- restore metaphone fix (#205714)
af9dc8
- add READMEs to php-cli
af9dc8
af9dc8
* Sun Sep 16 2007 Joe Orton <jorton@redhat.com> 5.2.4-2
af9dc8
- update to 5.2.4
af9dc8
af9dc8
* Sun Sep  2 2007 Joe Orton <jorton@redhat.com> 5.2.3-9
af9dc8
- rebuild for fixed APR
af9dc8
af9dc8
* Tue Aug 28 2007 Joe Orton <jorton@redhat.com> 5.2.3-8
af9dc8
- add ldconfig post/postun for -embedded (Hans de Goede)
af9dc8
af9dc8
* Fri Aug 10 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 5.2.3-7
af9dc8
- add php-embedded sub-package
af9dc8
af9dc8
* Fri Aug 10 2007 Joe Orton <jorton@redhat.com> 5.2.3-6
af9dc8
- fix build with new glibc
af9dc8
- fix License
af9dc8
af9dc8
* Mon Jul 16 2007 Joe Orton <jorton@redhat.com> 5.2.3-5
af9dc8
- define php_extdir in macros.php
af9dc8
af9dc8
* Mon Jul  2 2007 Joe Orton <jorton@redhat.com> 5.2.3-4
af9dc8
- obsolete php-dbase
af9dc8
af9dc8
* Tue Jun 19 2007 Joe Orton <jorton@redhat.com> 5.2.3-3
af9dc8
- add mcrypt, mhash, tidy, mssql subpackages (Dmitry Butskoy)
af9dc8
- enable dbase extension and package in -common
af9dc8
af9dc8
* Fri Jun  8 2007 Joe Orton <jorton@redhat.com> 5.2.3-2
af9dc8
- update to 5.2.3 (thanks to Jeff Sheltren)
af9dc8
af9dc8
* Wed May  9 2007 Joe Orton <jorton@redhat.com> 5.2.2-4
af9dc8
- fix php-pdo *_arg_force_ref global symbol abuse (#216125)
af9dc8
af9dc8
* Tue May  8 2007 Joe Orton <jorton@redhat.com> 5.2.2-3
af9dc8
- rebuild against uw-imap-devel
af9dc8
af9dc8
* Fri May  4 2007 Joe Orton <jorton@redhat.com> 5.2.2-2
af9dc8
- update to 5.2.2
af9dc8
- synch changes from upstream recommended php.ini
af9dc8
af9dc8
* Thu Mar 29 2007 Joe Orton <jorton@redhat.com> 5.2.1-5
af9dc8
- enable SASL support in LDAP extension (#205772)
af9dc8
af9dc8
* Wed Mar 21 2007 Joe Orton <jorton@redhat.com> 5.2.1-4
af9dc8
- drop mime_magic extension (deprecated by php-pecl-Fileinfo)
af9dc8
af9dc8
* Mon Feb 19 2007 Joe Orton <jorton@redhat.com> 5.2.1-3
af9dc8
- fix regression in str_{i,}replace (from upstream)
af9dc8
af9dc8
* Thu Feb 15 2007 Joe Orton <jorton@redhat.com> 5.2.1-2
af9dc8
- update to 5.2.1
af9dc8
- add Requires(pre) for httpd
af9dc8
- trim %%changelog to versions >= 5.0.0
af9dc8
af9dc8
* Thu Feb  8 2007 Joe Orton <jorton@redhat.com> 5.2.0-10
af9dc8
- bump default memory_limit to 32M (#220821)
af9dc8
- mark config files noreplace again (#174251)
af9dc8
- drop trailing dots from Summary fields
af9dc8
- use standard BuildRoot
af9dc8
- drop libtool15 patch (#226294)
af9dc8
af9dc8
* Tue Jan 30 2007 Joe Orton <jorton@redhat.com> 5.2.0-9
af9dc8
- add php(api), php(zend-abi) provides (#221302)
af9dc8
- package /usr/share/php and append to default include_path (#225434)
af9dc8
af9dc8
* Tue Dec  5 2006 Joe Orton <jorton@redhat.com> 5.2.0-8
af9dc8
- fix filter.h installation path
af9dc8
- fix php-zend-abi version (Remi Collet, #212804)
af9dc8
af9dc8
* Tue Nov 28 2006 Joe Orton <jorton@redhat.com> 5.2.0-7
af9dc8
- rebuild again
af9dc8
af9dc8
* Tue Nov 28 2006 Joe Orton <jorton@redhat.com> 5.2.0-6
af9dc8
- rebuild for net-snmp soname bump
af9dc8
af9dc8
* Mon Nov 27 2006 Joe Orton <jorton@redhat.com> 5.2.0-5
af9dc8
- build json and zip shared, in -common (Remi Collet, #215966)
af9dc8
- obsolete php-json and php-pecl-zip
af9dc8
- build readline extension into /usr/bin/php* (#210585)
af9dc8
- change module subpackages to require php-common not php (#177821)
af9dc8
af9dc8
* Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 5.2.0-4
af9dc8
- provide php-zend-abi (#212804)
af9dc8
- add /etc/rpm/macros.php exporting interface versions
af9dc8
- synch with upstream recommended php.ini
af9dc8
af9dc8
* Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 5.2.0-3
af9dc8
- update to 5.2.0 (#213837)
af9dc8
- php-xml provides php-domxml (#215656)
af9dc8
- fix php-pdo-abi provide (#214281)
af9dc8
af9dc8
* Tue Oct 31 2006 Joseph Orton <jorton@redhat.com> 5.1.6-4
af9dc8
- rebuild for curl soname bump
af9dc8
- add build fix for curl 7.16 API
af9dc8
af9dc8
* Wed Oct  4 2006 Joe Orton <jorton@redhat.com> 5.1.6-3
af9dc8
- from upstream: add safety checks against integer overflow in _ecalloc
af9dc8
af9dc8
* Tue Aug 29 2006 Joe Orton <jorton@redhat.com> 5.1.6-2
af9dc8
- update to 5.1.6 (security fixes)
af9dc8
- bump default memory_limit to 16M (#196802)
af9dc8
af9dc8
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.1.4-8.1
af9dc8
- rebuild
af9dc8
af9dc8
* Fri Jun  9 2006 Joe Orton <jorton@redhat.com> 5.1.4-8
af9dc8
- Provide php-posix (#194583)
af9dc8
- only provide php-pcntl from -cli subpackage
af9dc8
- add missing defattr's (thanks to Matthias Saou)
af9dc8
af9dc8
* Fri Jun  9 2006 Joe Orton <jorton@redhat.com> 5.1.4-7
af9dc8
- move Obsoletes for php-openssl to -common (#194501)
af9dc8
- Provide: php-cgi from -cli subpackage
af9dc8
af9dc8
* Fri Jun  2 2006 Joe Orton <jorton@redhat.com> 5.1.4-6
af9dc8
- split out php-cli, php-common subpackages (#177821)
af9dc8
- add php-pdo-abi version export (#193202)
af9dc8
af9dc8
* Wed May 24 2006 Radek Vokal <rvokal@redhat.com> 5.1.4-5.1
af9dc8
- rebuilt for new libnetsnmp
af9dc8
af9dc8
* Thu May 18 2006 Joe Orton <jorton@redhat.com> 5.1.4-5
af9dc8
- provide mod_php (#187891)
af9dc8
- provide php-cli (#192196)
af9dc8
- use correct LDAP fix (#181518)
af9dc8
- define _GNU_SOURCE in php_config.h and leave it defined
af9dc8
- drop (circular) dependency on php-pear
af9dc8
af9dc8
* Mon May  8 2006 Joe Orton <jorton@redhat.com> 5.1.4-3
af9dc8
- update to 5.1.4
af9dc8
af9dc8
* Wed May  3 2006 Joe Orton <jorton@redhat.com> 5.1.3-3
af9dc8
- update to 5.1.3
af9dc8
af9dc8
* Tue Feb 28 2006 Joe Orton <jorton@redhat.com> 5.1.2-5
af9dc8
- provide php-api (#183227)
af9dc8
- add provides for all builtin modules (Tim Jackson, #173804)
af9dc8
- own %%{_libdir}/php/pear for PEAR packages (per #176733)
af9dc8
- add obsoletes to allow upgrade from FE4 PDO packages (#181863)
af9dc8
af9dc8
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.1.2-4.3
af9dc8
- bump again for double-long bug on ppc(64)
af9dc8
af9dc8
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.1.2-4.1
af9dc8
- rebuilt for new gcc4.1 snapshot and glibc changes
af9dc8
af9dc8
* Tue Jan 31 2006 Joe Orton <jorton@redhat.com> 5.1.2-4
af9dc8
- rebuild for new libc-client soname
af9dc8
af9dc8
* Mon Jan 16 2006 Joe Orton <jorton@redhat.com> 5.1.2-3
af9dc8
- only build xmlreader and xmlwriter shared (#177810)
af9dc8
af9dc8
* Fri Jan 13 2006 Joe Orton <jorton@redhat.com> 5.1.2-2
af9dc8
- update to 5.1.2
af9dc8
af9dc8
* Thu Jan  5 2006 Joe Orton <jorton@redhat.com> 5.1.1-8
af9dc8
- rebuild again
af9dc8
af9dc8
* Mon Jan  2 2006 Joe Orton <jorton@redhat.com> 5.1.1-7
af9dc8
- rebuild for new net-snmp
af9dc8
af9dc8
* Mon Dec 12 2005 Joe Orton <jorton@redhat.com> 5.1.1-6
af9dc8
- enable short_open_tag in default php.ini again (#175381)
af9dc8
af9dc8
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
af9dc8
- rebuilt
af9dc8
af9dc8
* Thu Dec  8 2005 Joe Orton <jorton@redhat.com> 5.1.1-5
af9dc8
- require net-snmp for php-snmp (#174800)
af9dc8
af9dc8
* Sun Dec  4 2005 Joe Orton <jorton@redhat.com> 5.1.1-4
af9dc8
- add /usr/share/pear back to hard-coded include_path (#174885)
af9dc8
af9dc8
* Fri Dec  2 2005 Joe Orton <jorton@redhat.com> 5.1.1-3
af9dc8
- rebuild for httpd 2.2
af9dc8
af9dc8
* Mon Nov 28 2005 Joe Orton <jorton@redhat.com> 5.1.1-2
af9dc8
- update to 5.1.1
af9dc8
- remove pear subpackage
af9dc8
- enable pdo extensions (php-pdo subpackage)
af9dc8
- remove non-standard conditional module builds
af9dc8
- enable xmlreader extension
af9dc8
af9dc8
* Thu Nov 10 2005 Tomas Mraz <tmraz@redhat.com> 5.0.5-6
af9dc8
- rebuilt against new openssl
af9dc8
af9dc8
* Mon Nov  7 2005 Joe Orton <jorton@redhat.com> 5.0.5-5
af9dc8
- pear: update to XML_RPC 1.4.4, XML_Parser 1.2.7, Mail 1.1.9 (#172528)
af9dc8
af9dc8
* Tue Nov  1 2005 Joe Orton <jorton@redhat.com> 5.0.5-4
af9dc8
- rebuild for new libnetsnmp
af9dc8
af9dc8
* Wed Sep 14 2005 Joe Orton <jorton@redhat.com> 5.0.5-3
af9dc8
- update to 5.0.5
af9dc8
- add fix for upstream #34435
af9dc8
- devel: require autoconf, automake (#159283)
af9dc8
- pear: update to HTTP-1.3.6, Mail-1.1.8, Net_SMTP-1.2.7, XML_RPC-1.4.1
af9dc8
- fix imagettftext et al (upstream, #161001)
af9dc8
af9dc8
* Thu Jun 16 2005 Joe Orton <jorton@redhat.com> 5.0.4-11
af9dc8
- ldap: restore ldap_start_tls() function
af9dc8
af9dc8
* Fri May  6 2005 Joe Orton <jorton@redhat.com> 5.0.4-10
af9dc8
- disable RPATHs in shared extensions (#156974)
af9dc8
af9dc8
* Tue May  3 2005 Joe Orton <jorton@redhat.com> 5.0.4-9
af9dc8
- build simplexml_import_dom even with shared dom (#156434)
af9dc8
- prevent truncation of copied files to ~2Mb (#155916)
af9dc8
- install /usr/bin/php from CLI build alongside CGI
af9dc8
- enable sysvmsg extension (#142988)
af9dc8
af9dc8
* Mon Apr 25 2005 Joe Orton <jorton@redhat.com> 5.0.4-8
af9dc8
- prevent build of builtin dba as well as shared extension
af9dc8
af9dc8
* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-7
af9dc8
- split out dba and bcmath extensions into subpackages
af9dc8
- BuildRequire gcc-c++ to avoid AC_PROG_CXX{,CPP} failure (#155221)
af9dc8
- pear: update to DB-1.7.6
af9dc8
- enable FastCGI support in /usr/bin/php-cgi (#149596)
af9dc8
af9dc8
* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-6
af9dc8
- build /usr/bin/php with the CLI SAPI, and add /usr/bin/php-cgi,
af9dc8
  built with the CGI SAPI (thanks to Edward Rudd, #137704)
af9dc8
- add php(1) man page for CLI
af9dc8
- fix more test cases to use -n when invoking php
af9dc8
af9dc8
* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-5
af9dc8
- rebuild for new libpq soname
af9dc8
af9dc8
* Tue Apr 12 2005 Joe Orton <jorton@redhat.com> 5.0.4-4
af9dc8
- bundle from PEAR: HTTP, Mail, XML_Parser, Net_Socket, Net_SMTP
af9dc8
- snmp: disable MSHUTDOWN function to prevent error_log noise (#153988)
af9dc8
- mysqli: add fix for crash on x86_64 (Georg Richter, upstream #32282)
af9dc8
af9dc8
* Mon Apr 11 2005 Joe Orton <jorton@redhat.com> 5.0.4-3
af9dc8
- build shared objects as PIC (#154195)
af9dc8
af9dc8
* Mon Apr  4 2005 Joe Orton <jorton@redhat.com> 5.0.4-2
af9dc8
- fix PEAR installation and bundle PEAR DB-1.7.5 package
af9dc8
af9dc8
* Fri Apr  1 2005 Joe Orton <jorton@redhat.com> 5.0.4-1
af9dc8
- update to 5.0.4 (#153068)
af9dc8
- add .phps AddType to php.conf (#152973)
af9dc8
- better gcc4 fix for libxmlrpc
af9dc8
af9dc8
* Wed Mar 30 2005 Joe Orton <jorton@redhat.com> 5.0.3-5
af9dc8
- BuildRequire mysql-devel >= 4.1
af9dc8
- don't mark php.ini as noreplace to make upgrades work (#152171)
af9dc8
- fix subpackage descriptions (#152628)
af9dc8
- fix memset(,,0) in Zend (thanks to Dave Jones)
af9dc8
- fix various compiler warnings in Zend
af9dc8
af9dc8
* Thu Mar 24 2005 Joe Orton <jorton@redhat.com> 5.0.3-4
af9dc8
- package mysqli extension in php-mysql
af9dc8
- really enable pcntl (#142903)
af9dc8
- don't build with --enable-safe-mode (#148969)
af9dc8
- use "Instant Client" libraries for oci8 module (Kai Bolay, #149873)
af9dc8
af9dc8
* Fri Feb 18 2005 Joe Orton <jorton@redhat.com> 5.0.3-3
af9dc8
- fix build with GCC 4
af9dc8
af9dc8
* Wed Feb  9 2005 Joe Orton <jorton@redhat.com> 5.0.3-2
af9dc8
- install the ext/gd headers (#145891)
af9dc8
- enable pcntl extension in /usr/bin/php (#142903)
af9dc8
- add libmbfl array arithmetic fix (dcb314@hotmail.com, #143795)
af9dc8
- add BuildRequire for recent pcre-devel (#147448)
af9dc8
af9dc8
* Wed Jan 12 2005 Joe Orton <jorton@redhat.com> 5.0.3-1
af9dc8
- update to 5.0.3 (thanks to Robert Scheck et al, #143101)
af9dc8
- enable xsl extension (#142174)
af9dc8
- package both the xsl and dom extensions in php-xml
af9dc8
- enable soap extension, shared (php-soap package) (#142901)
af9dc8
- add patches from upstream 5.0 branch:
af9dc8
 * Zend_strtod.c compile fixes
af9dc8
 * correct php_sprintf return value usage
af9dc8
af9dc8
* Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 5.0.2-8
af9dc8
- update for db4-4.3 (Robert Scheck, #140167)
af9dc8
- build against mysql-devel
af9dc8
- run tests in %%check
af9dc8
af9dc8
* Wed Nov 10 2004 Joe Orton <jorton@redhat.com> 5.0.2-7
af9dc8
- truncate changelog at 4.3.1-1
af9dc8
- merge from 4.3.x package:
af9dc8
 - enable mime_magic extension and Require: file (#130276)
af9dc8
af9dc8
* Mon Nov  8 2004 Joe Orton <jorton@redhat.com> 5.0.2-6
af9dc8
- fix dom/sqlite enable/without confusion
af9dc8
af9dc8
* Mon Nov  8 2004 Joe Orton <jorton@redhat.com> 5.0.2-5
af9dc8
- fix phpize installation for lib64 platforms
af9dc8
- add fix for segfault in variable parsing introduced in 5.0.2
af9dc8
af9dc8
* Mon Nov  8 2004 Joe Orton <jorton@redhat.com> 5.0.2-4
af9dc8
- update to 5.0.2 (#127980)
af9dc8
- build against mysqlclient10-devel
af9dc8
- use new RTLD_DEEPBIND to load extension modules
af9dc8
- drop explicit requirement for elfutils-devel
af9dc8
- use AddHandler in default conf.d/php.conf (#135664)
af9dc8
- "fix" round() fudging for recent gcc on x86
af9dc8
- disable sqlite pending audit of warnings and subpackage split
af9dc8
af9dc8
* Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-4
af9dc8
- don't build dom extension into 2.0 SAPI
af9dc8
af9dc8
* Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-3
af9dc8
- ExclusiveArch: x86 ppc x86_64 for the moment
af9dc8
af9dc8
* Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-2
af9dc8
- fix default extension_dir and conf.d/php.conf
af9dc8
af9dc8
* Thu Sep  9 2004 Joe Orton <jorton@redhat.com> 5.0.1-1
af9dc8
- update to 5.0.1
af9dc8
- only build shared modules once
af9dc8
- put dom extension in php-dom subpackage again
af9dc8
- move extension modules into %%{_libdir}/php/modules
af9dc8
- don't use --with-regex=system, it's ignored for the apache* SAPIs
af9dc8
af9dc8
* Wed Aug 11 2004 Tom Callaway <tcallawa@redhat.com>
af9dc8
- Merge in some spec file changes from Jeff Stern (jastern@uci.edu)
af9dc8
af9dc8
* Mon Aug 09 2004 Tom Callaway <tcallawa@redhat.com>
af9dc8
- bump to 5.0.0
af9dc8
- add patch to prevent clobbering struct re_registers from regex.h
af9dc8
- remove domxml references, replaced with dom now built-in
af9dc8
- fix php.ini to refer to php5 not php4