1 %define php_name php%{?php_suffix}
3 Summary: APCu - APC User Cache
4 Name: %{php_name}-pecl-%{modname}
8 Group: Development/Languages/PHP
9 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
10 # Source0-md5: a7696b1c351d9bd1592b7840701f5bf7
11 Source1: %{modname}.ini
12 URL: http://pecl.php.net/package/APCu/
13 BuildRequires: %{php_name}-devel >= 4:5.1.0
14 BuildRequires: rpmbuild(macros) >= 1.666
15 %{?requires_php_extension}
16 Requires: php(core) >= 5.1.0
17 Provides: php(apcu) = %{version}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 APCu is userland caching: APC stripped of opcode caching in
22 preparation for the deployment of Zend Optimizer+ as the primary
23 solution to opcode caching in future versions of PHP.
25 APCu only supports userland caching (and dumping) of variables,
26 providing an upgrade path for the future. When O+ takes over, many
27 will be tempted to use 3rd party solutions to userland caching,
28 possibly even distributed solutions; this would be a grave error. The
29 tried and tested APC codebase provides far superior support for local
30 storage of PHP variables.
34 mv %{modname}-%{version}/* .
40 --%{!?debug:dis}%{?debug:en}able-apcu-debug \
41 --enable-apcu-spinlocks \
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{php_extensiondir},%{php_sysconfdir}/conf.d}
48 install -p modules/apcu.so $RPM_BUILD_ROOT%{php_extensiondir}/%{modname}.so
49 cp -p %{modname}.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
52 rm -rf $RPM_BUILD_ROOT
55 %php_webserver_restart
59 %php_webserver_restart
63 %defattr(644,root,root,755)
64 %doc README.md NOTICE TECHNOTES.txt TODO INSTALL LICENSE
65 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
66 %attr(755,root,root) %{php_extensiondir}/%{modname}.so