1 %define _modname xcache
2 Summary: %{_modname} - PHP opcode cacher
3 Summary(pl.UTF-8): %{_modname} - buforowanie opcodów PHP
8 Group: Development/Languages/PHP
9 URL: http://xcache.lighttpd.net/
10 Source0: http://xcache.lighttpd.net/pub/Releases/1.2.1/xcache-%{version}.tar.bz2
11 # Source0-md5: 42133468871c573c397b8375dc8c19b6
12 BuildRequires: php-devel >= 3:5.1
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.
23 %description -l pl.UTF-8
24 XCache to szybkie, stabilne buforowanie opcodów PHP, przetestowane i
25 działające na produkcyjnych serwerach o dużym obciążeniu.
28 %setup -q -n xcache-%{version}
30 s,zend_extension =.*,zend_extension = %{php_extensiondir}/xcache.so,
31 s,zend_extension_ts = .*,zend_extension_ts = %{php_extensiondir}/xcache.so,
38 --enable-xcache-optimizer \
39 --enable-xcache-coverager
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
47 INSTALL_ROOT=$RPM_BUILD_ROOT
49 # The cache directory where pre-compiled files will reside
50 install -d $RPM_BUILD_ROOT/var/cache/php-xcache
51 install -d $RPM_BUILD_ROOT%{_datadir}/xcache
53 # Drop in the bit of configuration
54 install xcache.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
55 install -D admin/* $RPM_BUILD_ROOT%{_datadir}/xcache
58 rm -rf $RPM_BUILD_ROOT
61 %php_webserver_restart
65 %php_webserver_restart
69 %defattr(644,root,root,755)
70 %doc AUTHORS README THANKS
71 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
72 %attr(755,root,root) %{php_extensiondir}/%{_modname}.so
74 %dir %attr(775,root,http) /var/cache/php-xcache