1 %define _modname xcache
2 Summary: %{_modname} - PHP opcode cacher
3 Summary(pl): %{_modname} - buforowanie opcodów PHP
8 Group: Development/Languages/PHP
9 URL: http://trac.lighttpd.net/xcache/
10 Source0: http://210.51.190.228/pub/XCache/rc/1.2.0-rc1/xcache-%{version}-rc1.tar.bz2
11 # Source0-md5: a518400a879d8904771867b9f50a650d
12 BuildRequires: php-devel >= 3:5.0
13 BuildRequires: rpmbuild(macros) >= 1.344
14 BuildRequires: sed >= 4.0
15 %{?requires_zend_extension}
16 Requires: php-common >= 4:5.0.4
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 XCache is a fast, stable PHP opcode cacher that has been tested and is
21 now running on production servers under high load.
24 XCache to szybkie, stabilne buforowanie opcodów PHP, przetestowane i
25 dzia³aj±ce na produkcyjnych serwerach o du¿ym obci±¿eniu.
35 s,zend_extension =.*,zend_extension = %{php_extensiondir}/xcache.so,
36 s,zend_extension_ts = .*,zend_extension_ts = %{php_extensiondir}/xcache.so,
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
44 INSTALL_ROOT=$RPM_BUILD_ROOT
46 install xcache.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
49 rm -rf $RPM_BUILD_ROOT
52 %php_webserver_restart
56 %php_webserver_restart
60 %defattr(644,root,root,755)
61 %doc AUTHORS README THANKS
62 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
63 %attr(755,root,root) %{php_extensiondir}/%{_modname}.so