From 8529947f3ae0fdf43ee46cac6475a708d36c4291 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 7 Jun 2018 12:39:51 +0200 Subject: update to 7.3.0alpha1 switch from pcre to pcre2 --- php.spec | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) (limited to 'php.spec') diff --git a/php.spec b/php.spec index b00bd40..1f9134e 100644 --- a/php.spec +++ b/php.spec @@ -1,4 +1,4 @@ -# remirepo spec file for php72-php +# remirepo spec file for php73-php # with SCL and backport stuff, adapted from # # Fedora spec file for php @@ -22,7 +22,7 @@ %endif # API/ABI check -%global apiver 20170718 +%global apiver 20180123 %global zendver 20170718 %global pdover 20170320 # Extension version @@ -32,7 +32,7 @@ %global _hardened_build 1 # version used for php embedded library soname -%global embed_version 7.2 +%global embed_version 7.3 # Ugly hack. Harcoded values to avoid relocation. %global _httpd_mmn %(cat %{_root_includedir}/httpd/.mmn 2>/dev/null || echo 0) @@ -77,7 +77,7 @@ %global with_sqlite3 1 %global with_enchant 1 %global with_recode 1 -%if 0%{?fedora} >= 22 || 0%{?rhel} >= 8 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 %global with_libpcre 1 %else %global with_libpcre 0 @@ -124,8 +124,8 @@ %global db_devel libdb-devel %endif -%global upver 7.2.7 -%global rcver RC1 +%global upver 7.3.0 +%global rcver alpha1 Summary: PHP scripting language for creating dynamic web sites Name: %{?scl_prefix}php @@ -188,8 +188,6 @@ Patch91: php-7.2.0-oci8conf.patch # Fixes for tests (300+) # Factory is droped from system tzdata Patch300: php-7.0.10-datetests.patch -# Revert changes for pcre < 8.34 -Patch301: php-7.0.0-oldpcre.patch # WIP @@ -209,9 +207,9 @@ BuildRequires: sqlite-devel >= 3.0.0 %endif BuildRequires: zlib-devel, smtpdaemon, libedit-devel %if %{with_libpcre} -BuildRequires: pcre-devel >= 8.20 +BuildRequires: pcre2-devel >= 10.30 %else -Provides: Provides: bundled(pcre) = 8.38 +Provides: Provides: bundled(pcre2) = 10.31 %endif BuildRequires: bzip2 BuildRequires: perl @@ -403,7 +401,7 @@ Requires: gcc Requires: gcc-c++ Requires: libtool %if %{with_libpcre} -Requires: pcre-devel%{?_isa} >= 8.20 +Requires: pcre2-devel%{?_isa} >= 10.30 %endif %description devel @@ -927,12 +925,6 @@ low-level PHP extension for the libsodium cryptographic library. # Fixes for tests %patch300 -p1 -b .datetests -%if %{with_libpcre} -if ! pkg-config libpcre --atleast-version 8.34 ; then -# Only apply when system libpcre < 8.34 -%patch301 -p1 -b .pcre834 -fi -%endif # WIP patch @@ -948,7 +940,6 @@ cp ext/mbstring/libmbfl/LICENSE libmbfl_LICENSE cp ext/mbstring/oniguruma/COPYING oniguruma_COPYING cp ext/mbstring/ucgendat/OPENLDAP_LICENSE ucgendat_LICENSE cp ext/fileinfo/libmagic/LICENSE libmagic_LICENSE -cp ext/phar/LICENSE phar_LICENSE cp ext/bcmath/libbcmath/COPYING.LIB libbcmath_COPYING cp ext/date/lib/LICENSE.rst timelib_LICENSE @@ -971,6 +962,8 @@ rm ext/standard/tests/file/file_get_contents_error001.phpt # cause stack exhausion rm Zend/tests/bug54268.phpt rm Zend/tests/bug68412.phpt +# tar issue +rm ext/zlib/tests/004-mb.phpt # Safety check for API version change. pver=$(sed -n '/#define PHP_VERSION /{s/.* "//;s/".*$//;p}' main/php_version.h) @@ -1709,7 +1702,6 @@ fi %doc CODING_STANDARDS CREDITS EXTENSIONS NEWS README* %license LICENSE TSRM_LICENSE %license libmagic_LICENSE -%license phar_LICENSE %license timelib_LICENSE %doc php.ini-* %config(noreplace) %{_sysconfdir}/php.ini @@ -1862,6 +1854,10 @@ fi %changelog +* Thu Jun 7 2018 Remi Collet - 7.3.0~alpha1-1 +- update to 7.3.0alpha1 +- switch from pcre to pcre2 + * Wed Jun 6 2018 Remi Collet - 7.2.7~RC1-1 - update to 7.2.7RC1 -- cgit