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

Changes of Revision 2

[-] Changed php5-xcache.spec
x
 
1
@@ -1,164 +1,91 @@
2
-# norootforbuild
3
-%define pkg_name    xcache
4
-%define php_version %(php-config --version 2>/dev/null)
5
-#
6
-Name:      php5-xcache
7
-Version:   3.2.0
8
-Release:   1
9
-License:   BSD 
10
-Group:     Productivity/Networking/Web/Servers
11
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
12
-BuildRequires: php5-devel >= 5.1 indent
13
-Requires:  php5 = %{php_version} 
14
-Provides:  php5_code_cache
15
-Conflicts: php5-APC php5-eaccelerator
16
-%if 0%{?suse_version} > 1000
17
-Enhances:  php5
18
-%endif
19
-#
20
-URL:       http://xcache.lighttpd.net/
21
-Source:        http://xcache.lighttpd.net/pub/Releases/%{version}/%{pkg_name}-%{version}.tar.bz2
22
-Patch0:        xcache-broken-%{version}.ini.patch
23
-#
24
-Summary: A fast, stable php opcode cacher
25
+%define default_extdir  %{_libdir}/php/modules
26
+%define module_version 1.2.2
27
 
28
-%description
29
-XCache is a fast, stable php opcode cacher that has been tested and now running
30
-on production server under high load. It support and is tested on all lastest
31
-php cvs branches, such as PHP_4_3 PHP_4_4 PHP_5_1 PHP_5_2 PHP_5_3 PHP_5_4 HEAD(6.x)
32
+%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{default_extdir})
33
+%{!?php_version:%define php_version %(php-config --version 2>/dev/null || echo %{default_version})}
34
 
35
+# This is the apache userid, only used for sysvipc semaphores which is the
36
+# default on ppc since spinlock is not detected
37
+%define userid         48
38
+
39
+Summary: PHP accelerator, optimizer, encoder and dynamic content cacher
40
+Name: php-xcache
41
+Version: %{php_version}_%{module_version}
42
+Release: 1
43
+License: GPL
44
+Group: Development/Languages
45
+URL: http://xcache.lighttpd.net/
46
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
47
+Requires: php = %{php_version}
48
+Provides: php-zend_extension
49
+BuildRequires: php, php-devel, sed
50
+# Required by phpize
51
+BuildRequires: autoconf, automake, libtool
52
 
53
-Authors:
54
----------
55
-    moo <phpxcache@gmail.com>
56
+Source0: xcache-%{module_version}.tar.bz2
57
+Source1: xcache.ini
58
 
59
-%prep
60
-%setup -q -n %{pkg_name}-%{version}
61
-%patch0
62
+%description
63
+XCache is a fast, stable PHP opcode cacher that has been tested and is now
64
+running on production servers under high load. It is tested (on linux) and
65
+supported on all of the latest PHP cvs branches such as PHP_4_3 PHP_4_4
66
+PHP_5_1 PHP_5_2 HEAD(6.x). ThreadSafe/Windows is also supported.
67
 
68
-%{__mkdir} %{name}
69
+%prep
70
+%setup -n xcache-%{module_version}
71
 
72
 %build
73
-/usr/bin/phpize
74
+phpize
75
+%configure --enable-xcache
76
 
77
-CFLAGS="%{optflags} -fno-strict-aliasing"
78
-%if 0%{?suse_version} > 1000
79
-CFLAGS="$CFLAGS -fstack-protector"
80
-%endif
81
-
82
-export CFLAGS
83
-
84
-./configure \
85
-    --enable-xcache \
86
-    --enable-xcache-coverager
87
-%{__make} %{?jobs:-j%jobs}
88
+%{__make} %{?_smp_mflags}
89
 
90
 %install
91
-%__make install INSTALL_ROOT=%{buildroot}
92
-%{__install} -D  -m 0644 xcache.ini %{buildroot}%{_sysconfdir}/php5/conf.d/xcache.ini
93
-%{__install} -Dd -m 0755 %{buildroot}%{_datadir}/php5/xcache/
94
-touch htdocs/{,coverager}/config.php
95
-%{__cp} -rv htdocs/* %{buildroot}%{_datadir}/php5/xcache/
96
+%{__rm} -rf %{buildroot}
97
+%{__make} install INSTALL_ROOT=%{buildroot}
98
+
99
+# The cache directory where pre-compiled files will reside
100
+%{__mkdir_p} %{buildroot}%{_var}/cache/php-xcache
101
+%{__mkdir_p} %{buildroot}%{_var}/www/html/xcache/
102
+
103
+# Drop in the bit of configuration
104
+%{__install} -D -m 0644 $RPM_SOURCE_DIR/xcache.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.d/xcache.ini
105
+sed -i -e 's|/REPLACEME|%{php_extdir}|g' $RPM_BUILD_ROOT%{_sysconfdir}/php.d/xcache.ini
106
+%{__install} -D -m 0644 admin/* $RPM_BUILD_ROOT%{_var}/www/html/xcache/
107
+
108
 
109
 %clean
110
 %{__rm} -rf %{buildroot}
111
 
112
+
113
 %files
114
-%defattr(644,root,root,755)
115
-%{_libdir}/php5/extensions/xcache.so
116
-%config(noreplace) %{_sysconfdir}/php5/conf.d/xcache.ini
117
-%dir %{_datadir}/php5/xcache/
118
-%dir %{_datadir}/php5/xcache/cacher
119
-%dir %{_datadir}/php5/xcache/cacher/lang
120
-%dir %{_datadir}/php5/xcache/cacher/sub
121
-%dir %{_datadir}/php5/xcache/common
122
-%dir %{_datadir}/php5/xcache/common/lang
123
-%dir %{_datadir}/php5/xcache/coverager
124
-%dir %{_datadir}/php5/xcache/coverager/lang
125
-%dir %{_datadir}/php5/xcache/diagnosis
126
-%dir %{_datadir}/php5/xcache/diagnosis/lang
127
-%ghost %config(noreplace) %{_datadir}/php5/xcache/config.php
128
-%ghost %config(noreplace) %{_datadir}/php5/xcache/coverager/config.php
129
-%{_datadir}/php5/xcache/config.example.php                                                                     
130
-%{_datadir}/php5/xcache/diagnosis/lang/zh-tranditional.php                                                     
131
-%{_datadir}/php5/xcache/diagnosis/lang/zh-traditional.po                                                       
132
-%{_datadir}/php5/xcache/diagnosis/lang/zh-simplified.po                                                        
133
-%{_datadir}/php5/xcache/diagnosis/lang/zh-traditional.php                                                      
134
-%{_datadir}/php5/xcache/diagnosis/lang/zh-simplified.php                                                       
135
-%{_datadir}/php5/xcache/diagnosis/lang/en.po                                                                   
136
-%{_datadir}/php5/xcache/diagnosis/lang/en.php                                                                  
137
-%{_datadir}/php5/xcache/diagnosis/diagnosis.css                                                                
138
-%{_datadir}/php5/xcache/diagnosis/diagnosis.tpl.php                                                            
139
-%{_datadir}/php5/xcache/diagnosis/index.php                                                                    
140
-%{_datadir}/php5/xcache/config.default.php                                                                     
141
-%{_datadir}/php5/xcache/cacher/edit.php                                                                        
142
-%{_datadir}/php5/xcache/cacher/lang/zh-traditional.po                                                          
143
-%{_datadir}/php5/xcache/cacher/lang/zh-simplified.po                                                           
144
-%{_datadir}/php5/xcache/cacher/lang/zh-traditional.php                                                         
145
-%{_datadir}/php5/xcache/cacher/lang/zh-simplified.php                                                          
146
-%{_datadir}/php5/xcache/cacher/lang/en.po                                                                      
147
-%{_datadir}/php5/xcache/cacher/lang/en.php                                                                     
148
-%{_datadir}/php5/xcache/cacher/common.php                                                                      
149
-%{_datadir}/php5/xcache/cacher/config.example.php
150
-%{_datadir}/php5/xcache/cacher/config.default.php
151
-%{_datadir}/php5/xcache/cacher/edit.tpl.php
152
-%{_datadir}/php5/xcache/cacher/cacher.css
153
-%{_datadir}/php5/xcache/cacher/summary.tpl.php
154
-%{_datadir}/php5/xcache/common/tablesort.js
155
-%{_datadir}/php5/xcache/cacher/index.php
156
-%{_datadir}/php5/xcache/cacher/mkpassword.php
157
-%{_datadir}/php5/xcache/cacher/sub/testcoredump.tpl.php
158
-%{_datadir}/php5/xcache/cacher/sub/entrylist.tpl.php
159
-%{_datadir}/php5/xcache/cacher/sub/summary.tpl.php
160
-%{_datadir}/php5/xcache/cacher/sub/moduleinfo.tpl.php
161
-%{_datadir}/php5/xcache/cacher/listentries.tpl.php
162
-%{_datadir}/php5/xcache/common/common.css
163
-%{_datadir}/php5/xcache/common/lang/zh-traditional.po
164
-%{_datadir}/php5/xcache/common/lang/zh-simplified.po
165
-%{_datadir}/php5/xcache/common/lang/zh-traditional.php
166
-%{_datadir}/php5/xcache/common/lang/zh-simplified.php
167
-%{_datadir}/php5/xcache/common/lang/en.po
168
-%{_datadir}/php5/xcache/common/lang/en.php
169
-%{_datadir}/php5/xcache/common/xcache.png
170
-%{_datadir}/php5/xcache/common/common.php
171
-%{_datadir}/php5/xcache/common/header.tpl.php
172
-%{_datadir}/php5/xcache/common/footer.tpl.php
173
-%{_datadir}/php5/xcache/index.php
174
-%{_datadir}/php5/xcache/coverager/lang/zh-traditional.po
175
-%{_datadir}/php5/xcache/coverager/lang/zh-simplified.po
176
-%{_datadir}/php5/xcache/coverager/lang/zh-traditional.php
177
-%{_datadir}/php5/xcache/coverager/lang/zh-simplified.php
178
-%{_datadir}/php5/xcache/coverager/lang/en.po
179
-%{_datadir}/php5/xcache/coverager/lang/en.php
180
-%{_datadir}/php5/xcache/coverager/common.php
181
-%{_datadir}/php5/xcache/coverager/config.example.php
182
-%{_datadir}/php5/xcache/coverager/config.default.php
183
-%{_datadir}/php5/xcache/coverager/index.php
184
-%{_datadir}/php5/xcache/coverager/coverager.css
185
-%{_datadir}/php5/xcache/coverager/coverager.tpl.php
186
-%doc AUTHORS COPYING NEWS THANKS
187
+%defattr(-, root, root, 0755)
188
+%doc xcache.ini admin/
189
+%config(noreplace) %{_sysconfdir}/php.d/xcache.ini
190
+#%config %{_sysconfdir}/php.d/xcache.ini
191
+%{php_extdir}/xcache.so
192
+%{_var}/www/html/xcache/*
193
 
194
 %changelog
195
-* Mon Nov 29 2010 Carsten Schoene <cs@linux-administrator.com> - 1.3.1
196
-- update to release 1.3.1
197
+* Tue Apr  8 2008 Juergen Gotteswinter <jg@internetx.de> 1.2.2-1
198
+- Updated to 1.2.2
199
 
200
-* Sat Aug 08 2009 Carsten Schoene <cs@linux-administrator.com> - 1.3.0
201