ALT repositories
Last updated at Fri, 24 Jul 2020 16:39:53 +0000 | SRPMs: 19057
en ru
SRPMs in branches
hide window
  • 7.2.17-alt1.1
  • 7.2.34-alt1.1
  • 7.2.6-alt1.M70C.1.1
Group :: System/Servers
Source RPM: php7-opcache
Raw spec file

%define php7_extension opcache

Name: php7-%php7_extension
Version: %php7_version
Release: %php7_release.3

Summary: Zend Opcache extension for opcode caching and optimization

Group: System/Servers
License: PHP Licence

Packager: Nikolay A. Fetisov <naf at>

#Source0: standart PHP module

Source1: php-%php7_extension.ini

Patch0: php7-opcache-sapi-names.patch
Patch1: php7-opcache-file_cache.patch

BuildRequires: gcc-c++
BuildRequires: php7-devel = %php7_version
BuildRequires: php7 = %php7_version

php7 Opcache extension 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

%setup -T -c
cp -pr -- %php7_extsrcdir/%php7_extension/* .


# Fix path to pdo*.h

subst 's@php/ext@php/%_php7_version/ext@g' config.m4


BUILD_HAVE=`echo %php7_extension | tr '[:lower:]-' '[:upper:]_'`
%add_optflags -fPIC -L%_libdir
%ifarch %e2k
%add_optflags -U__AVX__ -U__SSE2__
export LDFLAGS=-lphp-%_php7_version

# Fix for config.m4 in %%prep would't work for some reason

subst 's@php/ext@php/%_php7_version/ext@g' configure

%configure \
--with-libdir=%_lib \
--enable-%php7_extension \
--enable-%php7_extension-file \


install -D -m 644 -- %SOURCE1 %buildroot/%php7_extconf/%php7_extension/config
install -D -m 644 -- %SOURCE2 %buildroot/%php7_extconf/%php7_extension/params

NO_INTERACTION=1 make test




* %(date "+%%a %%b %%d %%Y") %{?package_signer:%package_signer}%{!?package_signer:%packager} %version-%release
- Rebuild with php7-%version-%release

* Thu Apr 30 2020 Vitaly Lipatov <lav at> 7.3.16-alt1.3
- fix SAPI name (ALT bug 38412)

* Thu Nov 28 2019 Michael Shigorin <mike at> 7.3.12-alt1.2
- Fix build on %%e2k (SIMD needs proper porting)

* Fri Jun 16 2017 Nikolay A. Fetisov <naf at> 7.1.6-alt1.S1.1
- Fix build with enabled Opcache file cache

* Tue Jun 13 2017 Nikolay A. Fetisov <naf at> 7.1.6-alt1.S1
- Initial build for ALT Linux Sisyphus

The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.