|
|
@ -28,9 +28,6 @@
|
|
|
|
# arch detection heuristic used by bindir/mysql_config.
|
|
|
|
# arch detection heuristic used by bindir/mysql_config.
|
|
|
|
%global mysql_config %{_libdir}/mysql/mysql_config
|
|
|
|
%global mysql_config %{_libdir}/mysql/mysql_config
|
|
|
|
|
|
|
|
|
|
|
|
# Build ZTS extension or only NTS
|
|
|
|
|
|
|
|
%global with_zts 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?__isa_bits:1}
|
|
|
|
%if 0%{?__isa_bits:1}
|
|
|
|
%global isasuffix -%{__isa_bits}
|
|
|
|
%global isasuffix -%{__isa_bits}
|
|
|
|
%else
|
|
|
|
%else
|
|
|
@ -41,27 +38,26 @@
|
|
|
|
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo 0-0)}}
|
|
|
|
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo 0-0)}}
|
|
|
|
|
|
|
|
|
|
|
|
%global with_dtrace 1
|
|
|
|
%global with_dtrace 1
|
|
|
|
|
|
|
|
|
|
|
|
# build with system libgd
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 20
|
|
|
|
|
|
|
|
%global with_libgd 0
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%global with_libgd 1
|
|
|
|
%global with_libgd 1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global with_zip 0
|
|
|
|
%global with_zip 0
|
|
|
|
%global with_libzip 0
|
|
|
|
%global with_libzip 0
|
|
|
|
# Not yet compatible with firebird 3
|
|
|
|
%if 0%{?fedora}
|
|
|
|
# https://bugs.php.net/bug.php?id=73512
|
|
|
|
%global with_zts 1
|
|
|
|
%global with_firebird 1
|
|
|
|
%global with_firebird 1
|
|
|
|
|
|
|
|
%global with_imap 1
|
|
|
|
%if 0%{?fedora} < 18 && 0%{?rhel} < 7
|
|
|
|
%global with_freetds 1
|
|
|
|
%global db_devel db4-devel
|
|
|
|
%global with_mcrypt 1
|
|
|
|
|
|
|
|
%global with_pspell 1
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%global db_devel libdb-devel
|
|
|
|
%global with_zts 0
|
|
|
|
|
|
|
|
%global with_firebird 0
|
|
|
|
|
|
|
|
%global with_imap 0
|
|
|
|
|
|
|
|
%global with_freetds 0
|
|
|
|
|
|
|
|
%global with_mcrypt 0
|
|
|
|
|
|
|
|
%global with_pspell 0
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%global upver 7.1.10
|
|
|
|
%global upver 7.1.23
|
|
|
|
#global rcver RC1
|
|
|
|
#global rcver RC1
|
|
|
|
|
|
|
|
|
|
|
|
Summary: PHP scripting language for creating dynamic web sites
|
|
|
|
Summary: PHP scripting language for creating dynamic web sites
|
|
|
@ -102,14 +98,12 @@ Patch7: php-5.3.0-recode.patch
|
|
|
|
Patch8: php-7.0.2-libdb.patch
|
|
|
|
Patch8: php-7.0.2-libdb.patch
|
|
|
|
|
|
|
|
|
|
|
|
# Functional changes
|
|
|
|
# Functional changes
|
|
|
|
Patch40: php-7.1.3-dlopen.patch
|
|
|
|
Patch40: php-7.1.16-dlopen.patch
|
|
|
|
Patch42: php-7.1.0-systzdata-v14.patch
|
|
|
|
Patch42: php-7.1.0-systzdata-v14.patch
|
|
|
|
# See http://bugs.php.net/53436
|
|
|
|
# See http://bugs.php.net/53436
|
|
|
|
Patch43: php-5.4.0-phpize.patch
|
|
|
|
Patch43: php-5.4.0-phpize.patch
|
|
|
|
# Use -lldap_r for OpenLDAP
|
|
|
|
# Use -lldap_r for OpenLDAP
|
|
|
|
Patch45: php-5.6.3-ldap_r.patch
|
|
|
|
Patch45: php-7.1.15-ldap_r.patch
|
|
|
|
# Make php_config.h constant across builds
|
|
|
|
|
|
|
|
Patch46: php-7.0.0-fixheader.patch
|
|
|
|
|
|
|
|
# drop "Configure command" from phpinfo output
|
|
|
|
# drop "Configure command" from phpinfo output
|
|
|
|
Patch47: php-5.6.3-phpinfo.patch
|
|
|
|
Patch47: php-5.6.3-phpinfo.patch
|
|
|
|
# Automatically load OpenSSL configuration file
|
|
|
|
# Automatically load OpenSSL configuration file
|
|
|
@ -134,7 +128,13 @@ BuildRequires: libstdc++-devel, openssl-devel
|
|
|
|
BuildRequires: sqlite-devel >= 3.6.0
|
|
|
|
BuildRequires: sqlite-devel >= 3.6.0
|
|
|
|
BuildRequires: zlib-devel, smtpdaemon, libedit-devel
|
|
|
|
BuildRequires: zlib-devel, smtpdaemon, libedit-devel
|
|
|
|
BuildRequires: pcre-devel >= 6.6
|
|
|
|
BuildRequires: pcre-devel >= 6.6
|
|
|
|
BuildRequires: bzip2, perl-interpreter, libtool >= 1.4.3, gcc-c++
|
|
|
|
BuildRequires: bzip2
|
|
|
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libtool-ltdl-devel
|
|
|
|
BuildRequires: libtool-ltdl-devel
|
|
|
|
%if %{with_libzip}
|
|
|
|
%if %{with_libzip}
|
|
|
|
BuildRequires: libzip-devel >= 0.11
|
|
|
|
BuildRequires: libzip-devel >= 0.11
|
|
|
@ -153,7 +153,7 @@ Provides: mod_php = %{version}-%{release}
|
|
|
|
Requires: php-common%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: php-common%{?_isa} = %{version}-%{release}
|
|
|
|
# For backwards-compatibility, require php-cli for the time being:
|
|
|
|
# For backwards-compatibility, require php-cli for the time being:
|
|
|
|
Requires: php-cli%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: php-cli%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: php-fpm%{?_isa} = %{version}-%{release}
|
|
|
|
Recommends: php-fpm%{?_isa} = %{version}-%{release}
|
|
|
|
# To ensure correct /var/lib/php/session ownership:
|
|
|
|
# To ensure correct /var/lib/php/session ownership:
|
|
|
|
Requires(pre): httpd-filesystem
|
|
|
|
Requires(pre): httpd-filesystem
|
|
|
|
# php engine for Apache httpd webserver
|
|
|
|
# php engine for Apache httpd webserver
|
|
|
@ -199,12 +199,8 @@ Summary: PHP FastCGI Process Manager
|
|
|
|
BuildRequires: libacl-devel
|
|
|
|
BuildRequires: libacl-devel
|
|
|
|
Requires: php-common%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: php-common%{?_isa} = %{version}-%{release}
|
|
|
|
Requires(pre): /usr/sbin/useradd
|
|
|
|
Requires(pre): /usr/sbin/useradd
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
Requires: systemd-units
|
|
|
|
%{?systemd_requires}
|
|
|
|
Requires(post): systemd-units
|
|
|
|
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
|
|
|
# To ensure correct /var/lib/php/session ownership:
|
|
|
|
# To ensure correct /var/lib/php/session ownership:
|
|
|
|
Requires(pre): httpd-filesystem
|
|
|
|
Requires(pre): httpd-filesystem
|
|
|
|
# For php.conf in /etc/httpd/conf.d
|
|
|
|
# For php.conf in /etc/httpd/conf.d
|
|
|
@ -273,7 +269,13 @@ package and the php-cli package.
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Files needed for building PHP extensions
|
|
|
|
Summary: Files needed for building PHP extensions
|
|
|
|
Requires: php-cli%{?_isa} = %{version}-%{release}, autoconf, automake
|
|
|
|
Requires: php-cli%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
# always needed to build extension
|
|
|
|
|
|
|
|
Requires: autoconf
|
|
|
|
|
|
|
|
Requires: automake
|
|
|
|
|
|
|
|
Requires: gcc
|
|
|
|
|
|
|
|
Requires: gcc-c++
|
|
|
|
|
|
|
|
Requires: libtool
|
|
|
|
Requires: pcre-devel%{?_isa}
|
|
|
|
Requires: pcre-devel%{?_isa}
|
|
|
|
Obsoletes: php-pecl-json-devel < %{jsonver}
|
|
|
|
Obsoletes: php-pecl-json-devel < %{jsonver}
|
|
|
|
Obsoletes: php-pecl-jsonc-devel < %{jsonver}
|
|
|
|
Obsoletes: php-pecl-jsonc-devel < %{jsonver}
|
|
|
@ -304,6 +306,7 @@ bytecode in the shared memory. This eliminates the stages of reading code from
|
|
|
|
the disk and compiling it on future access. In addition, it applies a few
|
|
|
|
the disk and compiling it on future access. In addition, it applies a few
|
|
|
|
bytecode optimization patterns that make code execution faster.
|
|
|
|
bytecode optimization patterns that make code execution faster.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_imap}
|
|
|
|
%package imap
|
|
|
|
%package imap
|
|
|
|
Summary: A module for PHP applications that use IMAP
|
|
|
|
Summary: A module for PHP applications that use IMAP
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
@ -316,6 +319,7 @@ BuildRequires: krb5-devel, openssl-devel, libc-client-devel
|
|
|
|
The php-imap module will add IMAP (Internet Message Access Protocol)
|
|
|
|
The php-imap module will add IMAP (Internet Message Access Protocol)
|
|
|
|
support to PHP. IMAP is a protocol for retrieving and uploading e-mail
|
|
|
|
support to PHP. IMAP is a protocol for retrieving and uploading e-mail
|
|
|
|
messages on mail servers. PHP is an HTML-embedded scripting language.
|
|
|
|
messages on mail servers. PHP is an HTML-embedded scripting language.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%package ldap
|
|
|
|
%package ldap
|
|
|
|
Summary: A module for PHP applications that use LDAP
|
|
|
|
Summary: A module for PHP applications that use LDAP
|
|
|
@ -581,13 +585,14 @@ Summary: A database abstraction layer module for PHP applications
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
|
# All files licensed under PHP version 3.01
|
|
|
|
# All files licensed under PHP version 3.01
|
|
|
|
License: PHP
|
|
|
|
License: PHP
|
|
|
|
BuildRequires: %{db_devel}, tokyocabinet-devel
|
|
|
|
BuildRequires: libdb-devel, tokyocabinet-devel
|
|
|
|
Requires: php-common%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: php-common%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description dba
|
|
|
|
%description dba
|
|
|
|
The php-dba package contains a dynamic shared object that will add
|
|
|
|
The php-dba package contains a dynamic shared object that will add
|
|
|
|
support for using the DBA database abstraction layer to PHP.
|
|
|
|
support for using the DBA database abstraction layer to PHP.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_mcrypt}
|
|
|
|
%package mcrypt
|
|
|
|
%package mcrypt
|
|
|
|
Summary: Standard PHP module provides mcrypt library support
|
|
|
|
Summary: Standard PHP module provides mcrypt library support
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
@ -599,6 +604,7 @@ BuildRequires: libmcrypt-devel
|
|
|
|
%description mcrypt
|
|
|
|
%description mcrypt
|
|
|
|
The php-mcrypt package contains a dynamic shared object that will add
|
|
|
|
The php-mcrypt package contains a dynamic shared object that will add
|
|
|
|
support for using the mcrypt library to PHP.
|
|
|
|
support for using the mcrypt library to PHP.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%package tidy
|
|
|
|
%package tidy
|
|
|
|
Summary: Standard PHP module provides tidy library support
|
|
|
|
Summary: Standard PHP module provides tidy library support
|
|
|
@ -612,6 +618,7 @@ BuildRequires: libtidy-devel
|
|
|
|
The php-tidy package contains a dynamic shared object that will add
|
|
|
|
The php-tidy package contains a dynamic shared object that will add
|
|
|
|
support for using the tidy library to PHP.
|
|
|
|
support for using the tidy library to PHP.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_freetds}
|
|
|
|
%package pdo-dblib
|
|
|
|
%package pdo-dblib
|
|
|
|
Summary: PDO driver Microsoft SQL Server and Sybase databases
|
|
|
|
Summary: PDO driver Microsoft SQL Server and Sybase databases
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
@ -625,6 +632,7 @@ Provides: php-pdo_dblib, php-pdo_dblib%{?_isa}
|
|
|
|
The php-pdo-dblib package contains a dynamic shared object
|
|
|
|
The php-pdo-dblib package contains a dynamic shared object
|
|
|
|
that implements the PHP Data Objects (PDO) interface to enable access from
|
|
|
|
that implements the PHP Data Objects (PDO) interface to enable access from
|
|
|
|
PHP to Microsoft SQL Server and Sybase databases through the FreeTDS libary.
|
|
|
|
PHP to Microsoft SQL Server and Sybase databases through the FreeTDS libary.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%package embedded
|
|
|
|
%package embedded
|
|
|
|
Summary: PHP library for embedding in applications
|
|
|
|
Summary: PHP library for embedding in applications
|
|
|
@ -638,6 +646,7 @@ Provides: php-embedded-devel%{?_isa} = %{version}-%{release}
|
|
|
|
The php-embedded package contains a library which can be embedded
|
|
|
|
The php-embedded package contains a library which can be embedded
|
|
|
|
into applications to provide PHP scripting language support.
|
|
|
|
into applications to provide PHP scripting language support.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_pspell}
|
|
|
|
%package pspell
|
|
|
|
%package pspell
|
|
|
|
Summary: A module for PHP applications for using pspell interfaces
|
|
|
|
Summary: A module for PHP applications for using pspell interfaces
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
@ -649,6 +658,7 @@ BuildRequires: aspell-devel >= 0.50.0
|
|
|
|
%description pspell
|
|
|
|
%description pspell
|
|
|
|
The php-pspell package contains a dynamic shared object that will add
|
|
|
|
The php-pspell package contains a dynamic shared object that will add
|
|
|
|
support for using the pspell library to PHP.
|
|
|
|
support for using the pspell library to PHP.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%package recode
|
|
|
|
%package recode
|
|
|
|
Summary: A module for PHP applications for using the recode library
|
|
|
|
Summary: A module for PHP applications for using the recode library
|
|
|
@ -720,7 +730,6 @@ support for JavaScript Object Notation (JSON) to PHP.
|
|
|
|
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
|
|
|
|
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
|
|
|
|
%patch45 -p1 -b .ldap_r
|
|
|
|
%patch45 -p1 -b .ldap_r
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%patch46 -p1 -b .fixheader
|
|
|
|
|
|
|
|
%patch47 -p1 -b .phpinfo
|
|
|
|
%patch47 -p1 -b .phpinfo
|
|
|
|
%patch48 -p1 -b .loadconf
|
|
|
|
%patch48 -p1 -b .loadconf
|
|
|
|
|
|
|
|
|
|
|
@ -830,6 +839,9 @@ sed -e '/opcache.huge_code_pages/s/0/1/' -i 10-opcache.ini
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
# Set build date from https://reproducible-builds.org/specs/source-date-epoch/
|
|
|
|
|
|
|
|
export SOURCE_DATE_EPOCH=$(date +%s -r NEWS)
|
|
|
|
|
|
|
|
|
|
|
|
# aclocal workaround - to be improved
|
|
|
|
# aclocal workaround - to be improved
|
|
|
|
cat `aclocal --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 >>aclocal.m4
|
|
|
|
cat `aclocal --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 >>aclocal.m4
|
|
|
|
|
|
|
|
|
|
|
@ -914,7 +926,9 @@ build --libdir=%{_libdir}/php \
|
|
|
|
--enable-opcache \
|
|
|
|
--enable-opcache \
|
|
|
|
--enable-opcache-file \
|
|
|
|
--enable-opcache-file \
|
|
|
|
--enable-phpdbg \
|
|
|
|
--enable-phpdbg \
|
|
|
|
|
|
|
|
%if %{with_imap}
|
|
|
|
--with-imap=shared --with-imap-ssl \
|
|
|
|
--with-imap=shared --with-imap-ssl \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
--enable-mbstring=shared \
|
|
|
|
--enable-mbstring=shared \
|
|
|
|
--enable-mbregex \
|
|
|
|
--enable-mbregex \
|
|
|
|
%if %{with_libgd}
|
|
|
|
%if %{with_libgd}
|
|
|
@ -959,7 +973,9 @@ build --libdir=%{_libdir}/php \
|
|
|
|
--with-pdo-mysql=shared,mysqlnd \
|
|
|
|
--with-pdo-mysql=shared,mysqlnd \
|
|
|
|
--with-pdo-pgsql=shared,%{_prefix} \
|
|
|
|
--with-pdo-pgsql=shared,%{_prefix} \
|
|
|
|
--with-pdo-sqlite=shared,%{_prefix} \
|
|
|
|
--with-pdo-sqlite=shared,%{_prefix} \
|
|
|
|
|
|
|
|
%if %{with_freetds}
|
|
|
|
--with-pdo-dblib=shared,%{_prefix} \
|
|
|
|
--with-pdo-dblib=shared,%{_prefix} \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
--with-sqlite3=shared,%{_prefix} \
|
|
|
|
--with-sqlite3=shared,%{_prefix} \
|
|
|
|
--enable-json=shared \
|
|
|
|
--enable-json=shared \
|
|
|
|
%if %{with_zip}
|
|
|
|
%if %{with_zip}
|
|
|
@ -970,9 +986,13 @@ build --libdir=%{_libdir}/php \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
--without-readline \
|
|
|
|
--without-readline \
|
|
|
|
--with-libedit \
|
|
|
|
--with-libedit \
|
|
|
|
|
|
|
|
%if %{with_pspell}
|
|
|
|
--with-pspell=shared \
|
|
|
|
--with-pspell=shared \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
--enable-phar=shared \
|
|
|
|
--enable-phar=shared \
|
|
|
|
|
|
|
|
%if %{with_mcrypt}
|
|
|
|
--with-mcrypt=shared,%{_prefix} \
|
|
|
|
--with-mcrypt=shared,%{_prefix} \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
--with-tidy=shared,%{_prefix} \
|
|
|
|
--with-tidy=shared,%{_prefix} \
|
|
|
|
--enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \
|
|
|
|
--enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \
|
|
|
|
--enable-shmop=shared \
|
|
|
|
--enable-shmop=shared \
|
|
|
@ -1040,7 +1060,9 @@ build --includedir=%{_includedir}/php-zts \
|
|
|
|
--enable-pcntl \
|
|
|
|
--enable-pcntl \
|
|
|
|
--enable-opcache \
|
|
|
|
--enable-opcache \
|
|
|
|
--enable-opcache-file \
|
|
|
|
--enable-opcache-file \
|
|
|
|
|
|
|
|
%if %{with_imap}
|
|
|
|
--with-imap=shared --with-imap-ssl \
|
|
|
|
--with-imap=shared --with-imap-ssl \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
--enable-mbstring=shared \
|
|
|
|
--enable-mbstring=shared \
|
|
|
|
--enable-mbregex \
|
|
|
|
--enable-mbregex \
|
|
|
|
%if %{with_libgd}
|
|
|
|
%if %{with_libgd}
|
|
|
@ -1086,7 +1108,9 @@ build --includedir=%{_includedir}/php-zts \
|
|
|
|
--with-pdo-mysql=shared,mysqlnd \
|
|
|
|
--with-pdo-mysql=shared,mysqlnd \
|
|
|
|
--with-pdo-pgsql=shared,%{_prefix} \
|
|
|
|
--with-pdo-pgsql=shared,%{_prefix} \
|
|
|
|
--with-pdo-sqlite=shared,%{_prefix} \
|
|
|
|
--with-pdo-sqlite=shared,%{_prefix} \
|
|
|
|
|
|
|
|
%if %{with_freetds}
|
|
|
|
--with-pdo-dblib=shared,%{_prefix} \
|
|
|
|
--with-pdo-dblib=shared,%{_prefix} \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
--with-sqlite3=shared,%{_prefix} \
|
|
|
|
--with-sqlite3=shared,%{_prefix} \
|
|
|
|
--enable-json=shared \
|
|
|
|
--enable-json=shared \
|
|
|
|
%if %{with_zip}
|
|
|
|
%if %{with_zip}
|
|
|
@ -1097,9 +1121,13 @@ build --includedir=%{_includedir}/php-zts \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
--without-readline \
|
|
|
|
--without-readline \
|
|
|
|
--with-libedit \
|
|
|
|
--with-libedit \
|
|
|
|
|
|
|
|
%if %{with_pspell}
|
|
|
|
--with-pspell=shared \
|
|
|
|
--with-pspell=shared \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
--enable-phar=shared \
|
|
|
|
--enable-phar=shared \
|
|
|
|
|
|
|
|
%if %{with_mcrypt}
|
|
|
|
--with-mcrypt=shared,%{_prefix} \
|
|
|
|
--with-mcrypt=shared,%{_prefix} \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
--with-tidy=shared,%{_prefix} \
|
|
|
|
--with-tidy=shared,%{_prefix} \
|
|
|
|
--enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \
|
|
|
|
--enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \
|
|
|
|
--enable-shmop=shared \
|
|
|
|
--enable-shmop=shared \
|
|
|
@ -1237,7 +1265,11 @@ install -D -m 644 %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/nginx/conf.d/php-fpm
|
|
|
|
install -D -m 644 %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/nginx/default.d/php.conf
|
|
|
|
install -D -m 644 %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/nginx/default.d/php.conf
|
|
|
|
|
|
|
|
|
|
|
|
# Generate files lists and stub .ini files for each subpackage
|
|
|
|
# Generate files lists and stub .ini files for each subpackage
|
|
|
|
for mod in pgsql odbc ldap snmp xmlrpc imap json \
|
|
|
|
for mod in pgsql odbc ldap snmp xmlrpc \
|
|
|
|
|
|
|
|
%if %{with_imap}
|
|
|
|
|
|
|
|
imap \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
json \
|
|
|
|
mysqlnd mysqli pdo_mysql \
|
|
|
|
mysqlnd mysqli pdo_mysql \
|
|
|
|
mbstring gd dom xsl soap bcmath dba xmlreader xmlwriter \
|
|
|
|
mbstring gd dom xsl soap bcmath dba xmlreader xmlwriter \
|
|
|
|
simplexml bz2 calendar ctype exif ftp gettext gmp iconv \
|
|
|
|
simplexml bz2 calendar ctype exif ftp gettext gmp iconv \
|
|
|
@ -1251,7 +1283,17 @@ for mod in pgsql odbc ldap snmp xmlrpc imap json \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
sqlite3 \
|
|
|
|
sqlite3 \
|
|
|
|
enchant phar fileinfo intl \
|
|
|
|
enchant phar fileinfo intl \
|
|
|
|
mcrypt tidy pdo_dblib pspell curl wddx \
|
|
|
|
%if %{with_mcrypt}
|
|
|
|
|
|
|
|
mcrypt \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
tidy \
|
|
|
|
|
|
|
|
%if %{with_freetds}
|
|
|
|
|
|
|
|
pdo_dblib \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with_pspell}
|
|
|
|
|
|
|
|
pspell \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
curl wddx \
|
|
|
|
posix shmop sysvshm sysvsem sysvmsg recode xml \
|
|
|
|
posix shmop sysvshm sysvsem sysvmsg recode xml \
|
|
|
|
; do
|
|
|
|
; do
|
|
|
|
case $mod in
|
|
|
|
case $mod in
|
|
|
@ -1268,7 +1310,9 @@ for mod in pgsql odbc ldap snmp xmlrpc imap json \
|
|
|
|
# some extensions have their own config file
|
|
|
|
# some extensions have their own config file
|
|
|
|
if [ -f ${ini} ]; then
|
|
|
|
if [ -f ${ini} ]; then
|
|
|
|
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini}
|
|
|
|
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini}
|
|
|
|
|
|
|
|
%if %{with_zts}
|
|
|
|
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/${ini}
|
|
|
|
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/${ini}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
else
|
|
|
|
else
|
|
|
|
cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini} <<EOF
|
|
|
|
cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini} <<EOF
|
|
|
|
; Enable ${mod} extension module
|
|
|
|
; Enable ${mod} extension module
|
|
|
@ -1326,9 +1370,11 @@ cat files.zip >> files.common
|
|
|
|
|
|
|
|
|
|
|
|
# The default Zend OPcache blacklist file
|
|
|
|
# The default Zend OPcache blacklist file
|
|
|
|
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/opcache-default.blacklist
|
|
|
|
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/opcache-default.blacklist
|
|
|
|
|
|
|
|
%if %{with_zts}
|
|
|
|
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/opcache-default.blacklist
|
|
|
|
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/opcache-default.blacklist
|
|
|
|
sed -e '/blacklist_filename/s/php.d/php-zts.d/' \
|
|
|
|
sed -e '/blacklist_filename/s/php.d/php-zts.d/' \
|
|
|
|
-i $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/10-opcache.ini
|
|
|
|
-i $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/10-opcache.ini
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# Install the macros file:
|
|
|
|
# Install the macros file:
|
|
|
|
sed -e "s/@PHP_APIVER@/%{apiver}%{isasuffix}/" \
|
|
|
|
sed -e "s/@PHP_APIVER@/%{apiver}%{isasuffix}/" \
|
|
|
@ -1404,6 +1450,7 @@ rm -f README.{Zeus,QNX,CVS-RULES}
|
|
|
|
%{_bindir}/php
|
|
|
|
%{_bindir}/php
|
|
|
|
%if %{with_zts}
|
|
|
|
%if %{with_zts}
|
|
|
|
%{_bindir}/zts-php
|
|
|
|
%{_bindir}/zts-php
|
|
|
|
|
|
|
|
%{_mandir}/man1/zts-php.1*
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{_bindir}/php-cgi
|
|
|
|
%{_bindir}/php-cgi
|
|
|
|
%{_bindir}/phar.phar
|
|
|
|
%{_bindir}/phar.phar
|
|
|
@ -1411,7 +1458,6 @@ rm -f README.{Zeus,QNX,CVS-RULES}
|
|
|
|
# provides phpize here (not in -devel) for pecl command
|
|
|
|
# provides phpize here (not in -devel) for pecl command
|
|
|
|
%{_bindir}/phpize
|
|
|
|
%{_bindir}/phpize
|
|
|
|
%{_mandir}/man1/php.1*
|
|
|
|
%{_mandir}/man1/php.1*
|
|
|
|
%{_mandir}/man1/zts-php.1*
|
|
|
|
|
|
|
|
%{_mandir}/man1/php-cgi.1*
|
|
|
|
%{_mandir}/man1/php-cgi.1*
|
|
|
|
%{_mandir}/man1/phar.1*
|
|
|
|
%{_mandir}/man1/phar.1*
|
|
|
|
%{_mandir}/man1/phar.phar.1*
|
|
|
|
%{_mandir}/man1/phar.phar.1*
|
|
|
@ -1474,7 +1520,9 @@ rm -f README.{Zeus,QNX,CVS-RULES}
|
|
|
|
|
|
|
|
|
|
|
|
%files pgsql -f files.pgsql
|
|
|
|
%files pgsql -f files.pgsql
|
|
|
|
%files odbc -f files.odbc
|
|
|
|
%files odbc -f files.odbc
|
|
|
|
|
|
|
|
%if %{with_imap}
|
|
|
|
%files imap -f files.imap
|
|
|
|
%files imap -f files.imap
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%files ldap -f files.ldap
|
|
|
|
%files ldap -f files.ldap
|
|
|
|
%files snmp -f files.snmp
|
|
|
|
%files snmp -f files.snmp
|
|
|
|
%files xml -f files.xml
|
|
|
|
%files xml -f files.xml
|
|
|
@ -1494,10 +1542,16 @@ rm -f README.{Zeus,QNX,CVS-RULES}
|
|
|
|
%files gmp -f files.gmp
|
|
|
|
%files gmp -f files.gmp
|
|
|
|
%files dba -f files.dba
|
|
|
|
%files dba -f files.dba
|
|
|
|
%files pdo -f files.pdo
|
|
|
|
%files pdo -f files.pdo
|
|
|
|
|
|
|
|
%if %{with_mcrypt}
|
|
|
|
%files mcrypt -f files.mcrypt
|
|
|
|
%files mcrypt -f files.mcrypt
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%files tidy -f files.tidy
|
|
|
|
%files tidy -f files.tidy
|
|
|
|
|
|
|
|
%if %{with_freetds}
|
|
|
|
%files pdo-dblib -f files.pdo_dblib
|
|
|
|
%files pdo-dblib -f files.pdo_dblib
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with_pspell}
|
|
|
|
%files pspell -f files.pspell
|
|
|
|
%files pspell -f files.pspell
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%files intl -f files.intl
|
|
|
|
%files intl -f files.intl
|
|
|
|
%files process -f files.process
|
|
|
|
%files process -f files.process
|
|
|
|
%files recode -f files.recode
|
|
|
|
%files recode -f files.recode
|
|
|
@ -1508,11 +1562,84 @@ rm -f README.{Zeus,QNX,CVS-RULES}
|
|
|
|
%files mysqlnd -f files.mysqlnd
|
|
|
|
%files mysqlnd -f files.mysqlnd
|
|
|
|
%files opcache -f files.opcache
|
|
|
|
%files opcache -f files.opcache
|
|
|
|
%config(noreplace) %{_sysconfdir}/php.d/opcache-default.blacklist
|
|
|
|
%config(noreplace) %{_sysconfdir}/php.d/opcache-default.blacklist
|
|
|
|
|
|
|
|
%if %{with_zts}
|
|
|
|
%config(noreplace) %{_sysconfdir}/php-zts.d/opcache-default.blacklist
|
|
|
|
%config(noreplace) %{_sysconfdir}/php-zts.d/opcache-default.blacklist
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%files json -f files.json
|
|
|
|
%files json -f files.json
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Oct 10 2018 Remi Collet <remi@remirepo.net> - 7.1.23-1
|
|
|
|
|
|
|
|
- Update to 7.1.23 - http://www.php.net/releases/7_1_23.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 12 2018 Remi Collet <remi@remirepo.net> - 7.1.22-1
|
|
|
|
|
|
|
|
- Update to 7.1.22 - http://www.php.net/releases/7_1_22.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 16 2018 Remi Collet <remi@remirepo.net> - 7.1.21-1
|
|
|
|
|
|
|
|
- Update to 7.1.21 - http://www.php.net/releases/7_1_21.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 19 2018 Remi Collet <remi@remirepo.net> - 7.1.20-1
|
|
|
|
|
|
|
|
- Update to 7.1.20 - http://www.php.net/releases/7_1_20.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 21 2018 Remi Collet <remi@remirepo.net> - 7.1.19-1
|
|
|
|
|
|
|
|
- Update to 7.1.19 - http://www.php.net/releases/7_1_19.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 24 2018 Remi Collet <remi@remirepo.net> - 7.1.18-1
|
|
|
|
|
|
|
|
- Update to 7.1.18 - http://www.php.net/releases/7_1_18.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 25 2018 Remi Collet <remi@remirepo.net> - 7.1.17-1
|
|
|
|
|
|
|
|
- Update to 7.1.17 - http://www.php.net/releases/7_1_17.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 28 2018 Remi Collet <remi@remirepo.net> - 7.1.16-1
|
|
|
|
|
|
|
|
- Update to 7.1.16 - http://www.php.net/releases/7_1_16.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 14 2018 Remi Collet <remi@remirepo.net> - 7.1.16~RC1-1
|
|
|
|
|
|
|
|
- Update to 7.1.16RC1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 28 2018 Remi Collet <remi@remirepo.net> - 7.1.15-1
|
|
|
|
|
|
|
|
- Update to 7.1.15 - http://www.php.net/releases/7_1_15.php
|
|
|
|
|
|
|
|
- FPM: revert pid file removal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 21 2018 Remi Collet <remi@remirepo.net> - 7.1.15~RC1-3
|
|
|
|
|
|
|
|
- disable ZTS on RHEL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 16 2018 Remi Collet <remi@remirepo.net> - 7.1.15~RC1-2
|
|
|
|
|
|
|
|
- disable pspell extension on RHEL
|
|
|
|
|
|
|
|
- improve devel dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 14 2018 Remi Collet <remi@remirepo.net> - 7.1.15~RC1-1
|
|
|
|
|
|
|
|
- Update to 7.1.15RC1
|
|
|
|
|
|
|
|
- adapt ldap patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 31 2018 Remi Collet <remi@remirepo.net> - 7.1.14-1
|
|
|
|
|
|
|
|
- Update to 7.1.14 - http://www.php.net/releases/7_1_14.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 29 2018 Remi Collet <rcollet@redhat.com> - 7.1.14~RC1-2
|
|
|
|
|
|
|
|
- disable interbase, imap, pdo_dblib and mcrypt on rhel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 17 2018 Remi Collet <remi@remirepo.net> - 7.1.14~RC1-1
|
|
|
|
|
|
|
|
- Update to 7.1.14RC1
|
|
|
|
|
|
|
|
- define SOURCE_DATE_EPOCH for reproducible build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 3 2018 Remi Collet <remi@remirepo.net> - 7.1.13-1
|
|
|
|
|
|
|
|
- Update to 7.1.13 - http://www.php.net/releases/7_1_13.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Dec 6 2017 Remi Collet <remi@fedoraproject.org> - 7.1.13~RC1-1
|
|
|
|
|
|
|
|
- Update to 7.1.13RC1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 22 2017 Remi Collet <remi@fedoraproject.org> - 7.1.12-1
|
|
|
|
|
|
|
|
- Update to 7.1.12 - http://www.php.net/releases/7_1_12.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 8 2017 Remi Collet <remi@fedoraproject.org> - 7.1.12~RC1-1
|
|
|
|
|
|
|
|
- Update to 7.1.12RC1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 25 2017 Remi Collet <remi@fedoraproject.org> - 7.1.11-1
|
|
|
|
|
|
|
|
- Update to 7.1.11 - http://www.php.net/releases/7_1_11.php
|
|
|
|
|
|
|
|
- make php-fpm a weak dependency #1505644
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 11 2017 Remi Collet <remi@fedoraproject.org> - 7.1.11~RC1-1
|
|
|
|
|
|
|
|
- Update to 7.1.11RC1
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 27 2017 Remi Collet <remi@fedoraproject.org> - 7.1.10-1
|
|
|
|
* Wed Sep 27 2017 Remi Collet <remi@fedoraproject.org> - 7.1.10-1
|
|
|
|
- Update to 7.1.10 - http://www.php.net/releases/7_1_10.php
|
|
|
|
- Update to 7.1.10 - http://www.php.net/releases/7_1_10.php
|
|
|
|
|
|
|
|
|
|
|
|