1 %define _modname xcache
2 %define _sysconfdir /etc/php
3 %define extensionsdir %(php-config --extension-dir 2>/dev/null)
4 Summary: %{_modname} - PHP opcode cacher
5 Summary(pl): %{_modname} - buforowanie opcodów PHP
10 Group: Development/Languages/PHP
11 URL: http://trac.lighttpd.net/xcache/
12 Source0: http://210.51.190.228/pub/XCache/Releases/xcache-%{version}.tar.gz
13 # Source0-md5: a4e2ff36f16b096f24d3edd9b6ab411b
14 BuildRequires: php-devel >= 3:5.0
15 BuildRequires: rpmbuild(macros) >= 1.254
16 BuildRequires: sed >= 4.0
17 %{?requires_zend_extension}
18 Requires: %{_sysconfdir}/conf.d
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 XCache is a fast, stable PHP opcode cacher that has been tested and is
23 now running on production servers under high load.
26 XCache to szybkie, stabilne buforowanie opcodów PHP, przetestowane i
27 dzia³aj±ce na produkcyjnych serwerach o du¿ym obci±¿eniu.
37 s,zend_extension =.*,zend_extension = %{extensionsdir}/xcache.so,
38 s,zend_extension_ts = .*,zend_extension_ts = %{extensionsdir}/xcache.so,
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
46 INSTALL_ROOT=$RPM_BUILD_ROOT
48 install xcache.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
51 rm -rf $RPM_BUILD_ROOT
54 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
55 [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
59 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
60 [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
64 %defattr(644,root,root,755)
65 %doc AUTHORS README THANKS
66 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
67 %attr(755,root,root) %{extensionsdir}/%{_modname}.so