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

Diff of /rpms/php/sme8/php.spec

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

Revision 1.2 by slords, Thu Mar 4 16:31:07 2010 UTC Revision 1.17 by vip-ire, Sat Nov 1 13:01:52 2014 UTC
# Line 1  Line 1 
1  # $Id$  %global contentdir  /var/www
2    # API/ABI check
3    %global apiver      20090626
4    %global zendver     20090626
5    %global pdover      20080721
6    # Extension version
7    %global fileinfover 1.0.5-dev
8    %global pharver     2.0.1
9    %global zipver      1.9.1
10    %global jsonver     1.2.1
11    
12    %define httpd_mmn %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)
13    
14    # Use the arch-specific mysql_config binary to avoid mismatch with the
15    # heuristic used by bindir/mysql_config.
16    %define mysql_config %{_libdir}/mysql/mysql_config
17    
18  %define contentdir /var/www  %define _default_patch_fuzz 2
 %define apiver 20041225  
 %define zendver 20060613  
 %define pdover 20060511  
19    
20  Summary: The PHP HTML-embedded scripting language  Summary: PHP scripting language for creating dynamic web sites
21  Name: php  Name: php
22  Version: 5.2.10  Version: 5.3.3
23  Release: 1%{?dist}  Release: 17%{?dist}
24  License: PHP  License: PHP and LGPLv2 and LGPLv2+
25  Group: Development/Languages  Group: Development/Languages
26  URL: http://www.php.net/  URL: http://www.php.net/
27    
# Line 18  Source1: php.conf Line 30  Source1: php.conf
30  Source2: php.ini  Source2: php.ini
31  Source3: macros.php  Source3: macros.php
32    
33  Patch1: php-5.2.4-gnusrc.patch  # Build fixes
34  Patch2: php-4.3.3-install.patch  Patch1: php-5.3.3-gnusrc.patch
35    Patch2: php-5.3.0-install.patch
36  Patch3: php-5.2.4-norpath.patch  Patch3: php-5.2.4-norpath.patch
37  Patch5: php-5.0.2-phpize64.patch  Patch4: php-5.3.0-phpize64.patch
38  Patch8: php-5.2.0-includedir.patch  Patch5: php-5.2.0-includedir.patch
39  Patch9: php-5.2.4-embed.patch  Patch8: php-5.3.3-aconf26x.patch
40    
41  # Fixes for extension modules  # Fixes for extensions
42  Patch21: php-5.2.4-odbc.patch  Patch20: php-4.3.11-shutdown.patch
43  Patch22: php-4.3.11-shutdown.patch  Patch21: php-5.3.3-zipmemset.patch
44  Patch24: php-5.2.3-macropen.patch  Patch22: php-5.3.3-pdo-overflow.patch
45    Patch23: php-5.3.3-pdo-53551.patch
46    Patch24: php-5.3.3-fileinfo.patch
47    Patch25: php-5.3.3-imap.patch
48    Patch26: php-5.3.3-odbc.patch
49    
50  # Functional changes  # Functional changes
51  Patch30: php-5.0.4-dlopen.patch  Patch40: php-5.0.4-dlopen.patch
52  Patch31: php-5.2.4-easter.patch  Patch41: php-5.3.0-easter.patch
53  Patch32: php-5.2.5-systzdata.patch  Patch42: php-5.3.1-systzdata-v7.patch
54    
55  # Fixes for tests  # Fixes for tests
56  Patch51: php-5.0.4-tests-wddx.patch  Patch61: php-5.0.4-tests-wddx.patch
57    Patch62: php-5.3.2-testfail.patch
58    
59    # Bug fixes
60    Patch100: php-5.3.3-extrglob.patch
61    Patch101: php-5.3.3-varnegidx.patch
62    Patch102: php-5.3.3-setdate.patch
63    # 103 not needed (no php-fpm)
64    Patch104: php-5.3.3-zendgc.patch
65    Patch105: php-5.3.3-r305043.patch
66    Patch106: php-5.3.3-copy.patch
67    Patch107: php-5.3.3-errorhandler.patch
68    Patch108: php-5.3.3-bug54268.patch
69    
70    # Fixes for security bugs
71    Patch200: php-5.3.2-CVE-2010-3709.patch
72    Patch201: php-5.3.2-CVE-2010-3870.patch
73    Patch202: php-5.3.3-CVE-2010-3710.patch
74    Patch203: php-5.3.2-CVE-2010-4645.patch
75    Patch204: php-5.3.3-CVE-2010-4156.patch
76    Patch205: php-5.3.3-CVE-2011-0708.patch
77    Patch206: php-5.3.3-CVE-2011-1148.patch
78    Patch207: php-5.3.3-CVE-2011-1466.patch
79    Patch208: php-5.3.3-CVE-2011-1468.patch
80    Patch209: php-5.3.3-CVE-2011-1469.patch
81    # 210 not needed (not affected)
82    Patch211: php-5.3.3-CVE-2011-1471.patch
83    Patch212: php-5.3.3-CVE-2011-1938.patch
84    Patch213: php-5.3.3-CVE-2011-2202.patch
85    Patch214: php-5.3.3-CVE-2011-2483.patch
86    Patch215: php-5.3.3-CVE-2011-4885.patch
87    Patch216: php-5.3.3-CVE-2011-4566.patch
88    Patch217: php-5.3.3-CVE-2012-0830.patch
89    Patch218: php-5.3.3-CVE-2012-1823.patch
90    Patch219: php-5.3.3-CVE-2012-2336.patch
91    Patch220: php-5.3.3-CVE-2011-4153.patch
92    # 221 not needed (no php-tidy)
93    Patch222: php-5.3.3-CVE-2012-1172.patch
94    Patch223: php-5.3.3-CVE-2012-2143.patch
95    Patch224: php-5.3.3-CVE-2012-2386.patch
96    Patch225: php-5.3.3-CVE-2012-0057.patch
97    Patch226: php-5.3.3-CVE-2012-0789.patch
98    Patch227: php-5.3.3-CVE-2010-2950.patch
99    Patch228: php-5.3.3-CVE-2012-2688.patch
100    Patch229: php-5.3.3-CVE-2012-0831.patch
101    Patch230: php-5.3.3-CVE-2011-1398.patch
102    Patch231: php-5.3.3-CVE-2013-1643.patch
103    Patch232: php-5.3.3-CVE-2006-7243.patch
104    Patch233: php-5.3.3-CVE-2013-4113.patch
105    Patch234: php-5.3.3-CVE-2013-4248.patch
106    Patch235: php-5.3.3-CVE-2013-6420.patch
107    Patch236: php-5.3.3-CVE-2014-0237.patch
108    Patch237: php-5.3.3-CVE-2014-0238.patch
109    Patch238: php-5.3.3-CVE-2014-2270.patch
110    Patch239: php-5.3.3-CVE-2014-1943.patch
111    Patch240: php-5.3.3-CVE-2014-3479.patch
112    Patch241: php-5.3.3-CVE-2012-1571.patch
113    Patch242: php-5.3.3-CVE-2014-3480.patch
114    Patch243: php-5.3.3-CVE-2014-4721.patch
115    Patch244: php-5.3.3-CVE-2013-6712.patch
116    Patch245: php-5.3.3-CVE-2014-4049.patch
117    Patch246: php-5.3.3-CVE-2014-3515.patch
118    Patch247: php-5.3.3-CVE-2014-2497.patch
119    Patch248: php-5.3.3-CVE-2014-3587.patch
120    Patch249: php-5.3.3-CVE-2014-3597.patch
121    Patch250: php-5.3.3-CVE-2014-4698.patch
122    Patch251: php-5.3.3-CVE-2014-4670.patch
123    Patch252: php-5.3.3-CVE-2014-3668.patch
124    Patch253: php-5.3.3-CVE-2014-3669.patch
125    Patch254: php-5.3.3-CVE-2014-3670.patch
126    Patch255: php-5.3.3-CVE-2014-3710.patch
127    
128  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
129    
130  BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel  BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, gmp-devel
131  BuildRequires: gmp-devel, aspell-devel >= 0.50.0  BuildRequires: httpd-devel >= 2.0.46-1, pam-devel
132  BuildRequires: httpd-devel >= 2.0.46-1, libjpeg-devel, libpng-devel, pam-devel  BuildRequires: libstdc++-devel, openssl-devel, sqlite-devel
133  BuildRequires: libstdc++-devel, openssl-devel, sqlite-devel >= 3.0.0  BuildRequires: zlib-devel, pcre-devel >= 6.6, smtpdaemon
 BuildRequires: zlib-devel, pcre-devel >= 6.6, smtpdaemon, readline-devel  
134  BuildRequires: bzip2, perl, libtool >= 1.4.3, gcc-c++  BuildRequires: bzip2, perl, libtool >= 1.4.3, gcc-c++
135  Obsoletes: php-dbg, php3, phpfi, stronghold-php  Requires: httpd-mmn = %{httpd_mmn}
 # Enforce Apache module ABI compatibility  
 Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)  
136  Provides: mod_php = %{version}-%{release}  Provides: mod_php = %{version}-%{release}
137  Requires: php-common = %{version}-%{release}  Provides: php53 = %{version}-%{release}, config(php53) = %{version}-%{release}
138    Requires: %{name}-common = %{version}-%{release}
139  # For backwards-compatibility, require php-cli for the time being:  # For backwards-compatibility, require php-cli for the time being:
140  Requires: php-cli = %{version}-%{release}  Requires: %{name}-cli = %{version}-%{release}
141  # To ensure correct /var/lib/php/session ownership:  # To ensure correct /var/lib/php/session ownership:
142  Requires(pre): httpd  Requires(pre): httpd
143    
# Line 70  language to Apache HTTP Server. Line 155  language to Apache HTTP Server.
155  %package cli  %package cli
156  Group: Development/Languages  Group: Development/Languages
157  Summary: Command-line interface for PHP  Summary: Command-line interface for PHP
158  Requires: php-common = %{version}-%{release}  Requires: %{name}-common = %{version}-%{release}
159  Provides: php-cgi = %{version}-%{release}  Provides: php-cgi = %{version}-%{release}, php53-cli = %{version}-%{release}
160  Provides: php-pcntl, php-readline  Provides: php-pcntl
161    
162  %description cli  %description cli
163  The php-cli package contains the command-line interface  The php-cli package contains the command-line interface
# Line 83  Group: Development/Languages Line 168  Group: Development/Languages
168  Summary: Common files for PHP  Summary: Common files for PHP
169  Provides: php-api = %{apiver}, php-zend-abi = %{zendver}  Provides: php-api = %{apiver}, php-zend-abi = %{zendver}
170  Provides: php(api) = %{apiver}, php(zend-abi) = %{zendver}  Provides: php(api) = %{apiver}, php(zend-abi) = %{zendver}
171    Provides: php(language) = %{version}
172  # Provides for all builtin modules:  # Provides for all builtin modules:
173  Provides: php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif  Provides: php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif
174  Provides: php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-libxml  Provides: php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-libxml
 Provides: php-openssl, php-pcre, php-posix, php-pspell  
175  Provides: php-reflection, php-session, php-shmop, php-simplexml, php-sockets  Provides: php-reflection, php-session, php-shmop, php-simplexml, php-sockets
176  Provides: php-spl, php-sysvsem, php-sysvshm, php-sysvmsg, php-tokenizer  Provides: php-spl, php-tokenizer, php-openssl, php-pcre
177  Provides: php-wddx, php-zlib, php-json, php-zip, php-dbase  Provides: php-zlib, php-json, php-zip, php-fileinfo
178  Obsoletes: php-openssl, php-pecl-zip, php-json, php-dbase  Provides: php-core, php-ereg, php-filter, php-phar, php-standard
179    Provides: php53-common = %{version}-%{release}, config(php53-common) = %{version}-%{release}
180    Obsoletes: php-pecl-json, php-pecl-zip, php-pecl-phar, php-pecl-Fileinfo
181    Obsoletes: php-openssl, php-json
182    # For obsoleted pecl extension
183    Provides: php-pecl-json = %{jsonver}, php-pecl(json) = %{jsonver}
184    Provides: php-pecl-zip = %{zipver}, php-pecl(zip) = %{zipver}
185    Provides: php-pecl-phar = %{pharver}, php-pecl(phar) = %{pharver}
186    Provides: php-pecl-Fileinfo = %{fileinfover}, php-pecl(Fileinfo) = %{fileinfover}
187    Obsoletes: php-pecl-json, php-pecl-zip, php-pecl-phar, php-pecl-Fileinfo
188    
189  %description common  %description common
190  The php-common package contains files used by both the php  The %{name}-common package contains files used by both the php
191  package and the php-cli package.  package and the php-cli package.
192    
193  %package devel  %package devel
194  Group: Development/Libraries  Group: Development/Libraries
195  Summary: Files needed for building PHP extensions  Summary: Files needed for building PHP extensions
196  Requires: php = %{version}-%{release}, autoconf, automake  Requires: %{name} = %{version}-%{release}, autoconf, automake
197  Obsoletes: php-pecl-pdo-devel  Provides: php53-devel = %{version}-%{release}, config(php53-devel) = %{version}-%{release}
198    
199  %description devel  %description devel
200  The php-devel package contains the files needed for building PHP  The php-devel package contains the files needed for building PHP
# Line 110  need to install this package. Line 204  need to install this package.
204  %package imap  %package imap
205  Summary: A module for PHP applications that use IMAP  Summary: A module for PHP applications that use IMAP
206  Group: Development/Languages  Group: Development/Languages
207  Requires: php-common = %{version}-%{release}  Requires: %{name}-common = %{version}-%{release}
 Obsoletes: mod_php3-imap, stronghold-php-imap  
208  BuildRequires: krb5-devel, openssl-devel, libc-client-devel  BuildRequires: krb5-devel, openssl-devel, libc-client-devel
209    Provides: php53-imap = %{version}-%{release}, config(php53-imap) = %{version}-%{release}
210    
211  %description imap  %description imap
212  The php-imap package contains a dynamic shared object (DSO) for the  The php-imap package contains a dynamic shared object that will
213  Apache Web server. When compiled into Apache, the php-imap module will  add support for the IMAP protocol to PHP.
 add IMAP (Internet Message Access Protocol) support to PHP. IMAP is a  
 protocol for retrieving and uploading e-mail messages on mail  
 servers. PHP is an HTML-embedded scripting language. If you need IMAP  
 support for PHP applications, you will need to install this package  
 and the php package.  
214    
215  %package ldap  %package ldap
216  Summary: A module for PHP applications that use LDAP  Summary: A module for PHP applications that use LDAP
217  Group: Development/Languages  Group: Development/Languages
218  Requires: php-common = %{version}-%{release}  Requires: %{name}-common = %{version}-%{release}
 Obsoletes: mod_php3-ldap, stronghold-php-ldap  
219  BuildRequires: cyrus-sasl-devel, openldap-devel, openssl-devel  BuildRequires: cyrus-sasl-devel, openldap-devel, openssl-devel
220    Provides: php53-ldap = %{version}-%{release}, config(php53-ldap) = %{version}-%{release}
221    
222  %description ldap  %description ldap
223  The php-ldap package is a dynamic shared object (DSO) for the Apache  The php-ldap package is a dynamic shared object (DSO) for the Apache
# Line 141  need to install this package in addition Line 230  need to install this package in addition
230  %package pdo  %package pdo
231  Summary: A database access abstraction module for PHP applications  Summary: A database access abstraction module for PHP applications
232  Group: Development/Languages  Group: Development/Languages
233  Requires: php-common = %{version}-%{release}  Requires: %{name}-common = %{version}-%{release}
 Obsoletes: php-pecl-pdo-sqlite, php-pecl-pdo  
234  Provides: php-pdo-abi = %{pdover}  Provides: php-pdo-abi = %{pdover}
235    Provides: php-pdo_sqlite
236    Provides: php53-pdo = %{version}-%{release}, config(php53-pdo) = %{version}-%{release}
237    
238  %description pdo  %description pdo
239  The php-pdo package contains a dynamic shared object that will add  The %{name}-pdo package contains a dynamic shared object that will add
240  a database access abstraction layer to PHP.  This module provides  a database access abstraction layer to PHP.  This module provides
241  a common interface for accessing MySQL, PostgreSQL or other  a common interface for accessing MySQL, PostgreSQL or other
242  databases.  databases.
# Line 154  databases. Line 244  databases.
244  %package mysql  %package mysql
245  Summary: A module for PHP applications that use MySQL databases  Summary: A module for PHP applications that use MySQL databases
246  Group: Development/Languages  Group: Development/Languages
247  Requires: php-common = %{version}-%{release}, php-pdo  Requires: %{name}-common = %{version}-%{release}, %{name}-pdo
248  Provides: php_database, php-mysqli  Provides: php_database, php-mysqli, php-pdo_mysql
 Obsoletes: mod_php3-mysql, stronghold-php-mysql  
249  BuildRequires: mysql-devel >= 4.1.0  BuildRequires: mysql-devel >= 4.1.0
250    Provides: php53-mysql = %{version}-%{release}, config(php53-mysql) = %{version}-%{release}
251    
252  %description mysql  %description mysql
253  The php-mysql package contains a dynamic shared object that will add  The php-mysql package contains a dynamic shared object that will add
# Line 169  this package and the php package. Line 259  this package and the php package.
259  %package pgsql  %package pgsql
260  Summary: A PostgreSQL database module for PHP  Summary: A PostgreSQL database module for PHP
261  Group: Development/Languages  Group: Development/Languages
262  Requires: php-common = %{version}-%{release}, php-pdo  Requires: %{name}-common = %{version}-%{release}, %{name}-pdo
263  Provides: php_database  Provides: php_database, php-pdo_pgsql
 Obsoletes: mod_php3-pgsql, stronghold-php-pgsql  
264  BuildRequires: krb5-devel, openssl-devel, postgresql-devel  BuildRequires: krb5-devel, openssl-devel, postgresql-devel
265    Provides: php53-pgsql = %{version}-%{release}, config(php53-pgsql) = %{version}-%{release}
266    
267  %description pgsql  %description pgsql
268  The php-pgsql package includes a dynamic shared object (DSO) that can  The php-pgsql package includes a dynamic shared object (DSO) that can
# Line 183  HTML-embedded scripting language. If you Line 273  HTML-embedded scripting language. If you
273  PostgreSQL, you should install this package in addition to the main  PostgreSQL, you should install this package in addition to the main
274  php package.  php package.
275    
276    %package process
277    Summary: Modules for PHP script using system process interfaces
278    Group: Development/Languages
279    Requires: %{name}-common = %{version}-%{release}
280    Provides: php-posix, php-sysvsem, php-sysvshm, php-sysvmsg
281    Provides: php53-process = %{version}-%{release}, config(php53-process) = %{version}-%{release}
282    
283    %description process
284    The php-process package contains dynamic shared objects which add
285    support to PHP using system interfaces for inter-process
286    communication.
287    
288  %package odbc  %package odbc
289  Group: Development/Languages  Group: Development/Languages
290  Requires: php-common = %{version}-%{release}, php-pdo  Requires: %{name}-common = %{version}-%{release}, %{name}-pdo
291  Summary: A module for PHP applications that use ODBC databases  Summary: A module for PHP applications that use ODBC databases
292  Provides: php_database  Provides: php_database, php-pdo_odbc
 Obsoletes: stronghold-php-odbc  
293  BuildRequires: unixODBC-devel  BuildRequires: unixODBC-devel
294    Provides: php53-odbc = %{version}-%{release}, config(php53-odbc) = %{version}-%{release}
295    
296  %description odbc  %description odbc
297  The php-odbc package contains a dynamic shared object that will add  The php-odbc package contains a dynamic shared object that will add
# Line 202  package. Line 304  package.
304    
305  %package soap  %package soap
306  Group: Development/Languages  Group: Development/Languages
307  Requires: php-common = %{version}-%{release}  Requires: %{name}-common = %{version}-%{release}
308  Summary: A module for PHP applications that use the SOAP protocol  Summary: A module for PHP applications that use the SOAP protocol
309  BuildRequires: libxml2-devel  BuildRequires: libxml2-devel
310    Provides: php53-soap = %{version}-%{release}, config(php53-soap) = %{version}-%{release}
311    
312  %description soap  %description soap
313  The php-soap package contains a dynamic shared object that will add  The php-soap package contains a dynamic shared object that will add
# Line 213  support to PHP for using the SOAP web se Line 316  support to PHP for using the SOAP web se
316  %package snmp  %package snmp
317  Summary: A module for PHP applications that query SNMP-managed devices  Summary: A module for PHP applications that query SNMP-managed devices
318  Group: Development/Languages  Group: Development/Languages
319  Requires: php-common = %{version}-%{release}, net-snmp  Requires: %{name}-common = %{version}-%{release}, net-snmp
320  BuildRequires: net-snmp-devel  BuildRequires: net-snmp-devel
321    Provides: php53-snmp = %{version}-%{release}, config(php53-snmp) = %{version}-%{release}
322    
323  %description snmp  %description snmp
324  The php-snmp package contains a dynamic shared object that will add  The php-snmp package contains a dynamic shared object that will add
# Line 225  will need to install this package and th Line 329  will need to install this package and th
329  %package xml  %package xml
330  Summary: A module for PHP applications which use XML  Summary: A module for PHP applications which use XML
331  Group: Development/Languages  Group: Development/Languages
332  Requires: php-common = %{version}-%{release}  Requires: %{name}-common = %{version}-%{release}
333  Obsoletes: php-domxml, php-dom  Provides: php-dom, php-xsl, php-domxml, php-wddx
 Provides: php-dom, php-xsl, php-domxml  
334  BuildRequires: libxslt-devel >= 1.0.18-1, libxml2-devel >= 2.4.14-1  BuildRequires: libxslt-devel >= 1.0.18-1, libxml2-devel >= 2.4.14-1
335    Obsoletes: php-domxml, php-dom
336    Provides: php53-xml = %{version}-%{release}, config(php53-xml) = %{version}-%{release}
337    
338  %description xml  %description xml
339  The php-xml package contains dynamic shared objects which add support  The php-xml package contains dynamic shared objects which add support
# Line 238  and performing XSL transformations on XM Line 343  and performing XSL transformations on XM
343  %package xmlrpc  %package xmlrpc
344  Summary: A module for PHP applications which use the XML-RPC protocol  Summary: A module for PHP applications which use the XML-RPC protocol
345  Group: Development/Languages  Group: Development/Languages
346  Requires: php-common = %{version}-%{release}  Requires: %{name}-common = %{version}-%{release}
347  BuildRequires: expat-devel  Provides: php53-xmlrpc = %{version}-%{release}, config(php53-xmlrpc) = %{version}-%{release}
348    
349  %description xmlrpc  %description xmlrpc
350  The php-xmlrpc package contains a dynamic shared object that will add  The php-xmlrpc package contains a dynamic shared object that will add
# Line 248  support for the XML-RPC protocol to PHP. Line 353  support for the XML-RPC protocol to PHP.
353  %package mbstring  %package mbstring
354  Summary: A module for PHP applications which need multi-byte string handling  Summary: A module for PHP applications which need multi-byte string handling
355  Group: Development/Languages  Group: Development/Languages
356  Requires: php-common = %{version}-%{release}  Requires: %{name}-common = %{version}-%{release}
357    Provides: php53-mbstring = %{version}-%{release}, config(php53-mbstring) = %{version}-%{release}
358    
359  %description mbstring  %description mbstring
360  The php-mbstring package contains a dynamic shared object that will add  The php-mbstring package contains a dynamic shared object that will add
361  support for multi-byte string handling to PHP.  support for multi-byte string handling to PHP.
362    
 %package ncurses  
 Summary: A module for PHP applications for using ncurses interfaces  
 Group: Development/Languages  
 Requires: php-common = %{version}-%{release}  
 BuildRequires: ncurses-devel  
   
 %description ncurses  
 The php-ncurses package contains a dynamic shared object that will add  
 support for using the ncurses terminal output interfaces.  
   
363  %package gd  %package gd
364  Summary: A module for PHP applications for using the gd graphics library  Summary: A module for PHP applications for using the gd graphics library
365  Group: Development/Languages  Group: Development/Languages
366  Requires: php-common = %{version}-%{release}  Requires: %{name}-common = %{version}-%{release}
367  BuildRequires: gd-devel, freetype-devel  # Required to build the bundled GD library
368    BuildRequires: libXpm-devel, libjpeg-devel, libpng-devel, freetype-devel
369    Provides: php53-gd = %{version}-%{release}, config(php53-gd) = %{version}-%{release}
370    
371  %description gd  %description gd
372  The php-gd package contains a dynamic shared object that will add  The php-gd package contains a dynamic shared object that will add
# Line 277  support for using the gd graphics librar Line 375  support for using the gd graphics librar
375  %package bcmath  %package bcmath
376  Summary: A module for PHP applications for using the bcmath library  Summary: A module for PHP applications for using the bcmath library
377  Group: Development/Languages  Group: Development/Languages
378  Requires: php-common = %{version}-%{release}  Requires: %{name}-common = %{version}-%{release}
379    Provides: php53-bcmath = %{version}-%{release}, config(php53-bcmath) = %{version}-%{release}
380    
381  %description bcmath  %description bcmath
382  The php-bcmath package contains a dynamic shared object that will add  The php-bcmath package contains a dynamic shared object that will add
# Line 286  support for using the bcmath library to Line 385  support for using the bcmath library to
385  %package dba  %package dba
386  Summary: A database abstraction layer module for PHP applications  Summary: A database abstraction layer module for PHP applications
387  Group: Development/Languages  Group: Development/Languages
388  Requires: php-common = %{version}-%{release}  Requires: %{name}-common = %{version}-%{release}
389    Provides: php53-dba = %{version}-%{release}, config(php53-dba) = %{version}-%{release}
390    
391  %description dba  %description dba
392  The php-dba package contains a dynamic shared object that will add  The php-dba package contains a dynamic shared object that will add
393  support for using the DBA database abstraction layer to PHP.  support for using the DBA database abstraction layer to PHP.
394    
395    %package pspell
396    Summary: A module for PHP applications for using pspell interfaces
397    Group: System Environment/Libraries
398    Requires: %{name}-common = %{version}-%{release}
399    BuildRequires: aspell-devel >= 0.50.0
400    Provides: php53-pspell = %{version}-%{release}, config(php53-pspell) = %{version}-%{release}
401    
402    %description pspell
403    The php-pspell package contains a dynamic shared object that will add
404    support for using the pspell library to PHP.
405    
406    %package intl
407    Summary: Internationalization extension for PHP applications
408    Group: System Environment/Libraries
409    Requires: %{name}-common = %{version}-%{release}
410    BuildRequires: libicu-devel >= 3.6
411    Provides: php53-intl = %{version}-%{release}, config(php53-intl) = %{version}-%{release}
412    
413    %description intl
414    The php-intl package contains a dynamic shared object that will add
415    support for using the ICU library to PHP.
416    
417  %prep  %prep
418  %setup -q  %setup -q -n php-%{version}
419  %patch1 -p1 -b .gnusrc  %patch1 -p1 -b .gnusrc
420  %patch2 -p1 -b .install  %patch2 -p1 -b .install
421  %patch3 -p1 -b .norpath  %patch3 -p1 -b .norpath
422  %patch5 -p1 -b .phpize64  %patch4 -p1 -b .phpize64
423  %patch8 -p1 -b .includedir  %patch5 -p1 -b .includedir
424  %patch9 -p1 -b .embed  %patch8 -p1 -b .aconf26x
425    
426  %patch21 -p1 -b .odbc  %patch20 -p1 -b .shutdown
427  %patch22 -p1 -b .shutdown  %patch21 -p1 -b .zipmemset
428  %patch24 -p1 -b .macropen  %patch22 -p1 -b .pdooverflow
429    %patch23 -p1 -b .pdo53551
430  %patch30 -p1 -b .dlopen  %patch24 -p1 -b .streams
431  %patch31 -p1 -b .easter  %patch25 -p1 -b .imapauth
432  %patch32 -p1 -b .systzdata  %patch26 -p1 -b .pdoodbc
433    
434  %patch51 -p1 -b .tests-wddx  %patch40 -p1 -b .dlopen
435    %patch41 -p1 -b .easter
436    %patch42 -p1 -b .systzdata
437    
438    %patch61 -p1 -b .tests-wddx
439    %patch62 -p1 -b .testfail
440    
441    %patch100 -p1 -b .extrglob
442    %patch101 -p1 -b .varnegidx
443    %patch102 -p1 -b .setdate
444    
445    %patch104 -p1 -b .zendgc
446    %patch105 -p1 -b .r305043
447    %patch106 -p1 -b .copy
448    %patch107 -p1 -b .errorhandler
449    %patch108 -p1 -b .bug54268
450    
451    %patch200 -p1 -b .cve3709
452    %patch201 -p1 -b .cve3870
453    %patch202 -p1 -b .cve4645
454    %patch203 -p1 -b .cve3710
455    %patch204 -p1 -b .cve4156
456    %patch205 -p1 -b .cve0708
457    %patch206 -p1 -b .cve1148
458    %patch207 -p1 -b .cve1466
459    %patch208 -p1 -b .cve1468
460    %patch209 -p1 -b .cve1469
461    %patch211 -p1 -b .cve1471
462    %patch212 -p1 -b .cve1938
463    %patch213 -p1 -b .cve2202
464    %patch214 -p1 -b .cve2483
465    %patch215 -p1 -b .cve4885
466    %patch216 -p1 -b .cve4566
467    %patch217 -p1 -b .cve0830
468    %patch218 -p1 -b .cve1823
469    %patch219 -p1 -b .cve2336
470    
471    %patch220 -p1 -b .cve4153
472    %patch222 -p1 -b .cve1172
473    %patch223 -p1 -b .cve2143
474    %patch224 -p1 -b .cve2386
475    %patch225 -p1 -b .cve0057
476    %patch226 -p1 -b .cve0789
477    %patch227 -p1 -b .cve2950
478    %patch228 -p1 -b .cve2688
479    %patch229 -p1 -b .cve0831
480    %patch230 -p1 -b .cve1398
481    %patch231 -p1 -b .cve1643
482    %patch232 -p1 -b .cve7243
483    %patch233 -p1 -b .cve4113
484    %patch234 -p1 -b .cve4248
485    %patch235 -p1 -b .cve6420
486    %patch236 -p1 -b .cve0237
487    %patch237 -p1 -b .cve0238
488    %patch238 -p1 -b .cve2270
489    %patch239 -p1 -b .cve1943
490    %patch240 -p1 -b .cve3479
491    %patch241 -p1 -b .cve1571
492    %patch242 -p1 -b .cve3480
493    %patch243 -p1 -b .cve4721
494    %patch244 -p1 -b .cve6712
495    %patch245 -p1 -b .cve4049
496    %patch246 -p1 -b .cve3515
497    %patch247 -p1 -b .cve2497
498    %patch248 -p1 -b .cve3587
499    %patch249 -p1 -b .cve3597
500    %patch250 -p1 -b .cve4698
501    %patch251 -p1 -b .cve4670
502    %patch252 -p1 -b .cve3668
503    %patch253 -p1 -b .cve3669
504    %patch254 -p1 -b .cve3670
505    %patch255 -p1 -b .cve3710
506    
507  # Prevent %%doc confusion over LICENSE files  # Prevent %%doc confusion over LICENSE files
508  cp Zend/LICENSE Zend/ZEND_LICENSE  cp -p Zend/LICENSE Zend/ZEND_LICENSE
509  cp TSRM/LICENSE TSRM_LICENSE  cp -p TSRM/LICENSE TSRM_LICENSE
510  cp regex/COPYRIGHT regex_COPYRIGHT  cp -p ext/ereg/regex/COPYRIGHT regex_COPYRIGHT
511  cp ext/gd/libgd/README gd_README  cp -p ext/gd/libgd/README gd_README
512    
513  # Source is built twice: once for /usr/bin/php, once for the Apache DSO.  # Multiple builds for multiple SAPIs
514  mkdir build-cgi build-apache  mkdir build-cgi build-apache
515    
516  # Remove bogus test; position of read position after fopen(, "a+")  # Remove bogus test; position of read position after fopen(, "a+")
# Line 328  rm -f ext/standard/tests/file/bug21131.p Line 521  rm -f ext/standard/tests/file/bug21131.p
521  rm -f ext/standard/tests/file/bug22414.phpt \  rm -f ext/standard/tests/file/bug22414.phpt \
522        ext/iconv/tests/bug16069.phpt        ext/iconv/tests/bug16069.phpt
523    
524    # Remove tests which require external network access
525    rm -f ext/sockets/tests/socket_bind.diff
526    
527    # Easter eggs no not shipped
528    rm -f tests/basic/php_egg_logo_guid.diff
529    
530  # Safety check for API version change.  # Safety check for API version change.
531  vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`  vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`
532  if test "x${vapi}" != "x%{apiver}"; then  if test "x${vapi}" != "x%{apiver}"; then
# Line 351  if test "x${vpdo}" != "x%{pdover}"; then Line 550  if test "x${vpdo}" != "x%{pdover}"; then
550     exit 1     exit 1
551  fi  fi
552    
553    # Check for some extension version
554    ver=$(sed -n '/#define PHP_FILEINFO_VERSION /{s/.* "//;s/".*$//;p}' ext/fileinfo/php_fileinfo.h)
555    if test "$ver" != "%{fileinfover}"; then
556       : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
557       : Update the fileinfover macro and rebuild.
558       exit 1
559    fi
560    ver=$(sed -n '/#define PHP_PHAR_VERSION /{s/.* "//;s/".*$//;p}' ext/phar/php_phar.h)
561    if test "$ver" != "%{pharver}"; then
562       : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
563       : Update the pharver macro and rebuild.
564       exit 1
565    fi
566    ver=$(sed -n '/#define PHP_ZIP_VERSION_STRING /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
567    if test "$ver" != "%{zipver}"; then
568       : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
569       : Update the zipver macro and rebuild.
570       exit 1
571    fi
572    ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
573    if test "$ver" != "%{jsonver}"; then
574       : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
575       : Update the jsonver macro and rebuild.
576       exit 1
577    fi
578    
579    # Fix some bogus permissions
580    find . -name \*.[ch] -exec chmod 644 {} \;
581    find . -name \*.cpp  -exec chmod 644 {} \;
582    chmod 644 README.*
583    
584  %build  %build
585    # aclocal workaround - to be improved
586    cat `aclocal --print-ac-dir`/libtool.m4 >>aclocal.m4
587    
588  # Force use of system libtool:  # Force use of system libtool:
589  libtoolize --force --copy  libtoolize --force --copy
590  cat `aclocal --print-ac-dir`/libtool.m4 > build/libtool.m4  cat `aclocal --print-ac-dir`/libtool.m4 >build/libtool.m4
591    
592  # Regenerate configure scripts (patches change config.m4's)  # Regenerate configure scripts (patches change config.m4's)
593    touch configure.in
594  ./buildconf --force  ./buildconf --force
595    
596  CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-pointer-sign"  CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-pointer-sign"
# Line 385  ln -sf ../configure Line 619  ln -sf ../configure
619          --disable-rpath \          --disable-rpath \
620          --without-pear \          --without-pear \
621          --with-bz2 \          --with-bz2 \
         --with-curl \  
622          --with-exec-dir=%{_bindir} \          --with-exec-dir=%{_bindir} \
623          --with-freetype-dir=%{_prefix} \          --with-freetype-dir=%{_prefix} \
624          --with-png-dir=%{_prefix} \          --with-png-dir=%{_prefix} \
625            --with-xpm-dir=%{_prefix} \
626          --enable-gd-native-ttf \          --enable-gd-native-ttf \
627          --without-gdbm \          --without-gdbm \
628          --with-gettext \          --with-gettext \
# Line 396  ln -sf ../configure Line 630  ln -sf ../configure
630          --with-iconv \          --with-iconv \
631          --with-jpeg-dir=%{_prefix} \          --with-jpeg-dir=%{_prefix} \
632          --with-openssl \          --with-openssl \
         --with-png \  
         --with-pspell \  
         --with-expat-dir=%{_prefix} \  
633          --with-pcre-regex=%{_prefix} \          --with-pcre-regex=%{_prefix} \
634          --with-zlib \          --with-zlib \
635          --with-layout=GNU \          --with-layout=GNU \
# Line 407  ln -sf ../configure Line 638  ln -sf ../configure
638          --enable-magic-quotes \          --enable-magic-quotes \
639          --enable-sockets \          --enable-sockets \
640          --enable-sysvsem --enable-sysvshm --enable-sysvmsg \          --enable-sysvsem --enable-sysvshm --enable-sysvmsg \
         --enable-track-vars \  
         --enable-trans-sid \  
         --enable-yp \  
         --enable-wddx \  
641          --with-kerberos \          --with-kerberos \
642          --enable-ucd-snmp-hack \          --enable-ucd-snmp-hack \
         --with-unixODBC=shared,%{_prefix} \  
         --enable-memory-limit \  
643          --enable-shmop \          --enable-shmop \
644          --enable-calendar \          --enable-calendar \
         --enable-dbx \  
         --enable-dio \  
         --without-mime-magic \  
645          --without-sqlite \          --without-sqlite \
646            --without-sqlite3 \
647          --with-libxml-dir=%{_prefix} \          --with-libxml-dir=%{_prefix} \
648          --with-xml \          --enable-xml \
649          --with-system-tzdata \          --with-system-tzdata \
650          $*          $*
651  if test $? != 0; then  if test $? != 0; then
# Line 439  pushd build-cgi Line 662  pushd build-cgi
662  build --enable-force-cgi-redirect \  build --enable-force-cgi-redirect \
663        --enable-pcntl \        --enable-pcntl \
664        --with-imap=shared --with-imap-ssl \        --with-imap=shared --with-imap-ssl \
665        --enable-mbstring=shared --enable-mbstr-enc-trans \        --enable-mbstring=shared \
666        --enable-mbregex \        --enable-mbregex \
       --with-ncurses=shared \  
667        --with-gd=shared \        --with-gd=shared \
668        --enable-bcmath=shared \        --enable-bcmath=shared \
669        --enable-dba=shared --with-db4=%{_prefix} \        --enable-dba=shared --with-db4=%{_prefix} \
670        --with-xmlrpc=shared \        --with-xmlrpc=shared \
671        --with-ldap=shared --with-ldap-sasl \        --with-ldap=shared --with-ldap-sasl \
672        --with-mysql=shared,%{_prefix} \        --with-mysql=shared,%{_prefix} \
673        --with-mysqli=shared,%{_bindir}/mysql_config \        --with-mysqli=shared,%{mysql_config} \
674        --enable-dom=shared \        --enable-dom=shared \
       --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \  
675        --with-pgsql=shared \        --with-pgsql=shared \
676          --enable-wddx=shared \
677        --with-snmp=shared,%{_prefix} \        --with-snmp=shared,%{_prefix} \
678        --enable-soap=shared \        --enable-soap=shared \
679        --with-xsl=shared,%{_prefix} \        --with-xsl=shared,%{_prefix} \
680        --enable-xmlreader=shared --enable-xmlwriter=shared \        --enable-xmlreader=shared --enable-xmlwriter=shared \
681          --with-curl=shared,%{_prefix} \
682        --enable-fastcgi \        --enable-fastcgi \
683        --enable-pdo=shared \        --enable-pdo=shared \
684        --with-pdo-odbc=shared,unixODBC,%{_prefix} \        --with-pdo-odbc=shared,unixODBC,%{_prefix} \
685        --with-pdo-mysql=shared,%{_prefix} \        --with-pdo-mysql=shared,%{mysql_config} \
686        --with-pdo-pgsql=shared,%{_prefix} \        --with-pdo-pgsql=shared,%{_prefix} \
687        --with-pdo-sqlite=shared,%{_prefix} \        --with-pdo-sqlite=shared,%{_prefix} \
688        --enable-json=shared \        --enable-json=shared \
689        --enable-zip=shared \        --enable-zip=shared \
690        --with-readline \        --without-readline \
691        --enable-dbase=shared        --with-pspell=shared \
692          --enable-phar=shared \
693          --enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \
694          --enable-posix=shared \
695          --with-unixODBC=shared,%{_prefix} \
696          --enable-fileinfo=shared \
697          --enable-intl=shared \
698          --with-icu-dir=%{_prefix}
699  popd  popd
700    
701    without_shared="--without-mysql --without-gd \
702          --disable-dom --disable-dba --without-unixODBC \
703          --disable-pdo --disable-xmlreader --disable-xmlwriter \
704          --without-sqlite3 --disable-phar --disable-fileinfo \
705          --disable-json --without-pspell --disable-wddx \
706          --without-curl --disable-posix \
707          --disable-sysvmsg --disable-sysvshm --disable-sysvsem"
708    
709  # Build Apache module, and the CLI SAPI, /usr/bin/php  # Build Apache module, and the CLI SAPI, /usr/bin/php
710  pushd build-apache  pushd build-apache
711  build --with-apxs2=%{_sbindir}/apxs \  build --with-apxs2=%{_sbindir}/apxs ${without_shared}
       --without-mysql --without-gd \  
       --without-odbc --disable-dom \  
       --disable-dba --without-unixODBC \  
       --disable-pdo --disable-xmlreader --disable-xmlwriter \  
       --disable-json  
712  popd  popd
713    
714  %check  %check
# Line 488  if ! make test; then Line 721  if ! make test; then
721    for f in `find .. -name \*.diff -type f -print`; do    for f in `find .. -name \*.diff -type f -print`; do
722      echo "TEST FAILURE: $f --"      echo "TEST FAILURE: $f --"
723      cat "$f"      cat "$f"
724      echo "-- $f result ends."      echo -e "\n-- $f result ends.\n"
725    done    done
726    set -x    set -x
727    #exit 1    #exit 1
# Line 501  unset NO_INTERACTION REPORT_EXIT_STATUS Line 734  unset NO_INTERACTION REPORT_EXIT_STATUS
734  # Install everything from the CGI SAPI build  # Install everything from the CGI SAPI build
735  make -C build-cgi install INSTALL_ROOT=$RPM_BUILD_ROOT  make -C build-cgi install INSTALL_ROOT=$RPM_BUILD_ROOT
736    
 # Install the Apache module  
 make -C build-apache install-sapi INSTALL_ROOT=$RPM_BUILD_ROOT  
   
737  # Install the default configuration file and icons  # Install the default configuration file and icons
738  install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/  install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/
739  install -m 644 $RPM_SOURCE_DIR/php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini  install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
740  install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons  install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons
741  install -m 644    *.gif $RPM_BUILD_ROOT%{contentdir}/icons/  install -m 644    *.gif $RPM_BUILD_ROOT%{contentdir}/icons/
742    
# Line 514  install -m 644    *.gif $RPM_BUILD_ROOT% Line 744  install -m 644    *.gif $RPM_BUILD_ROOT%
744  install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/php/pear \  install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/php/pear \
745                    $RPM_BUILD_ROOT%{_datadir}/php                    $RPM_BUILD_ROOT%{_datadir}/php
746    
 # Use correct libdir  
 sed -i -e 's|%{_prefix}/lib|%{_libdir}|' $RPM_BUILD_ROOT%{_sysconfdir}/php.ini  
   
747  # install the DSO  # install the DSO
748  install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/httpd/modules  install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/httpd/modules
749  install -m 755 build-apache/libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules  install -m 755 build-apache/libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules
750    
751  # Apache config fragment  # Apache config fragment
752  install -m 755 -d $RPM_BUILD_ROOT/etc/httpd/conf.d  install -m 755 -d $RPM_BUILD_ROOT/etc/httpd/conf.d
753    # %{SOURCE1} used here ->
754  install -m 644 $RPM_SOURCE_DIR/php.conf $RPM_BUILD_ROOT/etc/httpd/conf.d  install -m 644 $RPM_SOURCE_DIR/php.conf $RPM_BUILD_ROOT/etc/httpd/conf.d
755    
756  install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php.d  install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php.d
757  install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php  install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php
758  install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session  install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session
759    
760    # Fix the link
761    (cd $RPM_BUILD_ROOT%{_bindir}; ln -sfn phar.phar phar)
762    
763  # Generate files lists and stub .ini files for each subpackage  # Generate files lists and stub .ini files for each subpackage
764  for mod in pgsql mysql mysqli odbc ldap snmp xmlrpc imap \  for mod in pgsql mysql mysqli odbc ldap snmp xmlrpc imap \
765      mbstring ncurses gd dom xsl soap bcmath dba xmlreader xmlwriter \      mbstring gd dom xsl soap bcmath dba xmlreader xmlwriter \
766      pdo pdo_mysql pdo_pgsql pdo_odbc pdo_sqlite json zip \      pdo pdo_mysql pdo_pgsql pdo_odbc pdo_sqlite json zip \
767      dbase; do      phar fileinfo intl pspell curl wddx \
768        posix sysvshm sysvsem sysvmsg; do
769      cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <<EOF      cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <<EOF
770  ; Enable ${mod} extension module  ; Enable ${mod} extension module
771  extension=${mod}.so  extension=${mod}.so
# Line 545  EOF Line 777  EOF
777  done  done
778    
779  # The dom, xsl and xml* modules are all packaged in php-xml  # The dom, xsl and xml* modules are all packaged in php-xml
780  cat files.dom files.xsl files.xml{reader,writer} > files.xml  cat files.dom files.xsl files.xml{reader,writer} files.wddx > files.xml
781    
782  # The mysql and mysqli modules are both packaged in php-mysql  # The mysql and mysqli modules are both packaged in php-mysql
783  cat files.mysqli >> files.mysql  cat files.mysqli >> files.mysql
# Line 555  cat files.pdo_mysql >> files.mysql Line 787  cat files.pdo_mysql >> files.mysql
787  cat files.pdo_pgsql >> files.pgsql  cat files.pdo_pgsql >> files.pgsql
788  cat files.pdo_odbc >> files.odbc  cat files.pdo_odbc >> files.odbc
789    
790  # Package pdo_sqlite with pdo; isolating the sqlite dependency  # sysv* and posix in packaged in php-process
791  # isn't useful at this time since rpm itself requires sqlite.  cat files.sysv* files.posix > files.process
792    
793    # Package pdo_sqlite with pdo.
794  cat files.pdo_sqlite >> files.pdo  cat files.pdo_sqlite >> files.pdo
795    
796  # Package json, dbase and zip in -common.  # Package json, zip, curl, phar and fileinfo in -common.
797  cat files.json files.dbase files.zip > files.common  cat files.json files.zip files.curl files.phar files.fileinfo > files.common
798    
799  # Install the macros file:  # Install the macros file:
800  install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm  install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
801    # %{SOURCE3} used here ->
802  sed -e "s/@PHP_APIVER@/%{apiver}/;s/@PHP_ZENDVER@/%{zendver}/;s/@PHP_PDOVER@/%{pdover}/" \  sed -e "s/@PHP_APIVER@/%{apiver}/;s/@PHP_ZENDVER@/%{zendver}/;s/@PHP_PDOVER@/%{pdover}/" \
803        -e "s/@PHP_VERSION@/%{version}/" \
804      < $RPM_SOURCE_DIR/macros.php > macros.php      < $RPM_SOURCE_DIR/macros.php > macros.php
805  install -m 644 -c macros.php \  install -m 644 -c macros.php \
806             $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.php             $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.php
# Line 572  install -m 644 -c macros.php \ Line 808  install -m 644 -c macros.php \
808  # Remove unpackaged files  # Remove unpackaged files
809  rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \  rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \
810         $RPM_BUILD_ROOT%{_bindir}/{phptar} \         $RPM_BUILD_ROOT%{_bindir}/{phptar} \
811         $RPM_BUILD_ROOT%{_datadir}/pear         $RPM_BUILD_ROOT%{_datadir}/pear \
812           $RPM_BUILD_ROOT%{_libdir}/libphp5.la
813    
814  # Remove irrelevant docs  # Remove irrelevant docs
815  rm -f README.{Zeus,QNX,CVS-RULES}  rm -f README.{Zeus,QNX,CVS-RULES}
# Line 590  rm files.* macros.php Line 827  rm files.* macros.php
827    
828  %files common -f files.common  %files common -f files.common
829  %defattr(-,root,root)  %defattr(-,root,root)
830  %doc CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE NEWS README*  %doc CODING_STANDARDS CREDITS INSTALL LICENSE NEWS README*
831  %doc Zend/ZEND_* gd_README TSRM_LICENSE regex_COPYRIGHT  %doc Zend/ZEND_* TSRM_LICENSE regex_COPYRIGHT
832    %doc php.ini-production php.ini-development
833  %config(noreplace) %{_sysconfdir}/php.ini  %config(noreplace) %{_sysconfdir}/php.ini
834  %dir %{_sysconfdir}/php.d  %dir %{_sysconfdir}/php.d
835  %dir %{_libdir}/php  %dir %{_libdir}/php
# Line 604  rm files.* macros.php Line 842  rm files.* macros.php
842  %defattr(-,root,root)  %defattr(-,root,root)
843  %{_bindir}/php  %{_bindir}/php
844  %{_bindir}/php-cgi  %{_bindir}/php-cgi
845    %{_bindir}/phar.phar
846    %{_bindir}/phar
847  %{_mandir}/man1/php.1*  %{_mandir}/man1/php.1*
848  %doc sapi/cgi/README* sapi/cli/README  %doc sapi/cgi/README* sapi/cli/README
849    
# Line 626  rm files.* macros.php Line 866  rm files.* macros.php
866  %files xml -f files.xml  %files xml -f files.xml
867  %files xmlrpc -f files.xmlrpc  %files xmlrpc -f files.xmlrpc
868  %files mbstring -f files.mbstring  %files mbstring -f files.mbstring
869  %files ncurses -f files.ncurses  %defattr(-,root,root)
870    %doc ext/mbstring/libmbfl/DISCLAIMER ext/mbstring/libmbfl/LICENSE
871  %files gd -f files.gd  %files gd -f files.gd
872    %defattr(-,root,root)
873    %doc gd_README
874  %files soap -f files.soap  %files soap -f files.soap
875  %files bcmath -f files.bcmath  %files bcmath -f files.bcmath
876    %defattr(-,root,root)
877    %doc ext/bcmath/libbcmath/COPYING.LIB
878  %files dba -f files.dba  %files dba -f files.dba
879  %files pdo -f files.pdo  %files pdo -f files.pdo
880    %files pspell -f files.pspell
881    %files intl -f files.intl
882    %files process -f files.process
883    
884  %changelog  %changelog
885  * Mon Aug 10 2009 Joe Orton <jorton@redhat.com> 5.2.10-1.el5s2  * Sat Nov 1 2014 Daniel Berteaud <daniel@firewall-services.com> - 5.3.3-17.sme
886  - update to 5.2.10  - Resync with upstream php53, which include (see [SME: 8633])
887    - fileinfo: fix out-of-bounds read in elf note headers. CVE-2014-3710
888    - xmlrpc: fix out-of-bounds read flaw in mkgmtime() CVE-2014-3668
889    - core: fix integer overflow in unserialize() CVE-2014-3669
890    - exif: fix heap corruption issue in exif_thumbnail() CVE-2014-3670
891    
892    * Sat Oct 18 2014 Daniel Berteaud <daniel@firewall-services.com> - 5.3.3-16.sme
893    - Resync with upstream php53, which include (see [SME: 8574])
894    - spl: fix use-after-free in ArrayIterator due to object
895      change during sorting. CVE-2014-4698
896    - spl: fix use-after-free in SPL Iterators. CVE-2014-4670
897    - gd: fix NULL pointer dereference in gdImageCreateFromXpm.
898      CVE-2014-2497
899    - fileinfo: fix incomplete fix for CVE-2012-1571 in
900      cdf_read_property_info. CVE-2014-3587
901    - core: fix incomplete fix for CVE-2014-4049 DNS TXT
902      record parsing. CVE-2014-3597
903    
904    * Thu Aug 7 2014 Daniel Berteaud <daniel@firewall-services.com> - 5.3.3-15.sme
905    - Resync with upstream php53, which include (see [SME: 8515])
906    - core: type confusion issue in phpinfo(). CVE-2014-4721
907    - date: fix heap-based buffer over-read in DateInterval. CVE-2013-6712
908    - core: fix heap-based buffer overflow in DNS TXT record parsing.
909      CVE-2014-4049
910    - core: unserialize() SPL ArrayObject / SPLObjectStorage type
911      confusion flaw. CVE-2014-3515
912    - fileinfo: out-of-bounds memory access in fileinfo. CVE-2014-2270
913    - fileinfo: unrestricted recursion in handling of indirect type
914      rules. CVE-2014-1943
915    - fileinfo: out of bounds read in CDF parser. CVE-2012-1571
916    - fileinfo: cdf_check_stream_offset boundary check. CVE-2014-3479
917    - fileinfo: cdf_count_chain insufficient boundary check. CVE-2014-3480
918    - fileinfo: cdf_unpack_summary_info() excessive looping
919      DoS. CVE-2014-0237
920    - fileinfo: CDF property info parsing nelements infinite
921      loop. CVE-2014-0238
922    
923    * Mon Dec 16 2013 Daniel Berteaud <daniel@firewall-services.com> - 5.3.3-14.sme
924    - Resync with upstream php53, which include (see [SME: 8064])
925    - add security fix for CVE-2013-6420
926    - add security fix for CVE-2013-4248
927    - add upstream reproducer for error_handler (#951075)
928    - add security fixes for CVE-2006-7243
929    - add security fixes for CVE-2012-2688, CVE-2012-0831,
930      CVE-2011-1398, CVE-2013-1643
931    - fix segfault in error_handler with
932      allow_call_time_pass_reference = Off (#951075)
933    - fix double free when destroy_zend_class fails (#951076)
934    - fix possible buffer overflow in pdo_odbc (#869694)
935    - php script hangs when it exceeds max_execution_time
936      when inside an ODBC call (#864954)
937    - fix zend garbage collector (#892695)
938    - fix transposed memset arguments in libzip (#953818)
939    - fix possible segfault in pdo_mysql (#869693)
940    - fix imap_open DISABLE_AUTHENTICATOR param ignores array (#859369)
941    - fix stream support in fileinfo (#869697)
942    - fix setDate when DateTime created from timestamp (#869691)
943    - fix permission on source files (#869688)
944    - add php(language) and missing provides (#837044)
945    - fix copy doesn't report failure on partial copy (#951413)
946    
947    * Mon Jul 15 2013 Shad L. Lords <slords@mail.com> - 5.3.3-13.sme.2
948    - Add php53-* provides to provide compatibility
949    - Obsolete php-domxml and php-dom [SME: 6733]
950    - Update Obsoletes and Conflicts [SME: 6436]
951    
952    * Fri Jul 12 2013 Remi Collet <rcollet@redhat.com> - 5.3.3-13.1
953    - add security fix for CVE-2013-4113
954    
955    * Mon Jun 25 2012 Joe Orton <jorton@redhat.com> - 5.3.3-13
956    - add security fix for CVE-2010-2950
957    
958    * Wed Jun 13 2012 Joe Orton <jorton@redhat.com> - 5.3.3-11
959    - fix tests for CVE-2012-2143, CVE-2012-0789
960    
961    * Tue Jun 12 2012 Joe Orton <jorton@redhat.com> - 5.3.3-10
962    - add security fix for CVE-2012-2336
963    
964    * Tue Jun 12 2012 Joe Orton <jorton@redhat.com> - 5.3.3-9
965    - add security fixes for CVE-2011-4153, CVE-2012-0057, CVE-2012-0789,
966      CVE-2012-1172, CVE-2012-2143, CVE-2012-2386
967    
968    * Thu May  3 2012 Joe Orton <jorton@redhat.com> - 5.3.3-7
969    - correct detection of = in CVE-2012-1823 fix (#818607)
970    
971    * Thu May  3 2012 Joe Orton <jorton@redhat.com> - 5.3.3-6
972    - add security fix for CVE-2012-1823 (#818607)
973    
974    * Thu Feb  2 2012 Joe Orton <jorton@redhat.com> - 5.3.3-5
975    - add security fix for CVE-2012-0830 (#786758)
976    
977    * Wed Jan 04 2012 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 5.3.3-4
978    - remove extra php.ini-prod/devel files caused by %%patch -b
979    
980    * Tue Jan 03 2012 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 5.3.3-3
981    - add security fixes for CVE-2011-4885, CVE-2011-4566 (#740734)
982    
983    * Fri Oct 28 2011 Joe Orton <jorton@redhat.com> - 5.3.3-2
984    - add php-$subpkg = V-R provides (#717158)
985    - add security fixes for CVE-2010-3710, CVE-2010-4156, CVE-2010-4645 (#670464)
986    - add security fixes for CVE-2011-2483, CVE-2011-0708, CVE-2011-1148,
987      CVE-2011-1466, CVE-2011-1468, CVE-2011-1469, CVE-2011-1471,
988      CVE-2011-1938, CVE-2011-2202 (#740734)
989    - fix negative keys with var_export (#700724)
990    
991    * Wed Dec  1 2010 Joe Orton <jorton@redhat.com> - 5.3.3-1
992    - update to 5.3.3 (#658315)
993    
994    * Mon Nov 22 2010 Joe Orton <jorton@redhat.com> - 5.3.2-7
995    - prevent extract() from clobering $GLOBALS (#655330)
996    
997    * Wed Nov 10 2010 Joe Orton <jorton@redhat.com> - 5.3.2-6
998    - add security fixes for CVE-2010-3870 CVE-2010-3709 (#650877)
999    - provide php-devel from -devel (#642701)
1000    
1001    * Mon Nov  1 2010 Joe Orton <jorton@redhat.com> - 5.3.2-5
1002    - use correct mysql_config for pdo-mysql also (#642701)
1003    
1004    * Thu Sep 30 2010 Joe Orton <jorton@redhat.com> - 5.3.2-4
1005    - use mysql_config from libdir
1006    
1007    * Tue Sep  7 2010 Joe Orton <jorton@redhat.com> - 5.3.2-3
1008    - add defattr for -mbstring and -bcmath
1009    
1010    * Tue Sep  7 2010 Joe Orton <jorton@redhat.com> - 5.3.2-2
1011    - add LGPLv2{,+} to License; ship text in -bcmath, -mbstring
1012    - apply phar patch correctly
1013    - fix permissions on sources, README.namespaces
1014    - drop EXTENSIONS from %%doc
1015    - fix Provides for php-cli
1016    - drop inappropriate/obsolete Obsoletes
1017    
1018    * Thu Sep  2 2010 Joe Orton <jorton@redhat.com> - 5.3.2-1
1019    - convert to php53
1020    - remove subpackages: embeded, zts, tidy, recode, enchant
1021    
1022    * Tue Aug 17 2010 Joe Orton <jorton@redhat.com> - 5.3.2-6
1023    - add security fixes for CVE-2010-1866, CVE-2010-2094, CVE-2010-1917,
1024      CVE-2010-2531, MOPS-2010-060 (#624469)
1025    
1026    * Fri Aug 13 2010 Joe Orton <jorton@redhat.com> - 5.3.2-5
1027    - add security fix for CVE-2010-0397 (#575712)
1028    
1029    * Thu Jun 24 2010 Joe Orton <jorton@redhat.com> - 5.3.2-4
1030    - add security fix for CVE-2010-2225 (#605644)
1031    
1032    * Wed May  5 2010 Joe Orton <jorton@redhat.com> - 5.3.2-3
1033    - restore -imap (#586050)
1034    
1035    * Fri Mar 26 2010 Joe Orton <jorton@redhat.com> - 5.3.2-2
1036    - remove mcrypt support (#459804, #577257)
1037    
1038    * Wed Mar 24 2010 Joe Orton <jorton@redhat.com> - 5.3.2-1
1039    - update to 5.3.2 (#575158, #575712)
1040    
1041    * Sat Mar 06 2010 Remi Collet <Fedora@famillecollet.com>
1042    - PHP 5.3.2 Released!
1043    - remove mime_magic option (now provided by fileinfo, by emu)
1044    - add patch for http://bugs.php.net/50578
1045    - remove patch for libedit (upstream)
1046    
1047    * Fri Jan 15 2010 Joe Orton <jorton@redhat.com> - 5.3.1-7
1048    - add security fix for CVE-2009-4142 (#552268)
1049    
1050    * Fri Dec 18 2009 Joe Orton <jorton@redhat.com> - 5.3.1-6
1051    - drop mssql, pdo_dblib
1052    
1053    * Fri Dec 11 2009 Joe Orton <jorton@redhat.com> - 5.3.1-5
1054    - drop imap
1055    
1056    * Fri Dec 11 2009 Joe Orton <jorton@redhat.com> - 5.3.1-4
1057    - drop t1lib, interbase/firebird support
1058    
1059    * Fri Nov 27 2009 Joe Orton <jorton@redhat.com> - 5.3.1-3
1060    - update to v7 of systzdata patch
1061    
1062    * Wed Nov 25 2009 Joe Orton <jorton@redhat.com> - 5.3.1-2
1063    - fix build with autoconf 2.6x
1064    
1065    * Fri Nov 20 2009 Remi Collet <Fedora@famillecollet.com> 5.3.1-1
1066    - update to 5.3.1
1067    - remove openssl patch (merged upstream)
1068    - add provides for php-pecl-json
1069    - add prod/devel php.ini in doc
1070    
1071    * Tue Nov 17 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 5.3.0-7
1072    - use libedit instead of readline to resolve licensing issues
1073    
1074    * Tue Aug 25 2009 Tomas Mraz <tmraz@redhat.com> - 5.3.0-6
1075    - rebuilt with new openssl
1076    
1077    * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-5
1078    - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1079    
1080    * Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-4
1081    - rediff systzdata patch
1082    
1083    * Thu Jul 16 2009 Joe Orton <jorton@redhat.com> 5.3.0-3
1084    - update to v6 of systzdata patch; various fixes
1085    
1086    * Tue Jul 14 2009 Joe Orton <jorton@redhat.com> 5.3.0-2
1087    - update to v5 of systzdata patch; parses zone.tab and extracts
1088      timezone->{country-code,long/lat,comment} mapping table
1089    
1090    * Sun Jul 12 2009 Remi Collet <Fedora@famillecollet.com> 5.3.0-1
1091    - update to 5.3.0
1092    - remove ncurses, dbase, mhash extensions
1093    - add enchant, sqlite3, intl, phar, fileinfo extensions
1094    - raise sqlite version to 3.6.0 (for sqlite3, build with --enable-load-extension)
1095    - sync with upstream "production" php.ini
1096    
1097  * Wed Apr 15 2009 Joe Orton <jorton@redhat.com> 5.2.9-2.el5s2  * Sat Jun 21 2009 Remi Collet <Fedora@famillecollet.com> 5.2.10-1
1098  - update to r3 of systzdata patch  - update to 5.2.10
1099    - add interbase sub-package
1100    
1101  * Tue Apr 14 2009 Joe Orton <jorton@redhat.com> 5.2.9-1.el5s2  * Sat Feb 28 2009 Remi Collet <Fedora@FamilleCollet.com> - 5.2.9-1
1102  - update to 5.2.9  - update to 5.2.9
1103    
1104  * Tue Mar 31 2009 Joe Orton <jorton@redhat.com> 5.2.6-4.el5s2  * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.8-10
1105  - add security fixes for json_decode() crash (#494530),  - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1106    and CVE-2008-5658 - including regression fix (#494531)  
1107    * Thu Feb  5 2009 Joe Orton <jorton@redhat.com> 5.2.8-9
1108  * Thu Feb 26 2009 Joe Orton <jorton@redhat.com> 5.2.6-3.el5s2  - add recode support, -recode subpackage (#106755)
1109  - add security fixes for CVE-2008-3658, CVE-2008-3660,  - add -zts subpackage with ZTS-enabled build of httpd SAPI
1110    CVE-2008-5498, CVE-2008-5557, CVE-2008-5814, CVE-2009-0754  - adjust php.conf to use -zts SAPI build for worker MPM
1111    (#487371)  
1112    * Wed Feb  4 2009 Joe Orton <jorton@redhat.com> 5.2.8-8
1113    - fix patch fuzz, renumber patches
1114    
1115    * Wed Feb  4 2009 Joe Orton <jorton@redhat.com> 5.2.8-7
1116    - drop obsolete configure args
1117    - drop -odbc patch (#483690)
1118    
1119  * Fri May  9 2008 Joe Orton <jorton@redhat.com> 5.2.6-2.el5s2  * Mon Jan 26 2009 Joe Orton <jorton@redhat.com> 5.2.8-5
1120    - split out sysvshm, sysvsem, sysvmsg, posix into php-process
1121    
1122    * Sun Jan 25 2009 Joe Orton <jorton@redhat.com> 5.2.8-4
1123    - move wddx to php-xml, build curl shared in -common
1124    - remove BR for expat-devel, bogus configure option
1125    
1126    * Fri Jan 23 2009 Joe Orton <jorton@redhat.com> 5.2.8-3
1127    - rebuild for new MySQL
1128    
1129    * Sat Dec 13 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.8-2
1130    - libtool 2 workaround for phpize (#476004)
1131    - add missing php_embed.h (#457777)
1132    
1133    * Tue Dec 09 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.8-1
1134    - update to 5.2.8
1135    
1136    * Sat Dec 06 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.7-1.1
1137    - libtool 2 workaround
1138    
1139    * Fri Dec 05 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.7-1
1140    - update to 5.2.7
1141    - enable pdo_dblib driver in php-mssql
1142    
1143    * Mon Nov 24 2008 Joe Orton <jorton@redhat.com> 5.2.6-7
1144    - tweak Summary, thanks to Richard Hughes
1145    
1146    * Tue Nov  4 2008 Joe Orton <jorton@redhat.com> 5.2.6-6
1147    - move gd_README to php-gd
1148    - update to r4 of systzdata patch; introduces a default timezone
1149      name of "System/Localtime", which uses /etc/localtime (#469532)
1150    
1151    * Sat Sep 13 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.6-5
1152    - enable XPM support in php-gd
1153    - Fix BR for php-gd
1154    
1155    * Sun Jul 20 2008 Remi Collet <Fedora@FamilleCollet.com> 5.2.6-4
1156    - enable T1lib support in php-gd
1157    
1158    * Mon Jul 14 2008 Joe Orton <jorton@redhat.com> 5.2.6-3
1159  - update to 5.2.6  - update to 5.2.6
1160    - sync default php.ini with upstream
1161    - drop extension_dir from default php.ini, rely on hard-coded
1162      default, to make php-common multilib-safe (#455091)
1163    - update to r3 of systzdata patch
1164    
1165    * Thu Apr 24 2008 Joe Orton <jorton@redhat.com> 5.2.5-7
1166    - split pspell extension out into php-spell (#443857)
1167    
1168  * Wed Feb 20 2008 Joe Orton <jorton@redhat.com> 5.2.5-1.el5s2  * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.2.5-6
1169  - rebuild for StackV2  - Autorebuild for GCC 4.3
1170    
1171  * Fri Jan 11 2008 Joe Orton <jorton@redhat.com> 5.2.5-5  * Fri Jan 11 2008 Joe Orton <jorton@redhat.com> 5.2.5-5
1172  - ext/date: use system timezone database  - ext/date: use system timezone database


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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