diff options
Diffstat (limited to 'php.spec')
-rw-r--r-- | php.spec | 49 |
1 files changed, 21 insertions, 28 deletions
@@ -94,8 +94,8 @@ %global gh_owner php %global gh_project php-src %global upver 8.5.0 -%global rcver alpha2 -%global lowrc alpha2 +%global rcver alpha3 +%global lowrc alpha3 # TODO set PHP_EXTRA_VERSION for EOL version Summary: PHP scripting language for creating dynamic web sites @@ -170,6 +170,7 @@ Patch48: php-8.5.0-openssl-ec-param.patch Patch300: php-7.4.0-datetests.patch # WIP +Patch400: 19301.patch BuildRequires: gnupg2 BuildRequires: bzip2-devel @@ -195,6 +196,7 @@ BuildRequires: pkgconfig(libpcre2-8) >= 10.30 %else Provides: bundled(pcre2) = 10.40 %endif +BuildRequires: pkgconfig(capstone) >= 3.0 %if %{with libxcrypt} BuildRequires: pkgconfig(libxcrypt) %endif @@ -235,7 +237,6 @@ Recommends: %{?scl_prefix}php-cli%{?_isa} = %{version}-%{release} Recommends: %{?scl_prefix}php-fpm%{?_isa} = %{version}-%{release} # as "php" is now mostly a meta-package, commonly used extensions Recommends: %{?scl_prefix}php-mbstring%{?_isa} = %{version}-%{release} -Recommends: %{?scl_prefix}php-opcache%{?_isa} = %{version}-%{release} Recommends: %{?scl_prefix}php-pdo%{?_isa} = %{version}-%{release} Recommends: %{?scl_prefix}php-sodium%{?_isa} = %{version}-%{release} Recommends: %{?scl_prefix}php-xml%{?_isa} = %{version}-%{release} @@ -366,6 +367,8 @@ Provides: %{?scl_prefix}php-iconv, %{?scl_prefix}php-iconv%{?_isa} Obsoletes: %{?scl_prefix}php-json < 8.0.0 Provides: %{?scl_prefix}php-json = %{upver}, %{?scl_prefix}php-json%{?_isa} = %{upver} Provides: %{?scl_prefix}php-libxml, %{?scl_prefix}php-libxml%{?_isa} +Obsoletes: %{?scl_prefix}php-opcache < 8.5.0 +Provides: %{?scl_prefix}php-opcache = %{upver}, %{?scl_prefix}php-opcache%{?_isa} = %{upver} Provides: %{?scl_prefix}php-openssl, %{?scl_prefix}php-openssl%{?_isa} Provides: %{?scl_prefix}php-phar, %{?scl_prefix}php-phar%{?_isa} Provides: %{?scl_prefix}php-pcre, %{?scl_prefix}php-pcre%{?_isa} @@ -402,30 +405,14 @@ Requires: openssl-devel%{?_isa} >= 1.0.2 Requires: pcre2-devel%{?_isa} >= 10.30 %endif Requires: zlib-devel%{?_isa} -Recommends: php-nikic-php-parser5 >= 5.5.0 +Recommends: php-nikic-php-parser5 >= 5.6.0 +Conflicts: php-nikic-php-parser5 < 5.6.0 %description devel The %{?scl_prefix}php-devel package contains the files needed for building PHP extensions. If you need to compile your own PHP extensions, you will need to install this package. -%package opcache -Summary: The Zend OPcache -License: PHP-3.01 -BuildRequires: pkgconfig(capstone) >= 3.0 -Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release} -Provides: %{?scl_prefix}php-pecl-zendopcache = %{version} -Provides: %{?scl_prefix}php-pecl-zendopcache%{?_isa} = %{version} -Provides: %{?scl_prefix}php-pecl(opcache) = %{version} -Provides: %{?scl_prefix}php-pecl(opcache)%{?_isa} = %{version} - -%description opcache -The Zend OPcache provides faster PHP execution through opcode caching and -optimization. It improves PHP performance by storing precompiled script -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 -bytecode optimization patterns that make code execution faster. - %package ldap Summary: A module for PHP applications that use LDAP # All files licensed under PHP version 3.01 @@ -874,6 +861,7 @@ sed -e 's/php-devel/%{?scl_prefix}php-devel/' -i scripts/phpize.in %patch -P300 -p1 -b .datetests # WIP patch +%patch -P400 -p1 -b .pr19301 # Prevent %%doc confusion over LICENSE files cp Zend/LICENSE ZEND_LICENSE @@ -1058,6 +1046,7 @@ ln -sf ../configure --without-pear \ --with-exec-dir=%{_bindir} \ --without-gdbm \ + --enable-opcache-file \ --with-openssl \ %if %{with openssl32} --with-openssl-argon2 \ @@ -1095,8 +1084,6 @@ make %{?_smp_mflags} pushd build-cgi build --enable-pcntl \ - --enable-opcache \ - --enable-opcache-file \ --with-capstone \ --enable-phpdbg --enable-phpdbg-readline \ --enable-mbstring=shared \ @@ -1186,7 +1173,6 @@ without_shared="--disable-gd \ --disable-dom --disable-dba --without-unixODBC \ --without-mysqli \ --disable-pdo \ - --disable-opcache \ --disable-phpdbg \ --without-ffi \ --disable-xmlreader --disable-xmlwriter \ @@ -1410,8 +1396,7 @@ do # for extension load order case $mod in opcache) - # Zend extensions - TESTCMD="$TESTCMD --define zend_extension=$mod" + # static extension ini=10-${mod}.ini;; pdo_*|mysqli|xmlreader) # Extensions with dependencies on 20-* @@ -1470,6 +1455,7 @@ cat files.curl files.phar files.fileinfo \ files.tokenizer > files.common # The default Zend OPcache blacklist file +rm files.opcache install -m 644 opcache-default.blacklist $RPM_BUILD_ROOT%{_sysconfdir}/php.d/opcache-default.blacklist # Install the macros file: @@ -1533,6 +1519,8 @@ fi %license timelib_LICENSE %doc php.ini-* %config(noreplace) %{_sysconfdir}/php.ini +%config(noreplace) %{_sysconfdir}/php.d/10-opcache.ini +%config(noreplace) %{_sysconfdir}/php.d/opcache-default.blacklist %dir %{_sysconfdir}/php.d %dir %{_libdir}/php %dir %{_libdir}/php/modules @@ -1641,8 +1629,6 @@ fi %files enchant -f files.enchant %endif %files mysqlnd -f files.mysqlnd -%files opcache -f files.opcache -%config(noreplace) %{_sysconfdir}/php.d/opcache-default.blacklist %if %{with zip} %files zip -f files.zip %endif @@ -1652,6 +1638,13 @@ fi %changelog +* Wed Jul 30 2025 Remi Collet <remi@remirepo.net> - 8.5.0~alpha3-1 +- update to 8.5.0alpha3 +- bump dependency on php-nikic-php-parser5 5.6 +- drop opcache subpackage, extension is build statically +- fix missing libraries for opcache using patch from + https://github.com/php/php-src/pull/19301 + * Tue Jul 15 2025 Remi Collet <remi@remirepo.net> - 8.5.0~alpha2-1 - update to 8.5.0alpha2 |