X-Git-Url: http://git.pld-linux.org/?p=packages%2Fphp.git;a=blobdiff_plain;f=php.spec;h=967dd40e99046ee26970521ce6d2d730b01456ec;hp=6cd0d93aba4dec0ac2995a35edb06e0041a87e01;hb=61d0f04;hpb=77a6083952c5dee7d1f7a37f0a0314ec1fc79547 diff --git a/php.spec b/php.spec index 6cd0d93..967dd40 100644 --- a/php.spec +++ b/php.spec @@ -1,7 +1,5 @@ # NOTES # - mysqlnd driver doesn't support reconnect: https://bugs.php.net/bug.php?id=52561 -# TODO 8.0: -# - removed packages: xmlrpc # TODO 5.6: # - enable --with-fpm-systemd, but ensure it checks for sd_booted() # TODO: @@ -16,7 +14,7 @@ %bcond_without alternatives # use alternatives system to select default phar and php-fpm %bcond_with default_php # build this PHP as default PHP in system (disables alternatives) # - General options: -%bcond_without embed # disable building Embedded API +%bcond_with embed # disable building Embedded API %bcond_with gcov # Enable Code coverage reporting %bcond_without kerberos5 # without Kerberos5 support %bcond_with systemtap # systemtap/DTrace support @@ -49,7 +47,6 @@ %bcond_without iconv # without iconv extension module %bcond_without imap # without IMAP extension module %bcond_without intl # without Intl extension module -%bcond_without json # without json extension module %bcond_without ldap # without LDAP extension module %bcond_without mbstring # without mbstring extension module %bcond_without mhash # without mhash extension (supported by hash extension) @@ -147,20 +144,19 @@ Summary: PHP: Hypertext Preprocessor Summary(fr.UTF-8): Le langage de script embarque-HTML PHP Summary(pl.UTF-8): Język skryptowy PHP Summary(pt_BR.UTF-8): A linguagem de script PHP -Summary(ru.UTF-8): PHP Версии 7 - язык препроцессирования HTML-файлов, выполняемый на сервере -Summary(uk.UTF-8): PHP Версії 7 - мова препроцесування HTML-файлів, виконувана на сервері +Summary(ru.UTF-8): PHP - язык препроцессирования HTML-файлов, выполняемый на сервере +Summary(uk.UTF-8): PHP - мова препроцесування HTML-файлів, виконувана на сервері Name: %{orgname}%{php_suffix} -Version: 8.0.0 -Release: 0.beta4.0 +Version: 8.0.7 +Release: 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://php.net/distributions/%{orgname}-%{version}.tar.xz -Source0: https://downloads.php.net/~pollita/php-%{version}beta4.tar.xz -# Source0-md5: a30173dc7d5b75d82253dcbf4c7f2fe4 +Source0: https://php.net/distributions/%{orgname}-%{version}.tar.xz +# Source0-md5: ee5d675f8e9d58fcdc4c887d3d9e8412 Source1: opcache.ini Source2: %{orgname}-mod_php.conf Source3: %{orgname}-cgi-fcgi.ini @@ -182,7 +178,6 @@ Patch9: libtool-tag.patch Patch10: %{orgname}-ini.patch Patch11: embed.patch Patch14: %{orgname}-no_pear_install.patch -Patch17: %{orgname}-readline.patch Patch18: %{orgname}-nohttpd.patch Patch21: %{orgname}-dba-link.patch Patch22: %{orgname}-both-apxs.patch @@ -198,7 +193,6 @@ Patch43: %{orgname}-silent-session-cleanup.patch Patch44: %{orgname}-include_path.patch Patch50: extension-shared-optional-dep.patch Patch53: fix-test-run.patch -Patch55: bug-52078-fileinode.patch Patch59: %{orgname}-systzdata.patch Patch60: %{orgname}-oracle-instantclient.patch Patch66: php-db.patch @@ -286,7 +280,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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 20200804 +%define php_api_version 20200930 %define zend_module_api %{php_api_version} %define zend_extension_api 4%{zend_module_api} %define php_pdo_api_version 20170320 @@ -300,7 +294,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define jsonver %{version} %define pharver %{version} %define sqlite3ver %{version} -%define zipver 1.19.1-dev +%define zipver 1.19.2 %define phpdbgver %{version} %define sodiumver %{version} @@ -465,7 +459,6 @@ Summary: /usr/bin/php symlink Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php Group: Development/Languages/PHP Requires: %{name}-cli = %{epoch}:%{version}-%{release} -Obsoletes: /usr/bin/php Obsoletes: php-program < 4:5.3.28-7 %description program @@ -624,6 +617,7 @@ Obsoletes: php56-devel Obsoletes: php70-devel Obsoletes: php71-devel Obsoletes: php73-devel +Obsoletes: php74-devel %description devel The php-devel package lets you compile dynamic extensions to PHP. @@ -1693,9 +1687,7 @@ Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń Group: Libraries URL: http://qa.php.net/ Requires: %{name}-cli -%if "%{_rpmversion}" >= "5" BuildArch: noarch -%endif %description tests This package contains unit tests for PHP and its extensions. @@ -1851,42 +1843,34 @@ compression support to PHP. Moduł PHP umożliwiający używanie kompresji zlib. %prep -%if 0 -%setup -q -n %{orgname}-%{version} -%else -%setup -q -n %{orgname}-%{version}beta4 -%endif +%setup -q -n %{orgname}-%{version}%{?subver} cp -p php.ini-production php.ini -#%patch0 -p1 +%patch0 -p1 %patch1 -p1 #%patch2 -p1 -b .mail %patch3 -p1 %patch4 -p1 -#%patch7 -p1 -b .sapi-ini-file +%patch7 -p1 -b .sapi-ini-file %patch9 -p1 -#%patch10 -p1 -b .ini +%patch10 -p1 -b .ini %patch14 -p1 -#%patch17 -p1 -b readline %patch18 -p1 %patch21 -p1 -#%patch22 -p1 -b .both-apxs +%patch22 -p1 %patch23 -p1 -#%patch24 -p1 -b .zlib-for-getimagesize +%patch24 -p1 -b .zlib-for-getimagesize %patch25 -p1 %patch27 -p1 %patch29 -p1 %patch31 -p1 -#%patch39 -p1 -b .use-prog_sendmail +%patch39 -p1 -b .use-prog_sendmail %patch41 -p1 %patch43 -p1 %patch44 -p1 %patch50 -p1 - %patch53 -p1 -%undos ext/spl/tests/SplFileInfo_getInode_basic.phpt -#%patch55 -p1 %patch59 -p1 -b .systzdata %if %{with instantclient} %patch60 -p1 -b .instantclient @@ -1894,7 +1878,7 @@ cp -p php.ini-production php.ini %patch66 -p1 %patch67 -p1 -b .mysql-lib-ver-mismatch #%patch68 -p1 DROP or update to 7.0 APIs -#%patch71 -p1 -b .libdb-info +%patch71 -p1 -b .libdb-info sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{__bindir}\1,' \ ext/ext_skel.php \ @@ -2205,7 +2189,6 @@ for sapi in $sapis; do --enable-mbregex \ %{__enable_disable pcntl pcntl shared} \ %{__enable_disable pdo pdo shared} \ - %{__enable_disable json json shared} \ --enable-xmlwriter=shared \ %if %{with fpm} --with-fpm-user=http \ @@ -2297,7 +2280,7 @@ cp -af Makefile.cli Makefile MYSQLND_SHARED_LIBADD="-lssl -lcrypto" %if %{with apache2} -%{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp7.la -f Makefile.apxs2 +%{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp8.la -f Makefile.apxs2 %endif %if %{with litespeed} @@ -2305,7 +2288,7 @@ cp -af Makefile.cli Makefile %endif %if %{with embed} -%{__make} -f Makefile.embed libphp7.la +%{__make} -f Makefile.embed libphp8.la %endif %if %{with phpdbg} @@ -2420,9 +2403,9 @@ v=$(echo %{version} | cut -d. -f1-2) # install Apache2 DSO module %if %{with apache2} -libtool --mode=install install -p sapi/apache2handler/libphp7.la $RPM_BUILD_ROOT%{_libdir}/apache -%{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp7{,-$v}.so -ln -s libphp7-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so +libtool --mode=install install -p sapi/apache2handler/libphp8.la $RPM_BUILD_ROOT%{_libdir}/apache +%{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp8{,-$v}.so +ln -s libphp8-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so %endif # install litespeed sapi @@ -2484,7 +2467,7 @@ touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm # we could use install-headers from Makefile.embed, but that would reinstall all headers # install-sapi installs to wrong dir, so just do it all manually install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed -install -p libs/libphp7.so $RPM_BUILD_ROOT%{_libdir} +install -p libs/libphp8.so $RPM_BUILD_ROOT%{_libdir} cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed %endif @@ -2502,7 +2485,7 @@ cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/cli.d/php.ini %if %{with apache2} cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/apache2handler.d/php.ini -%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp7.la +%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp8.la %endif # ensure that paths are correct for current php version and arch @@ -2597,7 +2580,14 @@ fi # restart webserver at the end of transaction [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart -%triggerpostun common -- php-common < 4:5.3.28-7 +%triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2 +# switch to browscap package if the ini file has original value +%{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini +# disable browscap, if optional package not present +if [ ! -e /usr/share/browscap/php_browscap.ini ]; then + %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini +fi + # migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/ # do config migration in php-common trigger, as the trigger is ran after all packages are upgraded # this way we can stick to one trigger, instead of attaching one for each (sub)package! @@ -2618,14 +2608,6 @@ for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do ' $nf done -%triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2 -# switch to browscap package if the ini file has original value -%{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini -# disable browscap, if optional package not present -if [ ! -e /usr/share/browscap/php_browscap.ini ]; then - %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini -fi - %triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:7.0.0-2.RC4 sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf @@ -2737,7 +2719,7 @@ fi %defattr(644,root,root,755) %dir %{_sysconfdir}/apache2handler.d %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache2handler.d/php.ini -%attr(755,root,root) %{_libdir}/apache/libphp7-*.*.so +%attr(755,root,root) %{_libdir}/apache/libphp8-*.*.so %endif %if %{with litespeed} @@ -2758,7 +2740,7 @@ fi %if %{with embed} %files embedded %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/libphp7.so +%attr(755,root,root) %{_libdir}/libphp8.so %endif %files cli @@ -2972,13 +2954,9 @@ fi %attr(755,root,root) %{php_extensiondir}/intl.so %endif -%if %{with json} %files json %defattr(644,root,root,755) %doc ext/json/CREDITS -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/??_json.ini -%attr(755,root,root) %{php_extensiondir}/json.so -%endif %if %{with ldap} %files ldap