Blame SPECS/php.spec

a247fe
%if 0%{?scl:1}
a247fe
%scl_package php
a247fe
%else
a247fe
# to allow non SCL test build
a247fe
%global pkg_name          %{name}
a247fe
%global _root_sysconfdir  %{_sysconfdir}
a247fe
%global _root_bindir      %{_bindir}
a247fe
%global _root_sbindir     %{_sbindir}
a247fe
%global _root_includedir  %{_includedir}
a247fe
%global _root_libdir      %{_libdir}
a247fe
%global _root_prefix      %{_prefix}
a247fe
%global _root_initddir    %{_initddir}
a247fe
# to allow build on Fedora
a247fe
%global _httpd24_mmn        %{_httpd_mmn}
a247fe
%global _httpd24_apxs       %{_httpd_apxs}
a247fe
%global _httpd24_moddir     %{_httpd_moddir}
a247fe
%global _httpd24_contentdir %{_httpd_contentdir}
a247fe
%global _httpd24_modconfdir %{_httpd_modconfdir}
a247fe
%global _httpd24_confdir    %{_httpd_confdir}
a247fe
%endif
a247fe
a247fe
# API/ABI check
a247fe
%global apiver      20170718
a247fe
%global zendver     20170718
a247fe
%global pdover      20170320
a247fe
a247fe
%global _performance_build 1
a247fe
a247fe
# Adds -z now to the linker flags
a247fe
%global _hardened_build 1
a247fe
a247fe
# version used for php embedded library soname
a247fe
%global embed_version 7.2
a247fe
a247fe
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_root_sysconfdir}/rpm; echo $d)
a247fe
a247fe
%global mysql_sock %(mysql_config --socket  2>/dev/null || echo /var/lib/mysql/mysql.sock)
a247fe
a247fe
# Regression tests take a long time, you can skip 'em with this
a247fe
%{!?runselftest: %global runselftest 1}
a247fe
a247fe
# Use the arch-specific mysql_config binary to avoid mismatch with the
a247fe
# arch detection heuristic used by bindir/mysql_config.
a247fe
%global mysql_config %{_root_libdir}/mysql/mysql_config
a247fe
a247fe
%if 0%{?rhel} < 7
a247fe
%global with_imap      1
a247fe
%global with_tidy      1
a247fe
%global with_webp      0
a247fe
%else
a247fe
%global with_imap      0
a247fe
%global with_tidy      0
a247fe
%global with_webp      1
a247fe
%endif
a247fe
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
a247fe
%global with_libpcre      1
a247fe
%else
a247fe
%global with_libpcre      0
a247fe
%endif
a247fe
a247fe
%if 0%{?__isa_bits:1}
a247fe
%global isasuffix -%{__isa_bits}
a247fe
%else
a247fe
%global isasuffix %nil
a247fe
%endif
a247fe
a247fe
%if 0%{?fedora} < 12 && 0%{?rhel} < 6
a247fe
%global with_dtrace 0
a247fe
%else
a247fe
%global with_dtrace 1
a247fe
%endif
a247fe
a247fe
# systemd to manage the service, Fedora >= 15
a247fe
# systemd with notify mode, Fedora >= 16
a247fe
# systemd with additional service config
a247fe
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
a247fe
%global with_systemd 1
a247fe
%else
a247fe
%global with_systemd 0
a247fe
%endif
a247fe
a247fe
%if 0%{?fedora} < 18 && 0%{?rhel} < 7
a247fe
%global db_devel  db4-devel
a247fe
%else
a247fe
%global db_devel  libdb-devel
a247fe
%endif
a247fe
a247fe
Summary: PHP scripting language for creating dynamic web sites
a247fe
Name: %{?scl_prefix}php
a247fe
Version: 7.2.10
a247fe
Release: 3%{?dist}
a247fe
# All files licensed under PHP version 3.01, except
a247fe
# Zend is licensed under Zend
a247fe
# TSRM is licensed under BSD
a247fe
# main/snprintf.c, main/spprintf.c and main/rfc1867.c are ASL 1.0
a247fe
# ext/date/lib is MIT
a247fe
# Zend/zend_sort is NCSA
a247fe
License: PHP and Zend and BSD and MIT and ASL 1.0 and NCSA
a247fe
Group: Development/Languages
a247fe
URL: http://www.php.net/
a247fe
a247fe
Source0: http://www.php.net/distributions/php-%{version}.tar.xz
a247fe
Source1: php.conf
a247fe
Source2: php.ini
a247fe
Source3: macros.php
a247fe
Source4: php-fpm.conf
a247fe
Source5: php-fpm-www.conf
a247fe
Source6: php-fpm.service
a247fe
Source7: php-fpm.logrotate
a247fe
Source8: php-fpm.sysconfig
a247fe
Source9: php.modconf
a247fe
Source11: php-fpm.init
a247fe
# Configuration files for some extensions
a247fe
Source50: 10-opcache.ini
a247fe
Source51: opcache-default.blacklist
a247fe
a247fe
# Build fixes
a247fe
Patch5: php-7.2.0-includedir.patch
a247fe
Patch6: php-5.6.3-embed.patch
a247fe
Patch7: php-5.3.0-recode.patch
a247fe
Patch8: php-7.2.0-libdb.patch
a247fe
Patch9: php-7.0.7-curl.patch
a247fe
a247fe
# Fixes for extension modules
a247fe
a247fe
# Functional changes
a247fe
Patch40: php-7.2.4-dlopen.patch
a247fe
Patch42: php-7.2.3-systzdata-v16.patch
a247fe
# See http://bugs.php.net/53436
a247fe
Patch43: php-5.4.0-phpize.patch
a247fe
# Use -lldap_r for OpenLDAP
a247fe
Patch45: php-7.2.3-ldap_r.patch
a247fe
# Make php_config.h constant across builds
a247fe
Patch46: php-7.2.4-fixheader.patch
a247fe
# drop "Configure command" from phpinfo output
a247fe
Patch47: php-5.6.3-phpinfo.patch
a247fe
# getallheaders for FPM backported from 7.3
a247fe
Patch48: php-7.2.8-getallheaders.patch
a247fe
a247fe
# Upstream fixes (100+)
a247fe
Patch100: php-7.2.10-mysql8.patch
a247fe
Patch101: php-7.2.10-fileinfo.patch
a247fe
a247fe
# Security fixes (200+)
a247fe
a247fe
# Fixes for tests (300+)
a247fe
# Factory is droped from system tzdata
a247fe
Patch300: php-7.0.10-datetests.patch
a247fe
# Revert changes for pcre < 8.34
a247fe
Patch301: php-7.0.0-oldpcre.patch
a247fe
a247fe
a247fe
BuildRequires: bzip2-devel, curl-devel >= 7.9, %{db_devel}
a247fe
BuildRequires: %{?scl:httpd24-}httpd-devel >= 2.0.46-1, pam-devel
a247fe
BuildRequires: libstdc++-devel, openssl-devel
a247fe
# For SQLite3 extension
a247fe
BuildRequires: sqlite-devel >= 3.6.0
a247fe
BuildRequires: zlib-devel, smtpdaemon, libedit-devel
a247fe
%if %{with_libpcre}
a247fe
BuildRequires: pcre-devel >= 8.20
a247fe
%endif
a247fe
BuildRequires: bzip2, perl, libtool >= 1.4.3, gcc-c++
a247fe
BuildRequires: libtool-ltdl-devel
a247fe
%if %{with_dtrace}
a247fe
BuildRequires: systemtap-sdt-devel
a247fe
%endif
a247fe
Requires: %{?scl:httpd24-}httpd-mmn = %{_httpd24_mmn}
a247fe
Provides: %{?scl:httpd24-}mod_php = %{version}-%{release}
a247fe
Provides: %{?scl_prefix}mod_php = %{version}-%{release}
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
# For backwards-compatibility, require php-cli for the time being:
a247fe
Requires: %{?scl_prefix}php-cli%{?_isa} = %{version}-%{release}
a247fe
# To ensure correct /var/lib/php/session ownership:
a247fe
Requires(pre): %{?scl:httpd24-}httpd
a247fe
a247fe
a247fe
# Don't provides extensions, or shared libraries (embedded)
a247fe
%{?filter_from_requires: %filter_from_requires /libphp7.*so/d}
a247fe
%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
a247fe
%{?filter_provides_in: %filter_provides_in %{_httpd24_moddir}/.*\.so$}
a247fe
%{?filter_setup}
a247fe
a247fe
a247fe
%description
a247fe
PHP is an HTML-embedded scripting language. PHP attempts to make it
a247fe
easy for developers to write dynamically generated web pages. PHP also
a247fe
offers built-in database integration for several commercial and
a247fe
non-commercial database management systems, so writing a
a247fe
database-enabled webpage with PHP is fairly simple. The most common
a247fe
use of PHP coding is probably as a replacement for CGI scripts.
a247fe
a247fe
This package contains the module (often referred to as mod_php)
a247fe
which adds support for the PHP language to Apache HTTP 2.4 Server.
a247fe
a247fe
a247fe
%package cli
a247fe
Group: Development/Languages
a247fe
Summary: Command-line interface for PHP
a247fe
# sapi/cli/ps_title.c is PostgreSQL
a247fe
License:  PHP and Zend and BSD and MIT and ASL 1.0 and NCSA and PostgreSQL
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
Provides: %{?scl_prefix}php-cgi = %{version}-%{release}, %{?scl_prefix}php-cgi%{?_isa} = %{version}-%{release}
a247fe
Provides: %{?scl_prefix}php-pcntl, %{?scl_prefix}php-pcntl%{?_isa}
a247fe
Provides: %{?scl_prefix}php-readline, %{?scl_prefix}php-readline%{?_isa}
a247fe
a247fe
%description cli
a247fe
The %{?scl_prefix}php-cli package contains the command-line interface
a247fe
executing PHP scripts, %{_bindir}/php, and the CGI interface.
a247fe
a247fe
a247fe
%package dbg
a247fe
Group: Development/Languages
a247fe
Summary: The interactive PHP debugger
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
a247fe
%description dbg
a247fe
The %{?scl_prefix}php-dbg package contains the interactive PHP debugger.
a247fe
a247fe
a247fe
%package fpm
a247fe
Group: Development/Languages
a247fe
Summary: PHP FastCGI Process Manager
a247fe
BuildRequires: libacl-devel
a247fe
Requires(pre): %{_root_sbindir}/useradd
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
Requires(post): policycoreutils-python libselinux-utils
a247fe
%if %{with_systemd}
a247fe
BuildRequires: systemd-devel
a247fe
BuildRequires: systemd-units
a247fe
Requires: systemd-units
a247fe
Requires(post): systemd-units
a247fe
Requires(preun): systemd-units
a247fe
Requires(postun): systemd-units
a247fe
# This is actually needed for the %%triggerun script but Requires(triggerun)
a247fe
# is not valid.  We can use %%post because this particular %%triggerun script
a247fe
# should fire just after this package is installed.
a247fe
Requires(post): systemd-sysv
a247fe
%else
a247fe
# This is for /sbin/service
a247fe
Requires(preun): initscripts
a247fe
Requires(postun): initscripts
a247fe
%endif
a247fe
a247fe
%description fpm
a247fe
PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI
a247fe
implementation with some additional features useful for sites of
a247fe
any size, especially busier sites.
a247fe
a247fe
a247fe
%package embedded
a247fe
Summary: PHP library for embedding in applications
a247fe
Group: System Environment/Libraries
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
# doing a real -devel package for just the .so symlink is a bit overkill
a247fe
Provides: %{?scl_prefix}php-embedded-devel = %{version}-%{release}
a247fe
Provides: %{?scl_prefix}php-embedded-devel%{?_isa} = %{version}-%{release}
a247fe
a247fe
%description embedded
a247fe
The %{?scl_prefix}php-embedded package contains a library which can be embedded
a247fe
into applications to provide PHP scripting language support.
a247fe
a247fe
a247fe
%package common
a247fe
Group: Development/Languages
a247fe
Summary: Common files for PHP
a247fe
# All files licensed under PHP version 3.01, except
a247fe
# fileinfo is licensed under PHP version 3.0
a247fe
# regex, libmagic are licensed under BSD
a247fe
License: PHP and BSD
a247fe
# ABI/API check - Arch specific
a247fe
Provides: %{?scl_prefix}php(api) = %{apiver}%{isasuffix}
a247fe
Provides: %{?scl_prefix}php(zend-abi) = %{zendver}%{isasuffix}
a247fe
Provides: %{?scl_prefix}php(language) = %{version}
a247fe
Provides: %{?scl_prefix}php(language)%{?_isa} = %{version}
a247fe
# Provides for all builtin/shared modules:
a247fe
Provides: %{?scl_prefix}php-bz2, %{?scl_prefix}php-bz2%{?_isa}
a247fe
Provides: %{?scl_prefix}php-calendar, %{?scl_prefix}php-calendar%{?_isa}
a247fe
Provides: %{?scl_prefix}php-core = %{version}, %{?scl_prefix}php-core%{?_isa} = %{version}
a247fe
Provides: %{?scl_prefix}php-ctype, %{?scl_prefix}php-ctype%{?_isa}
a247fe
Provides: %{?scl_prefix}php-curl, %{?scl_prefix}php-curl%{?_isa}
a247fe
Provides: %{?scl_prefix}php-date, %{?scl_prefix}php-date%{?_isa}
a247fe
Provides: bundled(timelib)
a247fe
Provides: %{?scl_prefix}php-exif, %{?scl_prefix}php-exif%{?_isa}
a247fe
Provides: %{?scl_prefix}php-fileinfo, %{?scl_prefix}php-fileinfo%{?_isa}
a247fe
Provides: bundled(libmagic) = 5.29
a247fe
Provides: %{?scl_prefix}php-filter, %{?scl_prefix}php-filter%{?_isa}
a247fe
Provides: %{?scl_prefix}php-ftp, %{?scl_prefix}php-ftp%{?_isa}
a247fe
Provides: %{?scl_prefix}php-gettext, %{?scl_prefix}php-gettext%{?_isa}
a247fe
Provides: %{?scl_prefix}php-hash, %{?scl_prefix}php-hash%{?_isa}
a247fe
Provides: %{?scl_prefix}php-mhash = %{version}, %{?scl_prefix}php-mhash%{?_isa} = %{version}
a247fe
Provides: %{?scl_prefix}php-iconv, %{?scl_prefix}php-iconv%{?_isa}
a247fe
Provides: %{?scl_prefix}php-libxml, %{?scl_prefix}php-libxml%{?_isa}
a247fe
Provides: %{?scl_prefix}php-openssl, %{?scl_prefix}php-openssl%{?_isa}
a247fe
Provides: %{?scl_prefix}php-phar, %{?scl_prefix}php-phar%{?_isa}
a247fe
Provides: %{?scl_prefix}php-pcre, %{?scl_prefix}php-pcre%{?_isa}
a247fe
Provides: %{?scl_prefix}php-reflection, %{?scl_prefix}php-reflection%{?_isa}
a247fe
Provides: %{?scl_prefix}php-session, %{?scl_prefix}php-session%{?_isa}
a247fe
Provides: %{?scl_prefix}php-sockets, %{?scl_prefix}php-sockets%{?_isa}
a247fe
Provides: %{?scl_prefix}php-spl, %{?scl_prefix}php-spl%{?_isa}
a247fe
Provides: %{?scl_prefix}php-standard = %{version}, %{?scl_prefix}php-standard%{?_isa} = %{version}
a247fe
Provides: %{?scl_prefix}php-tokenizer, %{?scl_prefix}php-tokenizer%{?_isa}
a247fe
Provides: %{?scl_prefix}php-zlib, %{?scl_prefix}php-zlib%{?_isa}
a247fe
%{?scl:Requires: %{scl}-runtime}
a247fe
# For user experience, those extensions were part of php-common
a247fe
Requires: %{?scl_prefix}php-json%{?_isa} = %{version}-%{release}
a247fe
Requires: %{?scl_prefix}php-zip%{?_isa} = %{version}-%{release}
a247fe
a247fe
%description common
a247fe
The %{?scl_prefix}php-common package contains files used by both
a247fe
the %{?scl_prefix}php package and the %{?scl_prefix}php-cli package.
a247fe
a247fe
%package devel
a247fe
Group: Development/Libraries
a247fe
Summary: Files needed for building PHP extensions
a247fe
Requires: %{?scl_prefix}php-cli%{?_isa} = %{version}-%{release}, autoconf, automake
a247fe
%if %{with_libpcre}
a247fe
Requires: pcre-devel%{?_isa} >= 8.20
a247fe
%endif
a247fe
a247fe
%description devel
a247fe
The %{?scl_prefix}php-devel package contains the files needed for building PHP
a247fe
extensions. If you need to compile your own PHP extensions, you will
a247fe
need to install this package.
a247fe
a247fe
%package opcache
a247fe
Summary:   The Zend OPcache
a247fe
Group:     Development/Languages
a247fe
License:   PHP
a247fe
Requires:  %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
Provides:  %{?scl_prefix}php-pecl-zendopcache = %{version}
a247fe
Provides:  %{?scl_prefix}php-pecl-zendopcache%{?_isa} = %{version}
a247fe
Provides:  %{?scl_prefix}php-pecl(opcache) = %{version}
a247fe
Provides:  %{?scl_prefix}php-pecl(opcache)%{?_isa} = %{version}
a247fe
a247fe
%description opcache
a247fe
The Zend OPcache provides faster PHP execution through opcode caching and
a247fe
optimization. It improves PHP performance by storing precompiled script
a247fe
bytecode in the shared memory. This eliminates the stages of reading code from
a247fe
the disk and compiling it on future access. In addition, it applies a few
a247fe
bytecode optimization patterns that make code execution faster.
a247fe
a247fe
%if %{with_imap}
a247fe
%package imap
a247fe
Summary: A module for PHP applications that use IMAP
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
BuildRequires: krb5-devel, openssl-devel, libc-client-devel
a247fe
a247fe
%description imap
a247fe
The %{?scl_prefix}php-imap module will add IMAP (Internet Message Access Protocol)
a247fe
support to PHP. IMAP is a protocol for retrieving and uploading e-mail
a247fe
messages on mail servers. PHP is an HTML-embedded scripting language.
a247fe
%endif
a247fe
a247fe
%package ldap
a247fe
Summary: A module for PHP applications that use LDAP
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
BuildRequires: cyrus-sasl-devel, openldap-devel, openssl-devel
a247fe
a247fe
%description ldap
a247fe
The %{?scl_prefix}php-ldap package adds Lightweight Directory Access Protocol (LDAP)
a247fe
support to PHP. LDAP is a set of protocols for accessing directory
a247fe
services over the Internet. PHP is an HTML-embedded scripting
a247fe
language.
a247fe
a247fe
%package pdo
a247fe
Summary: A database access abstraction module for PHP applications
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
# ABI/API check - Arch specific
a247fe
Provides: %{?scl_prefix}php-pdo-abi = %{pdover}%{isasuffix}
a247fe
Provides: %{?scl_prefix}php(pdo-abi) = %{pdover}%{isasuffix}
a247fe
Provides: %{?scl_prefix}php-sqlite3, %{?scl_prefix}php-sqlite3%{?_isa}
a247fe
Provides: %{?scl_prefix}php-pdo_sqlite, %{?scl_prefix}php-pdo_sqlite%{?_isa}
a247fe
a247fe
%description pdo
a247fe
The %{?scl_prefix}php-pdo package contains a dynamic shared object that will add
a247fe
a database access abstraction layer to PHP.  This module provides
a247fe
a common interface for accessing MySQL, PostgreSQL or other
a247fe
databases.
a247fe
a247fe
%package mysqlnd
a247fe
Summary: A module for PHP applications that use MySQL databases
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-pdo%{?_isa} = %{version}-%{release}
a247fe
Provides: %{?scl_prefix}php_database
a247fe
Provides: %{?scl_prefix}php-mysqli = %{version}-%{release}
a247fe
Provides: %{?scl_prefix}php-mysqli%{?_isa} = %{version}-%{release}
a247fe
Provides: %{?scl_prefix}php-pdo_mysql, %{?scl_prefix}php-pdo_mysql%{?_isa}
a247fe
a247fe
%description mysqlnd
a247fe
The %{?scl_prefix}php-mysqlnd package contains a dynamic shared object that will add
a247fe
MySQL database support to PHP. MySQL is an object-relational database
a247fe
management system. PHP is an HTML-embeddable scripting language. If
a247fe
you need MySQL support for PHP applications, you will need to install
a247fe
this package and the php package.
a247fe
a247fe
This package use the MySQL Native Driver
a247fe
a247fe
%package pgsql
a247fe
Summary: A PostgreSQL database module for PHP
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-pdo%{?_isa} = %{version}-%{release}
a247fe
Provides: %{?scl_prefix}php_database
a247fe
Provides: %{?scl_prefix}php-pdo_pgsql, %{?scl_prefix}php-pdo_pgsql%{?_isa}
a247fe
BuildRequires: krb5-devel, openssl-devel, postgresql-devel
a247fe
a247fe
%description pgsql
a247fe
The %{?scl_prefix}php-pgsql package add PostgreSQL database support to PHP.
a247fe
PostgreSQL is an object-relational database management
a247fe
system that supports almost all SQL constructs. PHP is an
a247fe
HTML-embedded scripting language. If you need back-end support for
a247fe
PostgreSQL, you should install this package in addition to the main
a247fe
php package.
a247fe
a247fe
%package process
a247fe
Summary: Modules for PHP script using system process interfaces
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
Provides: %{?scl_prefix}php-posix, %{?scl_prefix}php-posix%{?_isa}
a247fe
Provides: %{?scl_prefix}php-shmop, %{?scl_prefix}php-shmop%{?_isa}
a247fe
Provides: %{?scl_prefix}php-sysvsem, %{?scl_prefix}php-sysvsem%{?_isa}
a247fe
Provides: %{?scl_prefix}php-sysvshm, %{?scl_prefix}php-sysvshm%{?_isa}
a247fe
Provides: %{?scl_prefix}php-sysvmsg, %{?scl_prefix}php-sysvmsg%{?_isa}
a247fe
a247fe
%description process
a247fe
The %{?scl_prefix}php-process package contains dynamic shared objects which add
a247fe
support to PHP using system interfaces for inter-process
a247fe
communication.
a247fe
a247fe
%package odbc
a247fe
Summary: A module for PHP applications that use ODBC databases
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01, except
a247fe
# pdo_odbc is licensed under PHP version 3.0
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-pdo%{?_isa} = %{version}-%{release}
a247fe
Provides: %{?scl_prefix}php_database
a247fe
Provides: %{?scl_prefix}php-pdo_odbc, %{?scl_prefix}php-pdo_odbc%{?_isa}
a247fe
BuildRequires: unixODBC-devel
a247fe
a247fe
%description odbc
a247fe
The %{?scl_prefix}php-odbc package contains a dynamic shared object that will add
a247fe
database support through ODBC to PHP. ODBC is an open specification
a247fe
which provides a consistent API for developers to use for accessing
a247fe
data sources (which are often, but not always, databases). PHP is an
a247fe
HTML-embeddable scripting language. If you need ODBC support for PHP
a247fe
applications, you will need to install this package and the php
a247fe
package.
a247fe
a247fe
%package soap
a247fe
Summary: A module for PHP applications that use the SOAP protocol
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
BuildRequires: libxml2-devel
a247fe
a247fe
%description soap
a247fe
The %{?scl_prefix}php-soap package contains a dynamic shared object that will add
a247fe
support to PHP for using the SOAP web services protocol.
a247fe
a247fe
%package snmp
a247fe
Summary: A module for PHP applications that query SNMP-managed devices
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}, net-snmp
a247fe
BuildRequires: net-snmp-devel
a247fe
a247fe
%description snmp
a247fe
The %{?scl_prefix}php-snmp package contains a dynamic shared object that will add
a247fe
support for querying SNMP devices to PHP.  PHP is an HTML-embeddable
a247fe
scripting language. If you need SNMP support for PHP applications, you
a247fe
will need to install this package and the php package.
a247fe
a247fe
%package xml
a247fe
Summary: A module for PHP applications which use XML
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
Provides: %{?scl_prefix}php-dom, %{?scl_prefix}php-dom%{?_isa}
a247fe
Provides: %{?scl_prefix}php-domxml, %{?scl_prefix}php-domxml%{?_isa}
a247fe
Provides: %{?scl_prefix}php-simplexml, %{?scl_prefix}php-simplexml%{?_isa}
a247fe
Provides: %{?scl_prefix}php-wddx, %{?scl_prefix}php-wddx%{?_isa}
a247fe
Provides: %{?scl_prefix}php-xmlreader, %{?scl_prefix}php-xmlreader%{?_isa}
a247fe
Provides: %{?scl_prefix}php-xmlwriter, %{?scl_prefix}php-xmlwriter%{?_isa}
a247fe
Provides: %{?scl_prefix}php-xsl, %{?scl_prefix}php-xsl%{?_isa}
a247fe
BuildRequires: libxslt-devel >= 1.0.18-1, libxml2-devel >= 2.4.14-1
a247fe
a247fe
%description xml
a247fe
The %{?scl_prefix}php-xml package contains dynamic shared objects which add support
a247fe
to PHP for manipulating XML documents using the DOM tree,
a247fe
and performing XSL transformations on XML documents.
a247fe
a247fe
%package xmlrpc
a247fe
Summary: A module for PHP applications which use the XML-RPC protocol
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01, except
a247fe
# libXMLRPC is licensed under BSD
a247fe
License: PHP and BSD
a247fe
Requires: %{?scl_prefix}php-xml%{?_isa} = %{version}-%{release}
a247fe
a247fe
%description xmlrpc
a247fe
The %{?scl_prefix}php-xmlrpc package contains a dynamic shared object that will add
a247fe
support for the XML-RPC protocol to PHP.
a247fe
a247fe
%package mbstring
a247fe
Summary: A module for PHP applications which need multi-byte string handling
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01, except
a247fe
# libmbfl is licensed under LGPLv2
a247fe
# onigurama is licensed under BSD
a247fe
# ucgendat is licensed under OpenLDAP
a247fe
License: PHP and LGPLv2 and BSD and OpenLDAP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
Provides: bundled(oniguruma) = 6.3.0
a247fe
Provides: bundled(libmbfl) = 1.3.2
a247fe
a247fe
%description mbstring
a247fe
The %{?scl_prefix}php-mbstring package contains a dynamic shared object that will add
a247fe
support for multi-byte string handling to PHP.
a247fe
a247fe
%package gd
a247fe
Summary: A module for PHP applications for using the gd graphics library
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
# bundled libgd is licensed under BSD
a247fe
License: PHP and BSD
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
# Required to build the bundled GD library
a247fe
BuildRequires: libjpeg-devel, libpng-devel, freetype-devel
a247fe
BuildRequires: libXpm-devel
a247fe
%if %{with_webp}
a247fe
BuildRequires: libwebp-devel
a247fe
%endif
a247fe
Provides: bundled(gd) = 2.0.35
a247fe
a247fe
%description gd
a247fe
The %{?scl_prefix}php-gd package contains a dynamic shared object that will add
a247fe
support for using the gd graphics library to PHP.
a247fe
a247fe
%package bcmath
a247fe
Summary: A module for PHP applications for using the bcmath library
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01, except
a247fe
# libbcmath is licensed under LGPLv2+
a247fe
License: PHP and LGPLv2+
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
Provides: bundled(libbcmath)
a247fe
a247fe
%description bcmath
a247fe
The %{?scl_prefix}php-bcmath package contains a dynamic shared object that will add
a247fe
support for using the bcmath library to PHP.
a247fe
a247fe
%package gmp
a247fe
Summary: A module for PHP applications for using the GNU MP library
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
BuildRequires: gmp-devel
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
a247fe
%description gmp
a247fe
These functions allow you to work with arbitrary-length integers
a247fe
using the GNU MP library.
a247fe
a247fe
%package dba
a247fe
Summary: A database abstraction layer module for PHP applications
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
BuildRequires: %{db_devel}, tokyocabinet-devel
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
a247fe
%description dba
a247fe
The %{?scl_prefix}php-dba package contains a dynamic shared object that will add
a247fe
support for using the DBA database abstraction layer to PHP.
a247fe
a247fe
%if %{with_tidy}
a247fe
%package tidy
a247fe
Summary: Standard PHP module provides tidy library support
a247fe
Group: Development/Languages
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
BuildRequires: libtidy-devel
a247fe
a247fe
%description tidy
a247fe
The %{?scl_prefix}php-tidy package contains a dynamic shared object that will add
a247fe
support for using the tidy library to PHP.
a247fe
%endif
a247fe
a247fe
%package pspell
a247fe
Summary: A module for PHP applications for using pspell interfaces
a247fe
Group: System Environment/Libraries
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
BuildRequires: aspell-devel >= 0.50.0
a247fe
a247fe
%description pspell
a247fe
The %{?scl_prefix}php-pspell package contains a dynamic shared object that will add
a247fe
support for using the pspell library to PHP.
a247fe
a247fe
%package recode
a247fe
Summary: A module for PHP applications for using the recode library
a247fe
Group: System Environment/Libraries
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
BuildRequires: recode-devel
a247fe
a247fe
%description recode
a247fe
The %{?scl_prefix}php-recode package contains a dynamic shared object that will add
a247fe
support for using the recode library to PHP.
a247fe
a247fe
%package intl
a247fe
Summary: Internationalization extension for PHP applications
a247fe
Group: System Environment/Libraries
a247fe
# All files licensed under PHP version 3.01
a247fe
License: PHP
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
BuildRequires: libicu-devel >= 4.0
a247fe
a247fe
%description intl
a247fe
The %{?scl_prefix}php-intl package contains a dynamic shared object that will add
a247fe
support for using the ICU library to PHP.
a247fe
a247fe
%package enchant
a247fe
Summary: Enchant spelling extension for PHP applications
a247fe
# All files licensed under PHP version 3.0
a247fe
License: PHP
a247fe
Group: System Environment/Libraries
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
BuildRequires: enchant-devel >= 1.2.4
a247fe
a247fe
%description enchant
a247fe
The %{?scl_prefix}php-enchant package contains a dynamic shared object that will add
a247fe
support for using the enchant library to PHP.
a247fe
a247fe
%package zip
a247fe
Summary: ZIP archive management extension for PHP
a247fe
# All files licensed under PHP version 3.0.1
a247fe
License: PHP
a247fe
Group: System Environment/Libraries
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
a247fe
%description zip
a247fe
The %{?scl_prefix}php-zip package provides an extension that will add
a247fe
support for ZIP archive management to PHP.
a247fe
a247fe
%package json
a247fe
Summary: JavaScript Object Notation extension for PHP
a247fe
# All files licensed under PHP version 3.0.1
a247fe
License: PHP
a247fe
Group: System Environment/Libraries
a247fe
Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release}
a247fe
a247fe
%description json
a247fe
The %{?scl_prefix}php-json package provides an extension that will add
a247fe
support for JavaScript Object Notation (JSON) to PHP.
a247fe
a247fe
a247fe
%prep
a247fe
%setup -q -n php-%{version}%{?rcver}
a247fe
a247fe
%patch5 -p1 -b .includedir
a247fe
%patch6 -p1 -b .embed
a247fe
%patch7 -p1 -b .recode
a247fe
%patch8 -p1 -b .libdb
a247fe
%patch9 -p1 -b .curltls
a247fe
a247fe
%patch40 -p1 -b .dlopen
a247fe
%patch42 -p1 -b .systzdata
a247fe
%patch43 -p1 -b .headers
a247fe
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
a247fe
%patch45 -p1 -b .ldap_r
a247fe
%endif
a247fe
%patch46 -p1 -b .fixheader
a247fe
%patch47 -p1 -b .phpinfo
a247fe
%patch48 -p1 -b .getallheaders
a247fe
a247fe
# upstream patches
a247fe
%patch100 -p1 -b .mysql8
a247fe
%patch101 -p1 -b .fileinfo
a247fe
a247fe
# security patches
a247fe
a247fe
# Fixes for tests
a247fe
%patch300 -p1 -b .datetests
a247fe
%if %{with_libpcre}
a247fe
if ! pkg-config libpcre --atleast-version 8.34 ; then
a247fe
# Only apply when system libpcre < 8.34
a247fe
%patch301 -p1 -b .pcre834
a247fe
fi
a247fe
%endif
a247fe
a247fe
# Prevent %%doc confusion over LICENSE files
a247fe
cp Zend/LICENSE Zend/ZEND_LICENSE
a247fe
cp TSRM/LICENSE TSRM_LICENSE
a247fe
cp ext/gd/libgd/README libgd_README
a247fe
cp ext/gd/libgd/COPYING libgd_COPYING
a247fe
cp sapi/fpm/LICENSE fpm_LICENSE
a247fe
cp ext/mbstring/libmbfl/LICENSE libmbfl_LICENSE
a247fe
cp ext/mbstring/oniguruma/COPYING oniguruma_COPYING
a247fe
cp ext/mbstring/ucgendat/OPENLDAP_LICENSE ucgendat_LICENSE
a247fe
cp ext/fileinfo/libmagic/LICENSE libmagic_LICENSE
a247fe
cp ext/phar/LICENSE phar_LICENSE
a247fe
cp ext/bcmath/libbcmath/COPYING.LIB libbcmath_COPYING
a247fe
cp ext/date/lib/LICENSE.rst timelib_LICENSE
a247fe
a247fe
# Multiple builds for multiple SAPIs
a247fe
mkdir \
a247fe
    build-fpm \
a247fe
    build-apache \
a247fe
    build-embedded \
a247fe
    build-cgi
a247fe
a247fe
# ----- Manage known as failed test -------
a247fe
# affected by systzdata patch
a247fe
rm ext/date/tests/timezone_location_get.phpt
a247fe
rm ext/date/tests/timezone_version_get.phpt
a247fe
rm ext/date/tests/timezone_version_get_basic1.phpt
a247fe
# fails sometime
a247fe
rm ext/sockets/tests/mcast_ipv?_recv.phpt
a247fe
# cause stack exhausion
a247fe
rm Zend/tests/bug54268.phpt
a247fe
rm Zend/tests/bug68412.phpt
a247fe
a247fe
# Safety check for API version change.
a247fe
pver=$(sed -n '/#define PHP_VERSION /{s/.* "//;s/".*$//;p}' main/php_version.h)
a247fe
if test "x${pver}" != "x%{version}%{?rcver}"; then
a247fe
   : Error: Upstream PHP version is now ${pver}, expecting %{version}%{?rcver}.
a247fe
   : Update the version/rcver macros and rebuild.
a247fe
   exit 1
a247fe
fi
a247fe
a247fe
vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`
a247fe
if test "x${vapi}" != "x%{apiver}"; then
a247fe
   : Error: Upstream API version is now ${vapi}, expecting %{apiver}.
a247fe
   : Update the apiver macro and rebuild.
a247fe
   exit 1
a247fe
fi
a247fe
a247fe
vzend=`sed -n '/#define ZEND_MODULE_API_NO/{s/^[^0-9]*//;p;}' Zend/zend_modules.h`
a247fe
if test "x${vzend}" != "x%{zendver}"; then
a247fe
   : Error: Upstream Zend ABI version is now ${vzend}, expecting %{zendver}.
a247fe
   : Update the zendver macro and rebuild.
a247fe
   exit 1
a247fe
fi
a247fe
a247fe
# Safety check for PDO ABI version change
a247fe
vpdo=`sed -n '/#define PDO_DRIVER_API/{s/.*[ 	]//;p}' ext/pdo/php_pdo_driver.h`
a247fe
if test "x${vpdo}" != "x%{pdover}"; then
a247fe
   : Error: Upstream PDO ABI version is now ${vpdo}, expecting %{pdover}.
a247fe
   : Update the pdover macro and rebuild.
a247fe
   exit 1
a247fe
fi
a247fe
a247fe
# https://bugs.php.net/63362 - Not needed but installed headers.
a247fe
# Drop some Windows specific headers to avoid installation,
a247fe
# before build to ensure they are really not needed.
a247fe
rm -f TSRM/tsrm_win32.h \
a247fe
      TSRM/tsrm_config.w32.h \
a247fe
      Zend/zend_config.w32.h \
a247fe
      ext/mysqlnd/config-win.h \
a247fe
      ext/standard/winver.h \
a247fe
      main/win32_internal_function_disabled.h \
a247fe
      main/win95nt.h
a247fe
a247fe
# Fix some bogus permissions
a247fe
find . -name \*.[ch] -exec chmod 644 {} \;
a247fe
chmod 644 README.*
a247fe
a247fe
# Create the macros.php files
a247fe
sed -e "s/@PHP_APIVER@/%{apiver}%{isasuffix}/" \
a247fe
 -e "s/@PHP_ZENDVER@/%{zendver}%{isasuffix}/" \
a247fe
 -e "s/@PHP_PDOVER@/%{pdover}%{isasuffix}/" \
a247fe
 -e "s/@PHP_VERSION@/%{version}/" \
a247fe
 -e "s:@LIBDIR@:%{_libdir}:" \
a247fe
 -e "s:@ETCDIR@:%{_sysconfdir}:" \
a247fe
 -e "s:@INCDIR@:%{_includedir}:" \
a247fe
 -e "s:@BINDIR@:%{_bindir}:" \
a247fe
 -e "s:@SCL@:%{?scl:php72_}:" \
a247fe
 %{SOURCE3} | tee macros.php
a247fe
a247fe
# php-fpm configuration files for tmpfiles.d
a247fe
# TODO echo "d /run/php-fpm 755 root root" >php-fpm.tmpfiles
a247fe
a247fe
# Some extensions have their own configuration file
a247fe
cp %{SOURCE50} 10-opcache.ini
a247fe
%if 0%{?rhel} != 6
a247fe
cat << EOF >>10-opcache.ini
a247fe
a247fe
; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
a247fe
; This should improve performance, but requires appropriate OS configuration.
a247fe
;opcache.huge_code_pages=0
a247fe
EOF
a247fe
%endif
a247fe
a247fe
cp %{SOURCE51} .
a247fe
sed -e 's:%{_root_sysconfdir}:%{_sysconfdir}:' \
a247fe
    -i 10-opcache.ini
a247fe
a247fe
a247fe
%build
a247fe
# Set build date from https://reproducible-builds.org/specs/source-date-epoch/
a247fe
export SOURCE_DATE_EPOCH=$(date +%s -r NEWS)
a247fe
a247fe
# aclocal workaround - to be improved
a247fe
cat `aclocal --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 >>aclocal.m4
a247fe
a247fe
# Force use of system libtool:
a247fe
libtoolize --force --copy
a247fe
cat `aclocal --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 >build/libtool.m4
a247fe
a247fe
# Regenerate configure scripts (patches change config.m4's)
a247fe
touch configure.ac
a247fe
./buildconf --force
a247fe
a247fe
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-pointer-sign"
a247fe
export CFLAGS
a247fe
a247fe
# Install extension modules in %{_libdir}/php/modules.
a247fe
EXTENSION_DIR=%{_libdir}/php/modules; export EXTENSION_DIR
a247fe
a247fe
# Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
a247fe
# includes the PEAR directory even though pear is packaged
a247fe
# separately.
a247fe
PEAR_INSTALLDIR=%{_datadir}/pear; export PEAR_INSTALLDIR
a247fe
a247fe
# Shell function to configure and build a PHP tree.
a247fe
build() {
a247fe
# Old/recent bison version seems to produce a broken parser;
a247fe
# upstream uses GNU Bison 2.3. Workaround:
a247fe
mkdir Zend && cp ../Zend/zend_{language,ini}_{parser,scanner}.[ch] Zend
a247fe
a247fe
# Always static:
a247fe
# date, filter, libxml, reflection, spl: not supported
a247fe
# hash: for PHAR_SIG_SHA256 and PHAR_SIG_SHA512
a247fe
# session: dep on hash, used by soap and wddx
a247fe
# pcre: used by filter, zip
a247fe
# pcntl, readline: only used by CLI sapi
a247fe
# openssl: for PHAR_SIG_OPENSSL
a247fe
# zlib: used by image
a247fe
a247fe
ln -sf ../configure
a247fe
%configure \
a247fe
    --cache-file=../config.cache \
a247fe
    --with-libdir=%{_lib} \
a247fe
    --with-config-file-path=%{_sysconfdir} \
a247fe
    --with-config-file-scan-dir=%{_sysconfdir}/php.d \
a247fe
    --disable-debug \
a247fe
    --with-pic \
a247fe
    --disable-rpath \
a247fe
    --without-pear \
a247fe
    --with-exec-dir=%{_bindir} \
a247fe
    --with-freetype-dir=%{_root_prefix} \
a247fe
    --with-png-dir=%{_root_prefix} \
a247fe
    --with-xpm-dir=%{_root_prefix} \
a247fe
%if %{with_webp}
a247fe
    --with-webp-dir=%{_root_prefix} \
a247fe
%endif
a247fe
    --without-gdbm \
a247fe
    --without-sodium \
a247fe
    --with-jpeg-dir=%{_root_prefix} \
a247fe
    --with-openssl \
a247fe
    --with-system-ciphers \
a247fe
%if %{with_libpcre}
a247fe
    --with-pcre-regex=%{_root_prefix} \
a247fe
%endif
a247fe
    --with-zlib \
a247fe
    --with-layout=GNU \
a247fe
    --with-kerberos \
a247fe
    --with-libxml-dir=%{_root_prefix} \
a247fe
    --with-system-tzdata \
a247fe
    --with-mhash \
a247fe
%if %{with_dtrace}
a247fe
    --enable-dtrace \
a247fe
%endif
a247fe
    $*
a247fe
if test $? != 0; then 
a247fe
  tail -500 config.log
a247fe
  : configure failed
a247fe
  exit 1
a247fe
fi
a247fe
a247fe
make %{?_smp_mflags}
a247fe
}
a247fe
a247fe
# Build /usr/bin/php-cgi with the CGI SAPI, and most the shared extensions
a247fe
pushd build-cgi
a247fe
a247fe
build --libdir=%{_libdir}/php \
a247fe
      --enable-pcntl \
a247fe
      --enable-opcache-file \
a247fe
%if 0%{?rhel} == 6
a247fe
      --disable-huge-code-pages \
a247fe
%endif
a247fe
      --enable-opcache \
a247fe
      --enable-phpdbg \
a247fe
%if %{with_imap}
a247fe
      --with-imap=shared --with-imap-ssl \
a247fe
%endif
a247fe
      --enable-mbstring=shared \
a247fe
      --enable-mbregex \
a247fe
      --with-gd=shared \
a247fe
      --with-gmp=shared \
a247fe
      --enable-calendar=shared \
a247fe
      --enable-bcmath=shared \
a247fe
      --with-bz2=shared \
a247fe
      --enable-ctype=shared \
a247fe
      --enable-dba=shared --with-db4=%{_root_prefix} \
a247fe
                          --with-tcadb=%{_root_prefix} \
a247fe
      --enable-exif=shared \
a247fe
      --enable-ftp=shared \
a247fe
      --with-gettext=shared \
a247fe
      --with-iconv=shared \
a247fe
      --enable-sockets=shared \
a247fe
      --enable-tokenizer=shared \
a247fe
      --with-xmlrpc=shared \
a247fe
      --with-ldap=shared --with-ldap-sasl \
a247fe
      --enable-mysqlnd=shared \
a247fe
      --with-mysql=shared,mysqlnd \
a247fe
      --with-mysqli=shared,mysqlnd \
a247fe
      --with-mysql-sock=%{mysql_sock} \
a247fe
      --enable-dom=shared \
a247fe
      --with-pgsql=shared \
a247fe
      --enable-simplexml=shared \
a247fe
      --enable-xml=shared \
a247fe
      --enable-wddx=shared \
a247fe
      --with-snmp=shared,%{_root_prefix} \
a247fe
      --enable-soap=shared \
a247fe
      --with-xsl=shared,%{_root_prefix} \
a247fe
      --enable-xmlreader=shared --enable-xmlwriter=shared \
a247fe
      --with-curl=shared,%{_root_prefix} \
a247fe
      --enable-pdo=shared \
a247fe
      --with-pdo-odbc=shared,unixODBC,%{_root_prefix} \
a247fe
      --with-pdo-mysql=shared,mysqlnd \
a247fe
      --with-pdo-pgsql=shared,%{_root_prefix} \
a247fe
      --with-pdo-sqlite=shared,%{_root_prefix} \
a247fe
      --with-sqlite3=shared,%{_root_prefix} \
a247fe
      --enable-json=shared \
a247fe
      --enable-zip=shared \
a247fe
      --without-readline \
a247fe
      --with-libedit \
a247fe
      --with-pspell=shared \
a247fe
      --enable-phar=shared \
a247fe
%if %{with_tidy}
a247fe
      --with-tidy=shared,%{_root_prefix} \
a247fe
%endif
a247fe
      --enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \
a247fe
      --enable-shmop=shared \
a247fe
      --enable-posix=shared \
a247fe
      --with-unixODBC=shared,%{_root_prefix} \
a247fe
      --enable-intl=shared \
a247fe
      --with-icu-dir=%{_root_prefix} \
a247fe
      --with-enchant=shared,%{_root_prefix} \
a247fe
      --with-recode=shared,%{_root_prefix} \
a247fe
      --enable-fileinfo=shared
a247fe
popd
a247fe
a247fe
without_shared="--without-gd \
a247fe
      --disable-dom --disable-dba --without-unixODBC \
a247fe
      --disable-opcache \
a247fe
      --disable-json \
a247fe
      --disable-xmlreader --disable-xmlwriter \
a247fe
      --without-sqlite3 --disable-phar --disable-fileinfo \
a247fe
      --without-pspell --disable-wddx \
a247fe
      --without-curl --disable-posix --disable-xml \
a247fe
      --disable-simplexml --disable-exif --without-gettext \
a247fe
      --without-iconv --disable-ftp --without-bz2 --disable-ctype \
a247fe
      --disable-shmop --disable-sockets --disable-tokenizer \
a247fe
      --disable-sysvmsg --disable-sysvshm --disable-sysvsem"
a247fe
a247fe
a247fe
# Cannot use "scl enable" to have build function
a247fe
%{?scl:. %{_scl_prefix}/httpd24/enable}
a247fe
a247fe
# Build Apache module, and the CLI SAPI, /usr/bin/php
a247fe
pushd build-apache
a247fe
build --with-apxs2=%{_httpd24_apxs} \
a247fe
      --libdir=%{_libdir}/php \
a247fe
      --without-mysqli \
a247fe
      --disable-pdo \
a247fe
      ${without_shared}
a247fe
popd
a247fe
a247fe
# Build php-fpm
a247fe
pushd build-fpm
a247fe
build --enable-fpm \
a247fe
%if %{with_systemd}
a247fe
      --with-fpm-systemd \
a247fe
%endif
a247fe
      --with-fpm-acl \
a247fe
      --libdir=%{_libdir}/php \
a247fe
      --without-mysqli \
a247fe
      --disable-pdo \
a247fe
      ${without_shared}
a247fe
popd
a247fe
a247fe
# Build for inclusion as embedded script language into applications,
a247fe
# /usr/lib[64]/libphp7.so
a247fe
pushd build-embedded
a247fe
build --enable-embed \
a247fe
      --without-mysqli \
a247fe
      --disable-pdo \
a247fe
      ${without_shared}
a247fe
popd
a247fe
a247fe
a247fe
%check
a247fe
%if %runselftest
a247fe
a247fe
cd build-apache
a247fe
a247fe
# Run tests, using the CLI SAPI
a247fe
export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
a247fe
export SKIP_ONLINE_TESTS=1
a247fe
export SKIP_IO_CAPTURE_TESTS=1
a247fe
unset TZ LANG LC_ALL
a247fe
if ! make test; then
a247fe
  set +x
a247fe
  for f in $(find .. -name \*.diff -type f -print); do
a247fe
    if ! grep -q XFAIL "${f/.diff/.phpt}"
a247fe
    then
a247fe
      echo "TEST FAILURE: $f --"
a247fe
      head -n 100 "$f"
a247fe
      echo -e "\n-- $f result ends."
a247fe
    fi
a247fe
  done
a247fe
  set -x
a247fe
  #exit 1
a247fe
fi
a247fe
unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
a247fe
%endif
a247fe
a247fe
%install
a247fe
# Install the version for embedded script language in applications + php_embed.h
a247fe
make -C build-embedded install-sapi install-headers \
a247fe
     INSTALL_ROOT=$RPM_BUILD_ROOT
a247fe
a247fe
# Install the php-fpm binary
a247fe
make -C build-fpm install-fpm \
a247fe
     INSTALL_ROOT=$RPM_BUILD_ROOT
a247fe
a247fe
# Install everything from the CGI SAPI build
a247fe
make -C build-cgi install \
a247fe
     INSTALL_ROOT=$RPM_BUILD_ROOT
a247fe
a247fe
# Install the default configuration file and icons
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/
a247fe
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
a247fe
a247fe
%if %{with_libpcre}
a247fe
if ! pkg-config libpcre --atleast-version 8.38 ; then
a247fe
   sed -e 's/;pcre.jit=1/pcre.jit=0/' -i $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
a247fe
fi
a247fe
%endif
a247fe
a247fe
# For third-party packaging:
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/php
a247fe
a247fe
sed -e 's/libphp7/lib%{name}7/' %{SOURCE9} >modconf
a247fe
a247fe
# install the DSO
a247fe
install -D -m 755 build-apache/libs/libphp7.so $RPM_BUILD_ROOT%{_httpd24_moddir}/lib%{name}7.so
a247fe
a247fe
# Apache config fragment
a247fe
install -D -m 644 php.gif    $RPM_BUILD_ROOT%{_httpd24_contentdir}/icons/%{name}.gif
a247fe
install -D -m 644 modconf    $RPM_BUILD_ROOT%{_httpd24_modconfdir}/15-%{name}.conf
a247fe
install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_httpd24_confdir}/%{name}.conf
a247fe
sed -e 's:/var/lib:%{_localstatedir}/lib:' \
a247fe
    -i $RPM_BUILD_ROOT%{_httpd24_confdir}/%{name}.conf
a247fe
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php.d
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php
a247fe
install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session
a247fe
install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/wsdlcache
a247fe
install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/opcache
a247fe
a247fe
# PHP-FPM stuff
a247fe
# Log
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/log/php-fpm
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/run/php-fpm
a247fe
# Config
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d
a247fe
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.conf
a247fe
sed -e 's:/run:%{_localstatedir}/run:' \
a247fe
    -e 's:/var/log:%{_localstatedir}/log:' \
a247fe
    -e 's:/etc:%{_sysconfdir}:' \
a247fe
    -i $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.conf
a247fe
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d/www.conf
a247fe
sed -e 's:/var/lib:%{_localstatedir}/lib:' \
a247fe
    -e 's:/var/log:%{_localstatedir}/log:' \
a247fe
    -i $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d/www.conf
a247fe
mv $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.conf.default .
a247fe
mv $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d/www.conf.default .
a247fe
# tmpfiles.d
a247fe
# install -m 755 -d $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d
a247fe
# install -m 644 php-fpm.tmpfiles $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/php-fpm.conf
a247fe
# install systemd unit files and scripts for handling server startup
a247fe
%if %{with_systemd}
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_unitdir}
a247fe
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_unitdir}/%{?scl_prefix}php-fpm.service
a247fe
sed -e 's:/run:%{_localstatedir}/run:' \
a247fe
    -e 's:/etc/sysconfig:%{_sysconfdir}/sysconfig:' \
a247fe
    -e 's:php-fpm.service:%{?scl_prefix}php-fpm.service:' \
a247fe
    -e 's:/usr/sbin:%{_sbindir}:' \
a247fe
    -i $RPM_BUILD_ROOT%{_unitdir}/%{?scl_prefix}php-fpm.service
a247fe
# this folder requires systemd >= 204
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_root_sysconfdir}/systemd/system/%{?scl_prefix}php-fpm.service.d
a247fe
%else
a247fe
# Service
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_root_initddir}
a247fe
install -m 755 %{SOURCE11} $RPM_BUILD_ROOT%{_root_initddir}/%{?scl_prefix}php-fpm
a247fe
# Needed relocation for SCL
a247fe
sed -e '/php-fpm.pid/s:/var:%{_localstatedir}:' \
a247fe
    -e '/subsys/s/php-fpm/%{?scl_prefix}php-fpm/' \
a247fe
    -e 's:/etc/sysconfig/php-fpm:%{_sysconfdir}/sysconfig/php-fpm:' \
a247fe
    -e 's:/etc/php-fpm.conf:%{_sysconfdir}/php-fpm.conf:' \
a247fe
    -e 's:/usr/sbin:%{_sbindir}:' \
a247fe
    -i $RPM_BUILD_ROOT%{_root_initddir}/%{?scl_prefix}php-fpm
a247fe
%endif
a247fe
a247fe
# LogRotate
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_root_sysconfdir}/logrotate.d
a247fe
install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_root_sysconfdir}/logrotate.d/%{?scl_prefix}php-fpm
a247fe
sed -e 's:/run:%{_localstatedir}/run:' \
a247fe
    -e 's:/var/log:%{_localstatedir}/log:' \
a247fe
    -i $RPM_BUILD_ROOT%{_root_sysconfdir}/logrotate.d/%{?scl_prefix}php-fpm
a247fe
a247fe
# Environment file
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
a247fe
install -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/php-fpm
a247fe
sed -e 's:php-fpm.service:%{?scl_prefix}php-fpm.service:' \
a247fe
    -i $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/php-fpm
a247fe
a247fe
# Fix the link
a247fe
(cd $RPM_BUILD_ROOT%{_bindir}; ln -sfn phar.phar phar)
a247fe
a247fe
# Generate files lists and stub .ini files for each subpackage
a247fe
for mod in pgsql odbc ldap snmp xmlrpc \
a247fe
    mysqlnd mysqli pdo_mysql \
a247fe
    json \
a247fe
%if %{with_imap}
a247fe
    imap \
a247fe
%endif
a247fe
    mbstring gd dom xsl soap bcmath dba xmlreader xmlwriter \
a247fe
    simplexml bz2 calendar ctype exif ftp gettext gmp iconv \
a247fe
    sockets tokenizer opcache \
a247fe
    pdo pdo_pgsql pdo_odbc pdo_sqlite \
a247fe
    sqlite3 \
a247fe
    enchant \
a247fe
    phar fileinfo intl \
a247fe
%if %{with_tidy}
a247fe
    tidy \
a247fe
%endif
a247fe
    recode \
a247fe
    zip \
a247fe
    pspell curl wddx xml \
a247fe
    posix shmop sysvshm sysvsem sysvmsg
a247fe
do
a247fe
    # for extension load order
a247fe
    case $mod in
a247fe
      opcache)
a247fe
        # Zend extensions
a247fe
        ini=10-${mod}.ini;;
a247fe
      pdo_*|mysqli|wddx|xmlreader|xmlrpc)
a247fe
        # Extensions with dependencies on 20-*
a247fe
        ini=30-${mod}.ini;;
a247fe
      *)
a247fe
        # Extensions with no dependency
a247fe
        ini=20-${mod}.ini;;
a247fe
    esac
a247fe
    # some extensions have their own config file
a247fe
    if [ -f ${ini} ]; then
a247fe
      cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini}
a247fe
    else
a247fe
      cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini} <
a247fe
; Enable ${mod} extension module
a247fe
extension=${mod}
a247fe
EOF
a247fe
    fi
a247fe
%{?nfsmountable:install -D -m 644 %{buildroot}%{_sysconfdir}/php.d/${ini} %{buildroot}%{_scl_scripts}/register.content%{_sysconfdir}/php.d/${ini}}
a247fe
    cat > files.${mod} <
a247fe
%{_libdir}/php/modules/${mod}.so
a247fe
%config(noreplace) %{_sysconfdir}/php.d/${ini}
a247fe
%{?nfsmountable:%{_scl_scripts}/register.content%{_sysconfdir}/php.d/${ini}}
a247fe
EOF
a247fe
done
a247fe
a247fe
# The dom, xsl and xml* modules are all packaged in php-xml
a247fe
cat files.dom files.xsl files.xml{reader,writer} files.wddx \
a247fe
    files.simplexml >> files.xml
a247fe
a247fe
# mysqlnd
a247fe
cat files.mysqli \
a247fe
    files.pdo_mysql \
a247fe
    >> files.mysqlnd
a247fe
a247fe
# Split out the PDO modules
a247fe
cat files.pdo_pgsql >> files.pgsql
a247fe
cat files.pdo_odbc >> files.odbc
a247fe
a247fe
# sysv* and posix in packaged in php-process
a247fe
cat files.shmop files.sysv* files.posix > files.process
a247fe
a247fe
# Package sqlite3 and pdo_sqlite with pdo; isolating the sqlite dependency
a247fe
# isn't useful at this time since rpm itself requires sqlite.
a247fe
cat files.pdo_sqlite >> files.pdo
a247fe
cat files.sqlite3 >> files.pdo
a247fe
a247fe
# Package zip, curl, phar and fileinfo in -common.
a247fe
cat files.curl files.phar files.fileinfo \
a247fe
    files.exif files.gettext files.iconv files.calendar \
a247fe
    files.ftp files.bz2 files.ctype files.sockets \
a247fe
    files.tokenizer > files.common
a247fe
cat files.zip >> files.common
a247fe
a247fe
# The default Zend OPcache blacklist file
a247fe
install -m 644 opcache-default.blacklist $RPM_BUILD_ROOT%{_sysconfdir}/php.d/opcache-default.blacklist
a247fe
a247fe
# Install the macros file:
a247fe
install -m 644 -D macros.php \
a247fe
           $RPM_BUILD_ROOT%{macrosdir}/macros.%{name}
a247fe
%{?nfsmountable:install -D -m 644 macros.php %{buildroot}%{_scl_scripts}/register.content%{macrosdir}/macros.%{name}}
a247fe
a247fe
# Remove unpackaged files
a247fe
rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \
a247fe
       $RPM_BUILD_ROOT%{_bindir}/{phptar} \
a247fe
       $RPM_BUILD_ROOT%{_datadir}/pear \
a247fe
       $RPM_BUILD_ROOT%{_libdir}/libphp7.la
a247fe
a247fe
# Remove irrelevant docs
a247fe
rm -f README.{Zeus,QNX,CVS-RULES}
a247fe
a247fe
touch files.fpm
a247fe
a247fe
# For register/deregister script in SCL, when build with nfsmountable
a247fe
%if 0%{?nfsmountable:1}
a247fe
install -D -m 644 $RPM_BUILD_ROOT%{_sysconfdir}/php.ini \
a247fe
    $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_sysconfdir}/php.ini
a247fe
a247fe
install -D -m 644 $RPM_BUILD_ROOT%{_sysconfdir}/php.d/opcache-default.blacklist \
a247fe
    $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_sysconfdir}/php.d/opcache-default.blacklist
a247fe
a247fe
echo "%{_scl_scripts}/register.content%{_sysconfdir}/php.d/opcache-default.blacklist" >>files.opcache
a247fe
a247fe
install -m 700 -d $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_localstatedir}/lib/php/session
a247fe
install -m 700 -d $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_localstatedir}/lib/php/wsdlcache
a247fe
a247fe
dir=%{_scl_scripts}/register.content%{_sysconfdir}/php.d
a247fe
while [ "$dir" != "%{_scl_scripts}/register.content" ]
a247fe
do  echo "%dir $dir" >>files.common
a247fe
    dir=$(dirname $dir)
a247fe
done
a247fe
a247fe
cat >>files.common <
a247fe
%{_scl_scripts}/register.content%{_sysconfdir}/php.ini
a247fe
%dir %{_scl_scripts}/register.content%{_localstatedir}/lib/php
a247fe
EOF
a247fe
a247fe
# FPM
a247fe
install -D -m 644 $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.conf \
a247fe
    $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_sysconfdir}/php-fpm.conf
a247fe
a247fe
install -D -m 644 $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.d/www.conf \
a247fe
    $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_sysconfdir}/php-fpm.d/www.conf
a247fe
a247fe
install -D -m 644 $RPM_BUILD_ROOT%{_root_sysconfdir}/logrotate.d/%{?scl_prefix}php-fpm \
a247fe
    $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_root_sysconfdir}/logrotate.d/%{?scl_prefix}php-fpm
a247fe
a247fe
install -D -m 644 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/php-fpm \
a247fe
    $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_sysconfdir}/sysconfig/php-fpm
a247fe
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_localstatedir}/log/php-fpm
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_localstatedir}/run/php-fpm
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_scl_scripts}/register.d
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_scl_scripts}/deregister.d
a247fe
a247fe
%if %{with_systemd}
a247fe
install -D -m 644 $RPM_BUILD_ROOT%{_unitdir}/%{?scl_prefix}php-fpm.service \
a247fe
    $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_unitdir}/%{?scl_prefix}php-fpm.service
a247fe
install -m 755 -d $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_root_sysconfdir}/systemd/system/%{?scl_prefix}php-fpm.service.d
a247fe
a247fe
cat >$RPM_BUILD_ROOT%{_scl_scripts}/register.d/60-post-fpm <
a247fe
/bin/systemctl daemon-reload || :
a247fe
EOF
a247fe
a247fe
cat >$RPM_BUILD_ROOT%{_scl_scripts}/deregister.d/40-preun-fpm <
a247fe
/bin/systemctl --no-reload disable %{?scl_prefix}php-fpm.service || :
a247fe
/bin/systemctl stop %{?scl_prefix}php-fpm.service  || :
a247fe
EOF
a247fe
a247fe
cat >$RPM_BUILD_ROOT%{_scl_scripts}/deregister.d/60-postun-fpm <
a247fe
/bin/systemctl daemon-reload || :
a247fe
EOF
a247fe
a247fe
dir=%{_scl_scripts}/register.content%{_unitdir}
a247fe
while [ "$dir" != "%{_scl_scripts}/register.content" ]
a247fe
do  echo "%dir $dir" >>files.fpm
a247fe
    dir=$(dirname $dir)
a247fe
done
a247fe
a247fe
%else
a247fe
install -D -m 644 $RPM_BUILD_ROOT%{_root_initddir}/%{?scl_prefix}php-fpm \
a247fe
    $RPM_BUILD_ROOT%{_scl_scripts}/register.content%{_root_initddir}/%{?scl_prefix}php-fpm
a247fe
a247fe
cat >$RPM_BUILD_ROOT%{_scl_scripts}/register.d/60-post-fpm <
a247fe
    /sbin/chkconfig --add %{?scl_prefix}php-fpm
a247fe
EOF
a247fe
a247fe
cat >$RPM_BUILD_ROOT%{_scl_scripts}/deregister.d/40-preun-fpm <
a247fe
    /sbin/service %{?scl_prefix}php-fpm stop || :
a247fe
    /sbin/chkconfig --del %{?scl_prefix}php-fpm || :
a247fe
EOF
a247fe
a247fe
dir=%{_scl_scripts}/register.content%{_root_initddir}
a247fe
while [ "$dir" != "%{_scl_scripts}/register.content" ]
a247fe
do  echo "%dir $dir" >>files.fpm
a247fe
    dir=$(dirname $dir)
a247fe
done
a247fe
%endif
a247fe
a247fe
dir=%{_scl_scripts}/register.content%{macrosdir}
a247fe
while [ "$dir" != "%{_scl_scripts}/register.content" ]
a247fe
do  echo "%dir $dir" >>files.common
a247fe
    dir=$(dirname $dir)
a247fe
done
a247fe
a247fe
dir=%{_scl_scripts}/register.content%{_localstatedir}/lib/php
a247fe
while [ "$dir" != "%{_scl_scripts}/register.content" ]
a247fe
do  echo "%dir $dir" >>files.common
a247fe
    dir=$(dirname $dir)
a247fe
done
a247fe
a247fe
cat >>files.fpm <
a247fe
%dir %{_scl_scripts}/register.content%{_localstatedir}/run
a247fe
%dir %{_scl_scripts}/register.content%{_localstatedir}/run/php-fpm
a247fe
     %{_scl_scripts}/register.content%{_sysconfdir}/php-fpm.conf
a247fe
%dir %{_scl_scripts}/register.content%{_sysconfdir}/php-fpm.d
a247fe
     %{_scl_scripts}/register.content%{_sysconfdir}/php-fpm.d/www.conf
a247fe
%dir %{_scl_scripts}/register.content%{_root_sysconfdir}/logrotate.d/
a247fe
     %{_scl_scripts}/register.content%{_root_sysconfdir}/logrotate.d/%{?scl_prefix}php-fpm
a247fe
%dir %{_scl_scripts}/register.content%{_sysconfdir}/sysconfig
a247fe
     %{_scl_scripts}/register.content%{_sysconfdir}/sysconfig/php-fpm
a247fe
%dir %{_scl_scripts}/register.content%{_localstatedir}/log
a247fe
%attr(770,apache,root) %dir %{_scl_scripts}/register.content%{_localstatedir}/log/php-fpm
a247fe
%if %{with_systemd}
a247fe
     %{_scl_scripts}/register.content%{_unitdir}/%{?scl_prefix}php-fpm.service
a247fe
%dir %{_scl_scripts}/register.content%{_root_sysconfdir}/systemd/
a247fe
%dir %{_scl_scripts}/register.content%{_root_sysconfdir}/systemd/system/
a247fe
%dir %{_scl_scripts}/register.content%{_root_sysconfdir}/systemd/system/%{?scl_prefix}php-fpm.service.d
a247fe
%else
a247fe
     %{_scl_scripts}/register.content%{_root_initddir}/%{?scl_prefix}php-fpm
a247fe
%endif
a247fe
     %{_scl_scripts}/register.d/*fpm
a247fe
     %{_scl_scripts}/deregister.d/*fpm
a247fe
EOF
a247fe
%endif
a247fe
a247fe
a247fe
%pre fpm
a247fe
# Add the "apache" user (to avoid pulling httpd in our dep)
a247fe
getent group  apache >/dev/null || \
a247fe
  groupadd -g 48 -r apache
a247fe
getent passwd apache >/dev/null || \
a247fe
  useradd -r -u 48 -g apache -s /sbin/nologin \
a247fe
    -d %{_httpd24_contentdir} -c "Apache" apache
a247fe
exit 0
a247fe
a247fe
%post fpm
a247fe
%if %{with_systemd}
a247fe
semanage fcontext -a -e \
a247fe
    %{_unitdir}/php-fpm.service \
a247fe
    %{_unitdir}/%{?scl_prefix}php-fpm.service         &>/dev/null || :
a247fe
selinuxenabled && load_policy || :
a247fe
restorecon %{_unitdir}/%{?scl_prefix}php-fpm.service  &>/dev/null || :
a247fe
%else
a247fe
semanage fcontext -a -e \
a247fe
    %{_root_initddir}/php-fpm \
a247fe
    %{_root_initddir}/%{?scl_prefix}php-fpm           &>/dev/null || :
a247fe
selinuxenabled && load_policy || :
a247fe
restorecon %{_root_initddir}/%{?scl_prefix}php-fpm    &>/dev/null || :
a247fe
%endif
a247fe
a247fe
%if 0%{?systemd_post:1}
a247fe
%systemd_post %{?scl:%{scl}-}php-fpm.service
a247fe
%else
a247fe
if [ $1 = 1 ]; then
a247fe
    # Initial installation
a247fe
%if %{with_systemd}
a247fe
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
a247fe
%else
a247fe
    /sbin/chkconfig --add %{?scl_prefix}php-fpm
a247fe
%endif
a247fe
fi
a247fe
%endif
a247fe
a247fe
%preun fpm
a247fe
%if 0%{?systemd_preun:1}
a247fe
%systemd_preun %{?scl:%{scl}-}php-fpm.service
a247fe
%else
a247fe
if [ $1 = 0 ]; then
a247fe
    # Package removal, not upgrade
a247fe
%if %{with_systemd}
a247fe
    /bin/systemctl --no-reload disable %{?scl_prefix}php-fpm.service >/dev/null 2>&1 || :
a247fe
    /bin/systemctl stop %{?scl_prefix}php-fpm.service >/dev/null 2>&1 || :
a247fe
%else
a247fe
    /sbin/service %{?scl_prefix}php-fpm stop >/dev/null 2>&1
a247fe
    /sbin/chkconfig --del %{?scl_prefix}php-fpm
a247fe
%endif
a247fe
fi
a247fe
%endif
a247fe
a247fe
%postun fpm
a247fe
%if 0%{?systemd_postun_with_restart:1}
a247fe
%systemd_postun_with_restart %{?scl:%{scl}-}php-fpm.service
a247fe
%else
a247fe
%if %{with_systemd}
a247fe
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
a247fe
if [ $1 -ge 1 ]; then
a247fe
    # Package upgrade, not uninstall
a247fe
    /bin/systemctl try-restart %{?scl_prefix}php-fpm.service >/dev/null 2>&1 || :
a247fe
fi
a247fe
%else
a247fe
if [ $1 -ge 1 ]; then
a247fe
    /sbin/service %{?scl_prefix}php-fpm condrestart >/dev/null 2>&1 || :
a247fe
fi
a247fe
%endif
a247fe
%endif
a247fe
a247fe
# Handle upgrading from SysV initscript to native systemd unit.
a247fe
# We can tell if a SysV version of php-fpm was previously installed by
a247fe
# checking to see if the initscript is present.
a247fe
%triggerun fpm -- %{?scl_prefix}php-fpm
a247fe
%if %{with_systemd}
a247fe
if [ -f /etc/rc.d/init.d/%{?scl_prefix}php-fpm ]; then
a247fe
    # Save the current service runlevel info
a247fe
    # User must manually run systemd-sysv-convert --apply php-fpm
a247fe
    # to migrate them to systemd targets
a247fe
    /usr/bin/systemd-sysv-convert --save %{?scl_prefix}php-fpm >/dev/null 2>&1 || :
a247fe
a247fe
    # Run these because the SysV package being removed won't do them
a247fe
    /sbin/chkconfig --del %{?scl_prefix}php-fpm >/dev/null 2>&1 || :
a247fe
    /bin/systemctl try-restart %{?scl_prefix}php-fpm.service >/dev/null 2>&1 || :
a247fe
fi
a247fe
%endif
a247fe
a247fe
a247fe
%{!?_licensedir:%global license %%doc}
a247fe
a247fe
%files
a247fe
%{_httpd24_moddir}/lib%{name}7.so
a247fe
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
a247fe
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/wsdlcache
a247fe
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/opcache
a247fe
%{?nfsmountable:%attr(0770,root,apache) %dir %{_scl_scripts}/register.content%{_localstatedir}/lib/php/session}
a247fe
%{?nfsmountable:%attr(0770,root,apache) %dir %{_scl_scripts}/register.content/%{_localstatedir}/lib/php/wsdlcache}
a247fe
%config(noreplace) %{_httpd24_confdir}/%{name}.conf
a247fe
%config(noreplace) %{_httpd24_modconfdir}/15-%{name}.conf
a247fe
%{_httpd24_contentdir}/icons/%{name}.gif
a247fe
a247fe
%files common -f files.common
a247fe
%doc CODING_STANDARDS CREDITS EXTENSIONS NEWS README*
a247fe
%license LICENSE Zend/ZEND_* TSRM_LICENSE
a247fe
%license libmagic_LICENSE
a247fe
%license phar_LICENSE
a247fe
%license timelib_LICENSE
a247fe
%doc php.ini-*
a247fe
%config(noreplace) %{_sysconfdir}/php.ini
a247fe
%dir %{_sysconfdir}/php.d
a247fe
%dir %{_libdir}/php
a247fe
%dir %{_libdir}/php/modules
a247fe
%dir %{_localstatedir}/lib/php
a247fe
%dir %{_datadir}/php
a247fe
a247fe
%files cli
a247fe
%{_bindir}/php
a247fe
%{_bindir}/php-cgi
a247fe
%{_bindir}/phar.phar
a247fe
%{_bindir}/phar
a247fe
# provides phpize here (not in -devel) for pecl command
a247fe
%{_bindir}/phpize
a247fe
%{_mandir}/man1/php.1*
a247fe
%{_mandir}/man1/php-cgi.1*
a247fe
%{_mandir}/man1/phar.1*
a247fe
%{_mandir}/man1/phar.phar.1*
a247fe
%{_mandir}/man1/phpize.1*
a247fe
%doc sapi/cgi/README* sapi/cli/README
a247fe
a247fe
%files dbg
a247fe
%{_bindir}/phpdbg
a247fe
%{_mandir}/man1/phpdbg.1*
a247fe
%doc sapi/phpdbg/{README.md,CREDITS}
a247fe
a247fe
%files fpm -f files.fpm
a247fe
%doc php-fpm.conf.default www.conf.default
a247fe
%license fpm_LICENSE
a247fe
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
a247fe
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/wsdlcache
a247fe
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/opcache
a247fe
%{?nfsmountable:%attr(0770,root,apache) %dir %{_scl_scripts}/register.content%{_localstatedir}/lib/php/session}
a247fe
%{?nfsmountable:%attr(0770,root,apache) %dir %{_scl_scripts}/register.content/%{_localstatedir}/lib/php/wsdlcache}
a247fe
%config(noreplace) %{_sysconfdir}/php-fpm.conf
a247fe
%config(noreplace) %{_sysconfdir}/php-fpm.d/www.conf
a247fe
%config(noreplace) %{_root_sysconfdir}/logrotate.d/%{?scl_prefix}php-fpm
a247fe
%config(noreplace) %{_sysconfdir}/sysconfig/php-fpm
a247fe
# %%{_prefix}/lib/tmpfiles.d/php-fpm.conf
a247fe
%if %{with_systemd}
a247fe
%{_unitdir}/%{?scl_prefix}php-fpm.service
a247fe
%dir %{_root_sysconfdir}/systemd/system/%{?scl_prefix}php-fpm.service.d
a247fe
%else
a247fe
%{_root_initddir}/%{?scl_prefix}php-fpm
a247fe
%endif
a247fe
%{_sbindir}/php-fpm
a247fe
%dir %{_sysconfdir}/php-fpm.d
a247fe
# log owned by apache for log
a247fe
%attr(770,apache,root) %dir %{_localstatedir}/log/php-fpm
a247fe
%dir %{_localstatedir}/run/php-fpm
a247fe
%{_mandir}/man8/php-fpm.8*
a247fe
%dir %{_datadir}/fpm
a247fe
%{_datadir}/fpm/status.html
a247fe
a247fe
%files embedded
a247fe
%{_libdir}/libphp7.so
a247fe
%{_libdir}/libphp7-%{embed_version}.so
a247fe
a247fe
%files devel
a247fe
%{_bindir}/php-config
a247fe
%{_includedir}/php
a247fe
%{_libdir}/php/build
a247fe
%{_mandir}/man1/php-config.1*
a247fe
%{macrosdir}/macros.%{name}
a247fe
%{?nfsmountable:%{_scl_scripts}/register.content%{macrosdir}/macros.%{name}}
a247fe
a247fe
%files pgsql -f files.pgsql
a247fe
%files odbc -f files.odbc
a247fe
%if %{with_imap}
a247fe
%files imap -f files.imap
a247fe
%endif
a247fe
%files ldap -f files.ldap
a247fe
%files snmp -f files.snmp
a247fe
%files xml -f files.xml
a247fe
%files xmlrpc -f files.xmlrpc
a247fe
%files mbstring -f files.mbstring
a247fe
%license libmbfl_LICENSE
a247fe
%license oniguruma_COPYING
a247fe
%license ucgendat_LICENSE
a247fe
%files gd -f files.gd
a247fe
%license libgd_README
a247fe
%license libgd_COPYING
a247fe
%files soap -f files.soap
a247fe
%files bcmath -f files.bcmath
a247fe
%license libbcmath_COPYING
a247fe
%files gmp -f files.gmp
a247fe
%files dba -f files.dba
a247fe
%files pdo -f files.pdo
a247fe
%if %{with_tidy}
a247fe
%files tidy -f files.tidy
a247fe
%endif
a247fe
%files pspell -f files.pspell
a247fe
%files intl -f files.intl
a247fe
%files process -f files.process
a247fe
%files recode -f files.recode
a247fe
%files enchant -f files.enchant
a247fe
%files mysqlnd -f files.mysqlnd
a247fe
%files opcache -f files.opcache
a247fe
%config(noreplace) %{_sysconfdir}/php.d/opcache-default.blacklist
a247fe
%files zip -f files.zip
a247fe
%files json -f files.json
a247fe
a247fe
a247fe
%changelog
a247fe
* Wed Nov  7 2018 Remi Collet <rcollet@redhat.com> - 7.2.10-3
a247fe
- add upstream patch for fileinfo performance #1644378
a247fe
a247fe
* Thu Sep 27 2018 Remi Collet <rcollet@redhat.com> - 7.2.10-2
a247fe
- revert all MySQL 8 auth related changes #1631399
a247fe
a247fe
* Thu Sep 13 2018 Remi Collet <rcollet@redhat.com> - 7.2.10-1
a247fe
- update to 7.2.10
a247fe
a247fe
* Wed Jul 18 2018 Remi Collet <rcollet@redhat.com> - 7.2.8-1
a247fe
- update to 7.2.8
a247fe
a247fe
* Tue Jul 10 2018 Remi Collet <rcollet@redhat.com> - 7.2.7-1
a247fe
- update to 7.2.7 for rh-php72 collection in RHSCL 7.2
a247fe
- FPM: add getallheaders, backported from 7.3
a247fe
a247fe
* Tue Aug  8 2017 Remi Collet <rcollet@redhat.com> - 7.1.8-1
a247fe
- rebase to 7.1.8 #1465319
a247fe
- drop upstream oniguruma patch
a247fe
a247fe
* Thu Jun  8 2017 Remi Collet <rcollet@redhat.com> - 7.1.6-1
a247fe
- rebase to 7.1.6
a247fe
a247fe
* Fri Jun  2 2017 Remi Collet <rcollet@redhat.com> - 7.1.5-2
a247fe
- fix License, timelib is MIT
a247fe
- add upstream security patches for oniguruma CVE-2017-9224,
a247fe
  CVE-2017-9226, CVE-2017-9227, CVE-2017-9228, CVE-2017-9229
a247fe
a247fe
* Thu Jun  1 2017 Remi Collet <rcollet@redhat.com> - 7.1.5-1
a247fe
- update to 7.1.5 for rh-php71 in rhscl 3.0
a247fe
a247fe
* Wed Nov  2 2016 Remi Collet <rcollet@redhat.com> - 7.0.10-2
a247fe
- fix definition of php_* macros #1390885
a247fe
a247fe
* Tue Sep  6 2016 Remi Collet <rcollet@redhat.com> - 7.0.10-1
a247fe
- rebase to 7.0.10 #1365397
a247fe
- fix default include_path
a247fe
a247fe
* Thu Jul 21 2016 Remi Collet <rcollet@redhat.com> - 7.0.9-1
a247fe
- update to 7.0.9 for RHSCL 2.3
a247fe
a247fe
* Mon Feb 15 2016 Remi Collet <rcollet@redhat.com> - 5.6.5-8
a247fe
- Phar: fix segmentation fault in Phar::convertToData on
a247fe
  invalid file CVE-2015-5589
a247fe
- Phar: fix buffer overflow and stack smashing error in
a247fe
  phar_fix_filepath CVE-2015-5590
a247fe
- Phar: fix files from archive can be extracted outside of
a247fe
  destination directory using phar CVE-2015-6833
a247fe
- Phar: NULL pointer dereference in phar_get_fp_offset()
a247fe
  CVE-2015-7803
a247fe
- Phar: uninitialized pointer in phar_make_dirstream()
a247fe
  CVE-2015-7804
a247fe
- Xslt: fix NULL pointer dereference in XSLTProcessor class
a247fe
  CVE-2015-6837 CVE-2015-6838
a247fe
- Core: fix use-after-free vulnerability in session
a247fe
  deserializer CVE-2015-6835
a247fe
- Core:  fix multiple unserialization use-after-free issues
a247fe
  CVE-2015-6834
a247fe
- Spl: fix dangling pointer in the unserialization of
a247fe
  ArrayObject items CVE-2015-6832
a247fe
- Spl: fix Use After Free Vulnerability in unserialize()
a247fe
  CVE-2015-6831
a247fe
- Soap: fix type confusion in SOAP serialize_function_call()
a247fe
  CVE-2015-6836
a247fe
a247fe
* Wed Jun 10 2015 Remi Collet <rcollet@redhat.com> - 5.6.5-7
a247fe
- fix more functions accept paths with NUL character #1213407
a247fe
a247fe
* Tue Jun  9 2015 Remi Collet <rcollet@redhat.com> - 5.6.5-6
a247fe
- core: fix multipart/form-data request can use excessive
a247fe
  amount of CPU usage CVE-2015-4024
a247fe
- fix various functions accept paths with NUL character
a247fe
  CVE-2015-4025, CVE-2015-4026, #1213407
a247fe
- fileinfo: fix denial of service when processing a crafted
a247fe
  file #1213442
a247fe
- ftp: fix integer overflow leading to heap overflow when
a247fe
  reading FTP file listing CVE-2015-4022
a247fe
- phar: fix buffer over-read in metadata parsing CVE-2015-2783
a247fe
- phar: invalid pointer free() in phar_tar_process_metadata()
a247fe
  CVE-2015-3307
a247fe
- phar: fix buffer overflow in phar_set_inode() CVE-2015-3329
a247fe
- phar: fix memory corruption in phar_parse_tarfile caused by
a247fe
  empty entry file name CVE-2015-4021
a247fe
- pgsql: fix NULL pointer dereference CVE-2015-1352
a247fe
- soap: fix type confusion through unserialize #1222538
a247fe
- apache2handler: fix pipelined request executed in deinitialized
a247fe
  interpreter under httpd 2.4 CVE-2015-3330
a247fe
a247fe
* Fri Apr 17 2015 Remi Collet <rcollet@redhat.com> - 5.6.5-5
a247fe
- mod_php: filter libphp5.so out of provides #1212726
a247fe
- fpm: fix incorrect selinux contexts #1194337
a247fe
a247fe
* Wed Apr 15 2015 Remi Collet <rcollet@redhat.com> - 5.6.5-4
a247fe
- core: fix use-after-free vulnerability in the
a247fe
  process_nested_data function (unserialize) CVE-2015-2787
a247fe
- core: fix NUL byte injection in file name argument of
a247fe
  move_uploaded_file() CVE-2015-2348
a247fe
- date: fix use after free vulnerability in unserialize()
a247fe
  with DateTimeZone CVE-2015-0273
a247fe
- enchant: fix  heap buffer overflow in
a247fe
  enchant_broker_request_dict() CVE-2014-9705
a247fe
- ereg: fix heap overflow in regcomp() CVE-2015-2305
a247fe
- opcache: fix use after free CVE-2015-1351
a247fe
- phar: fix use after free in phar_object.c CVE-2015-2301
a247fe
- pgsql: fix NULL pointer dereference CVE-2015-1352
a247fe
- soap: fix type confusion through unserialize #1204868
a247fe
- zip: integer overflow when processing ZIP archives CVE-2015-2331
a247fe
a247fe
* Mon Mar 16 2015 Remi Collet <rcollet@redhat.com> 5.6.5-3
a247fe
- rebuild to remove scls directory #1200056
a247fe
a247fe
* Wed Jan 28 2015 Remi Collet <rcollet@redhat.com> 5.6.5-2
a247fe
- fix unowned dir in register.content
a247fe
a247fe
* Mon Jan 26 2015 Remi Collet <rcollet@redhat.com> 5.6.5-1
a247fe
- Update to 5.6.5
a247fe
  http://www.php.net/releases/5_6_5.php
a247fe
- FPM: enable ACL for Unix Domain Socket
a247fe
- Embdded: filter requires for libphp5-5.6.so
a247fe
- add register.content
a247fe
a247fe
* Tue Jan 20 2015 Remi Collet <rcollet@redhat.com> 5.6.4-1
a247fe
- standard build
a247fe
- fix php-fpm.service.d location
a247fe
a247fe
* Wed Jan 14 2015 Remi Collet <rcollet@redhat.com> 5.6.4-0
a247fe
- initial package for rh-php56 in RHSCL-2.0
a247fe
- bootstrap build
a247fe
a247fe
* Wed Dec 17 2014 Remi Collet <remi@fedoraproject.org> 5.6.4-2
a247fe
- Update to 5.6.4
a247fe
  http://www.php.net/releases/5_6_4.php
a247fe
- add sybase_ct extension (in mssql sub-package)
a247fe
- xmlrpc requires xml
a247fe
a247fe
* Wed Dec 10 2014 Remi Collet <remi@fedoraproject.org> 5.6.4-1
a247fe
- Update to 5.6.4
a247fe
  http://www.php.net/releases/5_6_4.php
a247fe
a247fe
* Thu Nov 27 2014 Remi Collet <remi@fedoraproject.org> 5.6.4-0.1.RC1
a247fe
- update to 5.6.4RC1
a247fe
a247fe
* Wed Nov 26 2014 Remi Collet <remi@fedoraproject.org> 5.6.3-3
a247fe
- add embedded sub package
a247fe
- filter all libraries to avoid provides
a247fe
a247fe
* Sun Nov 16 2014 Remi Collet <remi@fedoraproject.org> 5.6.3-2
a247fe
- FPM: add upstream patch for https://bugs.php.net/68421
a247fe
  access.format=R doesn't log ipv6 address
a247fe
- FPM: add upstream patch for https://bugs.php.net/68420
a247fe
  listen=9000 listens to ipv6 localhost instead of all addresses
a247fe
- FPM: add upstream patch for https://bugs.php.net/68423
a247fe
  will no longer load all pools
a247fe
a247fe
* Thu Nov 13 2014 Remi Collet <remi@fedoraproject.org> 5.6.3-1
a247fe
- Update to PHP 5.6.3
a247fe
  http://php.net/releases/5_6_3.php
a247fe
a247fe
* Sun Nov  2 2014 Remi Collet <remi@fedoraproject.org> 5.6.3-0.1.RC1
a247fe
- update to 5.6.3RC1
a247fe
- new version of systzdata patch, fix case sensitivity
a247fe
- ignore Factory in date tests
a247fe
- disable opcache.fast_shutdown in default config
a247fe
- add php56-cgi command in base system
a247fe
a247fe
* Thu Oct 16 2014 Remi Collet <remi@fedoraproject.org> 5.6.2-1
a247fe
- Update to PHP 5.6.2
a247fe
  http://php.net/releases/5_6_2.php
a247fe
a247fe
* Fri Oct  3 2014 Remi Collet <remi@fedoraproject.org> 5.6.1-1
a247fe
- Update to PHP 5.6.1
a247fe
  http://php.net/releases/5_6_1.php
a247fe
- use default system cipher list by Fedora policy
a247fe
  http://fedoraproject.org/wiki/Changes/CryptoPolicy
a247fe
- add system php library to default include_path
a247fe
a247fe
* Fri Aug 29 2014 Remi Collet <remi@fedoraproject.org> 5.6.0-1.1
a247fe
- enable libvpx on EL 6 (with libvpx 1.3.0)
a247fe
- add php56-phpdbg command in base system
a247fe
a247fe
* Thu Aug 28 2014 Remi Collet <remi@fedoraproject.org> 5.6.0-1
a247fe
- PHP 5.6.0 is GA
a247fe
- add lsphp56 command in base system
a247fe
a247fe
* Sun Aug 24 2014 Remi Collet <rcollet@redhat.com> - 5.6.0-0.1.RC4
a247fe
- initial spec for PHP 5.6 as Software Collection
a247fe
- adapted from php 5.6 spec file from remi repository
a247fe
- adapted from php 5.5 spec file from rhscl 1.1
a247fe
a247fe
* Tue May 13 2014 Remi Collet <rcollet@redhat.com> - 5.5.6-10
a247fe
- fileinfo: fix out-of-bounds memory access CVE-2014-2270
a247fe
- fileinfo: fix extensive backtracking CVE-2013-7345
a247fe
a247fe
* Fri Mar 21 2014 Remi Collet <rcollet@redhat.com> - 5.5.6-9
a247fe
- gd: fix NULL deref in imagecrop CVE-2013-7327
a247fe
- gd: drop vpx support, fix huge memory consumption #1075201
a247fe
a247fe
* Fri Feb 21 2014 Remi Collet <rcollet@redhat.com> - 5.5.6-8
a247fe
- fix patch name
a247fe
- fix memory leak introduce in patch for CVE-2014-1943
a247fe
- fix heap-based buffer over-read in DateInterval CVE-2013-6712
a247fe
a247fe
* Wed Feb 19 2014 Remi Collet <rcollet@redhat.com> - 5.5.6-7
a247fe
- fix infinite recursion in fileinfo CVE-2014-1943
a247fe
a247fe
* Fri Feb 14 2014 Remi Collet <rcollet@redhat.com> - 5.5.6-6
a247fe
- fix heap overflow vulnerability in imagecrop CVE-2013-7226
a247fe
a247fe
* Tue Feb  4 2014 Remi Collet <rcollet@redhat.com> - 5.5.6-5
a247fe
- allow multiple paths in ini_scan_dir #1058161
a247fe
a247fe
* Fri Dec  6 2013 Remi Collet <rcollet@redhat.com> - 5.5.6-4
a247fe
- add security fix for CVE-2013-6420
a247fe
a247fe
* Tue Nov 19 2013 Remi Collet <rcollet@redhat.com> 5.5.6-2
a247fe
- rebuild with test enabled
a247fe
- add dependency on php-pecl-jsonc
a247fe
a247fe
* Tue Nov 19 2013 Remi Collet <rcollet@redhat.com> 5.5.6-0
a247fe
- update to PHP 5.5.6
a247fe
- buildstrap build
a247fe
a247fe
* Thu Oct 17 2013 Remi Collet <rcollet@redhat.com> 5.5.5-1
a247fe
- update to PHP 5.5.5
a247fe
- mod_php only for httpd24
a247fe
a247fe
* Thu Sep 19 2013 Remi Collet <rcollet@redhat.com> 5.5.4-1
a247fe
- update to PHP 5.5.4
a247fe
- improve security, use specific soap.wsdl_cache_dir
a247fe
  use /var/lib/php/wsdlcache for mod_php and php-fpm
a247fe
- sync short_tag comments in php.ini with upstream
a247fe
- relocate RPM macro
a247fe
a247fe
* Wed Aug 21 2013 Remi Collet <rcollet@redhat.com> 5.5.3-1
a247fe
- update to PHP 5.5.3
a247fe
- improve system libzip patch
a247fe
- fix typo and add missing entries in php.ini
a247fe
a247fe
* Fri Aug  2 2013 Remi Collet <rcollet@redhat.com> 5.5.1-1
a247fe
- update to PHP 5.5.1 for php55 SCL
a247fe
a247fe
* Mon Jul 29 2013 Remi Collet <rcollet@redhat.com> 5.4.16-6
a247fe
- rebuild for new httpd-mmn value
a247fe
a247fe
* Mon Jul 29 2013 Remi Collet <rcollet@redhat.com> 5.4.16-5
a247fe
- remove ZTS conditional stuf for ligibility
a247fe
- add mod_php for apache 2.4 (from httpd24 collection)
a247fe
a247fe
* Thu Jul 18 2013 Remi Collet <rcollet@redhat.com> 5.4.16-4
a247fe
- improve mod_php, pgsql and ldap description
a247fe
- add missing man pages (phar, php-cgi)
a247fe
- add provides php(pdo-abi) for consistency with php(api) and php(zend-abi)
a247fe
- use %%__isa_bits instead of %%__isa in ABI suffix #985350
a247fe
a247fe
* Fri Jul 12 2013 Remi Collet <rcollet@redhat.com> - 5.4.16-3
a247fe
- add security fix for CVE-2013-4113
a247fe
- add missing ASL 1.0 license
a247fe
a247fe
* Fri Jun  7 2013 Remi Collet <rcollet@redhat.com> 5.4.16-2
a247fe
- run tests during build
a247fe
a247fe
* Fri Jun  7 2013 Remi Collet <rcollet@redhat.com> 5.4.16-1
a247fe
- rebase to 5.4.16
a247fe
- fix hang in FindTishriMolad(), #965144
a247fe
- patch for upstream Bug #64915 error_log ignored when daemonize=0
a247fe
- patch for upstream Bug #64949 Buffer overflow in _pdo_pgsql_error, #969103
a247fe
- patch for upstream bug #64960 Segfault in gc_zval_possible_root
a247fe
a247fe
* Thu May 23 2013 Remi Collet <rcollet@redhat.com> 5.4.14-3
a247fe
- remove wrappers in /usr/bin (#966407)
a247fe
a247fe
* Thu Apr 25 2013 Remi Collet <rcollet@redhat.com> 5.4.14-2
a247fe
- rebuild for libjpeg (instead of libjpeg_turbo)
a247fe
- fix unowned dir %%{_datadir}/fpm and %%{_libdir}/httpd (#956221)
a247fe
a247fe
* Thu Apr 11 2013 Remi Collet <rcollet@redhat.com> 5.4.14-1
a247fe
- update to 5.4.14
a247fe
- clean old deprecated options
a247fe
a247fe
* Wed Mar 13 2013 Remi Collet <rcollet@redhat.com> 5.4.13-1
a247fe
- update to 5.4.13
a247fe
- security fixes for CVE-2013-1635 and CVE-2013-1643
a247fe
- make php-mysql package optional (and disabled)
a247fe
- make ZTS build optional (and disabled)
a247fe
- always try to load mod_php (apache warning is usefull)
a247fe
- Hardened build (links with -z now option)
a247fe
- Remove %%config from /etc/rpm/macros.php
a247fe
a247fe
* Wed Jan 16 2013 Remi Collet <rcollet@redhat.com> 5.4.11-1
a247fe
- update to 5.4.11
a247fe
- fix php.conf to allow MultiViews managed by php scripts
a247fe
a247fe
* Wed Dec 19 2012 Remi Collet <rcollet@redhat.com> 5.4.10-1
a247fe
- update to 5.4.10
a247fe
- remove patches merged upstream
a247fe
- drop "Configure Command" from phpinfo output
a247fe
- prevent php_config.h changes across (otherwise identical)
a247fe
  rebuilds
a247fe
a247fe
a247fe
* Thu Nov 22 2012 Remi Collet <rcollet@redhat.com> 5.4.9-1
a247fe
- update to 5.4.9
a247fe
a247fe
* Mon Nov 19 2012 Remi Collet <rcollet@redhat.com> 5.4.8-7
a247fe
- fix php.conf
a247fe
a247fe
* Mon Nov 19 2012 Remi Collet <rcollet@redhat.com> 5.4.8-6
a247fe
- filter private shared in _httpd_modir
a247fe
- improve system libzip patch to use pkg-config
a247fe
- use _httpd_contentdir macro and fix php.gif path
a247fe
- switch back to upstream generated scanner/parser
a247fe
- use system pcre only when recent enough
a247fe
a247fe
* Fri Nov 16 2012 Remi Collet <rcollet@redhat.com> 5.4.8-5
a247fe
- improves php.conf, no need to be relocated
a247fe
a247fe
* Fri Nov  9 2012 Remi Collet <rcollet@redhat.com> 5.4.8-6
a247fe
- clarify Licenses
a247fe
- missing provides xmlreader and xmlwriter
a247fe
- change php embedded library soname version to 5.4
a247fe
a247fe
* Mon Nov  5 2012 Remi Collet <rcollet@redhat.com> 5.4.8-4
a247fe
- fix mysql_sock macro definition
a247fe
a247fe
* Thu Oct 25 2012 Remi Collet <rcollet@redhat.com> 5.4.8-4
a247fe
- fix standard build (non scl)
a247fe
a247fe
* Thu Oct 25 2012 Remi Collet <rcollet@redhat.com> 5.4.8-3
a247fe
- fix installed headers
a247fe
a247fe
* Tue Oct 23 2012 Joe Orton <jorton@redhat.com> - 5.4.8-2
a247fe
- use libldap_r for ldap extension
a247fe
a247fe
* Tue Oct 23 2012 Remi Collet <rcollet@redhat.com> 5.4.8-3
a247fe
- add missing scl_prefix in some provides/requires
a247fe
a247fe
* Tue Oct 23 2012 Remi Collet <rcollet@redhat.com> 5.4.8-2.1
a247fe
- make php-enchant optionnal, not available on RHEL-5
a247fe
- make php-recode optionnal, not available on RHEL-5
a247fe
- disable t1lib on RHEL-5
a247fe
a247fe
* Tue Oct 23 2012 Remi Collet <rcollet@redhat.com> 5.4.8-2
a247fe
- enable tidy on RHEL-6 only
a247fe
- re-enable unit tests
a247fe
a247fe
* Tue Oct 23 2012 Remi Collet <rcollet@redhat.com> 5.4.8-1.2
a247fe
- minor macro fixes for RHEL-5 build
a247fe
- update autotools workaround for RHEL-5
a247fe
- use readline when libedit not available (RHEL-5)
a247fe
a247fe
* Mon Oct 22 2012 Remi Collet <rcollet@redhat.com> 5.4.8-1
a247fe
- update to 5.4.8
a247fe
- define both session.save_handler and session.save_path
a247fe
- fix possible segfault in libxml (#828526)
a247fe
- use SKIP_ONLINE_TEST during make test
a247fe
- php-devel requires pcre-devel and php-cli (instead of php)
a247fe
- provides php-phar
a247fe
- update systzdata patch to v10, timezone are case insensitive
a247fe
a247fe
* Mon Oct 15 2012 Remi Collet <rcollet@redhat.com> 5.4.7-4
a247fe
- php-fpm: create apache user if needed
a247fe
- php-cli: provides cli command in standard root (scl)
a247fe
a247fe
* Fri Oct 12 2012 Remi Collet <rcollet@redhat.com> 5.4.7-3
a247fe
- add configtest option to init script
a247fe
- test configuration before service reload
a247fe
- fix php-fpm service relocation
a247fe
- fix php-fpm config relocation
a247fe
- drop embdded subpackage for scl
a247fe
a247fe
* Wed Oct  3 2012 Remi Collet <rcollet@redhat.com> 5.4.7-2
a247fe
- missing requires on scl-runtime
a247fe
- relocate /var/lib/session
a247fe
- fix php-devel requires
a247fe
- rename, but don't relocate macros.php
a247fe
a247fe
* Tue Oct  2 2012 Remi Collet <rcollet@redhat.com> 5.4.7-1
a247fe
- initial spec rewrite for scl build
a247fe
a247fe
* Mon Oct  1 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-10
a247fe
- fix typo in systemd macro
a247fe
a247fe
* Mon Oct  1 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-9
a247fe
- php-fpm: enable PrivateTmp
a247fe
- php-fpm: new systemd macros (#850268)
a247fe
- php-fpm: add upstream patch for startup issue (#846858)
a247fe
a247fe
* Fri Sep 28 2012 Remi Collet <rcollet@redhat.com> 5.4.7-8
a247fe
- systemd integration, https://bugs.php.net/63085
a247fe
- no odbc call during timeout, https://bugs.php.net/63171
a247fe
- check sqlite3_column_table_name, https://bugs.php.net/63149
a247fe
a247fe
* Mon Sep 24 2012 Remi Collet <rcollet@redhat.com> 5.4.7-7
a247fe
- most failed tests explained (i386, x86_64)
a247fe
a247fe
* Wed Sep 19 2012 Remi Collet <rcollet@redhat.com> 5.4.7-6
a247fe
- fix for http://bugs.php.net/63126 (#783967)
a247fe
a247fe
* Wed Sep 19 2012 Remi Collet <rcollet@redhat.com> 5.4.7-5
a247fe
- patch to ensure we use latest libdb (not libdb4)
a247fe
a247fe
* Wed Sep 19 2012 Remi Collet <rcollet@redhat.com> 5.4.7-4
a247fe
- really fix rhel tests (use libzip and libdb)
a247fe
a247fe
* Tue Sep 18 2012 Remi Collet <rcollet@redhat.com> 5.4.7-3
a247fe
- fix test to enable zip extension on RHEL-7
a247fe
a247fe
* Mon Sep 17 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-2
a247fe
- remove session.save_path from php.ini
a247fe
  move it to apache and php-fpm configuration files
a247fe
a247fe
* Fri Sep 14 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-1
a247fe
- update to 5.4.7
a247fe
  http://www.php.net/releases/5_4_7.php
a247fe
- php-fpm: don't daemonize
a247fe
a247fe
* Mon Aug 20 2012 Remi Collet <remi@fedoraproject.org> 5.4.6-2
a247fe
- enable php-fpm on secondary arch (#849490)
a247fe
a247fe
* Fri Aug 17 2012 Remi Collet <remi@fedoraproject.org> 5.4.6-1
a247fe
- update to 5.4.6
a247fe
- update to v9 of systzdata patch
a247fe
- backport fix for new libxml
a247fe
a247fe
* Fri Jul 20 2012 Remi Collet <remi@fedoraproject.org> 5.4.5-1
a247fe
- update to 5.4.5
a247fe
a247fe
* Mon Jul 02 2012 Remi Collet <remi@fedoraproject.org> 5.4.4-4
a247fe
- also provide php(language)%%{_isa}
a247fe
- define %%{php_version}
a247fe
a247fe
* Mon Jul 02 2012 Remi Collet <remi@fedoraproject.org> 5.4.4-3
a247fe
- drop BR for libevent (#835671)
a247fe
- provide php(language) to allow version check
a247fe
a247fe
* Thu Jun 21 2012 Remi Collet <remi@fedoraproject.org> 5.4.4-2
a247fe
- add missing provides (core, ereg, filter, standard)
a247fe
a247fe
* Thu Jun 14 2012 Remi Collet <remi@fedoraproject.org> 5.4.4-1
a247fe
- update to 5.4.4 (CVE-2012-2143, CVE-2012-2386)
a247fe
- use /usr/lib/tmpfiles.d instead of /etc/tmpfiles.d
a247fe
- use /run/php-fpm instead of /var/run/php-fpm
a247fe
a247fe
* Wed May 09 2012 Remi Collet <remi@fedoraproject.org> 5.4.3-1
a247fe
- update to 5.4.3 (CVE-2012-2311, CVE-2012-2329)
a247fe
a247fe
* Thu May 03 2012 Remi Collet <remi@fedoraproject.org> 5.4.2-1
a247fe
- update to 5.4.2 (CVE-2012-1823)
a247fe
a247fe
* Fri Apr 27 2012 Remi Collet <remi@fedoraproject.org> 5.4.1-1
a247fe
- update to 5.4.1
a247fe
a247fe
* Wed Apr 25 2012 Joe Orton <jorton@redhat.com> - 5.4.0-6
a247fe
- rebuild for new icu
a247fe
- switch (conditionally) to libdb-devel
a247fe
a247fe
* Sat Mar 31 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-5
a247fe
- fix Loadmodule with MPM event (use ZTS if not MPM worker)
a247fe
- split conf.d/php.conf + conf.modules.d/10-php.conf with httpd 2.4
a247fe
a247fe
* Thu Mar 29 2012 Joe Orton <jorton@redhat.com> - 5.4.0-4
a247fe
- rebuild for missing automatic provides (#807889)
a247fe
a247fe
* Mon Mar 26 2012 Joe Orton <jorton@redhat.com> - 5.4.0-3
a247fe
- really use _httpd_mmn
a247fe
a247fe
* Mon Mar 26 2012 Joe Orton <jorton@redhat.com> - 5.4.0-2
a247fe
- rebuild against httpd 2.4
a247fe
- use _httpd_mmn, _httpd_apxs macros
a247fe
a247fe
* Fri Mar 02 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-1
a247fe
- update to PHP 5.4.0 finale
a247fe
a247fe
* Sat Feb 18 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-0.4.RC8
a247fe
- update to PHP 5.4.0RC8
a247fe
a247fe
* Sat Feb 04 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-0.3.RC7
a247fe
- update to PHP 5.4.0RC7
a247fe
- provides env file for php-fpm (#784770)
a247fe
- add patch to use system libzip (thanks to spot)
a247fe
- don't provide INSTALL file
a247fe
a247fe
* Wed Jan 25 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-0.2.RC6
a247fe
- all binaries in /usr/bin with zts prefix
a247fe
a247fe
* Wed Jan 18 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-0.1.RC6
a247fe
- update to PHP 5.4.0RC6
a247fe
  https://fedoraproject.org/wiki/Features/Php54
a247fe
a247fe
* Sun Jan 08 2012 Remi Collet <remi@fedoraproject.org> 5.3.8-4.4
a247fe
- fix systemd unit
a247fe
a247fe
* Mon Dec 12 2011 Remi Collet <remi@fedoraproject.org> 5.3.8-4.3
a247fe
- switch to systemd
a247fe
a247fe
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 5.3.8-4.2
a247fe
- Rebuild for new libpng
a247fe
a247fe
* Wed Oct 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 5.3.8-3.2
a247fe
- rebuild with new gmp without compat lib
a247fe
a247fe
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 5.3.8-3.1
a247fe
- rebuild with new gmp
a247fe
a247fe
* Wed Sep 28 2011 Remi Collet <remi@fedoraproject.org> 5.3.8-3
a247fe
- revert is_a() to php <= 5.3.6 behavior (from upstream)
a247fe
  with new option (allow_string) for new behavior
a247fe
a247fe
* Tue Sep 13 2011 Remi Collet <remi@fedoraproject.org> 5.3.8-2
a247fe
- add mysqlnd sub-package
a247fe
- drop patch4, use --libdir to use /usr/lib*/php/build
a247fe
- add patch to redirect mysql.sock (in mysqlnd)
a247fe
a247fe
* Tue Aug 23 2011 Remi Collet <remi@fedoraproject.org> 5.3.8-1
a247fe
- update to 5.3.8
a247fe
  http://www.php.net/ChangeLog-5.php#5.3.8
a247fe
a247fe
* Thu Aug 18 2011 Remi Collet <remi@fedoraproject.org> 5.3.7-1
a247fe
- update to 5.3.7
a247fe
  http://www.php.net/ChangeLog-5.php#5.3.7
a247fe
- merge php-zts into php (#698084)
a247fe
a247fe
* Tue Jul 12 2011 Joe Orton <jorton@redhat.com> - 5.3.6-4
a247fe
- rebuild for net-snmp SONAME bump
a247fe
a247fe
* Mon Apr  4 2011 Remi Collet <Fedora@famillecollet.com> 5.3.6-3
a247fe
- enable mhash extension (emulated by hash extension)
a247fe
a247fe
* Wed Mar 23 2011 Remi Collet <Fedora@famillecollet.com> 5.3.6-2
a247fe
- rebuild for new MySQL client library
a247fe
a247fe
* Thu Mar 17 2011 Remi Collet <Fedora@famillecollet.com> 5.3.6-1
a247fe
- update to 5.3.6
a247fe
  http://www.php.net/ChangeLog-5.php#5.3.6
a247fe
- fix php-pdo arch specific requires
a247fe
a247fe
* Tue Mar 15 2011 Joe Orton <jorton@redhat.com> - 5.3.5-6
a247fe
- disable zip extension per "No Bundled Libraries" policy (#551513)
a247fe
a247fe
* Mon Mar 07 2011 Caolán McNamara <caolanm@redhat.com> 5.3.5-5
a247fe
- rebuild for icu 4.6
a247fe
a247fe
* Mon Feb 28 2011 Remi Collet <Fedora@famillecollet.com> 5.3.5-4
a247fe
- fix systemd-units requires
a247fe
a247fe
* Thu Feb 24 2011 Remi Collet <Fedora@famillecollet.com> 5.3.5-3
a247fe
- add tmpfiles.d configuration for php-fpm
a247fe
- add Arch specific requires/provides
a247fe
a247fe
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.5-2
a247fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a247fe
a247fe
* Fri Jan 07 2011 Remi Collet <Fedora@famillecollet.com> 5.3.5-1
a247fe
- update to 5.3.5
a247fe
  http://www.php.net/ChangeLog-5.php#5.3.5
a247fe
- clean duplicate configure options
a247fe
a247fe
* Tue Dec 28 2010 Remi Collet <rpms@famillecollet.com> 5.3.4-2
a247fe
- rebuild against MySQL 5.5.8
a247fe
- remove all RPM_SOURCE_DIR
a247fe
a247fe
* Sun Dec 12 2010 Remi Collet <rpms@famillecollet.com> 5.3.4-1.1
a247fe
- security patch from upstream for #660517
a247fe
a247fe
* Sat Dec 11 2010 Remi Collet <Fedora@famillecollet.com> 5.3.4-1
a247fe
- update to 5.3.4
a247fe
  http://www.php.net/ChangeLog-5.php#5.3.4
a247fe
- move phpize to php-cli (see #657812)
a247fe
a247fe
* Wed Dec  1 2010 Remi Collet <Fedora@famillecollet.com> 5.3.3-5
a247fe
- ghost /var/run/php-fpm (see #656660)
a247fe
- add filter_setup to not provides extensions as .so
a247fe
a247fe
* Mon Nov  1 2010 Joe Orton <jorton@redhat.com> - 5.3.3-4
a247fe
- use mysql_config in libdir directly to avoid biarch build failures
a247fe
a247fe
* Fri Oct 29 2010 Joe Orton <jorton@redhat.com> - 5.3.3-3
a247fe
- rebuild for new net-snmp
a247fe
a247fe
* Sun Oct 10 2010 Remi Collet <Fedora@famillecollet.com> 5.3.3-2
a247fe
- add php-fpm sub-package
a247fe
a247fe
* Thu Jul 22 2010 Remi Collet <Fedora@famillecollet.com> 5.3.3-1
a247fe
- PHP 5.3.3 released
a247fe
a247fe
* Fri Apr 30 2010 Remi Collet <Fedora@famillecollet.com> 5.3.2-3
a247fe
- garbage collector upstream  patches (#580236)
a247fe
a247fe
* Fri Apr 02 2010 Caolán McNamara <caolanm@redhat.com> 5.3.2-2
a247fe
- rebuild for icu 4.4
a247fe
a247fe
* Sat Mar 06 2010 Remi Collet <Fedora@famillecollet.com> 5.3.2-1
a247fe
- PHP 5.3.2 Released!
a247fe
- remove mime_magic option (now provided by fileinfo, by emu)
a247fe
- add patch for http://bugs.php.net/50578
a247fe
- remove patch for libedit (upstream)
a247fe
- add runselftest option to allow build without test suite
a247fe
a247fe
* Fri Nov 27 2009 Joe Orton <jorton@redhat.com> - 5.3.1-3
a247fe
- update to v7 of systzdata patch
a247fe
a247fe
* Wed Nov 25 2009 Joe Orton <jorton@redhat.com> - 5.3.1-2
a247fe
- fix build with autoconf 2.6x
a247fe
a247fe
* Fri Nov 20 2009 Remi Collet <Fedora@famillecollet.com> 5.3.1-1
a247fe
- update to 5.3.1
a247fe
- remove openssl patch (merged upstream)
a247fe
- add provides for php-pecl-json
a247fe
- add prod/devel php.ini in doc
a247fe
a247fe
* Tue Nov 17 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 5.3.0-7
a247fe
- use libedit instead of readline to resolve licensing issues
a247fe
a247fe
* Tue Aug 25 2009 Tomas Mraz <tmraz@redhat.com> - 5.3.0-6
a247fe
- rebuilt with new openssl
a247fe
a247fe
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-5
a247fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a247fe
a247fe
* Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-4
a247fe
- rediff systzdata patch
a247fe
a247fe
* Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-3
a247fe
- update to v6 of systzdata patch; various fixes
a247fe
a247fe
* Tue Jul 14 2009 Joe Orton <jorton@redhat.com> 5.3.0-2
a247fe
- update to v5 of systzdata patch; parses zone.tab and extracts
a247fe
  timezone->{country-code,long/lat,comment} mapping table
a247fe
a247fe
* Sun Jul 12 2009 Remi Collet <Fedora@famillecollet.com> 5.3.0-1
a247fe
- update to 5.3.0
a247fe
- remove ncurses, dbase, mhash extensions
a247fe
- add enchant, sqlite3, intl, phar, fileinfo extensions
a247fe
- raise sqlite version to 3.6.0 (for sqlite3, build with --enable-load-extension)
a247fe
- sync with upstream "production" php.ini
a247fe
a247fe
* Sun Jun 21 2009 Remi Collet <Fedora@famillecollet.com> 5.2.10-1
a247fe
- update to 5.2.10
a247fe
- add interbase sub-package
a247fe
a247fe
* Sat Feb 28 2009 Remi Collet <Fedora@FamilleCollet.com> - 5.2.9-1
a247fe
- update to 5.2.9
a247fe
a247fe
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.8-10
a247fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a247fe
a247fe
* Thu Feb  5 2009 Joe Orton <jorton@redhat.com> 5.2.8-9
a247fe
- add recode support, -recode subpackage (#106755)
a247fe
- add -zts subpackage with ZTS-enabled build of httpd SAPI
a247fe
- adjust php.conf to use -zts SAPI build for worker MPM
a247fe
a247fe
* Wed Feb  4 2009 Joe Orton <jorton@redhat.com> 5.2.8-8
a247fe
- fix patch fuzz, renumber patches
a247fe
a247fe
* Wed Feb  4 2009 Joe Orton <jorton@redhat.com> 5.2.8-7
a247fe
- drop obsolete configure args
a247fe
- drop -odbc patch (#483690)
a247fe
a247fe
* Mon Jan 26 2009 Joe Orton <jorton@redhat.com> 5.2.8-5
a247fe
- split out sysvshm, sysvsem, sysvmsg, posix into php-process
a247fe
a247fe
* Sun Jan 25 2009 Joe Orton <jorton@redhat.com> 5.2.8-4
a247fe
- move wddx to php-xml, build curl shared in -common
a247fe
- remove BR for expat-devel, bogus configure option
a247fe
a247fe
* Fri Jan 23 2009 Joe Orton <jorton@redhat.com> 5.2.8-3
a247fe
- rebuild for new MySQL
a247fe
a247fe
* Sat Dec 13 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.8-2
a247fe
- libtool 2 workaround for phpize (#476004)
a247fe
- add missing php_embed.h (#457777)
a247fe
a247fe
* Tue Dec 09 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.8-1
a247fe
- update to 5.2.8
a247fe
a247fe
* Sat Dec 06 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.7-1.1
a247fe
- libtool 2 workaround
a247fe
a247fe
* Fri Dec 05 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.7-1
a247fe
- update to 5.2.7
a247fe
- enable pdo_dblib driver in php-mssql
a247fe
a247fe
* Mon Nov 24 2008 Joe Orton <jorton@redhat.com> 5.2.6-7
a247fe
- tweak Summary, thanks to Richard Hughes
a247fe
a247fe
* Tue Nov  4 2008 Joe Orton <jorton@redhat.com> 5.2.6-6
a247fe
- move gd_README to php-gd
a247fe
- update to r4 of systzdata patch; introduces a default timezone
a247fe
  name of "System/Localtime", which uses /etc/localtime (#469532)
a247fe
a247fe
* Sat Sep 13 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.6-5
a247fe
- enable XPM support in php-gd
a247fe
- Fix BR for php-gd
a247fe
a247fe
* Sun Jul 20 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.6-4
a247fe
- enable T1lib support in php-gd
a247fe
a247fe
* Mon Jul 14 2008 Joe Orton <jorton@redhat.com> 5.2.6-3
a247fe
- update to 5.2.6
a247fe
- sync default php.ini with upstream
a247fe
- drop extension_dir from default php.ini, rely on hard-coded
a247fe
  default, to make php-common multilib-safe (#455091)
a247fe
- update to r3 of systzdata patch
a247fe
a247fe
* Thu Apr 24 2008 Joe Orton <jorton@redhat.com> 5.2.5-7
a247fe
- split pspell extension out into php-spell (#443857)
a247fe
a247fe
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.2.5-6
a247fe
- Autorebuild for GCC 4.3
a247fe
a247fe
* Fri Jan 11 2008 Joe Orton <jorton@redhat.com> 5.2.5-5
a247fe
- ext/date: use system timezone database
a247fe
a247fe
* Fri Dec 28 2007 Joe Orton <jorton@redhat.com> 5.2.5-4
a247fe
- rebuild for libc-client bump
a247fe
a247fe
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 5.2.5-3
a247fe
- Rebuild for openssl bump
a247fe
a247fe
* Wed Dec  5 2007 Joe Orton <jorton@redhat.com> 5.2.5-2
a247fe
- update to 5.2.5
a247fe
a247fe
* Mon Oct 15 2007 Joe Orton <jorton@redhat.com> 5.2.4-3
a247fe
- correct pcre BR version (#333021)
a247fe
- restore metaphone fix (#205714)
a247fe
- add READMEs to php-cli
a247fe
a247fe
* Sun Sep 16 2007 Joe Orton <jorton@redhat.com> 5.2.4-2
a247fe
- update to 5.2.4
a247fe
a247fe
* Sun Sep  2 2007 Joe Orton <jorton@redhat.com> 5.2.3-9
a247fe
- rebuild for fixed APR
a247fe
a247fe
* Tue Aug 28 2007 Joe Orton <jorton@redhat.com> 5.2.3-8
a247fe
- add ldconfig post/postun for -embedded (Hans de Goede)
a247fe
a247fe
* Fri Aug 10 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 5.2.3-7
a247fe
- add php-embedded sub-package
a247fe
a247fe
* Fri Aug 10 2007 Joe Orton <jorton@redhat.com> 5.2.3-6
a247fe
- fix build with new glibc
a247fe
- fix License
a247fe
a247fe
* Mon Jul 16 2007 Joe Orton <jorton@redhat.com> 5.2.3-5
a247fe
- define php_extdir in macros.php
a247fe
a247fe
* Mon Jul  2 2007 Joe Orton <jorton@redhat.com> 5.2.3-4
a247fe
- obsolete php-dbase
a247fe
a247fe
* Tue Jun 19 2007 Joe Orton <jorton@redhat.com> 5.2.3-3
a247fe
- add mcrypt, mhash, tidy, mssql subpackages (Dmitry Butskoy)
a247fe
- enable dbase extension and package in -common
a247fe
a247fe
* Fri Jun  8 2007 Joe Orton <jorton@redhat.com> 5.2.3-2
a247fe
- update to 5.2.3 (thanks to Jeff Sheltren)
a247fe
a247fe
* Wed May  9 2007 Joe Orton <jorton@redhat.com> 5.2.2-4
a247fe
- fix php-pdo *_arg_force_ref global symbol abuse (#216125)
a247fe
a247fe
* Tue May  8 2007 Joe Orton <jorton@redhat.com> 5.2.2-3
a247fe
- rebuild against uw-imap-devel
a247fe
a247fe
* Fri May  4 2007 Joe Orton <jorton@redhat.com> 5.2.2-2
a247fe
- update to 5.2.2
a247fe
- synch changes from upstream recommended php.ini
a247fe
a247fe
* Thu Mar 29 2007 Joe Orton <jorton@redhat.com> 5.2.1-5
a247fe
- enable SASL support in LDAP extension (#205772)
a247fe
a247fe
* Wed Mar 21 2007 Joe Orton <jorton@redhat.com> 5.2.1-4
a247fe
- drop mime_magic extension (deprecated by php-pecl-Fileinfo)
a247fe
a247fe
* Mon Feb 19 2007 Joe Orton <jorton@redhat.com> 5.2.1-3
a247fe
- fix regression in str_{i,}replace (from upstream)
a247fe
a247fe
* Thu Feb 15 2007 Joe Orton <jorton@redhat.com> 5.2.1-2
a247fe
- update to 5.2.1
a247fe
- add Requires(pre) for httpd
a247fe
- trim %%changelog to versions >= 5.0.0
a247fe
a247fe
* Thu Feb  8 2007 Joe Orton <jorton@redhat.com> 5.2.0-10
a247fe
- bump default memory_limit to 32M (#220821)
a247fe
- mark config files noreplace again (#174251)
a247fe
- drop trailing dots from Summary fields
a247fe
- use standard BuildRoot
a247fe
- drop libtool15 patch (#226294)
a247fe
a247fe
* Tue Jan 30 2007 Joe Orton <jorton@redhat.com> 5.2.0-9
a247fe
- add php(api), php(zend-abi) provides (#221302)
a247fe
- package /usr/share/php and append to default include_path (#225434)
a247fe
a247fe
* Tue Dec  5 2006 Joe Orton <jorton@redhat.com> 5.2.0-8
a247fe
- fix filter.h installation path
a247fe
- fix php-zend-abi version (Remi Collet, #212804)
a247fe
a247fe
* Tue Nov 28 2006 Joe Orton <jorton@redhat.com> 5.2.0-7
a247fe
- rebuild again
a247fe
a247fe
* Tue Nov 28 2006 Joe Orton <jorton@redhat.com> 5.2.0-6
a247fe
- rebuild for net-snmp soname bump
a247fe
a247fe
* Mon Nov 27 2006 Joe Orton <jorton@redhat.com> 5.2.0-5
a247fe
- build json and zip shared, in -common (Remi Collet, #215966)
a247fe
- obsolete php-json and php-pecl-zip
a247fe
- build readline extension into /usr/bin/php* (#210585)
a247fe
- change module subpackages to require php-common not php (#177821)
a247fe
a247fe
* Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 5.2.0-4
a247fe
- provide php-zend-abi (#212804)
a247fe
- add /etc/rpm/macros.php exporting interface versions
a247fe
- synch with upstream recommended php.ini
a247fe
a247fe
* Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 5.2.0-3
a247fe
- update to 5.2.0 (#213837)
a247fe
- php-xml provides php-domxml (#215656)
a247fe
- fix php-pdo-abi provide (#214281)
a247fe
a247fe
* Tue Oct 31 2006 Joseph Orton <jorton@redhat.com> 5.1.6-4
a247fe
- rebuild for curl soname bump
a247fe
- add build fix for curl 7.16 API
a247fe
a247fe
* Wed Oct  4 2006 Joe Orton <jorton@redhat.com> 5.1.6-3
a247fe
- from upstream: add safety checks against integer overflow in _ecalloc
a247fe
a247fe
* Tue Aug 29 2006 Joe Orton <jorton@redhat.com> 5.1.6-2
a247fe
- update to 5.1.6 (security fixes)
a247fe
- bump default memory_limit to 16M (#196802)
a247fe
a247fe
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.1.4-8.1
a247fe
- rebuild
a247fe
a247fe
* Fri Jun  9 2006 Joe Orton <jorton@redhat.com> 5.1.4-8
a247fe
- Provide php-posix (#194583)
a247fe
- only provide php-pcntl from -cli subpackage
a247fe
- add missing defattr's (thanks to Matthias Saou)
a247fe
a247fe
* Fri Jun  9 2006 Joe Orton <jorton@redhat.com> 5.1.4-7
a247fe
- move Obsoletes for php-openssl to -common (#194501)
a247fe
- Provide: php-cgi from -cli subpackage
a247fe
a247fe
* Fri Jun  2 2006 Joe Orton <jorton@redhat.com> 5.1.4-6
a247fe
- split out php-cli, php-common subpackages (#177821)
a247fe
- add php-pdo-abi version export (#193202)
a247fe
a247fe
* Wed May 24 2006 Radek Vokal <rvokal@redhat.com> 5.1.4-5.1
a247fe
- rebuilt for new libnetsnmp
a247fe
a247fe
* Thu May 18 2006 Joe Orton <jorton@redhat.com> 5.1.4-5
a247fe
- provide mod_php (#187891)
a247fe
- provide php-cli (#192196)
a247fe
- use correct LDAP fix (#181518)
a247fe
- define _GNU_SOURCE in php_config.h and leave it defined
a247fe
- drop (circular) dependency on php-pear
a247fe
a247fe
* Mon May  8 2006 Joe Orton <jorton@redhat.com> 5.1.4-3
a247fe
- update to 5.1.4
a247fe
a247fe
* Wed May  3 2006 Joe Orton <jorton@redhat.com> 5.1.3-3
a247fe
- update to 5.1.3
a247fe
a247fe
* Tue Feb 28 2006 Joe Orton <jorton@redhat.com> 5.1.2-5
a247fe
- provide php-api (#183227)
a247fe
- add provides for all builtin modules (Tim Jackson, #173804)
a247fe
- own %%{_libdir}/php/pear for PEAR packages (per #176733)
a247fe
- add obsoletes to allow upgrade from FE4 PDO packages (#181863)
a247fe
a247fe
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.1.2-4.3
a247fe
- bump again for double-long bug on ppc(64)
a247fe
a247fe
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.1.2-4.1
a247fe
- rebuilt for new gcc4.1 snapshot and glibc changes
a247fe
a247fe
* Tue Jan 31 2006 Joe Orton <jorton@redhat.com> 5.1.2-4
a247fe
- rebuild for new libc-client soname
a247fe
a247fe
* Mon Jan 16 2006 Joe Orton <jorton@redhat.com> 5.1.2-3
a247fe
- only build xmlreader and xmlwriter shared (#177810)
a247fe
a247fe
* Fri Jan 13 2006 Joe Orton <jorton@redhat.com> 5.1.2-2
a247fe
- update to 5.1.2
a247fe
a247fe
* Thu Jan  5 2006 Joe Orton <jorton@redhat.com> 5.1.1-8
a247fe
- rebuild again
a247fe
a247fe
* Mon Jan  2 2006 Joe Orton <jorton@redhat.com> 5.1.1-7
a247fe
- rebuild for new net-snmp
a247fe
a247fe
* Mon Dec 12 2005 Joe Orton <jorton@redhat.com> 5.1.1-6
a247fe
- enable short_open_tag in default php.ini again (#175381)
a247fe
a247fe
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
a247fe
- rebuilt
a247fe
a247fe
* Thu Dec  8 2005 Joe Orton <jorton@redhat.com> 5.1.1-5
a247fe
- require net-snmp for php-snmp (#174800)
a247fe
a247fe
* Sun Dec  4 2005 Joe Orton <jorton@redhat.com> 5.1.1-4
a247fe
- add /usr/share/pear back to hard-coded include_path (#174885)
a247fe
a247fe
* Fri Dec  2 2005 Joe Orton <jorton@redhat.com> 5.1.1-3
a247fe
- rebuild for httpd 2.2
a247fe
a247fe
* Mon Nov 28 2005 Joe Orton <jorton@redhat.com> 5.1.1-2
a247fe
- update to 5.1.1
a247fe
- remove pear subpackage
a247fe
- enable pdo extensions (php-pdo subpackage)
a247fe
- remove non-standard conditional module builds
a247fe
- enable xmlreader extension
a247fe
a247fe
* Thu Nov 10 2005 Tomas Mraz <tmraz@redhat.com> 5.0.5-6
a247fe
- rebuilt against new openssl
a247fe
a247fe
* Mon Nov  7 2005 Joe Orton <jorton@redhat.com> 5.0.5-5
a247fe
- pear: update to XML_RPC 1.4.4, XML_Parser 1.2.7, Mail 1.1.9 (#172528)
a247fe
a247fe
* Tue Nov  1 2005 Joe Orton <jorton@redhat.com> 5.0.5-4
a247fe
- rebuild for new libnetsnmp
a247fe
a247fe
* Wed Sep 14 2005 Joe Orton <jorton@redhat.com> 5.0.5-3
a247fe
- update to 5.0.5
a247fe
- add fix for upstream #34435
a247fe
- devel: require autoconf, automake (#159283)
a247fe
- pear: update to HTTP-1.3.6, Mail-1.1.8, Net_SMTP-1.2.7, XML_RPC-1.4.1
a247fe
- fix imagettftext et al (upstream, #161001)
a247fe
a247fe
* Thu Jun 16 2005 Joe Orton <jorton@redhat.com> 5.0.4-11
a247fe
- ldap: restore ldap_start_tls() function
a247fe
a247fe
* Fri May  6 2005 Joe Orton <jorton@redhat.com> 5.0.4-10
a247fe
- disable RPATHs in shared extensions (#156974)
a247fe
a247fe
* Tue May  3 2005 Joe Orton <jorton@redhat.com> 5.0.4-9
a247fe
- build simplexml_import_dom even with shared dom (#156434)
a247fe
- prevent truncation of copied files to ~2Mb (#155916)
a247fe
- install /usr/bin/php from CLI build alongside CGI
a247fe
- enable sysvmsg extension (#142988)
a247fe
a247fe
* Mon Apr 25 2005 Joe Orton <jorton@redhat.com> 5.0.4-8
a247fe
- prevent build of builtin dba as well as shared extension
a247fe
a247fe
* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-7
a247fe
- split out dba and bcmath extensions into subpackages
a247fe
- BuildRequire gcc-c++ to avoid AC_PROG_CXX{,CPP} failure (#155221)
a247fe
- pear: update to DB-1.7.6
a247fe
- enable FastCGI support in /usr/bin/php-cgi (#149596)
a247fe
a247fe
* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-6
a247fe
- build /usr/bin/php with the CLI SAPI, and add /usr/bin/php-cgi,
a247fe
  built with the CGI SAPI (thanks to Edward Rudd, #137704)
a247fe
- add php(1) man page for CLI
a247fe
- fix more test cases to use -n when invoking php
a247fe
a247fe
* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-5
a247fe
- rebuild for new libpq soname
a247fe
a247fe
* Tue Apr 12 2005 Joe Orton <jorton@redhat.com> 5.0.4-4
a247fe
- bundle from PEAR: HTTP, Mail, XML_Parser, Net_Socket, Net_SMTP
a247fe
- snmp: disable MSHUTDOWN function to prevent error_log noise (#153988)
a247fe
- mysqli: add fix for crash on x86_64 (Georg Richter, upstream #32282)
a247fe
a247fe
* Mon Apr 11 2005 Joe Orton <jorton@redhat.com> 5.0.4-3
a247fe
- build shared objects as PIC (#154195)
a247fe
a247fe
* Mon Apr  4 2005 Joe Orton <jorton@redhat.com> 5.0.4-2
a247fe
- fix PEAR installation and bundle PEAR DB-1.7.5 package
a247fe
a247fe
* Fri Apr  1 2005 Joe Orton <jorton@redhat.com> 5.0.4-1
a247fe
- update to 5.0.4 (#153068)
a247fe
- add .phps AddType to php.conf (#152973)
a247fe
- better gcc4 fix for libxmlrpc
a247fe
a247fe
* Wed Mar 30 2005 Joe Orton <jorton@redhat.com> 5.0.3-5
a247fe
- BuildRequire mysql-devel >= 4.1
a247fe
- don't mark php.ini as noreplace to make upgrades work (#152171)
a247fe
- fix subpackage descriptions (#152628)
a247fe
- fix memset(,,0) in Zend (thanks to Dave Jones)
a247fe
- fix various compiler warnings in Zend
a247fe
a247fe
* Thu Mar 24 2005 Joe Orton <jorton@redhat.com> 5.0.3-4
a247fe
- package mysqli extension in php-mysql
a247fe
- really enable pcntl (#142903)
a247fe
- don't build with --enable-safe-mode (#148969)
a247fe
- use "Instant Client" libraries for oci8 module (Kai Bolay, #149873)
a247fe
a247fe
* Fri Feb 18 2005 Joe Orton <jorton@redhat.com> 5.0.3-3
a247fe
- fix build with GCC 4
a247fe
a247fe
* Wed Feb  9 2005 Joe Orton <jorton@redhat.com> 5.0.3-2
a247fe
- install the ext/gd headers (#145891)
a247fe
- enable pcntl extension in /usr/bin/php (#142903)
a247fe
- add libmbfl array arithmetic fix (dcb314@hotmail.com, #143795)
a247fe
- add BuildRequire for recent pcre-devel (#147448)
a247fe
a247fe
* Wed Jan 12 2005 Joe Orton <jorton@redhat.com> 5.0.3-1
a247fe
- update to 5.0.3 (thanks to Robert Scheck et al, #143101)
a247fe
- enable xsl extension (#142174)
a247fe
- package both the xsl and dom extensions in php-xml
a247fe
- enable soap extension, shared (php-soap package) (#142901)
a247fe
- add patches from upstream 5.0 branch:
a247fe
 * Zend_strtod.c compile fixes
a247fe
 * correct php_sprintf return value usage
a247fe
a247fe
* Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 5.0.2-8
a247fe
- update for db4-4.3 (Robert Scheck, #140167)
a247fe
- build against mysql-devel
a247fe
- run tests in %%check
a247fe
a247fe
* Wed Nov 10 2004 Joe Orton <jorton@redhat.com> 5.0.2-7
a247fe
- truncate changelog at 4.3.1-1
a247fe
- merge from 4.3.x package:
a247fe
 - enable mime_magic extension and Require: file (#130276)
a247fe
a247fe
* Mon Nov  8 2004 Joe Orton <jorton@redhat.com> 5.0.2-6
a247fe
- fix dom/sqlite enable/without confusion
a247fe
a247fe
* Mon Nov  8 2004 Joe Orton <jorton@redhat.com> 5.0.2-5
a247fe
- fix phpize installation for lib64 platforms
a247fe
- add fix for segfault in variable parsing introduced in 5.0.2
a247fe
a247fe
* Mon Nov  8 2004 Joe Orton <jorton@redhat.com> 5.0.2-4
a247fe
- update to 5.0.2 (#127980)
a247fe
- build against mysqlclient10-devel
a247fe
- use new RTLD_DEEPBIND to load extension modules
a247fe
- drop explicit requirement for elfutils-devel
a247fe
- use AddHandler in default conf.d/php.conf (#135664)
a247fe
- "fix" round() fudging for recent gcc on x86
a247fe
- disable sqlite pending audit of warnings and subpackage split
a247fe
a247fe
* Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-4
a247fe
- don't build dom extension into 2.0 SAPI
a247fe
a247fe
* Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-3
a247fe
- ExclusiveArch: x86 ppc x86_64 for the moment
a247fe
a247fe
* Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-2
a247fe
- fix default extension_dir and conf.d/php.conf
a247fe
a247fe
* Thu Sep  9 2004 Joe Orton <jorton@redhat.com> 5.0.1-1
a247fe
- update to 5.0.1
a247fe
- only build shared modules once
a247fe
- put dom extension in php-dom subpackage again
a247fe
- move extension modules into %%{_libdir}/php/modules
a247fe
- don't use --with-regex=system, it's ignored for the apache* SAPIs
a247fe
a247fe
* Wed Aug 11 2004 Tom Callaway <tcallawa@redhat.com>
a247fe
- Merge in some spec file changes from Jeff Stern (jastern@uci.edu)
a247fe
a247fe
* Mon Aug 09 2004 Tom Callaway <tcallawa@redhat.com>
a247fe
- bump to 5.0.0
a247fe
- add patch to prevent clobbering struct re_registers from regex.h
a247fe
- remove domxml references, replaced with dom now built-in
a247fe
- fix php.ini to refer to php5 not php4