]> git.pld-linux.org Git - packages/php-xcache.git/blame - php-xcache.spec
- tabs in preamble
[packages/php-xcache.git] / php-xcache.spec
CommitLineData
82f5b15c 1%define _modname xcache
82f5b15c 2Summary: %{_modname} - PHP opcode cacher
fd6082ef 3Summary(pl.UTF-8): %{_modname} - buforowanie opcodów PHP
82f5b15c 4Name: php-%{_modname}
6d2ee3c9
ER
5Version: 1.2.0
6Release: 0.1
82f5b15c
ER
7License: BSD
8Group: Development/Languages/PHP
9URL: http://trac.lighttpd.net/xcache/
6d2ee3c9
ER
10Source0: http://210.51.190.228/pub/XCache/rc/1.2.0-rc1/xcache-%{version}-rc1.tar.bz2
11# Source0-md5: a518400a879d8904771867b9f50a650d
82f5b15c 12BuildRequires: php-devel >= 3:5.0
e9d7bfa1 13BuildRequires: rpmbuild(macros) >= 1.344
99ae26ca 14BuildRequires: sed >= 4.0
22775bf0 15%{?requires_zend_extension}
e9d7bfa1 16Requires: php-common >= 4:5.0.4
82f5b15c
ER
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
99ae26ca
ER
20XCache is a fast, stable PHP opcode cacher that has been tested and is
21now running on production servers under high load.
82f5b15c 22
b3c5667f
JR
23%description -l pl.UTF-8
24XCache to szybkie, stabilne buforowanie opcodów PHP, przetestowane i
25działające na produkcyjnych serwerach o dużym obciążeniu.
822de9e6 26
82f5b15c
ER
27%prep
28%setup -q -n xcache
29
30%build
31phpize
32%configure
33%{__make}
34%{__sed} -i -e '
e9d7bfa1
ER
35 s,zend_extension =.*,zend_extension = %{php_extensiondir}/xcache.so,
36 s,zend_extension_ts = .*,zend_extension_ts = %{php_extensiondir}/xcache.so,
82f5b15c
ER
37' xcache.ini
38
39%install
40rm -rf $RPM_BUILD_ROOT
e9d7bfa1 41install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
82f5b15c
ER
42
43%{__make} install \
44 INSTALL_ROOT=$RPM_BUILD_ROOT
45
e9d7bfa1 46install xcache.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
82f5b15c
ER
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%post
e9d7bfa1 52%php_webserver_restart
82f5b15c
ER
53
54%postun
55if [ "$1" = 0 ]; then
e9d7bfa1 56 %php_webserver_restart
82f5b15c
ER
57fi
58
59%files
60%defattr(644,root,root,755)
61%doc AUTHORS README THANKS
e9d7bfa1
ER
62%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
63%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
This page took 0.04639 seconds and 4 git commands to generate.