/[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.4 - (hide annotations) (download)
Tue Sep 13 14:05:18 2011 UTC (12 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: php-5_3_3-1_el5_sme_1_0
Changes since 1.3: +6 -2 lines
* Tue Sep 13 2011 Shad L. Lords <slords@mail.com> - 5.3.3-1.1.0
- Update Obsoletes and Conflicts [SME: 6436]

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

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