Logoj0ke.net Open Build Service > Projects > home:jg:php5-extensions > php5-xcache > Changes
Sign Up | Log In

Changes of Revision 9

[-] Added php-xcache.spec
x
 
1
@@ -0,0 +1,68 @@
2
+%define default_extdir  %{_libdir}/php/modules
3
+%define default_apiver  20041225
4
+%define default_vrsion  5.2.6
5
+
6
+%define module_version 1.2.2
7
+
8
+%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{default_extdir})
9
+%{!?php_version:%define php_version %(php-config --version 2>/dev/null || echo %{default_version})}
10
+
11
+
12
+Summary:   PHP accelerator, optimizer, encoder and dynamic content cacher
13
+
14
+Name:      php-xcache
15
+
16
+Version:   %{php_version}_%{module_version}
17
+Release:   1
18
+License:   GPL
19
+Group:         Development/Languages
20
+BuildRoot:     %{_tmppath}/%{name}-%{version}-root
21
+Requires:  php = %{php_version}
22
+Provides:  php-zend_extension
23
+BuildRequires:     php, php-devel, sed
24
+
25
+BuildRequires: autoconf, automake, libtool
26
+
27
+Source0: xcache-%{module_version}.tar.bz2
28
+Patch1: xcache-broken.ini.patch
29
+
30
+%description
31
+XCache is a fast, stable PHP opcode cacher that has been tested and is now
32
+running on production servers under high load. It is tested (on linux) and
33
+supported on all of the latest PHP cvs branches such as PHP_4_3 PHP_4_4
34
+PHP_5_1 PHP_5_2 HEAD(6.x). ThreadSafe/Windows is also supported.
35
+
36
+%prep
37
+%setup -n xcache-%{module_version}
38
+%patch1
39
+
40
+%build
41
+phpize
42
+%configure --enable-xcache
43
+
44
+make 
45
+
46
+%install
47
+rm -rf $RPM_BUILD_$ROOT
48
+
49
+make install INSTALL_ROOT=%{buildroot}
50
+mkdir -p $RPM_BUILD_ROOT/var/cache/php-xcache
51
+mkdir -p $RPM_BUILD_ROOT/var/www/html/xcache/
52
+%{__install} -D -m 0644 $RPM_SOURCE_DIR/xcache.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.d/xcache.ini
53
+sed -i -e 's|/REPLACEME|%{php_extdir}|g' $RPM_BUILD_ROOT%{_sysconfdir}/php.d/xcache.ini
54
+%{__install} -D -m 0644 admin/* $RPM_BUILD_ROOT%{_var}/www/html/xcache/
55
+
56
+
57
+%clean
58
+rm -rf $RPM_BUILD_ROOT
59
+
60
+
61
+%files
62
+%defattr(-, root, root, 0755)
63
+%doc xcache.ini admin/
64
+%config(noreplace) %{_sysconfdir}/php.d/xcache.ini
65
+#%config %{_sysconfdir}/php.d/xcache.ini
66
+%{php_extdir}/xcache.so
67
+%{_var}/www/html/xcache/*
68
+
69
+%changelog
70