%bcond_without dba # without DBA extension module
%bcond_without dom # without DOM extension module
%bcond_without enchant # without Enchant extension module
-%bcond_without ereg # without ext/ereg support
%bcond_without exif # without EXIF extension module
%bcond_without fileinfo # without fileinfo extension module
%bcond_without filter # without filter extension module
%undefine with_filter
%endif
+%define rel 0.5
+%define subver alpha3
%define orgname php
-%define ver_suffix 70
+%define ver_suffix 71
%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.0.4
-Release: 1
+Version: 7.1.0
+Release: 0.%{subver}.%{rel}
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: http://php.net/distributions/%{orgname}-%{version}.tar.xz
-# Source0-md5: 82c60fc8167dd964119447da539af4f7
+#Source0: http://php.net/distributions/%{orgname}-%{version}.tar.xz
+Source0: https://downloads.php.net/~krakjoe/php-%{version}%{subver}.tar.xz
+# Source0-md5: 3301a2f3a60d4333c4a9008628c1e106
Source2: %{orgname}-mod_php.conf
Source3: %{orgname}-cgi-fcgi.ini
Source4: %{orgname}-apache.ini
Patch1: %{orgname}-pldlogo.patch
Patch2: %{orgname}-mail.patch
Patch3: %{orgname}-link-libs.patch
-
+Patch4: intl-stdc++.patch
Patch5: %{orgname}-filter-shared.patch
Patch6: %{orgname}-build_modules.patch
Patch7: %{orgname}-sapi-ini-file.patch
# must be in sync with source. extra check ensuring that it is so is done in %%build
%define php_api_version 20151012
-%define zend_module_api 20151012
-%define zend_extension_api 320151012
+%define zend_module_api 20160303
+%define zend_extension_api 320160303
%define php_pdo_api_version 20150127
# Extension versions
%define hashver 1.0
%define intlver 1.1.0
%define jsonver 1.4.0
-%define opcachever 7.0.6-dev
%define pharver 2.0.2
%define sqlite3ver 0.7-dev
-%define zipver 1.13.0
+%define zipver 1.13.3
%define phpdbgver 0.5.0
%define _zend_zts %{!?with_zts:0}%{?with_zts:1}
Provides: %{name}(zend_module_api) = %{zend_module_api}
Provides: %{name}-core
Provides: %{name}-date
-%{?with_ereg:Provides: %{name}-ereg}
Provides: %{name}-reflection
Provides: %{name}-standard
Provides: php(core) = %{version}
Provides: php(date)
-%{?with_ereg:Provides: php(ereg)}
Provides: php(libxml)
Provides: php(reflection)
Provides: php(standard)
URL: https://wiki.php.net/rfc/optimizerplus
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
-Provides: php(opcache) = %{opcachever}
+Provides: php(opcache) = %{version}
%description opcache
The Zend OPcache provides faster PHP execution through opcode caching
Moduł PHP umożliwiający używanie kompresji zlib.
%prep
-%setup -q -n %{orgname}-%{version}
+%setup -q -n %{orgname}-%{version}%{?subver}
cp -p php.ini-production php.ini
%patch0 -p1
%patch1 -p1
#%patch2 -p1 NEEDS PORTING
%patch3 -p1
-
+%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch71 -p1
%patch72 -p1
-sed -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
+%{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
: Update the jsonver macro and rebuild.
exit 1
fi
-ver=$(awk '/#define PHP_ZENDOPCACHE_VERSION/ {print $3}' ext/opcache/ZendAccelerator.h | xargs)
-if test "$ver" != "%{opcachever}"; then
- : Error: Upstream Zend Opcache version is now ${ver}, expecting %{opcachever}.
- : Update the opcachever macro and rebuild.
- exit 1
-fi
ver=$(sed -n '/#define PHPDBG_VERSION /{s/.* "//;s/".*$//;p}' sapi/phpdbg/phpdbg.h)
if test "$ver" != "%{phpdbgver}"; then
: Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
sapi_args=''
case $sapi in
cgi-fcgi)
- sapi_args='--disable-cli'
+ sapi_args='--enable-cgi'
;;
cli)
- sapi_args='--disable-cgi %{?with_gcov:--enable-gcov}'
+ sapi_args='--enable-cli %{?with_gcov:--enable-gcov}'
;;
fpm)
- sapi_args='--disable-cli --disable-cgi --enable-fpm'
+ sapi_args='--enable-fpm'
;;
embed)
- sapi_args='--disable-cli --disable-cgi --enable-embed'
+ sapi_args='--enable-embed'
;;
apxs2)
ver=$(rpm -q --qf '%{V}' apache-devel)
- sapi_args="--disable-cli --disable-cgi --with-apxs2=%{apxs2} --with-apache-version=$ver"
+ sapi_args="--with-apxs2=%{apxs2} --with-apache-version=$ver"
;;
litespeed)
- sapi_args='--disable-cli --disable-cgi --with-litespeed'
+ sapi_args='--with-litespeed'
;;
phpdbg)
- sapi_args='--disable-cli --disable-cgi --enable-phpdbg %{?debug:--enable-phpdbg-debug}'
+ sapi_args='--enable-phpdbg %{?debug:--enable-phpdbg-debug}'
;;
milter)
- sapi_args='--disable-cli --disable-cgi --with-milter'
+ sapi_args='--with-milter'
;;
esac
%configure \
+ EXTRA_LDFLAGS="%{rpmldflags}" \
+ --disable-cgi \
+ --disable-cli \
+ --disable-phpdbg \
$sapi_args \
%if "%{!?configure_cache:0}%{?configure_cache}" == "0"
--cache-file=config.cache \
%{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
%{?with_pgsql:--with-pdo-pgsql=shared} \
%{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \
- %{?with_webp:--with-vpx-dir=/usr} \
+ %{?with_webp:--with-webp-dir=/usr} \
--without-libexpat-dir \
%{__enable_disable posix posix shared} \
--enable-shared \
%{__with_without mcrypt mcrypt shared} \
%{?with_mm:--with-mm} \
%{?with_mysqlnd:--enable-mysqlnd=shared} \
- %{__with_without mysql mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
%{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
%{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
%{__enable_disable opcache opcache shared} \
%{?with_pspell:--with-pspell=shared} \
%{__with_without readline readline shared} \
%{?with_recode:--with-recode=shared} \
- %{__with_without ereg regex system} \
%{?with_snmp:--with-snmp=shared} \
%{!?with_pdo_sqlite:--without-pdo-sqlite} \
%{__with_without sqlite3 sqlite3 shared,/usr} \
%if %{with phpdbg}
%{__make} -f Makefile.phpdbg install-phpdbg \
+ INSTALL="libtool --mode=install install -p" \
INSTALL_ROOT=$RPM_BUILD_ROOT
+
+# version the phpdbg files
+mv $RPM_BUILD_ROOT%{_bindir}/phpdbg{,%{ver_suffix}}
+mv $RPM_BUILD_ROOT%{_mandir}/man1/phpdbg{,%{ver_suffix}}.1
%endif
%if %{with milter}
%if %{with phpdbg}
%files phpdbg
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/phpdbg
-%{_mandir}/man1/phpdbg.1*
+%attr(755,root,root) %{_bindir}/phpdbg%{ver_suffix}
+%{_mandir}/man1/phpdbg%{ver_suffix}.1*
%endif
%if %{with milter}