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

Annotation of /rpms/php/sme8/php.spec

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


Revision 1.5.2.2 - (hide annotations) (download)
Fri Feb 3 15:48:14 2012 UTC (12 years, 3 months ago) by slords
Branch: redhat-upstream
CVS Tags: php-5_3_3-1_el5_7_6
Changes since 1.5.2.1: +18 -2 lines
Upstream import

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

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