]> git.pld-linux.org Git - packages/php.git/commitdiff
opcache version is same as php core version auto/th/php70-7.0.8-1
authorElan Ruusamäe <glen@delfi.ee>
Sun, 26 Jun 2016 23:28:03 +0000 (02:28 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 26 Jun 2016 23:28:56 +0000 (02:28 +0300)
https://github.com/php/php-src/commit/d41920c57de652afc3794a56fd5bf8992575722f

the same change was made in 7.1 branch
14cf8d28fef688305bb7bb398e5f439dd319c2a2

php.spec

index 3ad46a8b8cd32dafaa4314a48932a25923284948..06cedc7c0e78b0d7ca0242a9782e90c53f9544e2 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -310,7 +310,6 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %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.3
@@ -1208,7 +1207,7 @@ Group:            Libraries
 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
@@ -2166,12 +2165,6 @@ if test "$ver" != "%{jsonver}"; then
        : 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}.
This page took 0.057463 seconds and 4 git commands to generate.