/[smeserver]/rpms/php/sme8/php.spec
ViewVC logotype

Contents of /rpms/php/sme8/php.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.15 - (show annotations) (download)
Thu Aug 7 07:05:52 2014 UTC (9 years, 9 months ago) by vip-ire
Branch: MAIN
CVS Tags: php-5_3_3-15_el5_sme
Changes since 1.14: +42 -1 lines
* Thu Aug 7 2014 Daniel Berteaud <daniel@firewall-services.com> - 5.3.3-15.sme
- Resync with upstream php53, which include (see [SME: 8515])
- core: type confusion issue in phpinfo(). CVE-2014-4721
- date: fix heap-based buffer over-read in DateInterval. CVE-2013-6712
- core: fix heap-based buffer overflow in DNS TXT record parsing.
  CVE-2014-4049
- core: unserialize() SPL ArrayObject / SPLObjectStorage type
  confusion flaw. CVE-2014-3515
- fileinfo: out-of-bounds memory access in fileinfo. CVE-2014-2270
- fileinfo: unrestricted recursion in handling of indirect type
  rules. CVE-2014-1943
- fileinfo: out of bounds read in CDF parser. CVE-2012-1571
- fileinfo: cdf_check_stream_offset boundary check. CVE-2014-3479
- fileinfo: cdf_count_chain insufficient boundary check. CVE-2014-3480
- fileinfo: cdf_unpack_summary_info() excessive looping
  DoS. CVE-2014-0237
- fileinfo: CDF property info parsing nelements infinite
  loop. CVE-2014-0238

1 %global contentdir /var/www
2 # API/ABI check
3 %global apiver 20090626
4 %global zendver 20090626
5 %global pdover 20080721
6 # Extension version
7 %global fileinfover 1.0.5-dev
8 %global pharver 2.0.1
9 %global zipver 1.9.1
10 %global jsonver 1.2.1
11
12 %define httpd_mmn %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)
13
14 # Use the arch-specific mysql_config binary to avoid mismatch with the
15 # heuristic used by bindir/mysql_config.
16 %define mysql_config %{_libdir}/mysql/mysql_config
17
18 %define _default_patch_fuzz 2
19
20 Summary: PHP scripting language for creating dynamic web sites
21 Name: php
22 Version: 5.3.3
23 Release: 15%{?dist}
24 License: PHP and LGPLv2 and LGPLv2+
25 Group: Development/Languages
26 URL: http://www.php.net/
27
28 Source0: http://www.php.net/distributions/php-%{version}.tar.bz2
29 Source1: php.conf
30 Source2: php.ini
31 Source3: macros.php
32
33 # Build fixes
34 Patch1: php-5.3.3-gnusrc.patch
35 Patch2: php-5.3.0-install.patch
36 Patch3: php-5.2.4-norpath.patch
37 Patch4: php-5.3.0-phpize64.patch
38 Patch5: php-5.2.0-includedir.patch
39 Patch8: php-5.3.3-aconf26x.patch
40
41 # Fixes for extensions
42 Patch20: php-4.3.11-shutdown.patch
43 Patch21: php-5.3.3-zipmemset.patch
44 Patch22: php-5.3.3-pdo-overflow.patch
45 Patch23: php-5.3.3-pdo-53551.patch
46 Patch24: php-5.3.3-fileinfo.patch
47 Patch25: php-5.3.3-imap.patch
48 Patch26: php-5.3.3-odbc.patch
49
50 # Functional changes
51 Patch40: php-5.0.4-dlopen.patch
52 Patch41: php-5.3.0-easter.patch
53 Patch42: php-5.3.1-systzdata-v7.patch
54
55 # Fixes for tests
56 Patch61: php-5.0.4-tests-wddx.patch
57 Patch62: php-5.3.2-testfail.patch
58
59 # Bug fixes
60 Patch100: php-5.3.3-extrglob.patch
61 Patch101: php-5.3.3-varnegidx.patch
62 Patch102: php-5.3.3-setdate.patch
63 # 103 not needed (no php-fpm)
64 Patch104: php-5.3.3-zendgc.patch
65 Patch105: php-5.3.3-r305043.patch
66 Patch106: php-5.3.3-copy.patch
67 Patch107: php-5.3.3-errorhandler.patch
68 Patch108: php-5.3.3-bug54268.patch
69
70 # Fixes for security bugs
71 Patch200: php-5.3.2-CVE-2010-3709.patch
72 Patch201: php-5.3.2-CVE-2010-3870.patch
73 Patch202: php-5.3.3-CVE-2010-3710.patch
74 Patch203: php-5.3.2-CVE-2010-4645.patch
75 Patch204: php-5.3.3-CVE-2010-4156.patch
76 Patch205: php-5.3.3-CVE-2011-0708.patch
77 Patch206: php-5.3.3-CVE-2011-1148.patch
78 Patch207: php-5.3.3-CVE-2011-1466.patch
79 Patch208: php-5.3.3-CVE-2011-1468.patch
80 Patch209: php-5.3.3-CVE-2011-1469.patch
81 # 210 not needed (not affected)
82 Patch211: php-5.3.3-CVE-2011-1471.patch
83 Patch212: php-5.3.3-CVE-2011-1938.patch
84 Patch213: php-5.3.3-CVE-2011-2202.patch
85 Patch214: php-5.3.3-CVE-2011-2483.patch
86 Patch215: php-5.3.3-CVE-2011-4885.patch
87 Patch216: php-5.3.3-CVE-2011-4566.patch
88 Patch217: php-5.3.3-CVE-2012-0830.patch
89 Patch218: php-5.3.3-CVE-2012-1823.patch
90 Patch219: php-5.3.3-CVE-2012-2336.patch
91 Patch220: php-5.3.3-CVE-2011-4153.patch
92 # 221 not needed (no php-tidy)
93 Patch222: php-5.3.3-CVE-2012-1172.patch
94 Patch223: php-5.3.3-CVE-2012-2143.patch
95 Patch224: php-5.3.3-CVE-2012-2386.patch
96 Patch225: php-5.3.3-CVE-2012-0057.patch
97 Patch226: php-5.3.3-CVE-2012-0789.patch
98 Patch227: php-5.3.3-CVE-2010-2950.patch
99 Patch228: php-5.3.3-CVE-2012-2688.patch
100 Patch229: php-5.3.3-CVE-2012-0831.patch
101 Patch230: php-5.3.3-CVE-2011-1398.patch
102 Patch231: php-5.3.3-CVE-2013-1643.patch
103 Patch232: php-5.3.3-CVE-2006-7243.patch
104 Patch233: php-5.3.3-CVE-2013-4113.patch
105 Patch234: php-5.3.3-CVE-2013-4248.patch
106 Patch235: php-5.3.3-CVE-2013-6420.patch
107 Patch236: php-5.3.3-CVE-2014-0237.patch
108 Patch237: php-5.3.3-CVE-2014-0238.patch
109 Patch238: php-5.3.3-CVE-2014-2270.patch
110 Patch239: php-5.3.3-CVE-2014-1943.patch
111 Patch240: php-5.3.3-CVE-2014-3479.patch
112 Patch241: php-5.3.3-CVE-2012-1571.patch
113 Patch242: php-5.3.3-CVE-2014-3480.patch
114 Patch243: php-5.3.3-CVE-2014-4721.patch
115 Patch244: php-5.3.3-CVE-2013-6712.patch
116 Patch245: php-5.3.3-CVE-2014-4049.patch
117 Patch246: php-5.3.3-CVE-2014-3515.patch
118
119 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
120
121 BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, gmp-devel
122 BuildRequires: httpd-devel >= 2.0.46-1, pam-devel
123 BuildRequires: libstdc++-devel, openssl-devel, sqlite-devel
124 BuildRequires: zlib-devel, pcre-devel >= 6.6, smtpdaemon
125 BuildRequires: bzip2, perl, libtool >= 1.4.3, gcc-c++
126 Requires: httpd-mmn = %{httpd_mmn}
127 Provides: mod_php = %{version}-%{release}
128 Provides: php53 = %{version}-%{release}, config(php53) = %{version}-%{release}
129 Requires: %{name}-common = %{version}-%{release}
130 # For backwards-compatibility, require php-cli for the time being:
131 Requires: %{name}-cli = %{version}-%{release}
132 # To ensure correct /var/lib/php/session ownership:
133 Requires(pre): httpd
134
135 %description
136 PHP is an HTML-embedded scripting language. PHP attempts to make it
137 easy for developers to write dynamically generated webpages. PHP also
138 offers built-in database integration for several commercial and
139 non-commercial database management systems, so writing a
140 database-enabled webpage with PHP is fairly simple. The most common
141 use of PHP coding is probably as a replacement for CGI scripts.
142
143 The php package contains the module which adds support for the PHP
144 language to Apache HTTP Server.
145
146 %package cli
147 Group: Development/Languages
148 Summary: Command-line interface for PHP
149 Requires: %{name}-common = %{version}-%{release}
150 Provides: php-cgi = %{version}-%{release}, php53-cli = %{version}-%{release}
151 Provides: php-pcntl
152
153 %description cli
154 The php-cli package contains the command-line interface
155 executing PHP scripts, /usr/bin/php, and the CGI interface.
156
157 %package common
158 Group: Development/Languages
159 Summary: Common files for PHP
160 Provides: php-api = %{apiver}, php-zend-abi = %{zendver}
161 Provides: php(api) = %{apiver}, php(zend-abi) = %{zendver}
162 Provides: php(language) = %{version}
163 # Provides for all builtin modules:
164 Provides: php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif
165 Provides: php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-libxml
166 Provides: php-reflection, php-session, php-shmop, php-simplexml, php-sockets
167 Provides: php-spl, php-tokenizer, php-openssl, php-pcre
168 Provides: php-zlib, php-json, php-zip, php-fileinfo
169 Provides: php-core, php-ereg, php-filter, php-phar, php-standard
170 Provides: php53-common = %{version}-%{release}, config(php53-common) = %{version}-%{release}
171 Obsoletes: php-pecl-json, php-pecl-zip, php-pecl-phar, php-pecl-Fileinfo
172 Obsoletes: php-openssl, php-json
173 # For obsoleted pecl extension
174 Provides: php-pecl-json = %{jsonver}, php-pecl(json) = %{jsonver}
175 Provides: php-pecl-zip = %{zipver}, php-pecl(zip) = %{zipver}
176 Provides: php-pecl-phar = %{pharver}, php-pecl(phar) = %{pharver}
177 Provides: php-pecl-Fileinfo = %{fileinfover}, php-pecl(Fileinfo) = %{fileinfover}
178 Obsoletes: php-pecl-json, php-pecl-zip, php-pecl-phar, php-pecl-Fileinfo
179
180 %description common
181 The %{name}-common package contains files used by both the php
182 package and the php-cli package.
183
184 %package devel
185 Group: Development/Libraries
186 Summary: Files needed for building PHP extensions
187 Requires: %{name} = %{version}-%{release}, autoconf, automake
188 Provides: php53-devel = %{version}-%{release}, config(php53-devel) = %{version}-%{release}
189
190 %description devel
191 The php-devel package contains the files needed for building PHP
192 extensions. If you need to compile your own PHP extensions, you will
193 need to install this package.
194
195 %package imap
196 Summary: A module for PHP applications that use IMAP
197 Group: Development/Languages
198 Requires: %{name}-common = %{version}-%{release}
199 BuildRequires: krb5-devel, openssl-devel, libc-client-devel
200 Provides: php53-imap = %{version}-%{release}, config(php53-imap) = %{version}-%{release}
201
202 %description imap
203 The php-imap package contains a dynamic shared object that will
204 add support for the IMAP protocol to PHP.
205
206 %package ldap
207 Summary: A module for PHP applications that use LDAP
208 Group: Development/Languages
209 Requires: %{name}-common = %{version}-%{release}
210 BuildRequires: cyrus-sasl-devel, openldap-devel, openssl-devel
211 Provides: php53-ldap = %{version}-%{release}, config(php53-ldap) = %{version}-%{release}
212
213 %description ldap
214 The php-ldap package is a dynamic shared object (DSO) for the Apache
215 Web server that adds Lightweight Directory Access Protocol (LDAP)
216 support to PHP. LDAP is a set of protocols for accessing directory
217 services over the Internet. PHP is an HTML-embedded scripting
218 language. If you need LDAP support for PHP applications, you will
219 need to install this package in addition to the php package.
220
221 %package pdo
222 Summary: A database access abstraction module for PHP applications
223 Group: Development/Languages
224 Requires: %{name}-common = %{version}-%{release}
225 Provides: php-pdo-abi = %{pdover}
226 Provides: php-pdo_sqlite
227 Provides: php53-pdo = %{version}-%{release}, config(php53-pdo) = %{version}-%{release}
228
229 %description pdo
230 The %{name}-pdo package contains a dynamic shared object that will add
231 a database access abstraction layer to PHP. This module provides
232 a common interface for accessing MySQL, PostgreSQL or other
233 databases.
234
235 %package mysql
236 Summary: A module for PHP applications that use MySQL databases
237 Group: Development/Languages
238 Requires: %{name}-common = %{version}-%{release}, %{name}-pdo
239 Provides: php_database, php-mysqli, php-pdo_mysql
240 BuildRequires: mysql-devel >= 4.1.0
241 Provides: php53-mysql = %{version}-%{release}, config(php53-mysql) = %{version}-%{release}
242
243 %description mysql
244 The php-mysql package contains a dynamic shared object that will add
245 MySQL database support to PHP. MySQL is an object-relational database
246 management system. PHP is an HTML-embeddable scripting language. If
247 you need MySQL support for PHP applications, you will need to install
248 this package and the php package.
249
250 %package pgsql
251 Summary: A PostgreSQL database module for PHP
252 Group: Development/Languages
253 Requires: %{name}-common = %{version}-%{release}, %{name}-pdo
254 Provides: php_database, php-pdo_pgsql
255 BuildRequires: krb5-devel, openssl-devel, postgresql-devel
256 Provides: php53-pgsql = %{version}-%{release}, config(php53-pgsql) = %{version}-%{release}
257
258 %description pgsql
259 The php-pgsql package includes a dynamic shared object (DSO) that can
260 be compiled in to the Apache Web server to add PostgreSQL database
261 support to PHP. PostgreSQL is an object-relational database management
262 system that supports almost all SQL constructs. PHP is an
263 HTML-embedded scripting language. If you need back-end support for
264 PostgreSQL, you should install this package in addition to the main
265 php package.
266
267 %package process
268 Summary: Modules for PHP script using system process interfaces
269 Group: Development/Languages
270 Requires: %{name}-common = %{version}-%{release}
271 Provides: php-posix, php-sysvsem, php-sysvshm, php-sysvmsg
272 Provides: php53-process = %{version}-%{release}, config(php53-process) = %{version}-%{release}
273
274 %description process
275 The php-process package contains dynamic shared objects which add
276 support to PHP using system interfaces for inter-process
277 communication.
278
279 %package odbc
280 Group: Development/Languages
281 Requires: %{name}-common = %{version}-%{release}, %{name}-pdo
282 Summary: A module for PHP applications that use ODBC databases
283 Provides: php_database, php-pdo_odbc
284 BuildRequires: unixODBC-devel
285 Provides: php53-odbc = %{version}-%{release}, config(php53-odbc) = %{version}-%{release}
286
287 %description odbc
288 The php-odbc package contains a dynamic shared object that will add
289 database support through ODBC to PHP. ODBC is an open specification
290 which provides a consistent API for developers to use for accessing
291 data sources (which are often, but not always, databases). PHP is an
292 HTML-embeddable scripting language. If you need ODBC support for PHP
293 applications, you will need to install this package and the php
294 package.
295
296 %package soap
297 Group: Development/Languages
298 Requires: %{name}-common = %{version}-%{release}
299 Summary: A module for PHP applications that use the SOAP protocol
300 BuildRequires: libxml2-devel
301 Provides: php53-soap = %{version}-%{release}, config(php53-soap) = %{version}-%{release}
302
303 %description soap
304 The php-soap package contains a dynamic shared object that will add
305 support to PHP for using the SOAP web services protocol.
306
307 %package snmp
308 Summary: A module for PHP applications that query SNMP-managed devices
309 Group: Development/Languages
310 Requires: %{name}-common = %{version}-%{release}, net-snmp
311 BuildRequires: net-snmp-devel
312 Provides: php53-snmp = %{version}-%{release}, config(php53-snmp) = %{version}-%{release}
313
314 %description snmp
315 The php-snmp package contains a dynamic shared object that will add
316 support for querying SNMP devices to PHP. PHP is an HTML-embeddable
317 scripting language. If you need SNMP support for PHP applications, you
318 will need to install this package and the php package.
319
320 %package xml
321 Summary: A module for PHP applications which use XML
322 Group: Development/Languages
323 Requires: %{name}-common = %{version}-%{release}
324 Provides: php-dom, php-xsl, php-domxml, php-wddx
325 BuildRequires: libxslt-devel >= 1.0.18-1, libxml2-devel >= 2.4.14-1
326 Obsoletes: php-domxml, php-dom
327 Provides: php53-xml = %{version}-%{release}, config(php53-xml) = %{version}-%{release}
328
329 %description xml
330 The php-xml package contains dynamic shared objects which add support
331 to PHP for manipulating XML documents using the DOM tree,
332 and performing XSL transformations on XML documents.
333
334 %package xmlrpc
335 Summary: A module for PHP applications which use the XML-RPC protocol
336 Group: Development/Languages
337 Requires: %{name}-common = %{version}-%{release}
338 Provides: php53-xmlrpc = %{version}-%{release}, config(php53-xmlrpc) = %{version}-%{release}
339
340 %description xmlrpc
341 The php-xmlrpc package contains a dynamic shared object that will add
342 support for the XML-RPC protocol to PHP.
343
344 %package mbstring
345 Summary: A module for PHP applications which need multi-byte string handling
346 Group: Development/Languages
347 Requires: %{name}-common = %{version}-%{release}
348 Provides: php53-mbstring = %{version}-%{release}, config(php53-mbstring) = %{version}-%{release}
349
350 %description mbstring
351 The php-mbstring package contains a dynamic shared object that will add
352 support for multi-byte string handling to PHP.
353
354 %package gd
355 Summary: A module for PHP applications for using the gd graphics library
356 Group: Development/Languages
357 Requires: %{name}-common = %{version}-%{release}
358 # Required to build the bundled GD library
359 BuildRequires: libXpm-devel, libjpeg-devel, libpng-devel, freetype-devel
360 Provides: php53-gd = %{version}-%{release}, config(php53-gd) = %{version}-%{release}
361
362 %description gd
363 The php-gd package contains a dynamic shared object that will add
364 support for using the gd graphics library to PHP.
365
366 %package bcmath
367 Summary: A module for PHP applications for using the bcmath library
368 Group: Development/Languages
369 Requires: %{name}-common = %{version}-%{release}
370 Provides: php53-bcmath = %{version}-%{release}, config(php53-bcmath) = %{version}-%{release}
371
372 %description bcmath
373 The php-bcmath package contains a dynamic shared object that will add
374 support for using the bcmath library to PHP.
375
376 %package dba
377 Summary: A database abstraction layer module for PHP applications
378 Group: Development/Languages
379 Requires: %{name}-common = %{version}-%{release}
380 Provides: php53-dba = %{version}-%{release}, config(php53-dba) = %{version}-%{release}
381
382 %description dba
383 The php-dba package contains a dynamic shared object that will add
384 support for using the DBA database abstraction layer to PHP.
385
386 %package pspell
387 Summary: A module for PHP applications for using pspell interfaces
388 Group: System Environment/Libraries
389 Requires: %{name}-common = %{version}-%{release}
390 BuildRequires: aspell-devel >= 0.50.0
391 Provides: php53-pspell = %{version}-%{release}, config(php53-pspell) = %{version}-%{release}
392
393 %description pspell
394 The php-pspell package contains a dynamic shared object that will add
395 support for using the pspell library to PHP.
396
397 %package intl
398 Summary: Internationalization extension for PHP applications
399 Group: System Environment/Libraries
400 Requires: %{name}-common = %{version}-%{release}
401 BuildRequires: libicu-devel >= 3.6
402 Provides: php53-intl = %{version}-%{release}, config(php53-intl) = %{version}-%{release}
403
404 %description intl
405 The php-intl package contains a dynamic shared object that will add
406 support for using the ICU library to PHP.
407
408 %prep
409 %setup -q -n php-%{version}
410 %patch1 -p1 -b .gnusrc
411 %patch2 -p1 -b .install
412 %patch3 -p1 -b .norpath
413 %patch4 -p1 -b .phpize64
414 %patch5 -p1 -b .includedir
415 %patch8 -p1 -b .aconf26x
416
417 %patch20 -p1 -b .shutdown
418 %patch21 -p1 -b .zipmemset
419 %patch22 -p1 -b .pdooverflow
420 %patch23 -p1 -b .pdo53551
421 %patch24 -p1 -b .streams
422 %patch25 -p1 -b .imapauth
423 %patch26 -p1 -b .pdoodbc
424
425 %patch40 -p1 -b .dlopen
426 %patch41 -p1 -b .easter
427 %patch42 -p1 -b .systzdata
428
429 %patch61 -p1 -b .tests-wddx
430 %patch62 -p1 -b .testfail
431
432 %patch100 -p1 -b .extrglob
433 %patch101 -p1 -b .varnegidx
434 %patch102 -p1 -b .setdate
435
436 %patch104 -p1 -b .zendgc
437 %patch105 -p1 -b .r305043
438 %patch106 -p1 -b .copy
439 %patch107 -p1 -b .errorhandler
440 %patch108 -p1 -b .bug54268
441
442 %patch200 -p1 -b .cve3709
443 %patch201 -p1 -b .cve3870
444 %patch202 -p1 -b .cve4645
445 %patch203 -p1 -b .cve3710
446 %patch204 -p1 -b .cve4156
447 %patch205 -p1 -b .cve0708
448 %patch206 -p1 -b .cve1148
449 %patch207 -p1 -b .cve1466
450 %patch208 -p1 -b .cve1468
451 %patch209 -p1 -b .cve1469
452 %patch211 -p1 -b .cve1471
453 %patch212 -p1 -b .cve1938
454 %patch213 -p1 -b .cve2202
455 %patch214 -p1 -b .cve2483
456 %patch215 -p1 -b .cve4885
457 %patch216 -p1 -b .cve4566
458 %patch217 -p1 -b .cve0830
459 %patch218 -p1 -b .cve1823
460 %patch219 -p1 -b .cve2336
461
462 %patch220 -p1 -b .cve4153
463 %patch222 -p1 -b .cve1172
464 %patch223 -p1 -b .cve2143
465 %patch224 -p1 -b .cve2386
466 %patch225 -p1 -b .cve0057
467 %patch226 -p1 -b .cve0789
468 %patch227 -p1 -b .cve2950
469 %patch228 -p1 -b .cve2688
470 %patch229 -p1 -b .cve0831
471 %patch230 -p1 -b .cve1398
472 %patch231 -p1 -b .cve1643
473 %patch232 -p1 -b .cve7243
474 %patch233 -p1 -b .cve4113
475 %patch234 -p1 -b .cve4248
476 %patch235 -p1 -b .cve6420
477 %patch236 -p1 -b .cve0237
478 %patch237 -p1 -b .cve0238
479 %patch238 -p1 -b .cve2270
480 %patch239 -p1 -b .cve1943
481 %patch240 -p1 -b .cve3479
482 %patch241 -p1 -b .cve1571
483 %patch242 -p1 -b .cve3480
484 %patch243 -p1 -b .cve4721
485 %patch244 -p1 -b .cve6712
486 %patch245 -p1 -b .cve4049
487 %patch246 -p1 -b .cve3515
488
489 # Prevent %%doc confusion over LICENSE files
490 cp -p Zend/LICENSE Zend/ZEND_LICENSE
491 cp -p TSRM/LICENSE TSRM_LICENSE
492 cp -p ext/ereg/regex/COPYRIGHT regex_COPYRIGHT
493 cp -p ext/gd/libgd/README gd_README
494
495 # Multiple builds for multiple SAPIs
496 mkdir build-cgi build-apache
497
498 # Remove bogus test; position of read position after fopen(, "a+")
499 # is not defined by C standard, so don't presume anything.
500 rm -f ext/standard/tests/file/bug21131.phpt
501
502 # Tests that fail.
503 rm -f ext/standard/tests/file/bug22414.phpt \
504 ext/iconv/tests/bug16069.phpt
505
506 # Remove tests which require external network access
507 rm -f ext/sockets/tests/socket_bind.diff
508
509 # Easter eggs no not shipped
510 rm -f tests/basic/php_egg_logo_guid.diff
511
512 # Safety check for API version change.
513 vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`
514 if test "x${vapi}" != "x%{apiver}"; then
515 : Error: Upstream API version is now ${vapi}, expecting %{apiver}.
516 : Update the apiver macro and rebuild.
517 exit 1
518 fi
519
520 vzend=`sed -n '/#define ZEND_MODULE_API_NO/{s/^[^0-9]*//;p;}' Zend/zend_modules.h`
521 if test "x${vzend}" != "x%{zendver}"; then
522 : Error: Upstream Zend ABI version is now ${vzend}, expecting %{zendver}.
523 : Update the zendver macro and rebuild.
524 exit 1
525 fi
526
527 # Safety check for PDO ABI version change
528 vpdo=`sed -n '/#define PDO_DRIVER_API/{s/.*[ ]//;p}' ext/pdo/php_pdo_driver.h`
529 if test "x${vpdo}" != "x%{pdover}"; then
530 : Error: Upstream PDO ABI version is now ${vpdo}, expecting %{pdover}.
531 : Update the pdover macro and rebuild.
532 exit 1
533 fi
534
535 # Check for some extension version
536 ver=$(sed -n '/#define PHP_FILEINFO_VERSION /{s/.* "//;s/".*$//;p}' ext/fileinfo/php_fileinfo.h)
537 if test "$ver" != "%{fileinfover}"; then
538 : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
539 : Update the fileinfover macro and rebuild.
540 exit 1
541 fi
542 ver=$(sed -n '/#define PHP_PHAR_VERSION /{s/.* "//;s/".*$//;p}' ext/phar/php_phar.h)
543 if test "$ver" != "%{pharver}"; then
544 : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
545 : Update the pharver macro and rebuild.
546 exit 1
547 fi
548 ver=$(sed -n '/#define PHP_ZIP_VERSION_STRING /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
549 if test "$ver" != "%{zipver}"; then
550 : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
551 : Update the zipver macro and rebuild.
552 exit 1
553 fi
554 ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
555 if test "$ver" != "%{jsonver}"; then
556 : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
557 : Update the jsonver macro and rebuild.
558 exit 1
559 fi
560
561 # Fix some bogus permissions
562 find . -name \*.[ch] -exec chmod 644 {} \;
563 find . -name \*.cpp -exec chmod 644 {} \;
564 chmod 644 README.*
565
566 %build
567 # aclocal workaround - to be improved
568 cat `aclocal --print-ac-dir`/libtool.m4 >>aclocal.m4
569
570 # Force use of system libtool:
571 libtoolize --force --copy
572 cat `aclocal --print-ac-dir`/libtool.m4 >build/libtool.m4
573
574 # Regenerate configure scripts (patches change config.m4's)
575 touch configure.in
576 ./buildconf --force
577
578 CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-pointer-sign"
579 export CFLAGS
580
581 # Install extension modules in %{_libdir}/php/modules.
582 EXTENSION_DIR=%{_libdir}/php/modules; export EXTENSION_DIR
583
584 # Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
585 # includes the PEAR directory even though pear is packaged
586 # separately.
587 PEAR_INSTALLDIR=%{_datadir}/pear; export PEAR_INSTALLDIR
588
589 # Shell function to configure and build a PHP tree.
590 build() {
591 # bison-1.875-2 seems to produce a broken parser; workaround.
592 mkdir Zend && cp ../Zend/zend_{language,ini}_{parser,scanner}.[ch] Zend
593 ln -sf ../configure
594 %configure \
595 --cache-file=../config.cache \
596 --with-libdir=%{_lib} \
597 --with-config-file-path=%{_sysconfdir} \
598 --with-config-file-scan-dir=%{_sysconfdir}/php.d \
599 --disable-debug \
600 --with-pic \
601 --disable-rpath \
602 --without-pear \
603 --with-bz2 \
604 --with-exec-dir=%{_bindir} \
605 --with-freetype-dir=%{_prefix} \
606 --with-png-dir=%{_prefix} \
607 --with-xpm-dir=%{_prefix} \
608 --enable-gd-native-ttf \
609 --without-gdbm \
610 --with-gettext \
611 --with-gmp \
612 --with-iconv \
613 --with-jpeg-dir=%{_prefix} \
614 --with-openssl \
615 --with-pcre-regex=%{_prefix} \
616 --with-zlib \
617 --with-layout=GNU \
618 --enable-exif \
619 --enable-ftp \
620 --enable-magic-quotes \
621 --enable-sockets \
622 --enable-sysvsem --enable-sysvshm --enable-sysvmsg \
623 --with-kerberos \
624 --enable-ucd-snmp-hack \
625 --enable-shmop \
626 --enable-calendar \
627 --without-sqlite \
628 --without-sqlite3 \
629 --with-libxml-dir=%{_prefix} \
630 --enable-xml \
631 --with-system-tzdata \
632 $*
633 if test $? != 0; then
634 tail -500 config.log
635 : configure failed
636 exit 1
637 fi
638
639 make %{?_smp_mflags}
640 }
641
642 # Build /usr/bin/php-cgi with the CGI SAPI, and all the shared extensions
643 pushd build-cgi
644 build --enable-force-cgi-redirect \
645 --enable-pcntl \
646 --with-imap=shared --with-imap-ssl \
647 --enable-mbstring=shared \
648 --enable-mbregex \
649 --with-gd=shared \
650 --enable-bcmath=shared \
651 --enable-dba=shared --with-db4=%{_prefix} \
652 --with-xmlrpc=shared \
653 --with-ldap=shared --with-ldap-sasl \
654 --with-mysql=shared,%{_prefix} \
655 --with-mysqli=shared,%{mysql_config} \
656 --enable-dom=shared \
657 --with-pgsql=shared \
658 --enable-wddx=shared \
659 --with-snmp=shared,%{_prefix} \
660 --enable-soap=shared \
661 --with-xsl=shared,%{_prefix} \
662 --enable-xmlreader=shared --enable-xmlwriter=shared \
663 --with-curl=shared,%{_prefix} \
664 --enable-fastcgi \
665 --enable-pdo=shared \
666 --with-pdo-odbc=shared,unixODBC,%{_prefix} \
667 --with-pdo-mysql=shared,%{mysql_config} \
668 --with-pdo-pgsql=shared,%{_prefix} \
669 --with-pdo-sqlite=shared,%{_prefix} \
670 --enable-json=shared \
671 --enable-zip=shared \
672 --without-readline \
673 --with-pspell=shared \
674 --enable-phar=shared \
675 --enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \
676 --enable-posix=shared \
677 --with-unixODBC=shared,%{_prefix} \
678 --enable-fileinfo=shared \
679 --enable-intl=shared \
680 --with-icu-dir=%{_prefix}
681 popd
682
683 without_shared="--without-mysql --without-gd \
684 --disable-dom --disable-dba --without-unixODBC \
685 --disable-pdo --disable-xmlreader --disable-xmlwriter \
686 --without-sqlite3 --disable-phar --disable-fileinfo \
687 --disable-json --without-pspell --disable-wddx \
688 --without-curl --disable-posix \
689 --disable-sysvmsg --disable-sysvshm --disable-sysvsem"
690
691 # Build Apache module, and the CLI SAPI, /usr/bin/php
692 pushd build-apache
693 build --with-apxs2=%{_sbindir}/apxs ${without_shared}
694 popd
695
696 %check
697 cd build-apache
698 # Run tests, using the CLI SAPI
699 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
700 unset TZ LANG LC_ALL
701 if ! make test; then
702 set +x
703 for f in `find .. -name \*.diff -type f -print`; do
704 echo "TEST FAILURE: $f --"
705 cat "$f"
706 echo -e "\n-- $f result ends.\n"
707 done
708 set -x
709 #exit 1
710 fi
711 unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
712
713 %install
714 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
715
716 # Install everything from the CGI SAPI build
717 make -C build-cgi install INSTALL_ROOT=$RPM_BUILD_ROOT
718
719 # Install the default configuration file and icons
720 install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/
721 install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
722 install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons
723 install -m 644 *.gif $RPM_BUILD_ROOT%{contentdir}/icons/
724
725 # For third-party packaging:
726 install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/php/pear \
727 $RPM_BUILD_ROOT%{_datadir}/php
728
729 # install the DSO
730 install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/httpd/modules
731 install -m 755 build-apache/libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules
732
733 # Apache config fragment
734 install -m 755 -d $RPM_BUILD_ROOT/etc/httpd/conf.d
735 # %{SOURCE1} used here ->
736 install -m 644 $RPM_SOURCE_DIR/php.conf $RPM_BUILD_ROOT/etc/httpd/conf.d
737
738 install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php.d
739 install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php
740 install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session
741
742 # Fix the link
743 (cd $RPM_BUILD_ROOT%{_bindir}; ln -sfn phar.phar phar)
744
745 # Generate files lists and stub .ini files for each subpackage
746 for mod in pgsql mysql mysqli odbc ldap snmp xmlrpc imap \
747 mbstring gd dom xsl soap bcmath dba xmlreader xmlwriter \
748 pdo pdo_mysql pdo_pgsql pdo_odbc pdo_sqlite json zip \
749 phar fileinfo intl pspell curl wddx \
750 posix sysvshm sysvsem sysvmsg; do
751 cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <<EOF
752 ; Enable ${mod} extension module
753 extension=${mod}.so
754 EOF
755 cat > files.${mod} <<EOF
756 %attr(755,root,root) %{_libdir}/php/modules/${mod}.so
757 %config(noreplace) %attr(644,root,root) %{_sysconfdir}/php.d/${mod}.ini
758 EOF
759 done
760
761 # The dom, xsl and xml* modules are all packaged in php-xml
762 cat files.dom files.xsl files.xml{reader,writer} files.wddx > files.xml
763
764 # The mysql and mysqli modules are both packaged in php-mysql
765 cat files.mysqli >> files.mysql
766
767 # Split out the PDO modules
768 cat files.pdo_mysql >> files.mysql
769 cat files.pdo_pgsql >> files.pgsql
770 cat files.pdo_odbc >> files.odbc
771
772 # sysv* and posix in packaged in php-process
773 cat files.sysv* files.posix > files.process
774
775 # Package pdo_sqlite with pdo.
776 cat files.pdo_sqlite >> files.pdo
777
778 # Package json, zip, curl, phar and fileinfo in -common.
779 cat files.json files.zip files.curl files.phar files.fileinfo > files.common
780
781 # Install the macros file:
782 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
783 # %{SOURCE3} used here ->
784 sed -e "s/@PHP_APIVER@/%{apiver}/;s/@PHP_ZENDVER@/%{zendver}/;s/@PHP_PDOVER@/%{pdover}/" \
785 -e "s/@PHP_VERSION@/%{version}/" \
786 < $RPM_SOURCE_DIR/macros.php > macros.php
787 install -m 644 -c macros.php \
788 $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.php
789
790 # Remove unpackaged files
791 rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \
792 $RPM_BUILD_ROOT%{_bindir}/{phptar} \
793 $RPM_BUILD_ROOT%{_datadir}/pear \
794 $RPM_BUILD_ROOT%{_libdir}/libphp5.la
795
796 # Remove irrelevant docs
797 rm -f README.{Zeus,QNX,CVS-RULES}
798
799 %clean
800 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
801 rm files.* macros.php
802
803 %files
804 %defattr(-,root,root)
805 %{_libdir}/httpd/modules/libphp5.so
806 %attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
807 %config(noreplace) %{_sysconfdir}/httpd/conf.d/php.conf
808 %{contentdir}/icons/php.gif
809
810 %files common -f files.common
811 %defattr(-,root,root)
812 %doc CODING_STANDARDS CREDITS INSTALL LICENSE NEWS README*
813 %doc Zend/ZEND_* TSRM_LICENSE regex_COPYRIGHT
814 %doc php.ini-production php.ini-development
815 %config(noreplace) %{_sysconfdir}/php.ini
816 %dir %{_sysconfdir}/php.d
817 %dir %{_libdir}/php
818 %dir %{_libdir}/php/modules
819 %dir %{_localstatedir}/lib/php
820 %dir %{_libdir}/php/pear
821 %dir %{_datadir}/php
822
823 %files cli
824 %defattr(-,root,root)
825 %{_bindir}/php
826 %{_bindir}/php-cgi
827 %{_bindir}/phar.phar
828 %{_bindir}/phar
829 %{_mandir}/man1/php.1*
830 %doc sapi/cgi/README* sapi/cli/README
831
832 %files devel
833 %defattr(-,root,root)
834 %{_bindir}/php-config
835 %{_bindir}/phpize
836 %{_includedir}/php
837 %{_libdir}/php/build
838 %{_mandir}/man1/php-config.1*
839 %{_mandir}/man1/phpize.1*
840 %config %{_sysconfdir}/rpm/macros.php
841
842 %files pgsql -f files.pgsql
843 %files mysql -f files.mysql
844 %files odbc -f files.odbc
845 %files imap -f files.imap
846 %files ldap -f files.ldap
847 %files snmp -f files.snmp
848 %files xml -f files.xml
849 %files xmlrpc -f files.xmlrpc
850 %files mbstring -f files.mbstring
851 %defattr(-,root,root)
852 %doc ext/mbstring/libmbfl/DISCLAIMER ext/mbstring/libmbfl/LICENSE
853 %files gd -f files.gd
854 %defattr(-,root,root)
855 %doc gd_README
856 %files soap -f files.soap
857 %files bcmath -f files.bcmath
858 %defattr(-,root,root)
859 %doc ext/bcmath/libbcmath/COPYING.LIB
860 %files dba -f files.dba
861 %files pdo -f files.pdo
862 %files pspell -f files.pspell
863 %files intl -f files.intl
864 %files process -f files.process
865
866 %changelog
867 * Thu Aug 7 2014 Daniel Berteaud <daniel@firewall-services.com> - 5.3.3-15.sme
868 - Resync with upstream php53, which include (see [SME: 8515])
869 - core: type confusion issue in phpinfo(). CVE-2014-4721
870 - date: fix heap-based buffer over-read in DateInterval. CVE-2013-6712
871 - core: fix heap-based buffer overflow in DNS TXT record parsing.
872 CVE-2014-4049
873 - core: unserialize() SPL ArrayObject / SPLObjectStorage type
874 confusion flaw. CVE-2014-3515
875 - fileinfo: out-of-bounds memory access in fileinfo. CVE-2014-2270
876 - fileinfo: unrestricted recursion in handling of indirect type
877 rules. CVE-2014-1943
878 - fileinfo: out of bounds read in CDF parser. CVE-2012-1571
879 - fileinfo: cdf_check_stream_offset boundary check. CVE-2014-3479
880 - fileinfo: cdf_count_chain insufficient boundary check. CVE-2014-3480
881 - fileinfo: cdf_unpack_summary_info() excessive looping
882 DoS. CVE-2014-0237
883 - fileinfo: CDF property info parsing nelements infinite
884 loop. CVE-2014-0238
885
886 * Mon Dec 16 2013 Daniel Berteaud <daniel@firewall-services.com> - 5.3.3-14.sme
887 - Resync with upstream php53, which include (see [SME: 8064])
888 - add security fix for CVE-2013-6420
889 - add security fix for CVE-2013-4248
890 - add upstream reproducer for error_handler (#951075)
891 - add security fixes for CVE-2006-7243
892 - add security fixes for CVE-2012-2688, CVE-2012-0831,
893 CVE-2011-1398, CVE-2013-1643
894 - fix segfault in error_handler with
895 allow_call_time_pass_reference = Off (#951075)
896 - fix double free when destroy_zend_class fails (#951076)
897 - fix possible buffer overflow in pdo_odbc (#869694)
898 - php script hangs when it exceeds max_execution_time
899 when inside an ODBC call (#864954)
900 - fix zend garbage collector (#892695)
901 - fix transposed memset arguments in libzip (#953818)
902 - fix possible segfault in pdo_mysql (#869693)
903 - fix imap_open DISABLE_AUTHENTICATOR param ignores array (#859369)
904 - fix stream support in fileinfo (#869697)
905 - fix setDate when DateTime created from timestamp (#869691)
906 - fix permission on source files (#869688)
907 - add php(language) and missing provides (#837044)
908 - fix copy doesn't report failure on partial copy (#951413)
909
910 * Mon Jul 15 2013 Shad L. Lords <slords@mail.com> - 5.3.3-13.sme.2
911 - Add php53-* provides to provide compatibility
912 - Obsolete php-domxml and php-dom [SME: 6733]
913 - Update Obsoletes and Conflicts [SME: 6436]
914
915 * Fri Jul 12 2013 Remi Collet <rcollet@redhat.com> - 5.3.3-13.1
916 - add security fix for CVE-2013-4113
917
918 * Mon Jun 25 2012 Joe Orton <jorton@redhat.com> - 5.3.3-13
919 - add security fix for CVE-2010-2950
920
921 * Wed Jun 13 2012 Joe Orton <jorton@redhat.com> - 5.3.3-11
922 - fix tests for CVE-2012-2143, CVE-2012-0789
923
924 * Tue Jun 12 2012 Joe Orton <jorton@redhat.com> - 5.3.3-10
925 - add security fix for CVE-2012-2336
926
927 * Tue Jun 12 2012 Joe Orton <jorton@redhat.com> - 5.3.3-9
928 - add security fixes for CVE-2011-4153, CVE-2012-0057, CVE-2012-0789,
929 CVE-2012-1172, CVE-2012-2143, CVE-2012-2386
930
931 * Thu May 3 2012 Joe Orton <jorton@redhat.com> - 5.3.3-7
932 - correct detection of = in CVE-2012-1823 fix (#818607)
933
934 * Thu May 3 2012 Joe Orton <jorton@redhat.com> - 5.3.3-6
935 - add security fix for CVE-2012-1823 (#818607)
936
937 * Thu Feb 2 2012 Joe Orton <jorton@redhat.com> - 5.3.3-5
938 - add security fix for CVE-2012-0830 (#786758)
939
940 * Wed Jan 04 2012 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 5.3.3-4
941 - remove extra php.ini-prod/devel files caused by %%patch -b
942
943 * Tue Jan 03 2012 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 5.3.3-3
944 - add security fixes for CVE-2011-4885, CVE-2011-4566 (#740734)
945
946 * Fri Oct 28 2011 Joe Orton <jorton@redhat.com> - 5.3.3-2
947 - add php-$subpkg = V-R provides (#717158)
948 - add security fixes for CVE-2010-3710, CVE-2010-4156, CVE-2010-4645 (#670464)
949 - add security fixes for CVE-2011-2483, CVE-2011-0708, CVE-2011-1148,
950 CVE-2011-1466, CVE-2011-1468, CVE-2011-1469, CVE-2011-1471,
951 CVE-2011-1938, CVE-2011-2202 (#740734)
952 - fix negative keys with var_export (#700724)
953
954 * Wed Dec 1 2010 Joe Orton <jorton@redhat.com> - 5.3.3-1
955 - update to 5.3.3 (#658315)
956
957 * Mon Nov 22 2010 Joe Orton <jorton@redhat.com> - 5.3.2-7
958 - prevent extract() from clobering $GLOBALS (#655330)
959
960 * Wed Nov 10 2010 Joe Orton <jorton@redhat.com> - 5.3.2-6
961 - add security fixes for CVE-2010-3870 CVE-2010-3709 (#650877)
962 - provide php-devel from -devel (#642701)
963
964 * Mon Nov 1 2010 Joe Orton <jorton@redhat.com> - 5.3.2-5
965 - use correct mysql_config for pdo-mysql also (#642701)
966
967 * Thu Sep 30 2010 Joe Orton <jorton@redhat.com> - 5.3.2-4
968 - use mysql_config from libdir
969
970 * Tue Sep 7 2010 Joe Orton <jorton@redhat.com> - 5.3.2-3
971 - add defattr for -mbstring and -bcmath
972
973 * Tue Sep 7 2010 Joe Orton <jorton@redhat.com> - 5.3.2-2
974 - add LGPLv2{,+} to License; ship text in -bcmath, -mbstring
975 - apply phar patch correctly
976 - fix permissions on sources, README.namespaces
977 - drop EXTENSIONS from %%doc
978 - fix Provides for php-cli
979 - drop inappropriate/obsolete Obsoletes
980
981 * Thu Sep 2 2010 Joe Orton <jorton@redhat.com> - 5.3.2-1
982 - convert to php53
983 - remove subpackages: embeded, zts, tidy, recode, enchant
984
985 * Tue Aug 17 2010 Joe Orton <jorton@redhat.com> - 5.3.2-6
986 - add security fixes for CVE-2010-1866, CVE-2010-2094, CVE-2010-1917,
987 CVE-2010-2531, MOPS-2010-060 (#624469)
988
989 * Fri Aug 13 2010 Joe Orton <jorton@redhat.com> - 5.3.2-5
990 - add security fix for CVE-2010-0397 (#575712)
991
992 * Thu Jun 24 2010 Joe Orton <jorton@redhat.com> - 5.3.2-4
993 - add security fix for CVE-2010-2225 (#605644)
994
995 * Wed May 5 2010 Joe Orton <jorton@redhat.com> - 5.3.2-3
996 - restore -imap (#586050)
997
998 * Fri Mar 26 2010 Joe Orton <jorton@redhat.com> - 5.3.2-2
999 - remove mcrypt support (#459804, #577257)
1000
1001 * Wed Mar 24 2010 Joe Orton <jorton@redhat.com> - 5.3.2-1
1002 - update to 5.3.2 (#575158, #575712)
1003
1004 * Sat Mar 06 2010 Remi Collet <Fedora@famillecollet.com>
1005 - PHP 5.3.2 Released!
1006 - remove mime_magic option (now provided by fileinfo, by emu)
1007 - add patch for http://bugs.php.net/50578
1008 - remove patch for libedit (upstream)
1009
1010 * Fri Jan 15 2010 Joe Orton <jorton@redhat.com> - 5.3.1-7
1011 - add security fix for CVE-2009-4142 (#552268)
1012
1013 * Fri Dec 18 2009 Joe Orton <jorton@redhat.com> - 5.3.1-6
1014 - drop mssql, pdo_dblib
1015
1016 * Fri Dec 11 2009 Joe Orton <jorton@redhat.com> - 5.3.1-5
1017 - drop imap
1018
1019 * Fri Dec 11 2009 Joe Orton <jorton@redhat.com> - 5.3.1-4
1020 - drop t1lib, interbase/firebird support
1021
1022 * Fri Nov 27 2009 Joe Orton <jorton@redhat.com> - 5.3.1-3
1023 - update to v7 of systzdata patch
1024
1025 * Wed Nov 25 2009 Joe Orton <jorton@redhat.com> - 5.3.1-2
1026 - fix build with autoconf 2.6x
1027
1028 * Fri Nov 20 2009 Remi Collet <Fedora@famillecollet.com> 5.3.1-1
1029 - update to 5.3.1
1030 - remove openssl patch (merged upstream)
1031 - add provides for php-pecl-json
1032 - add prod/devel php.ini in doc
1033
1034 * Tue Nov 17 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 5.3.0-7
1035 - use libedit instead of readline to resolve licensing issues
1036
1037 * Tue Aug 25 2009 Tomas Mraz <tmraz@redhat.com> - 5.3.0-6
1038 - rebuilt with new openssl
1039
1040 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-5
1041 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1042
1043 * Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-4
1044 - rediff systzdata patch
1045
1046 * Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-3
1047 - update to v6 of systzdata patch; various fixes
1048
1049 * Tue Jul 14 2009 Joe Orton <jorton@redhat.com> 5.3.0-2
1050 - update to v5 of systzdata patch; parses zone.tab and extracts
1051 timezone->{country-code,long/lat,comment} mapping table
1052
1053 * Sun Jul 12 2009 Remi Collet <Fedora@famillecollet.com> 5.3.0-1
1054 - update to 5.3.0
1055 - remove ncurses, dbase, mhash extensions
1056 - add enchant, sqlite3, intl, phar, fileinfo extensions
1057 - raise sqlite version to 3.6.0 (for sqlite3, build with --enable-load-extension)
1058 - sync with upstream "production" php.ini
1059
1060 * Sat Jun 21 2009 Remi Collet <Fedora@famillecollet.com> 5.2.10-1
1061 - update to 5.2.10
1062 - add interbase sub-package
1063
1064 * Sat Feb 28 2009 Remi Collet <Fedora@FamilleCollet.com> - 5.2.9-1
1065 - update to 5.2.9
1066
1067 * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.8-10
1068 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1069
1070 * Thu Feb 5 2009 Joe Orton <jorton@redhat.com> 5.2.8-9
1071 - add recode support, -recode subpackage (#106755)
1072 - add -zts subpackage with ZTS-enabled build of httpd SAPI
1073 - adjust php.conf to use -zts SAPI build for worker MPM
1074
1075 * Wed Feb 4 2009 Joe Orton <jorton@redhat.com> 5.2.8-8
1076 - fix patch fuzz, renumber patches
1077
1078 * Wed Feb 4 2009 Joe Orton <jorton@redhat.com> 5.2.8-7
1079 - drop obsolete configure args
1080 - drop -odbc patch (#483690)
1081
1082 * Mon Jan 26 2009 Joe Orton <jorton@redhat.com> 5.2.8-5
1083 - split out sysvshm, sysvsem, sysvmsg, posix into php-process
1084
1085 * Sun Jan 25 2009 Joe Orton <jorton@redhat.com> 5.2.8-4
1086 - move wddx to php-xml, build curl shared in -common
1087 - remove BR for expat-devel, bogus configure option
1088
1089 * Fri Jan 23 2009 Joe Orton <jorton@redhat.com> 5.2.8-3
1090 - rebuild for new MySQL
1091
1092 * Sat Dec 13 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.8-2
1093 - libtool 2 workaround for phpize (#476004)
1094 - add missing php_embed.h (#457777)
1095
1096 * Tue Dec 09 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.8-1
1097 - update to 5.2.8
1098
1099 * Sat Dec 06 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.7-1.1
1100 - libtool 2 workaround
1101
1102 * Fri Dec 05 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.7-1
1103 - update to 5.2.7
1104 - enable pdo_dblib driver in php-mssql
1105
1106 * Mon Nov 24 2008 Joe Orton <jorton@redhat.com> 5.2.6-7
1107 - tweak Summary, thanks to Richard Hughes
1108
1109 * Tue Nov 4 2008 Joe Orton <jorton@redhat.com> 5.2.6-6
1110 - move gd_README to php-gd
1111 - update to r4 of systzdata patch; introduces a default timezone
1112 name of "System/Localtime", which uses /etc/localtime (#469532)
1113
1114 * Sat Sep 13 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.6-5
1115 - enable XPM support in php-gd
1116 - Fix BR for php-gd
1117
1118 * Sun Jul 20 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.6-4
1119 - enable T1lib support in php-gd
1120
1121 * Mon Jul 14 2008 Joe Orton <jorton@redhat.com> 5.2.6-3
1122 - update to 5.2.6
1123 - sync default php.ini with upstream
1124 - drop extension_dir from default php.ini, rely on hard-coded
1125 default, to make php-common multilib-safe (#455091)
1126 - update to r3 of systzdata patch
1127
1128 * Thu Apr 24 2008 Joe Orton <jorton@redhat.com> 5.2.5-7
1129 - split pspell extension out into php-spell (#443857)
1130
1131 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.2.5-6
1132 - Autorebuild for GCC 4.3
1133
1134 * Fri Jan 11 2008 Joe Orton <jorton@redhat.com> 5.2.5-5
1135 - ext/date: use system timezone database
1136
1137 * Fri Dec 28 2007 Joe Orton <jorton@redhat.com> 5.2.5-4
1138 - rebuild for libc-client bump
1139
1140 * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 5.2.5-3
1141 - Rebuild for openssl bump
1142
1143 * Wed Dec 5 2007 Joe Orton <jorton@redhat.com> 5.2.5-2
1144 - update to 5.2.5
1145
1146 * Mon Oct 15 2007 Joe Orton <jorton@redhat.com> 5.2.4-3
1147 - correct pcre BR version (#333021)
1148 - restore metaphone fix (#205714)
1149 - add READMEs to php-cli
1150
1151 * Sun Sep 16 2007 Joe Orton <jorton@redhat.com> 5.2.4-2
1152 - update to 5.2.4
1153
1154 * Sun Sep 2 2007 Joe Orton <jorton@redhat.com> 5.2.3-9
1155 - rebuild for fixed APR
1156
1157 * Tue Aug 28 2007 Joe Orton <jorton@redhat.com> 5.2.3-8
1158 - add ldconfig post/postun for -embedded (Hans de Goede)
1159
1160 * Fri Aug 10 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 5.2.3-7
1161 - add php-embedded sub-package
1162
1163 * Fri Aug 10 2007 Joe Orton <jorton@redhat.com> 5.2.3-6
1164 - fix build with new glibc
1165 - fix License
1166
1167 * Mon Jul 16 2007 Joe Orton <jorton@redhat.com> 5.2.3-5
1168 - define php_extdir in macros.php
1169
1170 * Mon Jul 2 2007 Joe Orton <jorton@redhat.com> 5.2.3-4
1171 - obsolete php-dbase
1172
1173 * Tue Jun 19 2007 Joe Orton <jorton@redhat.com> 5.2.3-3
1174 - add mcrypt, mhash, tidy, mssql subpackages (Dmitry Butskoy)
1175 - enable dbase extension and package in -common
1176
1177 * Fri Jun 8 2007 Joe Orton <jorton@redhat.com> 5.2.3-2
1178 - update to 5.2.3 (thanks to Jeff Sheltren)
1179
1180 * Wed May 9 2007 Joe Orton <jorton@redhat.com> 5.2.2-4
1181 - fix php-pdo *_arg_force_ref global symbol abuse (#216125)
1182
1183 * Tue May 8 2007 Joe Orton <jorton@redhat.com> 5.2.2-3
1184 - rebuild against uw-imap-devel
1185
1186 * Fri May 4 2007 Joe Orton <jorton@redhat.com> 5.2.2-2
1187 - update to 5.2.2
1188 - synch changes from upstream recommended php.ini
1189
1190 * Thu Mar 29 2007 Joe Orton <jorton@redhat.com> 5.2.1-5
1191 - enable SASL support in LDAP extension (#205772)
1192
1193 * Wed Mar 21 2007 Joe Orton <jorton@redhat.com> 5.2.1-4
1194 - drop mime_magic extension (deprecated by php-pecl-Fileinfo)
1195
1196 * Mon Feb 19 2007 Joe Orton <jorton@redhat.com> 5.2.1-3
1197 - fix regression in str_{i,}replace (from upstream)
1198
1199 * Thu Feb 15 2007 Joe Orton <jorton@redhat.com> 5.2.1-2
1200 - update to 5.2.1
1201 - add Requires(pre) for httpd
1202 - trim %%changelog to versions >= 5.0.0
1203
1204 * Thu Feb 8 2007 Joe Orton <jorton@redhat.com> 5.2.0-10
1205 - bump default memory_limit to 32M (#220821)
1206 - mark config files noreplace again (#174251)
1207 - drop trailing dots from Summary fields
1208 - use standard BuildRoot
1209 - drop libtool15 patch (#226294)
1210
1211 * Tue Jan 30 2007 Joe Orton <jorton@redhat.com> 5.2.0-9
1212 - add php(api), php(zend-abi) provides (#221302)
1213 - package /usr/share/php and append to default include_path (#225434)
1214
1215 * Tue Dec 5 2006 Joe Orton <jorton@redhat.com> 5.2.0-8
1216 - fix filter.h installation path
1217 - fix php-zend-abi version (Remi Collet, #212804)
1218
1219 * Tue Nov 28 2006 Joe Orton <jorton@redhat.com> 5.2.0-7
1220 - rebuild again
1221
1222 * Tue Nov 28 2006 Joe Orton <jorton@redhat.com> 5.2.0-6
1223 - rebuild for net-snmp soname bump
1224
1225 * Mon Nov 27 2006 Joe Orton <jorton@redhat.com> 5.2.0-5
1226 - build json and zip shared, in -common (Remi Collet, #215966)
1227 - obsolete php-json and php-pecl-zip
1228 - build readline extension into /usr/bin/php* (#210585)
1229 - change module subpackages to require php-common not php (#177821)
1230
1231 * Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 5.2.0-4
1232 - provide php-zend-abi (#212804)
1233 - add /etc/rpm/macros.php exporting interface versions
1234 - synch with upstream recommended php.ini
1235
1236 * Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 5.2.0-3
1237 - update to 5.2.0 (#213837)
1238 - php-xml provides php-domxml (#215656)
1239 - fix php-pdo-abi provide (#214281)
1240
1241 * Tue Oct 31 2006 Joseph Orton <jorton@redhat.com> 5.1.6-4
1242 - rebuild for curl soname bump
1243 - add build fix for curl 7.16 API
1244
1245 * Wed Oct 4 2006 Joe Orton <jorton@redhat.com> 5.1.6-3
1246 - from upstream: add safety checks against integer overflow in _ecalloc
1247
1248 * Tue Aug 29 2006 Joe Orton <jorton@redhat.com> 5.1.6-2
1249 - update to 5.1.6 (security fixes)
1250 - bump default memory_limit to 16M (#196802)
1251
1252 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.1.4-8.1
1253 - rebuild
1254
1255 * Fri Jun 9 2006 Joe Orton <jorton@redhat.com> 5.1.4-8
1256 - Provide php-posix (#194583)
1257 - only provide php-pcntl from -cli subpackage
1258 - add missing defattr's (thanks to Matthias Saou)
1259
1260 * Fri Jun 9 2006 Joe Orton <jorton@redhat.com> 5.1.4-7
1261 - move Obsoletes for php-openssl to -common (#194501)
1262 - Provide: php-cgi from -cli subpackage
1263
1264 * Fri Jun 2 2006 Joe Orton <jorton@redhat.com> 5.1.4-6
1265 - split out php-cli, php-common subpackages (#177821)
1266 - add php-pdo-abi version export (#193202)
1267
1268 * Wed May 24 2006 Radek Vokal <rvokal@redhat.com> 5.1.4-5.1
1269 - rebuilt for new libnetsnmp
1270
1271 * Thu May 18 2006 Joe Orton <jorton@redhat.com> 5.1.4-5
1272 - provide mod_php (#187891)
1273 - provide php-cli (#192196)
1274 - use correct LDAP fix (#181518)
1275 - define _GNU_SOURCE in php_config.h and leave it defined
1276 - drop (circular) dependency on php-pear
1277
1278 * Mon May 8 2006 Joe Orton <jorton@redhat.com> 5.1.4-3
1279 - update to 5.1.4
1280
1281 * Wed May 3 2006 Joe Orton <jorton@redhat.com> 5.1.3-3
1282 - update to 5.1.3
1283
1284 * Tue Feb 28 2006 Joe Orton <jorton@redhat.com> 5.1.2-5
1285 - provide php-api (#183227)
1286 - add provides for all builtin modules (Tim Jackson, #173804)
1287 - own %%{_libdir}/php/pear for PEAR packages (per #176733)
1288 - add obsoletes to allow upgrade from FE4 PDO packages (#181863)
1289
1290 * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.1.2-4.3
1291 - bump again for double-long bug on ppc(64)
1292
1293 * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.1.2-4.1
1294 - rebuilt for new gcc4.1 snapshot and glibc changes
1295
1296 * Tue Jan 31 2006 Joe Orton <jorton@redhat.com> 5.1.2-4
1297 - rebuild for new libc-client soname
1298
1299 * Mon Jan 16 2006 Joe Orton <jorton@redhat.com> 5.1.2-3
1300 - only build xmlreader and xmlwriter shared (#177810)
1301
1302 * Fri Jan 13 2006 Joe Orton <jorton@redhat.com> 5.1.2-2
1303 - update to 5.1.2
1304
1305 * Thu Jan 5 2006 Joe Orton <jorton@redhat.com> 5.1.1-8
1306 - rebuild again
1307
1308 * Mon Jan 2 2006 Joe Orton <jorton@redhat.com> 5.1.1-7
1309 - rebuild for new net-snmp
1310
1311 * Mon Dec 12 2005 Joe Orton <jorton@redhat.com> 5.1.1-6
1312 - enable short_open_tag in default php.ini again (#175381)
1313
1314 * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
1315 - rebuilt
1316
1317 * Thu Dec 8 2005 Joe Orton <jorton@redhat.com> 5.1.1-5
1318 - require net-snmp for php-snmp (#174800)
1319
1320 * Sun Dec 4 2005 Joe Orton <jorton@redhat.com> 5.1.1-4
1321 - add /usr/share/pear back to hard-coded include_path (#174885)
1322
1323 * Fri Dec 2 2005 Joe Orton <jorton@redhat.com> 5.1.1-3
1324 - rebuild for httpd 2.2
1325
1326 * Mon Nov 28 2005 Joe Orton <jorton@redhat.com> 5.1.1-2
1327 - update to 5.1.1
1328 - remove pear subpackage
1329 - enable pdo extensions (php-pdo subpackage)
1330 - remove non-standard conditional module builds
1331 - enable xmlreader extension
1332
1333 * Thu Nov 10 2005 Tomas Mraz <tmraz@redhat.com> 5.0.5-6
1334 - rebuilt against new openssl
1335
1336 * Mon Nov 7 2005 Joe Orton <jorton@redhat.com> 5.0.5-5
1337 - pear: update to XML_RPC 1.4.4, XML_Parser 1.2.7, Mail 1.1.9 (#172528)
1338
1339 * Tue Nov 1 2005 Joe Orton <jorton@redhat.com> 5.0.5-4
1340 - rebuild for new libnetsnmp
1341
1342 * Wed Sep 14 2005 Joe Orton <jorton@redhat.com> 5.0.5-3
1343 - update to 5.0.5
1344 - add fix for upstream #34435
1345 - devel: require autoconf, automake (#159283)
1346 - pear: update to HTTP-1.3.6, Mail-1.1.8, Net_SMTP-1.2.7, XML_RPC-1.4.1
1347 - fix imagettftext et al (upstream, #161001)
1348
1349 * Thu Jun 16 2005 Joe Orton <jorton@redhat.com> 5.0.4-11
1350 - ldap: restore ldap_start_tls() function
1351
1352 * Fri May 6 2005 Joe Orton <jorton@redhat.com> 5.0.4-10
1353 - disable RPATHs in shared extensions (#156974)
1354
1355 * Tue May 3 2005 Joe Orton <jorton@redhat.com> 5.0.4-9
1356 - build simplexml_import_dom even with shared dom (#156434)
1357 - prevent truncation of copied files to ~2Mb (#155916)
1358 - install /usr/bin/php from CLI build alongside CGI
1359 - enable sysvmsg extension (#142988)
1360
1361 * Mon Apr 25 2005 Joe Orton <jorton@redhat.com> 5.0.4-8
1362 - prevent build of builtin dba as well as shared extension
1363
1364 * Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-7
1365 - split out dba and bcmath extensions into subpackages
1366 - BuildRequire gcc-c++ to avoid AC_PROG_CXX{,CPP} failure (#155221)
1367 - pear: update to DB-1.7.6
1368 - enable FastCGI support in /usr/bin/php-cgi (#149596)
1369
1370 * Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-6
1371 - build /usr/bin/php with the CLI SAPI, and add /usr/bin/php-cgi,
1372 built with the CGI SAPI (thanks to Edward Rudd, #137704)
1373 - add php(1) man page for CLI
1374 - fix more test cases to use -n when invoking php
1375
1376 * Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-5
1377 - rebuild for new libpq soname
1378
1379 * Tue Apr 12 2005 Joe Orton <jorton@redhat.com> 5.0.4-4
1380 - bundle from PEAR: HTTP, Mail, XML_Parser, Net_Socket, Net_SMTP
1381 - snmp: disable MSHUTDOWN function to prevent error_log noise (#153988)
1382 - mysqli: add fix for crash on x86_64 (Georg Richter, upstream #32282)
1383
1384 * Mon Apr 11 2005 Joe Orton <jorton@redhat.com> 5.0.4-3
1385 - build shared objects as PIC (#154195)
1386
1387 * Mon Apr 4 2005 Joe Orton <jorton@redhat.com> 5.0.4-2
1388 - fix PEAR installation and bundle PEAR DB-1.7.5 package
1389
1390 * Fri Apr 1 2005 Joe Orton <jorton@redhat.com> 5.0.4-1
1391 - update to 5.0.4 (#153068)
1392 - add .phps AddType to php.conf (#152973)
1393 - better gcc4 fix for libxmlrpc
1394
1395 * Wed Mar 30 2005 Joe Orton <jorton@redhat.com> 5.0.3-5
1396 - BuildRequire mysql-devel >= 4.1
1397 - don't mark php.ini as noreplace to make upgrades work (#152171)
1398 - fix subpackage descriptions (#152628)
1399 - fix memset(,,0) in Zend (thanks to Dave Jones)
1400 - fix various compiler warnings in Zend
1401
1402 * Thu Mar 24 2005 Joe Orton <jorton@redhat.com> 5.0.3-4
1403 - package mysqli extension in php-mysql
1404 - really enable pcntl (#142903)
1405 - don't build with --enable-safe-mode (#148969)
1406 - use "Instant Client" libraries for oci8 module (Kai Bolay, #149873)
1407
1408 * Fri Feb 18 2005 Joe Orton <jorton@redhat.com> 5.0.3-3
1409 - fix build with GCC 4
1410
1411 * Wed Feb 9 2005 Joe Orton <jorton@redhat.com> 5.0.3-2
1412 - install the ext/gd headers (#145891)
1413 - enable pcntl extension in /usr/bin/php (#142903)
1414 - add libmbfl array arithmetic fix (dcb314@hotmail.com, #143795)
1415 - add BuildRequire for recent pcre-devel (#147448)
1416
1417 * Wed Jan 12 2005 Joe Orton <jorton@redhat.com> 5.0.3-1
1418 - update to 5.0.3 (thanks to Robert Scheck et al, #143101)
1419 - enable xsl extension (#142174)
1420 - package both the xsl and dom extensions in php-xml
1421 - enable soap extension, shared (php-soap package) (#142901)
1422 - add patches from upstream 5.0 branch:
1423 * Zend_strtod.c compile fixes
1424 * correct php_sprintf return value usage
1425
1426 * Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 5.0.2-8
1427 - update for db4-4.3 (Robert Scheck, #140167)
1428 - build against mysql-devel
1429 - run tests in %%check
1430
1431 * Wed Nov 10 2004 Joe Orton <jorton@redhat.com> 5.0.2-7
1432 - truncate changelog at 4.3.1-1
1433 - merge from 4.3.x package:
1434 - enable mime_magic extension and Require: file (#130276)
1435
1436 * Mon Nov 8 2004 Joe Orton <jorton@redhat.com> 5.0.2-6
1437 - fix dom/sqlite enable/without confusion
1438
1439 * Mon Nov 8 2004 Joe Orton <jorton@redhat.com> 5.0.2-5
1440 - fix phpize installation for lib64 platforms
1441 - add fix for segfault in variable parsing introduced in 5.0.2
1442
1443 * Mon Nov 8 2004 Joe Orton <jorton@redhat.com> 5.0.2-4
1444 - update to 5.0.2 (#127980)
1445 - build against mysqlclient10-devel
1446 - use new RTLD_DEEPBIND to load extension modules
1447 - drop explicit requirement for elfutils-devel
1448 - use AddHandler in default conf.d/php.conf (#135664)
1449 - "fix" round() fudging for recent gcc on x86
1450 - disable sqlite pending audit of warnings and subpackage split
1451
1452 * Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-4
1453 - don't build dom extension into 2.0 SAPI
1454
1455 * Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-3
1456 - ExclusiveArch: x86 ppc x86_64 for the moment
1457
1458 * Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-2
1459 - fix default extension_dir and conf.d/php.conf
1460
1461 * Thu Sep 9 2004 Joe Orton <jorton@redhat.com> 5.0.1-1
1462 - update to 5.0.1
1463 - only build shared modules once
1464 - put dom extension in php-dom subpackage again
1465 - move extension modules into %%{_libdir}/php/modules
1466 - don't use --with-regex=system, it's ignored for the apache* SAPIs
1467
1468 * Wed Aug 11 2004 Tom Callaway <tcallawa@redhat.com>
1469 - Merge in some spec file changes from Jeff Stern (jastern@uci.edu)
1470
1471 * Mon Aug 09 2004 Tom Callaway <tcallawa@redhat.com>
1472 - bump to 5.0.0
1473 - add patch to prevent clobbering struct re_registers from regex.h
1474 - remove domxml references, replaced with dom now built-in
1475 - fix php.ini to refer to php5 not php4

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed