3 %bcond_without tests # build without tests
5 %define modname xslcache
6 Summary: %{modname} - A modification of PHP's standard XSL extension that caches the parsed XSL stylesheet representation
7 Summary(pl.UTF-8): %{modname} - modyfikacja standardowego rozszerzenia XSL PHP, które buforuje przetworzone reprezentacje arkuszów stylów XSL
8 Name: php-pecl-%{modname}
12 Group: Development/Languages/PHP
13 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
14 # Source0-md5: 1e32327f62122055ece6f78fa2b851b2
15 URL: http://pecl.php.net/package/xslcache
16 BuildRequires: libxslt-devel >= 1.1.0
17 BuildRequires: php-devel >= 3:5.0.0
18 BuildRequires: rpmbuild(macros) >= 1.519
19 %{?requires_php_extension}
20 Requires: php-common >= 4:5.0.4
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The XSL Cache extension is a modification of PHP's standard XSL
25 extension that caches the parsed XSL stylesheet representation between
26 sessions for 2.5x boost in performance for sites that repeatedly apply
27 the same transform. Although there is still some further work that
28 could be done on the extension, this code is already proving
29 beneficial in production use for a few applications on the New York
34 mv %{modname}-%{version}/* .
39 --with-xslcache=%{_libdir} \
40 --with-xsl-exsl-dir=%{_libdir}
44 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
47 INSTALL_ROOT=$RPM_BUILD_ROOT \
48 EXTENSION_DIR=%{php_extensiondir}
49 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
50 ; Enable %{modname} extension module
51 extension=%{modname}.so
55 rm -rf $RPM_BUILD_ROOT
58 %php_webserver_restart
62 %php_webserver_restart
66 %defattr(644,root,root,755)
68 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
69 %attr(755,root,root) %{php_extensiondir}/%{modname}.so