/[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.5.2.3 - (show annotations) (download)
Fri Jun 29 14:45:08 2012 UTC (11 years, 10 months ago) by slords
Branch: redhat-upstream
CVS Tags: php-5_3_3-13_el6
Changes since 1.5.2.2: +72 -23 lines
Upstream import

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

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