# NOTES
# - mysqlnd driver doesn't support reconnect: https://bugs.php.net/bug.php?id=52561
+# TODO 7.4:
+# - follow upstream: drop spl, pcre, hash subpackages (tired of maintaining them)
# TODO 7.3:
# - branch php-7.2 and merge dev-7.3 into head once official announcement ready
# TODO 7.2:
# - 2.3M fileinfo.so php-fileinfo-5.3.16-1.x86_64
# - 13K fileinfo.so php-pecl-fileinfo-1.0.4-8.amd64
# - ttyname_r() misdetected http://bugs.php.net/bug.php?id=48820
-# - wddx: restore session support (not compiled in due DL extension check)
# - modularize standard (output from pure php -m)?
# - some mods should be shared:
#$ php -m
%bcond_without sqlite2 # without SQLite extension module
%bcond_without sqlite3 # without SQLite3 extension module
%bcond_without tidy # without Tidy extension module
-%bcond_without wddx # without WDDX extension module
%bcond_without xmlrpc # without XML-RPC extension module
%bcond_without xsl # without xsl extension module
%bcond_without zip # without zip extension module
%undefine with_filter
%endif
-%define subver %{nil}
+%define subver alpha1
%define orgname php
-%define ver_suffix 73
+%define ver_suffix 74
%define php_suffix %{!?with_default_php:%{ver_suffix}}
Summary: PHP: Hypertext Preprocessor
Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
Summary(ru.UTF-8): PHP Версии 7 - язык препроцессирования HTML-файлов, выполняемый на сервере
Summary(uk.UTF-8): PHP Версії 7 - мова препроцесування HTML-файлів, виконувана на сервері
Name: %{orgname}%{php_suffix}
-Version: 7.3.4
-Release: 2
+Version: 7.4.0
+Release: 0.1
Epoch: 4
# All files licensed under PHP version 3.01, except
# Zend is licensed under Zend
# TSRM is licensed under BSD
License: PHP 3.01 and Zend and BSD
Group: Libraries
-#Source0: https://downloads.php.net/~cmb/php-%{version}%{subver}.tar.xz
-Source0: https://php.net/distributions/%{orgname}-%{version}.tar.xz
-# Source0-md5: eb860e97b4be43c1aad056fa7dde1157
+#Source0: https://php.net/distributions/%{orgname}-%{version}.tar.xz
+Source0: https://downloads.php.net/~derick/php-%{version}%{subver}.tar.xz
+# Source0-md5: 29592e9a73c0ae615c4b7e2b4761184f
Source1: opcache.ini
Source2: %{orgname}-mod_php.conf
Source3: %{orgname}-cgi-fcgi.ini
Patch2: %{orgname}-mail.patch
Patch3: %{orgname}-link-libs.patch
Patch4: intl-stdc++.patch
-Patch5: %{orgname}-filter-shared.patch
Patch7: %{orgname}-sapi-ini-file.patch
Patch8: milter.patch
%{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1.4d
-BuildRequires: bison
+BuildRequires: bison >= 3.0.0
BuildRequires: bzip2-devel >= 1.0.0
%{?with_curl:BuildRequires: curl-devel >= 7.15.5}
BuildRequires: cyrus-sasl-devel >= 2
%define _sysconfdir %{php_sysconfdir}
# must be in sync with source. extra check ensuring that it is so is done in %%build
-%define php_api_version 20180731
-%define zend_module_api 20180731
-%define zend_extension_api 320180731
+%define php_api_version 20190529
+%define zend_module_api %{php_api_version}
+%define zend_extension_api 3%{zend_module_api}
%define php_pdo_api_version 20170320
# Extension versions
%define pharver %{version}
%define sqlite3ver %{version}
%define zipver 1.15.4
-%define phpdbgver 0.5.0
+%define phpdbgver %{version}
%define sodiumver %{version}
%define _zend_zts %{!?with_zts:0}%{?with_zts:1}
%description tokenizer -l pl.UTF-8
Moduł PHP dodający obsługę tokenizera do PHP.
-%package wddx
-Summary: wddx extension module for PHP
-Summary(pl.UTF-8): Moduł wddx dla PHP
-Group: Libraries
-URL: http://php.net/manual/en/book.wddx.php
-Requires: %{name}-common = %{epoch}:%{version}-%{release}
-# - wddx doesn't require session as it's disabled at compile time:
-# if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
-# see also php.spec#rev1.120.2.22
-#Requires: %{name}-session = %{epoch}:%{version}-%{release}
-Requires: %{name}-xml = %{epoch}:%{version}-%{release}
-Provides: php(wddx)
-Obsoletes: php-wddx < 4:5.3.28-7
-
-%description wddx
-This is a dynamic shared object (DSO) for PHP that will add wddx
-support.
-
-%description wddx -l pl.UTF-8
-Moduł PHP umożliwiający korzystanie z wddx.
-
%package xml
Summary: XML extension module for PHP
Summary(pl.UTF-8): Moduł XML dla PHP
%patch2 -p1
%patch3 -p1
%patch4 -p1
-%patch5 -p1
%patch7 -p1
%{?with_milter:%patch8 -p1}
%{__rm} ext/recode/config9.m4
# remove all bundled libraries not to link with them accidentally
-%{__rm} -r ext/sqlite3/libsqlite
#%{__rm} -r ext/bcmath/libbcmath
#%{__rm} -r ext/date/lib
#%{__rm} -r ext/fileinfo/libmagic
#%{__rm} -r ext/dba/libinifile
#%{__rm} -r ext/gd/libgd
#%{__rm} -r ext/mbstring/libmbfl
-%{__rm} -r ext/mbstring/oniguruma
%{__rm} -r ext/pcre/pcre2lib
#%{__rm} -r ext/soap/interop
%{__rm} -r ext/xmlrpc/libxmlrpc
: Update the jsonver macro and rebuild.
exit 1
fi
-ver=$(sed -n '/#define PHPDBG_VERSION /{s/.* "//;s/".*$//;p}' sapi/phpdbg/phpdbg.h)
-if test "$ver" != "%{phpdbgver}"; then
+ver=$(get_version PHPDBG_VERSION sapi/phpdbg/phpdbg.h)
+if test "$ver" != "PHP_VERSION"; then
: Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
: Update the phpdbgver macro and rebuild.
exit 1
if [ ! -f _built-conf ]; then
# now remove Makefile copies
rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed,phpdbg,milter}
+
+ # Force use of system libtool:
+ mv build/libtool.m4 build/libtool.m4.saved
+ cat %{_aclocaldir}/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 > build/libtool.m4
%{__libtoolize}
%{__aclocal}
+
cp -f /usr/share/automake/config.* .
./buildconf --force
touch _built-conf
--enable-sockets=shared \
%{__with_without sodium sodium shared} \
--enable-tokenizer=shared \
- %{?with_wddx:--enable-wddx=shared} \
--enable-xml=shared \
--enable-xmlreader=shared \
%{__with_without bz2 bz2 shared} \
# opcache.so is zend extension
nm $so | grep -q zend_extension_entry && ext=zend_extension
conf="$mod.ini"
- # xml needs to be loaded before wddx
- [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
# pre needs to be loaded before SPL
[ "$mod" = "pcre" ] && conf="PCRE.ini"
# spl needs to be loaded before mysqli
%extension_scripts sysvshm
%extension_scripts tidy
%extension_scripts tokenizer
-%extension_scripts wddx
%extension_scripts xml
%extension_scripts xmlreader
%extension_scripts xmlrpc
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
%attr(755,root,root) %{php_extensiondir}/tokenizer.so
-%if %{with wddx}
-%files wddx
-%defattr(644,root,root,755)
-%doc ext/wddx/CREDITS
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
-%attr(755,root,root) %{php_extensiondir}/wddx.so
-%endif
-
%files xml
%defattr(644,root,root,755)
%doc ext/xml/CREDITS