1 |
# $Id: e-smith-php.spec,v 1.4 2014/11/14 18:33:46 charliebrady Exp $ |
2 |
|
3 |
Summary: e-smith specific PHP configuration and templates. |
4 |
%define name e-smith-php |
5 |
Name: %{name} |
6 |
%define version 2.4.0 |
7 |
%define release 5 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Patch1: e-smith-php-2.4.0-magic-quotes-off.patch |
14 |
#Patch2: e-smith-php-2.4.0_add_upload_tmp_folder.patch |
15 |
Patch3: e-smith-php-2.4.0-gpc_order.patch |
16 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildArchitectures: noarch |
18 |
Requires: e-smith-base, php >= 4.0.1 |
19 |
Requires: e-smith-lib >= 1.15.1-16 |
20 |
BuildRequires: e-smith-devtools >= 1.11.0-12 |
21 |
AutoReqProv: no |
22 |
|
23 |
%changelog |
24 |
* Mon Jun 29 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-5 |
25 |
- revert the e-smith-php-2.4.0_add_upload_tmp_folder.patch [SME: 7011] |
26 |
|
27 |
* Fri Nov 14 2014 Charlie Brady <charlie_brady@mitel.com> 2.4.0-4.sme |
28 |
- Remove obsolete gpc_order setting from php.ini. [SME: 8652] |
29 |
|
30 |
* Sat May 4 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-3.sme |
31 |
- Add an upload_tmp_folder setting by db command [SME: 7011] |
32 |
- Thanks to Michael McCarn and Jean-philippe Pialasse |
33 |
|
34 |
* Sun May 19 2013 Ian Wells <esmith@wellsi.com> 2.4.0-2.sme |
35 |
- Force magic_quotes Off [SME: 7605] |
36 |
|
37 |
* Wed Feb 13 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
38 |
- Roll new stream for sme9 |
39 |
|
40 |
* Mon Sep 19 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-6.sme |
41 |
- Remove PHP version check from migrate script [SME: 6727] |
42 |
|
43 |
* Mon Sep 19 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-5.sme |
44 |
- Obsolete magic_quotes settings [SME: 6725] |
45 |
|
46 |
* Sat Sep 17 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-4.sme |
47 |
- Set default timezone [SME: 6716] |
48 |
|
49 |
* Mon Jul 19 2010 Ian Wells <esmith@wellsi.com> 2.2.0-3.sme |
50 |
- Default expose_php in php.ini to Off [SME: 6136] |
51 |
|
52 |
* Sun Mar 14 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-2.sme |
53 |
- Prepare for obsoletion of magic_quotes* when we supply PHP 5.3.0+ [SME: 5843] |
54 |
|
55 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
56 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
57 |
|
58 |
* Wed Aug 20 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.12.0-8 |
59 |
- Fix latest patches to prevent .orig file [SME: 4513] |
60 |
|
61 |
* Wed Aug 20 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.12.0-7 |
62 |
- Fix some minor layout issues introduced by fixes in [SME: 4513] |
63 |
|
64 |
* Tue Aug 19 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.12.0-6 |
65 |
- Fix whiteline and spacing issues [SME: 4513] |
66 |
|
67 |
* Fri Apr 18 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.12.0-5 |
68 |
- Split 80ModuleSettings template fragmenent to have one frament per module [SME: 3282] |
69 |
|
70 |
* Fri May 18 2007 Shad L. Lords <slords@mail.com> 1.12.0-4 |
71 |
- Use correct lib for modules |
72 |
|
73 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
74 |
- Clean up spec so package can be built by koji/plague |
75 |
|
76 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
77 |
- Update to new release naming. No functional changes. |
78 |
- Make Packager generic |
79 |
|
80 |
* Fri Oct 13 2006 Shad L. Lords <slords@mail.com> 1.12.0-02 |
81 |
- Add support for php5 [SME: 1120] |
82 |
|
83 |
* Fri Mar 17 2006 Gordon Rowell <gordonr@gormand.com.au> 1.12.0-01 |
84 |
- Roll stable stream version. [SME: 1016] |
85 |
|
86 |
* Mon Jan 30 2006 Charlie Brady <charlie_brady@mitel.com> 1.11.0-10 |
87 |
- Remove all pre/post/preun/postun scriptlets. [SME: 469] |
88 |
|
89 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.11.0-09 |
90 |
- Bump release number only |
91 |
|
92 |
* Tue Oct 18 2005 Charlie Brady <charlieb@e-smith.com> |
93 |
- [1.11.0-08] |
94 |
- Prevent i-bay name aliasing in default open_basedir restriction. |
95 |
[SF: 1330228] |
96 |
|
97 |
* Tue Sep 6 2005 Tony Clayton <apc@e-smith.com> |
98 |
- [1.11.0-07] |
99 |
- Turn register_globals off by default [SF: 1271218] |
100 |
|
101 |
* Tue Jul 19 2005 Charlie Brady <charlieb@e-smith.com> |
102 |
- [1.11.0-06] |
103 |
- Update to current db access APIs, in readiness for move of dbs to private |
104 |
directory. [SF: 1216546 (Shad)] |
105 |
|
106 |
* Sun May 1 2005 Charlie Brady <charlieb@e-smith.com> |
107 |
- [1.11.0-05] |
108 |
- Update include_path in php.ini, to base and add-on pear directories. |
109 |
|
110 |
* Tue Jan 25 2005 Charlie Brady <charlieb@e-smith.com> |
111 |
- [1.11.0-04] |
112 |
- Use generic_template_expand action to expand /etc/php.ini. |
113 |
Add e-smith-lib dependency. Add e-smith-devtools dependency. [MN00064130] |
114 |
- Remove anachronisms in /etc/php.ini templates. |
115 |
- Fix loss of AllowUrlFopen property during post-install. [MN00064752] |
116 |
|
117 |
* Wed Nov 10 2004 Charlie Brady <charlieb@e-smith.com> |
118 |
- [1.11.0-03] |
119 |
- Convert apache config fragments to apache2 format. [charlieb MN00051144] |
120 |
|
121 |
* Fri Nov 5 2004 Charlie Brady <charlieb@e-smith.com> |
122 |
- [1.11.0-02] |
123 |
- Remove specification of dynamic extensions, as that is done with newer |
124 |
php via /etc/php.d/. [charlieb MN00051515] |
125 |
- Replace deprecated Copyright header with License header. |
126 |
- Remove bogus WARNING text from spec file. [charlieb] |
127 |
|
128 |
* Mon Jan 26 2004 Michael Soulier <msoulier@e-smith.com> |
129 |
- [1.11.0-01] |
130 |
- rolling to dev - 1.11.0 |
131 |
|
132 |
* Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com> |
133 |
- [1.10.0-01] |
134 |
- Changing version to stable stream number - 1.10.0 |
135 |
|
136 |
* Wed May 28 2003 Michael Soulier <msoulier@e-smith.com> |
137 |
- [1.9.0-13] |
138 |
- Fixed a typo in the previous version. [msoulier 8852] |
139 |
|
140 |
* Wed May 28 2003 Michael Soulier <msoulier@e-smith.com> |
141 |
- [1.9.0-12] |
142 |
- Wrappered the restart of the e-smith web server so that it is conditional on |
143 |
e-smith-apache being installed. [msoulier 8852] |
144 |
|
145 |
* Tue May 27 2003 Michael Soulier <msoulier@e-smith.com> |
146 |
- [1.9.0-11] |
147 |
- Remembered that we can't query the rpm database during rpm installs. |
148 |
[msoulier 8852] |
149 |
|
150 |
* Tue May 27 2003 Michael Soulier <msoulier@e-smith.com> |
151 |
- [1.9.0-10] |
152 |
- Wrappered the restart of the e-smith web server so that it is conditional on |
153 |
e-smith-apache being installed. [msoulier 8852] |
154 |
|
155 |
* Tue May 27 2003 Michael Soulier <msoulier@e-smith.com> |
156 |
- [1.9.0-09] |
157 |
- Added a type default fragment. [msoulier 3299] |
158 |
|
159 |
* Wed Apr 23 2003 Gordon Rowell <gordonr@e-smith.com> |
160 |
- [1.9.0-08] |
161 |
- Increase limits to allow webmail attachments of 10MB, rather than 2MB |
162 |
MemoryLimit 8M -> 32M, PostMaxSize 8M -> 20M, UploadMaxFilesize 2M -> 10M [gordonr 8478] |
163 |
|
164 |
* Wed Apr 2 2003 Gordon Rowell <gordonr@e-smith.com> |
165 |
- [1.9.0-07] |
166 |
- set allow_url_fopen = Off by default, tunable in config db [gordonr 4970] |
167 |
|
168 |
* Tue Apr 1 2003 Gordon Rowell <gordonr@e-smith.com> |
169 |
- [1.9.0-06] |
170 |
- And back out last change - not a bug [gordonr 7836] |
171 |
|
172 |
* Tue Apr 1 2003 Gordon Rowell <gordonr@e-smith.com> |
173 |
- [1.9.0-05] |
174 |
- Fix include_path in php.ini [gordonr 7836] |
175 |
|
176 |
* Fri Mar 7 2003 Gordon Rowell <gordonr@e-smith.com> |
177 |
- [1.9.0-04] |
178 |
- Update more httpd.conf fragments to new interface [gordonr 7600] |
179 |
|
180 |
* Fri Mar 7 2003 Gordon Rowell <gordonr@e-smith.com> |
181 |
- [1.9.0-03] |
182 |
- Update httpd.conf fragment to new interface [gordonr 7600] |
183 |
|
184 |
* Thu Jan 23 2003 Michael Soulier <msoulier@e-smith.com> |
185 |
- [1.9.0-02] |
186 |
- Adding .phtml extension. [msoulier 6543] |
187 |
|
188 |
* Thu Jan 23 2003 Michael Soulier <msoulier@e-smith.com> |
189 |
- [1.9.0-01] |
190 |
- rolling to development stream to 1.9.0 |
191 |
|
192 |
* Thu Jan 23 2003 Michael Soulier <msoulier@e-smith.com> |
193 |
- [1.8.0-05] |
194 |
- Backing out changes since 1.8.0-01, as they belong in a development stream. |
195 |
[msoulier 6543] |
196 |
|
197 |
* Thu Jan 23 2003 Michael Soulier <msoulier@e-smith.com> |
198 |
- [1.8.0-04] |
199 |
- Fixed a syntax error that I should have caught before committing the last |
200 |
version. [msoulier 6543] |
201 |
|
202 |
* Thu Jan 23 2003 Michael Soulier <msoulier@e-smith.com> |
203 |
- [1.8.0-03] |
204 |
- Bringing the api up to the modern version. [msoulier 6543] |
205 |
|
206 |
* Thu Jan 23 2003 Michael Soulier <msoulier@e-smith.com> |
207 |
- [1.8.0-02] |
208 |
- Added index.phtml to the DirectoryIndex directive, and made the code a |
209 |
little nicer to look at. [msoulier 6543] |
210 |
|
211 |
* Fri Oct 11 2002 Charlie Brady <charlieb@e-smith.com> |
212 |
- [1.8.0-01] |
213 |
- Roll to maintained version number to 1.8.0 |
214 |
|
215 |
* Mon Jul 22 2002 Charlie Brady <charlieb@e-smith.com> |
216 |
- [1.7.1-01] |
217 |
- Add conf-php link to bootstrap-console-save event [charlieb 1939] |
218 |
|
219 |
* Wed Jun 5 2002 Charlie Brady <charlieb@e-smith.com> |
220 |
- [1.7.0-01] |
221 |
- Changing version to development stream number to 1.7.0 |
222 |
|
223 |
* Fri May 31 2002 Charlie Brady <charlieb@e-smith.com> |
224 |
- [1.6.0-01] |
225 |
- Changing version to maintained stream number to 1.6.0 |
226 |
|
227 |
* Thu May 23 2002 Gordon Rowell <gordonr@e-smith.com> |
228 |
- [1.5.5-01] |
229 |
- RPM rebuild forced by cvsroot2rpm |
230 |
|
231 |
* Fri Mar 15 2002 Gordon Rowell <gordonr@e-smith.com> |
232 |
- [1.5.4-01] |
233 |
- Turned off display_errors, use error_log -> syslog instead, as per |
234 |
Dan Brown's PHP upgrade HOWTO |
235 |
- Tidied up formatting in that fragment [gordonr 3019] |
236 |
|
237 |
* Fri Mar 15 2002 Gordon Rowell <gordonr@e-smith.com> |
238 |
- [1.5.3-01] |
239 |
- Imported into CVS |
240 |
|
241 |
* Fri Mar 15 2002 Gordon Rowell <gordonr@e-smith.com> |
242 |
- [1.5.1-01] |
243 |
- rollRPM: Rolled version number to 1.5.1-01. Includes patches up to 1.5.0-03. |
244 |
|
245 |
* Mon Feb 04 2002 Charlie Brady <charlieb@e-smith.com> |
246 |
- [1.5.0-03] |
247 |
- Remove all comments from php.ini template fragments. |
248 |
- Allow some resource limits to be set by properties of the php service |
249 |
in the config db. |
250 |
|
251 |
* Mon Feb 04 2002 Charlie Brady <charlieb@e-smith.com> |
252 |
- [1.5.0-02] |
253 |
- Template /etc/php.ini, and expand template during conf-php action. |
254 |
- Make some simplifications to the conf-php script, and remove a |
255 |
potential error case (php is not in config db and event is neither |
256 |
post-install or post-upgrade). |
257 |
|
258 |
* Mon Feb 4 2002 Charlie Brady <charlieb@e-smith.com> |
259 |
- [1.5.0-01] |
260 |
- rollRPM: Rolled version number to 1.5.0-01. Includes patches up to 1.4.0-03. |
261 |
|
262 |
* Thu Sep 6 2001 Charlie Brady <charlieb@e-smith.com> |
263 |
- [1.4.0-03] |
264 |
- Restrict PHP programs residing in an i-bay to only be able to open files |
265 |
which reside in the same i-bay. An i-bay property PHPBaseDir is available |
266 |
to override this restriction. |
267 |
|
268 |
* Fri Aug 17 2001 gordonr |
269 |
- [1.4.0-02] |
270 |
- Autorebuild by rebuildRPM |
271 |
|
272 |
* Wed Aug 8 2001 Charlie Brady <charlieb@e-smith.com> |
273 |
- [1.4.0-01] |
274 |
- Rolled version number to 1.4.0-01. Includes patches upto 1.3.0-02. |
275 |
|
276 |
* Wed Aug 8 2001 Charlie Brady <charlieb@e-smith.com> |
277 |
- [1.3.0-02] |
278 |
- Load PHP modules late, not first. This corrects a compatibility problem |
279 |
with RedHat 7.1 RPMS. |
280 |
|
281 |
* Wed Aug 8 2001 Charlie Brady <charlieb@e-smith.com> |
282 |
- [1.3.0-01] |
283 |
- Rolled version number to 1.3.0-01. Includes patches upto 1.2.0-05. |
284 |
|
285 |
* Fri Jul 6 2001 Peter Samuel <peters@e-smith.com> |
286 |
- [1.2.0-05] |
287 |
- Changed license to GPL |
288 |
|
289 |
* Fri Mar 23 2001 Charlie Brady <charlieb@e-smith.com> |
290 |
- [1.2.0-04] |
291 |
- Disable PHP MIME type by default |
292 |
- Enable PHP MIME type for each i-bay for which dynamic content is enabled. |
293 |
|
294 |
* Thu Feb 8 2001 Adrian Chung <adrianc@e-smith.com> |
295 |
- [1.2.0-03] |
296 |
- Rolling release number for GPG signing. |
297 |
|
298 |
* Thu Jan 25 2001 Adrian Chung <adrianc@e-smith.com> |
299 |
- [1.2.0-02] |
300 |
- changed action to run at 50, instead of 55. |
301 |
|
302 |
* Thu Jan 25 2001 Peter Samuel <peters@e-smith.com> |
303 |
- [1.2.0-01] |
304 |
- Rolled version number to 1.2.0-01. Includes patches upto 1.1.0-10. |
305 |
|
306 |
* Wed Jan 17 2001 Adrian Chung <adrianc@e-smith.com> |
307 |
- [1.1.0-10] |
308 |
- PHP is enabled by default. |
309 |
|
310 |
* Fri Jan 12 2001 Adrian Chung <adrianc@e-smith.com> |
311 |
- [1.1.0-9] |
312 |
- rolling to 9, 8 is missing. |
313 |
- pulling expand httpd.conf, we'll leave conf-httpd |
314 |
to do it. |
315 |
|
316 |
* Thu Jan 11 2001 Tony Clayton <tonyc@e-smith.com> |
317 |
- [1.1.0-8] |
318 |
- pulled restarting apache - just expand httpd.conf |
319 |
|
320 |
* Thu Jan 11 2001 Tony Clayton <tonyc@e-smith.com> |
321 |
- [1.1.0-7] |
322 |
- apache now restarts whenever php's status changes |
323 |
|
324 |
* Thu Jan 11 2001 Tony Clayton <tonyc@e-smith.com> |
325 |
- [1.1.0-6] |
326 |
- expand httpd.conf template from conf-php |
327 |
|
328 |
* Thu Jan 11 2001 Tony Clayton <tonyc@e-smith.com> |
329 |
- [1.1.0-5] |
330 |
- add apache restart code to conf-php |
331 |
|
332 |
* Sat Jan 6 2001 Charlie Brady <charlieb@e-smith.com> |
333 |
- [1.1.0-4] |
334 |
- Only run %post actions in runlevel 7 |
335 |
|
336 |
* Fri Jan 5 2001 Adrian Chung <adrianc@e-smith.com> |
337 |
- [1.1.0-3] |
338 |
- put createlinks back in. |
339 |
|
340 |
* Fri Jan 5 2001 Adrian Chung <adrianc@e-smith.com> |
341 |
- [1.1.0-2] |
342 |
- expand PHP httpd.conf fragments conditionally based on |
343 |
service status. |
344 |
- add PHP to the services database and default to disabled. |
345 |
|
346 |
* Wed Dec 06 2000 Peter Samuel <peters@e-smith.com> |
347 |
- [1.1.0-1] |
348 |
- Rolled version to 1.1.0-1. Inlcudes patches up to 0.1-1. |
349 |
|
350 |
* Tue Nov 14 2000 Adrian Chung <adrianc@e-smith.com> |
351 |
- initial release |
352 |
|
353 |
%description |
354 |
This package adds necessary e-smith template fragments to enable |
355 |
php specific configuration items. |
356 |
|
357 |
%prep |
358 |
%setup |
359 |
%patch1 -p1 |
360 |
#%patch2 -p1 |
361 |
%patch3 -p1 |
362 |
|
363 |
%build |
364 |
perl createlinks |
365 |
|
366 |
%install |
367 |
rm -rf $RPM_BUILD_ROOT |
368 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
369 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
370 |
> %{name}-%{version}-%{release}-filelist |
371 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
372 |
|
373 |
%clean |
374 |
rm -rf $RPM_BUILD_ROOT |
375 |
|
376 |
%files -f %{name}-%{version}-%{release}-filelist |
377 |
%defattr(-,root,root) |