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