[packages/php-pecl-apcu] new, version 4.0.1

glen glen at pld-linux.org
Thu Jun 20 23:44:28 CEST 2013


commit 0c8088ff5e0565625093c5426882d8a8500af9cd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Jun 21 00:41:44 2013 +0300

    new, version 4.0.1
    
    apc stripped opcode caching suitable for with zend optimizer+ (php 5.5
    or zendopcache pecl package)

 apcu.ini           |  7 ++++++
 php-pecl-apcu.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)
---
diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec
new file mode 100644
index 0000000..b17331f
--- /dev/null
+++ b/php-pecl-apcu.spec
@@ -0,0 +1,66 @@
+%define		modname	apcu
+%define		status		beta
+Summary:	APCu - APC User Cache
+Name:		php-pecl-%{modname}
+Version:	4.0.1
+Release:	1
+License:	PHP 3.01
+Group:		Development/Languages/PHP
+Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5:	994de4335eb2967c006aa9ca185876fa
+Source1:	%{modname}.ini
+URL:		http://pecl.php.net/package/APCu/
+BuildRequires:	php-devel >= 4:5.1.0
+BuildRequires:	rpmbuild(macros) >= 1.580
+%{?requires_php_extension}
+Requires:	php(core) >= 5.1.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+APCu is userland caching: APC stripped of opcode caching in
+preparation for the deployment of Zend Optimizer+ as the primary
+solution to opcode caching in future versions of PHP.
+
+APCu only supports userland caching (and dumping) of variables,
+providing an upgrade path for the future. When O+ takes over, many
+will be tempted to use 3rd party solutions to userland caching,
+possibly even distributed solutions; this would be a grave error. The
+tried and tested APC codebase provides far superior support for local
+storage of PHP variables.
+
+In PECL status of this package is: %{status}.
+
+%prep
+%setup -qc
+mv %{modname}-%{version}/* .
+cp -p %{SOURCE1} .
+
+%build
+phpize
+%configure \
+	--%{!?debug:dis}%{?debug:en}able-apcu-debug \
+	--enable-apcu-mmap
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{php_extensiondir},%{php_sysconfdir}/conf.d}
+install -p modules/apcu.so $RPM_BUILD_ROOT%{php_extensiondir}/%{modname}.so
+cp -p %{modname}.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%php_webserver_restart
+
+%postun
+if [ "$1" = 0 ]; then
+	%php_webserver_restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README.md NOTICE TECHNOTES.txt TODO INSTALL LICENSE
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
diff --git a/apcu.ini b/apcu.ini
new file mode 100644
index 0000000..a56f9e9
--- /dev/null
+++ b/apcu.ini
@@ -0,0 +1,7 @@
+; Enable APCu extension module
+; see INSTALL for description of the configurable options
+extension=apcu.so
+apc.enabled=1
+;apc.shm_size=32M
+;apc.ttl=7200
+;apc.enable_cli=1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-apcu.git/commitdiff/0c8088ff5e0565625093c5426882d8a8500af9cd



More information about the pld-cvs-commit mailing list