Logoj0ke.net Open Build Service > Projects > internetx:php4:extensions > php4-xcache > Changes
Sign Up | Log In

Changes of Revision 2

[+] Deleted php5-xcache.changes
[-] Added php4-xcache.spec ^
x
 
1
@@ -0,0 +1,109 @@
2
+# norootforbuild
3
+%define pkg_name    xcache
4
+%define php_version %(php-config4 --version 2>/dev/null)
5
+#
6
+Name: php4-xcache
7
+Version: 1.3.0
8
+Release: 0
9
+License: BSD 
10
+Group: Productivity/Networking/Web/Servers
11
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
12
+BuildRequires: php4-devel >= 4.4.8 indent
13
+Requires: php4 = %{php_version} 
14
+Provides : php4_code_cache
15
+Conflicts : php4-APC php4-eaccelerator
16
+%if 0%{?suse_version} > 1000
17
+Enhances : php4
18
+%endif
19
+#
20
+URL: http://trac.lighttpd.net/xcache/
21
+Source: http://210.51.190.228/pub/XCache/Releases/%{pkg_name}-%{version}.tar.bz2
22
+Patch0: xcache-broken.ini.patch
23
+#
24
+Summary: A fast, stable php opcode cacher
25
+%description
26
+XCache is a fast, stable php opcode cacher that has been tested and now running
27
+on production server under high load. It support and is tested on all lastest
28
+php cvs branches, such as PHP_4_3 PHP_4_4 PHP_5_1 PHP_5_2 HEAD(6.x)
29
+
30
+
31
+Authors:
32
+---------
33
+    moo <phpxcache@gmail.com>
34
+
35
+%prep
36
+%setup -q -n %{pkg_name}-%{version}
37
+%patch0
38
+
39
+%{__mkdir} %{name}
40
+
41
+%build
42
+/usr/bin/phpize
43
+pushd %{name}
44
+
45
+CFLAGS="%{optflags} -fno-strict-aliasing"
46
+%if 0%{?suse_version} > 1000
47
+CFLAGS="$CFLAGS -fstack-protector"
48
+%endif
49
+
50
+export CFLAGS
51
+
52
+../configure \
53
+    --enable-xcache \
54
+    --enable-xcache-coverager \
55
+    --with-php-config=%{_bindir}/php-config4
56
+
57
+%{__make} %{?jobs:-j%jobs}
58
+popd
59
+
60
+%install
61
+%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
62
+%{__install} -D  -m 0644 xcache.ini %{buildroot}%{_sysconfdir}/php4/php.d/xcache.ini
63
+%{__install} -Dd -m 0755 %{buildroot}%{_datadir}/php4/xcache/
64
+touch {admin,coverager}/config.php
65
+%{__cp} -rv admin/ coverager/ %{buildroot}%{_datadir}/php4/xcache/
66
+
67
+%clean
68
+%{__rm} -rf %{buildroot}
69
+
70
+%files
71
+%defattr(644,root,root,755)
72
+%{_libdir}/php4/xcache.so
73
+%config(noreplace) %{_sysconfdir}/php4/php.d/xcache.ini
74
+%dir %{_datadir}/php4/xcache/
75
+%dir %{_datadir}/php4/xcache/admin/
76
+%ghost %config(noreplace) %{_datadir}/php4/xcache/admin/config.php
77
+%{_datadir}/php4/xcache/admin/config.php.example
78
+%{_datadir}/php4/xcache/admin/index.php
79
+%{_datadir}/php4/xcache/admin/help.php
80
+%{_datadir}/php4/xcache/admin/tablesort.js
81
+%{_datadir}/php4/xcache/admin/xcache.css
82
+%{_datadir}/php4/xcache/admin/xcache.php
83
+%{_datadir}/php4/xcache/admin/xcache.tpl.php
84
+%{_datadir}/php4/xcache/admin/common-en.lang.php
85
+%{_datadir}/php4/xcache/admin/common-zh-simplified-utf-8.lang.php
86
+%{_datadir}/php4/xcache/admin/common.php
87
+%{_datadir}/php4/xcache/admin/help-en.lang.php
88
+%{_datadir}/php4/xcache/admin/help-zh-simplified-utf-8.lang.php
89
+%{_datadir}/php4/xcache/admin/common-zh-traditional-utf-8.lang.php
90
+%{_datadir}/php4/xcache/admin/help-zh-traditional-utf-8.lang.php
91
+%{_datadir}/php4/xcache/admin/edit.php
92
+%{_datadir}/php4/xcache/admin/edit.tpl.php
93
+%{_datadir}/php4/xcache/admin/footer.tpl.php
94
+%{_datadir}/php4/xcache/admin/header.tpl.php
95
+%dir %{_datadir}/php4/xcache/coverager/
96
+%ghost %config(noreplace) %{_datadir}/php4/xcache/coverager/config.php
97
+%{_datadir}/php4/xcache/coverager/config.php.example
98
+%{_datadir}/php4/xcache/coverager/coverager.css
99
+%{_datadir}/php4/xcache/coverager/coverager.php
100
+%{_datadir}/php4/xcache/coverager/coverager.tpl.php
101
+%{_datadir}/php4/xcache/coverager/index.php
102
+%{_datadir}/php4/xcache/coverager/common-en.lang.php
103
+%{_datadir}/php4/xcache/coverager/common-zh-simplified-utf-8.lang.php
104
+%{_datadir}/php4/xcache/coverager/common.php
105
+%{_datadir}/php4/xcache/coverager/common-zh-simplified-gb2312.lang.php
106
+%doc AUTHORS COPYING THANKS
107
+
108
+%changelog
109
+* Sat Aug 08 2009 Carsten Schoene <cs@linux-administrator.com> - 1.3.0
110
+- update to release 1.3.0
111
[+] Deleted php5-xcache.spec ^
Deleted xcache-1.2.2.tar.bz2 ^