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

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

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


Revision 1.1 - (show annotations) (download)
Sat Feb 6 20:36:50 2010 UTC (14 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: php-5_2_10-1_el5_sme
Initial import

1 %define contentdir /var/www
2 %define apiver 20041225
3 %define zendver 20060613
4 %define pdover 20060511
5
6 Summary: The PHP HTML-embedded scripting language
7 Name: php
8 Version: 5.2.10
9 Release: 1%{?dist}
10 License: PHP
11 Group: Development/Languages
12 URL: http://www.php.net/
13
14 Source0: http://www.php.net/distributions/php-%{version}.tar.bz2
15 Source1: php.conf
16 Source2: php.ini
17 Source3: macros.php
18
19 Patch1: php-5.2.4-gnusrc.patch
20 Patch2: php-4.3.3-install.patch
21 Patch3: php-5.2.4-norpath.patch
22 Patch5: php-5.0.2-phpize64.patch
23 Patch8: php-5.2.0-includedir.patch
24 Patch9: php-5.2.4-embed.patch
25
26 # Fixes for extension modules
27 Patch21: php-5.2.4-odbc.patch
28 Patch22: php-4.3.11-shutdown.patch
29 Patch24: php-5.2.3-macropen.patch
30
31 # Functional changes
32 Patch30: php-5.0.4-dlopen.patch
33 Patch31: php-5.2.4-easter.patch
34 Patch32: php-5.2.5-systzdata.patch
35
36 # Fixes for tests
37 Patch51: php-5.0.4-tests-wddx.patch
38
39 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
40
41 BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel
42 BuildRequires: gmp-devel, aspell-devel >= 0.50.0
43 BuildRequires: httpd-devel >= 2.0.46-1, libjpeg-devel, libpng-devel, pam-devel
44 BuildRequires: libstdc++-devel, openssl-devel, sqlite-devel >= 3.0.0
45 BuildRequires: zlib-devel, pcre-devel >= 6.6, smtpdaemon, readline-devel
46 BuildRequires: bzip2, perl, libtool >= 1.4.3, gcc-c++
47 Obsoletes: php-dbg, php3, phpfi, stronghold-php
48 # Enforce Apache module ABI compatibility
49 Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)
50 Provides: mod_php = %{version}-%{release}
51 Requires: php-common = %{version}-%{release}
52 # For backwards-compatibility, require php-cli for the time being:
53 Requires: php-cli = %{version}-%{release}
54 # To ensure correct /var/lib/php/session ownership:
55 Requires(pre): httpd
56
57 %description
58 PHP is an HTML-embedded scripting language. PHP attempts to make it
59 easy for developers to write dynamically generated webpages. PHP also
60 offers built-in database integration for several commercial and
61 non-commercial database management systems, so writing a
62 database-enabled webpage with PHP is fairly simple. The most common
63 use of PHP coding is probably as a replacement for CGI scripts.
64
65 The php package contains the module which adds support for the PHP
66 language to Apache HTTP Server.
67
68 %package cli
69 Group: Development/Languages
70 Summary: Command-line interface for PHP
71 Requires: php-common = %{version}-%{release}
72 Provides: php-cgi = %{version}-%{release}
73 Provides: php-pcntl, php-readline
74
75 %description cli
76 The php-cli package contains the command-line interface
77 executing PHP scripts, /usr/bin/php, and the CGI interface.
78
79 %package common
80 Group: Development/Languages
81 Summary: Common files for PHP
82 Provides: php-api = %{apiver}, php-zend-abi = %{zendver}
83 Provides: php(api) = %{apiver}, php(zend-abi) = %{zendver}
84 # Provides for all builtin modules:
85 Provides: php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif
86 Provides: php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-libxml
87 Provides: php-openssl, php-pcre, php-posix, php-pspell
88 Provides: php-reflection, php-session, php-shmop, php-simplexml, php-sockets
89 Provides: php-spl, php-sysvsem, php-sysvshm, php-sysvmsg, php-tokenizer
90 Provides: php-wddx, php-zlib, php-json, php-zip, php-dbase
91 Obsoletes: php-openssl, php-pecl-zip, php-json, php-dbase
92
93 %description common
94 The php-common package contains files used by both the php
95 package and the php-cli package.
96
97 %package devel
98 Group: Development/Libraries
99 Summary: Files needed for building PHP extensions
100 Requires: php = %{version}-%{release}, autoconf, automake
101 Obsoletes: php-pecl-pdo-devel
102
103 %description devel
104 The php-devel package contains the files needed for building PHP
105 extensions. If you need to compile your own PHP extensions, you will
106 need to install this package.
107
108 %package imap
109 Summary: A module for PHP applications that use IMAP
110 Group: Development/Languages
111 Requires: php-common = %{version}-%{release}
112 Obsoletes: mod_php3-imap, stronghold-php-imap
113 BuildRequires: krb5-devel, openssl-devel, libc-client-devel
114
115 %description imap
116 The php-imap package contains a dynamic shared object (DSO) for the
117 Apache Web server. When compiled into Apache, the php-imap module will
118 add IMAP (Internet Message Access Protocol) support to PHP. IMAP is a
119 protocol for retrieving and uploading e-mail messages on mail
120 servers. PHP is an HTML-embedded scripting language. If you need IMAP
121 support for PHP applications, you will need to install this package
122 and the php package.
123
124 %package ldap
125 Summary: A module for PHP applications that use LDAP
126 Group: Development/Languages
127 Requires: php-common = %{version}-%{release}
128 Obsoletes: mod_php3-ldap, stronghold-php-ldap
129 BuildRequires: cyrus-sasl-devel, openldap-devel, openssl-devel
130
131 %description ldap
132 The php-ldap package is a dynamic shared object (DSO) for the Apache
133 Web server that adds Lightweight Directory Access Protocol (LDAP)
134 support to PHP. LDAP is a set of protocols for accessing directory
135 services over the Internet. PHP is an HTML-embedded scripting
136 language. If you need LDAP support for PHP applications, you will
137 need to install this package in addition to the php package.
138
139 %package pdo
140 Summary: A database access abstraction module for PHP applications
141 Group: Development/Languages
142 Requires: php-common = %{version}-%{release}
143 Obsoletes: php-pecl-pdo-sqlite, php-pecl-pdo
144 Provides: php-pdo-abi = %{pdover}
145
146 %description pdo
147 The php-pdo package contains a dynamic shared object that will add
148 a database access abstraction layer to PHP. This module provides
149 a common interface for accessing MySQL, PostgreSQL or other
150 databases.
151
152 %package mysql
153 Summary: A module for PHP applications that use MySQL databases
154 Group: Development/Languages
155 Requires: php-common = %{version}-%{release}, php-pdo
156 Provides: php_database, php-mysqli
157 Obsoletes: mod_php3-mysql, stronghold-php-mysql
158 BuildRequires: mysql-devel >= 4.1.0
159
160 %description mysql
161 The php-mysql package contains a dynamic shared object that will add
162 MySQL database support to PHP. MySQL is an object-relational database
163 management system. PHP is an HTML-embeddable scripting language. If
164 you need MySQL support for PHP applications, you will need to install
165 this package and the php package.
166
167 %package pgsql
168 Summary: A PostgreSQL database module for PHP
169 Group: Development/Languages
170 Requires: php-common = %{version}-%{release}, php-pdo
171 Provides: php_database
172 Obsoletes: mod_php3-pgsql, stronghold-php-pgsql
173 BuildRequires: krb5-devel, openssl-devel, postgresql-devel
174
175 %description pgsql
176 The php-pgsql package includes a dynamic shared object (DSO) that can
177 be compiled in to the Apache Web server to add PostgreSQL database
178 support to PHP. PostgreSQL is an object-relational database management
179 system that supports almost all SQL constructs. PHP is an
180 HTML-embedded scripting language. If you need back-end support for
181 PostgreSQL, you should install this package in addition to the main
182 php package.
183
184 %package odbc
185 Group: Development/Languages
186 Requires: php-common = %{version}-%{release}, php-pdo
187 Summary: A module for PHP applications that use ODBC databases
188 Provides: php_database
189 Obsoletes: stronghold-php-odbc
190 BuildRequires: unixODBC-devel
191
192 %description odbc
193 The php-odbc package contains a dynamic shared object that will add
194 database support through ODBC to PHP. ODBC is an open specification
195 which provides a consistent API for developers to use for accessing
196 data sources (which are often, but not always, databases). PHP is an
197 HTML-embeddable scripting language. If you need ODBC support for PHP
198 applications, you will need to install this package and the php
199 package.
200
201 %package soap
202 Group: Development/Languages
203 Requires: php-common = %{version}-%{release}
204 Summary: A module for PHP applications that use the SOAP protocol
205 BuildRequires: libxml2-devel
206
207 %description soap
208 The php-soap package contains a dynamic shared object that will add
209 support to PHP for using the SOAP web services protocol.
210
211 %package snmp
212 Summary: A module for PHP applications that query SNMP-managed devices
213 Group: Development/Languages
214 Requires: php-common = %{version}-%{release}, net-snmp
215 BuildRequires: net-snmp-devel
216
217 %description snmp
218 The php-snmp package contains a dynamic shared object that will add
219 support for querying SNMP devices to PHP. PHP is an HTML-embeddable
220 scripting language. If you need SNMP support for PHP applications, you
221 will need to install this package and the php package.
222
223 %package xml
224 Summary: A module for PHP applications which use XML
225 Group: Development/Languages
226 Requires: php-common = %{version}-%{release}
227 Obsoletes: php-domxml, php-dom
228 Provides: php-dom, php-xsl, php-domxml
229 BuildRequires: libxslt-devel >= 1.0.18-1, libxml2-devel >= 2.4.14-1
230
231 %description xml
232 The php-xml package contains dynamic shared objects which add support
233 to PHP for manipulating XML documents using the DOM tree,
234 and performing XSL transformations on XML documents.
235
236 %package xmlrpc
237 Summary: A module for PHP applications which use the XML-RPC protocol
238 Group: Development/Languages
239 Requires: php-common = %{version}-%{release}
240 BuildRequires: expat-devel
241
242 %description xmlrpc
243 The php-xmlrpc package contains a dynamic shared object that will add
244 support for the XML-RPC protocol to PHP.
245
246 %package mbstring
247 Summary: A module for PHP applications which need multi-byte string handling
248 Group: Development/Languages
249 Requires: php-common = %{version}-%{release}
250
251 %description mbstring
252 The php-mbstring package contains a dynamic shared object that will add
253 support for multi-byte string handling to PHP.
254
255 %package ncurses
256 Summary: A module for PHP applications for using ncurses interfaces
257 Group: Development/Languages
258 Requires: php-common = %{version}-%{release}
259 BuildRequires: ncurses-devel
260
261 %description ncurses
262 The php-ncurses package contains a dynamic shared object that will add
263 support for using the ncurses terminal output interfaces.
264
265 %package gd
266 Summary: A module for PHP applications for using the gd graphics library
267 Group: Development/Languages
268 Requires: php-common = %{version}-%{release}
269 BuildRequires: gd-devel, freetype-devel
270
271 %description gd
272 The php-gd package contains a dynamic shared object that will add
273 support for using the gd graphics library to PHP.
274
275 %package bcmath
276 Summary: A module for PHP applications for using the bcmath library
277 Group: Development/Languages
278 Requires: php-common = %{version}-%{release}
279
280 %description bcmath
281 The php-bcmath package contains a dynamic shared object that will add
282 support for using the bcmath library to PHP.
283
284 %package dba
285 Summary: A database abstraction layer module for PHP applications
286 Group: Development/Languages
287 Requires: php-common = %{version}-%{release}
288
289 %description dba
290 The php-dba package contains a dynamic shared object that will add
291 support for using the DBA database abstraction layer to PHP.
292
293 %prep
294 %setup -q
295 %patch1 -p1 -b .gnusrc
296 %patch2 -p1 -b .install
297 %patch3 -p1 -b .norpath
298 %patch5 -p1 -b .phpize64
299 %patch8 -p1 -b .includedir
300 %patch9 -p1 -b .embed
301
302 %patch21 -p1 -b .odbc
303 %patch22 -p1 -b .shutdown
304 %patch24 -p1 -b .macropen
305
306 %patch30 -p1 -b .dlopen
307 %patch31 -p1 -b .easter
308 %patch32 -p1 -b .systzdata
309
310 %patch51 -p1 -b .tests-wddx
311
312 # Prevent %%doc confusion over LICENSE files
313 cp Zend/LICENSE Zend/ZEND_LICENSE
314 cp TSRM/LICENSE TSRM_LICENSE
315 cp regex/COPYRIGHT regex_COPYRIGHT
316 cp ext/gd/libgd/README gd_README
317
318 # Source is built twice: once for /usr/bin/php, once for the Apache DSO.
319 mkdir build-cgi build-apache
320
321 # Remove bogus test; position of read position after fopen(, "a+")
322 # is not defined by C standard, so don't presume anything.
323 rm -f ext/standard/tests/file/bug21131.phpt
324
325 # Tests that fail.
326 rm -f ext/standard/tests/file/bug22414.phpt \
327 ext/iconv/tests/bug16069.phpt
328
329 # Safety check for API version change.
330 vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`
331 if test "x${vapi}" != "x%{apiver}"; then
332 : Error: Upstream API version is now ${vapi}, expecting %{apiver}.
333 : Update the apiver macro and rebuild.
334 exit 1
335 fi
336
337 vzend=`sed -n '/#define ZEND_MODULE_API_NO/{s/^[^0-9]*//;p;}' Zend/zend_modules.h`
338 if test "x${vzend}" != "x%{zendver}"; then
339 : Error: Upstream Zend ABI version is now ${vzend}, expecting %{zendver}.
340 : Update the zendver macro and rebuild.
341 exit 1
342 fi
343
344 # Safety check for PDO ABI version change
345 vpdo=`sed -n '/#define PDO_DRIVER_API/{s/.*[ ]//;p}' ext/pdo/php_pdo_driver.h`
346 if test "x${vpdo}" != "x%{pdover}"; then
347 : Error: Upstream PDO ABI version is now ${vpdo}, expecting %{pdover}.
348 : Update the pdover macro and rebuild.
349 exit 1
350 fi
351
352 %build
353 # Force use of system libtool:
354 libtoolize --force --copy
355 cat `aclocal --print-ac-dir`/libtool.m4 > build/libtool.m4
356
357 # Regenerate configure scripts (patches change config.m4's)
358 ./buildconf --force
359
360 CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-pointer-sign"
361 export CFLAGS
362
363 # Install extension modules in %{_libdir}/php/modules.
364 EXTENSION_DIR=%{_libdir}/php/modules; export EXTENSION_DIR
365
366 # Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
367 # includes the PEAR directory even though pear is packaged
368 # separately.
369 PEAR_INSTALLDIR=%{_datadir}/pear; export PEAR_INSTALLDIR
370
371 # Shell function to configure and build a PHP tree.
372 build() {
373 # bison-1.875-2 seems to produce a broken parser; workaround.
374 mkdir Zend && cp ../Zend/zend_{language,ini}_{parser,scanner}.[ch] Zend
375 ln -sf ../configure
376 %configure \
377 --cache-file=../config.cache \
378 --with-libdir=%{_lib} \
379 --with-config-file-path=%{_sysconfdir} \
380 --with-config-file-scan-dir=%{_sysconfdir}/php.d \
381 --disable-debug \
382 --with-pic \
383 --disable-rpath \
384 --without-pear \
385 --with-bz2 \
386 --with-curl \
387 --with-exec-dir=%{_bindir} \
388 --with-freetype-dir=%{_prefix} \
389 --with-png-dir=%{_prefix} \
390 --enable-gd-native-ttf \
391 --without-gdbm \
392 --with-gettext \
393 --with-gmp \
394 --with-iconv \
395 --with-jpeg-dir=%{_prefix} \
396 --with-openssl \
397 --with-png \
398 --with-pspell \
399 --with-expat-dir=%{_prefix} \
400 --with-pcre-regex=%{_prefix} \
401 --with-zlib \
402 --with-layout=GNU \
403 --enable-exif \
404 --enable-ftp \
405 --enable-magic-quotes \
406 --enable-sockets \
407 --enable-sysvsem --enable-sysvshm --enable-sysvmsg \
408 --enable-track-vars \
409 --enable-trans-sid \
410 --enable-yp \
411 --enable-wddx \
412 --with-kerberos \
413 --enable-ucd-snmp-hack \
414 --with-unixODBC=shared,%{_prefix} \
415 --enable-memory-limit \
416 --enable-shmop \
417 --enable-calendar \
418 --enable-dbx \
419 --enable-dio \
420 --without-mime-magic \
421 --without-sqlite \
422 --with-libxml-dir=%{_prefix} \
423 --with-xml \
424 --with-system-tzdata \
425 $*
426 if test $? != 0; then
427 tail -500 config.log
428 : configure failed
429 exit 1
430 fi
431
432 make %{?_smp_mflags}
433 }
434
435 # Build /usr/bin/php-cgi with the CGI SAPI, and all the shared extensions
436 pushd build-cgi
437 build --enable-force-cgi-redirect \
438 --enable-pcntl \
439 --with-imap=shared --with-imap-ssl \
440 --enable-mbstring=shared --enable-mbstr-enc-trans \
441 --enable-mbregex \
442 --with-ncurses=shared \
443 --with-gd=shared \
444 --enable-bcmath=shared \
445 --enable-dba=shared --with-db4=%{_prefix} \
446 --with-xmlrpc=shared \
447 --with-ldap=shared --with-ldap-sasl \
448 --with-mysql=shared,%{_prefix} \
449 --with-mysqli=shared,%{_bindir}/mysql_config \
450 --enable-dom=shared \
451 --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \
452 --with-pgsql=shared \
453 --with-snmp=shared,%{_prefix} \
454 --enable-soap=shared \
455 --with-xsl=shared,%{_prefix} \
456 --enable-xmlreader=shared --enable-xmlwriter=shared \
457 --enable-fastcgi \
458 --enable-pdo=shared \
459 --with-pdo-odbc=shared,unixODBC,%{_prefix} \
460 --with-pdo-mysql=shared,%{_prefix} \
461 --with-pdo-pgsql=shared,%{_prefix} \
462 --with-pdo-sqlite=shared,%{_prefix} \
463 --enable-json=shared \
464 --enable-zip=shared \
465 --with-readline \
466 --enable-dbase=shared
467 popd
468
469 # Build Apache module, and the CLI SAPI, /usr/bin/php
470 pushd build-apache
471 build --with-apxs2=%{_sbindir}/apxs \
472 --without-mysql --without-gd \
473 --without-odbc --disable-dom \
474 --disable-dba --without-unixODBC \
475 --disable-pdo --disable-xmlreader --disable-xmlwriter \
476 --disable-json
477 popd
478
479 %check
480 cd build-apache
481 # Run tests, using the CLI SAPI
482 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
483 unset TZ LANG LC_ALL
484 if ! make test; then
485 set +x
486 for f in `find .. -name \*.diff -type f -print`; do
487 echo "TEST FAILURE: $f --"
488 cat "$f"
489 echo "-- $f result ends."
490 done
491 set -x
492 #exit 1
493 fi
494 unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
495
496 %install
497 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
498
499 # Install everything from the CGI SAPI build
500 make -C build-cgi install INSTALL_ROOT=$RPM_BUILD_ROOT
501
502 # Install the Apache module
503 make -C build-apache install-sapi INSTALL_ROOT=$RPM_BUILD_ROOT
504
505 # Install the default configuration file and icons
506 install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/
507 install -m 644 $RPM_SOURCE_DIR/php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
508 install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons
509 install -m 644 *.gif $RPM_BUILD_ROOT%{contentdir}/icons/
510
511 # For third-party packaging:
512 install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/php/pear \
513 $RPM_BUILD_ROOT%{_datadir}/php
514
515 # Use correct libdir
516 sed -i -e 's|%{_prefix}/lib|%{_libdir}|' $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
517
518 # install the DSO
519 install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/httpd/modules
520 install -m 755 build-apache/libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules
521
522 # Apache config fragment
523 install -m 755 -d $RPM_BUILD_ROOT/etc/httpd/conf.d
524 install -m 644 $RPM_SOURCE_DIR/php.conf $RPM_BUILD_ROOT/etc/httpd/conf.d
525
526 install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php.d
527 install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php
528 install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session
529
530 # Generate files lists and stub .ini files for each subpackage
531 for mod in pgsql mysql mysqli odbc ldap snmp xmlrpc imap \
532 mbstring ncurses gd dom xsl soap bcmath dba xmlreader xmlwriter \
533 pdo pdo_mysql pdo_pgsql pdo_odbc pdo_sqlite json zip \
534 dbase; do
535 cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <<EOF
536 ; Enable ${mod} extension module
537 extension=${mod}.so
538 EOF
539 cat > files.${mod} <<EOF
540 %attr(755,root,root) %{_libdir}/php/modules/${mod}.so
541 %config(noreplace) %attr(644,root,root) %{_sysconfdir}/php.d/${mod}.ini
542 EOF
543 done
544
545 # The dom, xsl and xml* modules are all packaged in php-xml
546 cat files.dom files.xsl files.xml{reader,writer} > files.xml
547
548 # The mysql and mysqli modules are both packaged in php-mysql
549 cat files.mysqli >> files.mysql
550
551 # Split out the PDO modules
552 cat files.pdo_mysql >> files.mysql
553 cat files.pdo_pgsql >> files.pgsql
554 cat files.pdo_odbc >> files.odbc
555
556 # Package pdo_sqlite with pdo; isolating the sqlite dependency
557 # isn't useful at this time since rpm itself requires sqlite.
558 cat files.pdo_sqlite >> files.pdo
559
560 # Package json, dbase and zip in -common.
561 cat files.json files.dbase files.zip > files.common
562
563 # Install the macros file:
564 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
565 sed -e "s/@PHP_APIVER@/%{apiver}/;s/@PHP_ZENDVER@/%{zendver}/;s/@PHP_PDOVER@/%{pdover}/" \
566 < $RPM_SOURCE_DIR/macros.php > macros.php
567 install -m 644 -c macros.php \
568 $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.php
569
570 # Remove unpackaged files
571 rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \
572 $RPM_BUILD_ROOT%{_bindir}/{phptar} \
573 $RPM_BUILD_ROOT%{_datadir}/pear
574
575 # Remove irrelevant docs
576 rm -f README.{Zeus,QNX,CVS-RULES}
577
578 %clean
579 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
580 rm files.* macros.php
581
582 %files
583 %defattr(-,root,root)
584 %{_libdir}/httpd/modules/libphp5.so
585 %attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
586 %config(noreplace) %{_sysconfdir}/httpd/conf.d/php.conf
587 %{contentdir}/icons/php.gif
588
589 %files common -f files.common
590 %defattr(-,root,root)
591 %doc CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE NEWS README*
592 %doc Zend/ZEND_* gd_README TSRM_LICENSE regex_COPYRIGHT
593 %config(noreplace) %{_sysconfdir}/php.ini
594 %dir %{_sysconfdir}/php.d
595 %dir %{_libdir}/php
596 %dir %{_libdir}/php/modules
597 %dir %{_localstatedir}/lib/php
598 %dir %{_libdir}/php/pear
599 %dir %{_datadir}/php
600
601 %files cli
602 %defattr(-,root,root)
603 %{_bindir}/php
604 %{_bindir}/php-cgi
605 %{_mandir}/man1/php.1*
606 %doc sapi/cgi/README* sapi/cli/README
607
608 %files devel
609 %defattr(-,root,root)
610 %{_bindir}/php-config
611 %{_bindir}/phpize
612 %{_includedir}/php
613 %{_libdir}/php/build
614 %{_mandir}/man1/php-config.1*
615 %{_mandir}/man1/phpize.1*
616 %config %{_sysconfdir}/rpm/macros.php
617
618 %files pgsql -f files.pgsql
619 %files mysql -f files.mysql
620 %files odbc -f files.odbc
621 %files imap -f files.imap
622 %files ldap -f files.ldap
623 %files snmp -f files.snmp
624 %files xml -f files.xml
625 %files xmlrpc -f files.xmlrpc
626 %files mbstring -f files.mbstring
627 %files ncurses -f files.ncurses
628 %files gd -f files.gd
629 %files soap -f files.soap
630 %files bcmath -f files.bcmath
631 %files dba -f files.dba
632 %files pdo -f files.pdo
633
634 %changelog
635 * Mon Aug 10 2009 Joe Orton <jorton@redhat.com> 5.2.10-1.el5s2
636 - update to 5.2.10
637
638 * Wed Apr 15 2009 Joe Orton <jorton@redhat.com> 5.2.9-2.el5s2
639 - update to r3 of systzdata patch
640
641 * Tue Apr 14 2009 Joe Orton <jorton@redhat.com> 5.2.9-1.el5s2
642 - update to 5.2.9
643
644 * Tue Mar 31 2009 Joe Orton <jorton@redhat.com> 5.2.6-4.el5s2
645 - add security fixes for json_decode() crash (#494530),
646 and CVE-2008-5658 - including regression fix (#494531)
647
648 * Thu Feb 26 2009 Joe Orton <jorton@redhat.com> 5.2.6-3.el5s2
649 - add security fixes for CVE-2008-3658, CVE-2008-3660,
650 CVE-2008-5498, CVE-2008-5557, CVE-2008-5814, CVE-2009-0754
651 (#487371)
652
653 * Fri May 9 2008 Joe Orton <jorton@redhat.com> 5.2.6-2.el5s2
654 - update to 5.2.6
655
656 * Wed Feb 20 2008 Joe Orton <jorton@redhat.com> 5.2.5-1.el5s2
657 - rebuild for StackV2
658
659 * Fri Jan 11 2008 Joe Orton <jorton@redhat.com> 5.2.5-5
660 - ext/date: use system timezone database
661
662 * Fri Dec 28 2007 Joe Orton <jorton@redhat.com> 5.2.5-4
663 - rebuild for libc-client bump
664
665 * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 5.2.5-3
666 - Rebuild for openssl bump
667
668 * Wed Dec 5 2007 Joe Orton <jorton@redhat.com> 5.2.5-2
669 - update to 5.2.5
670
671 * Mon Oct 15 2007 Joe Orton <jorton@redhat.com> 5.2.4-3
672 - correct pcre BR version (#333021)
673 - restore metaphone fix (#205714)
674 - add READMEs to php-cli
675
676 * Sun Sep 16 2007 Joe Orton <jorton@redhat.com> 5.2.4-2
677 - update to 5.2.4
678
679 * Sun Sep 2 2007 Joe Orton <jorton@redhat.com> 5.2.3-9
680 - rebuild for fixed APR
681
682 * Tue Aug 28 2007 Joe Orton <jorton@redhat.com> 5.2.3-8
683 - add ldconfig post/postun for -embedded (Hans de Goede)
684
685 * Fri Aug 10 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 5.2.3-7
686 - add php-embedded sub-package
687
688 * Fri Aug 10 2007 Joe Orton <jorton@redhat.com> 5.2.3-6
689 - fix build with new glibc
690 - fix License
691
692 * Mon Jul 16 2007 Joe Orton <jorton@redhat.com> 5.2.3-5
693 - define php_extdir in macros.php
694
695 * Mon Jul 2 2007 Joe Orton <jorton@redhat.com> 5.2.3-4
696 - obsolete php-dbase
697
698 * Tue Jun 19 2007 Joe Orton <jorton@redhat.com> 5.2.3-3
699 - add mcrypt, mhash, tidy, mssql subpackages (Dmitry Butskoy)
700 - enable dbase extension and package in -common
701
702 * Fri Jun 8 2007 Joe Orton <jorton@redhat.com> 5.2.3-2
703 - update to 5.2.3 (thanks to Jeff Sheltren)
704
705 * Wed May 9 2007 Joe Orton <jorton@redhat.com> 5.2.2-4
706 - fix php-pdo *_arg_force_ref global symbol abuse (#216125)
707
708 * Tue May 8 2007 Joe Orton <jorton@redhat.com> 5.2.2-3
709 - rebuild against uw-imap-devel
710
711 * Fri May 4 2007 Joe Orton <jorton@redhat.com> 5.2.2-2
712 - update to 5.2.2
713 - synch changes from upstream recommended php.ini
714
715 * Thu Mar 29 2007 Joe Orton <jorton@redhat.com> 5.2.1-5
716 - enable SASL support in LDAP extension (#205772)
717
718 * Wed Mar 21 2007 Joe Orton <jorton@redhat.com> 5.2.1-4
719 - drop mime_magic extension (deprecated by php-pecl-Fileinfo)
720
721 * Mon Feb 19 2007 Joe Orton <jorton@redhat.com> 5.2.1-3
722 - fix regression in str_{i,}replace (from upstream)
723
724 * Thu Feb 15 2007 Joe Orton <jorton@redhat.com> 5.2.1-2
725 - update to 5.2.1
726 - add Requires(pre) for httpd
727 - trim %%changelog to versions >= 5.0.0
728
729 * Thu Feb 8 2007 Joe Orton <jorton@redhat.com> 5.2.0-10
730 - bump default memory_limit to 32M (#220821)
731 - mark config files noreplace again (#174251)
732 - drop trailing dots from Summary fields
733 - use standard BuildRoot
734 - drop libtool15 patch (#226294)
735
736 * Tue Jan 30 2007 Joe Orton <jorton@redhat.com> 5.2.0-9
737 - add php(api), php(zend-abi) provides (#221302)
738 - package /usr/share/php and append to default include_path (#225434)
739
740 * Tue Dec 5 2006 Joe Orton <jorton@redhat.com> 5.2.0-8
741 - fix filter.h installation path
742 - fix php-zend-abi version (Remi Collet, #212804)
743
744 * Tue Nov 28 2006 Joe Orton <jorton@redhat.com> 5.2.0-7
745 - rebuild again
746
747 * Tue Nov 28 2006 Joe Orton <jorton@redhat.com> 5.2.0-6
748 - rebuild for net-snmp soname bump
749
750 * Mon Nov 27 2006 Joe Orton <jorton@redhat.com> 5.2.0-5
751 - build json and zip shared, in -common (Remi Collet, #215966)
752 - obsolete php-json and php-pecl-zip
753 - build readline extension into /usr/bin/php* (#210585)
754 - change module subpackages to require php-common not php (#177821)
755
756 * Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 5.2.0-4
757 - provide php-zend-abi (#212804)
758 - add /etc/rpm/macros.php exporting interface versions
759 - synch with upstream recommended php.ini
760
761 * Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 5.2.0-3
762 - update to 5.2.0 (#213837)
763 - php-xml provides php-domxml (#215656)
764 - fix php-pdo-abi provide (#214281)
765
766 * Tue Oct 31 2006 Joseph Orton <jorton@redhat.com> 5.1.6-4
767 - rebuild for curl soname bump
768 - add build fix for curl 7.16 API
769
770 * Wed Oct 4 2006 Joe Orton <jorton@redhat.com> 5.1.6-3
771 - from upstream: add safety checks against integer overflow in _ecalloc
772
773 * Tue Aug 29 2006 Joe Orton <jorton@redhat.com> 5.1.6-2
774 - update to 5.1.6 (security fixes)
775 - bump default memory_limit to 16M (#196802)
776
777 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.1.4-8.1
778 - rebuild
779
780 * Fri Jun 9 2006 Joe Orton <jorton@redhat.com> 5.1.4-8
781 - Provide php-posix (#194583)
782 - only provide php-pcntl from -cli subpackage
783 - add missing defattr's (thanks to Matthias Saou)
784
785 * Fri Jun 9 2006 Joe Orton <jorton@redhat.com> 5.1.4-7
786 - move Obsoletes for php-openssl to -common (#194501)
787 - Provide: php-cgi from -cli subpackage
788
789 * Fri Jun 2 2006 Joe Orton <jorton@redhat.com> 5.1.4-6
790 - split out php-cli, php-common subpackages (#177821)
791 - add php-pdo-abi version export (#193202)
792
793 * Wed May 24 2006 Radek Vokal <rvokal@redhat.com> 5.1.4-5.1
794 - rebuilt for new libnetsnmp
795
796 * Thu May 18 2006 Joe Orton <jorton@redhat.com> 5.1.4-5
797 - provide mod_php (#187891)
798 - provide php-cli (#192196)
799 - use correct LDAP fix (#181518)
800 - define _GNU_SOURCE in php_config.h and leave it defined
801 - drop (circular) dependency on php-pear
802
803 * Mon May 8 2006 Joe Orton <jorton@redhat.com> 5.1.4-3
804 - update to 5.1.4
805
806 * Wed May 3 2006 Joe Orton <jorton@redhat.com> 5.1.3-3
807 - update to 5.1.3
808
809 * Tue Feb 28 2006 Joe Orton <jorton@redhat.com> 5.1.2-5
810 - provide php-api (#183227)
811 - add provides for all builtin modules (Tim Jackson, #173804)
812 - own %%{_libdir}/php/pear for PEAR packages (per #176733)
813 - add obsoletes to allow upgrade from FE4 PDO packages (#181863)
814
815 * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.1.2-4.3
816 - bump again for double-long bug on ppc(64)
817
818 * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.1.2-4.1
819 - rebuilt for new gcc4.1 snapshot and glibc changes
820
821 * Tue Jan 31 2006 Joe Orton <jorton@redhat.com> 5.1.2-4
822 - rebuild for new libc-client soname
823
824 * Mon Jan 16 2006 Joe Orton <jorton@redhat.com> 5.1.2-3
825 - only build xmlreader and xmlwriter shared (#177810)
826
827 * Fri Jan 13 2006 Joe Orton <jorton@redhat.com> 5.1.2-2
828 - update to 5.1.2
829
830 * Thu Jan 5 2006 Joe Orton <jorton@redhat.com> 5.1.1-8
831 - rebuild again
832
833 * Mon Jan 2 2006 Joe Orton <jorton@redhat.com> 5.1.1-7
834 - rebuild for new net-snmp
835
836 * Mon Dec 12 2005 Joe Orton <jorton@redhat.com> 5.1.1-6
837 - enable short_open_tag in default php.ini again (#175381)
838
839 * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
840 - rebuilt
841
842 * Thu Dec 8 2005 Joe Orton <jorton@redhat.com> 5.1.1-5
843 - require net-snmp for php-snmp (#174800)
844
845 * Sun Dec 4 2005 Joe Orton <jorton@redhat.com> 5.1.1-4
846 - add /usr/share/pear back to hard-coded include_path (#174885)
847
848 * Fri Dec 2 2005 Joe Orton <jorton@redhat.com> 5.1.1-3
849 - rebuild for httpd 2.2
850
851 * Mon Nov 28 2005 Joe Orton <jorton@redhat.com> 5.1.1-2
852 - update to 5.1.1
853 - remove pear subpackage
854 - enable pdo extensions (php-pdo subpackage)
855 - remove non-standard conditional module builds
856 - enable xmlreader extension
857
858 * Thu Nov 10 2005 Tomas Mraz <tmraz@redhat.com> 5.0.5-6
859 - rebuilt against new openssl
860
861 * Mon Nov 7 2005 Joe Orton <jorton@redhat.com> 5.0.5-5
862 - pear: update to XML_RPC 1.4.4, XML_Parser 1.2.7, Mail 1.1.9 (#172528)
863
864 * Tue Nov 1 2005 Joe Orton <jorton@redhat.com> 5.0.5-4
865 - rebuild for new libnetsnmp
866
867 * Wed Sep 14 2005 Joe Orton <jorton@redhat.com> 5.0.5-3
868 - update to 5.0.5
869 - add fix for upstream #34435
870 - devel: require autoconf, automake (#159283)
871 - pear: update to HTTP-1.3.6, Mail-1.1.8, Net_SMTP-1.2.7, XML_RPC-1.4.1
872 - fix imagettftext et al (upstream, #161001)
873
874 * Thu Jun 16 2005 Joe Orton <jorton@redhat.com> 5.0.4-11
875 - ldap: restore ldap_start_tls() function
876
877 * Fri May 6 2005 Joe Orton <jorton@redhat.com> 5.0.4-10
878 - disable RPATHs in shared extensions (#156974)
879
880 * Tue May 3 2005 Joe Orton <jorton@redhat.com> 5.0.4-9
881 - build simplexml_import_dom even with shared dom (#156434)
882 - prevent truncation of copied files to ~2Mb (#155916)
883 - install /usr/bin/php from CLI build alongside CGI
884 - enable sysvmsg extension (#142988)
885
886 * Mon Apr 25 2005 Joe Orton <jorton@redhat.com> 5.0.4-8
887 - prevent build of builtin dba as well as shared extension
888
889 * Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-7
890 - split out dba and bcmath extensions into subpackages
891 - BuildRequire gcc-c++ to avoid AC_PROG_CXX{,CPP} failure (#155221)
892 - pear: update to DB-1.7.6
893 - enable FastCGI support in /usr/bin/php-cgi (#149596)
894
895 * Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-6
896 - build /usr/bin/php with the CLI SAPI, and add /usr/bin/php-cgi,
897 built with the CGI SAPI (thanks to Edward Rudd, #137704)
898 - add php(1) man page for CLI
899 - fix more test cases to use -n when invoking php
900
901 * Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 5.0.4-5
902 - rebuild for new libpq soname
903
904 * Tue Apr 12 2005 Joe Orton <jorton@redhat.com> 5.0.4-4
905 - bundle from PEAR: HTTP, Mail, XML_Parser, Net_Socket, Net_SMTP
906 - snmp: disable MSHUTDOWN function to prevent error_log noise (#153988)
907 - mysqli: add fix for crash on x86_64 (Georg Richter, upstream #32282)
908
909 * Mon Apr 11 2005 Joe Orton <jorton@redhat.com> 5.0.4-3
910 - build shared objects as PIC (#154195)
911
912 * Mon Apr 4 2005 Joe Orton <jorton@redhat.com> 5.0.4-2
913 - fix PEAR installation and bundle PEAR DB-1.7.5 package
914
915 * Fri Apr 1 2005 Joe Orton <jorton@redhat.com> 5.0.4-1
916 - update to 5.0.4 (#153068)
917 - add .phps AddType to php.conf (#152973)
918 - better gcc4 fix for libxmlrpc
919
920 * Wed Mar 30 2005 Joe Orton <jorton@redhat.com> 5.0.3-5
921 - BuildRequire mysql-devel >= 4.1
922 - don't mark php.ini as noreplace to make upgrades work (#152171)
923 - fix subpackage descriptions (#152628)
924 - fix memset(,,0) in Zend (thanks to Dave Jones)
925 - fix various compiler warnings in Zend
926
927 * Thu Mar 24 2005 Joe Orton <jorton@redhat.com> 5.0.3-4
928 - package mysqli extension in php-mysql
929 - really enable pcntl (#142903)
930 - don't build with --enable-safe-mode (#148969)
931 - use "Instant Client" libraries for oci8 module (Kai Bolay, #149873)
932
933 * Fri Feb 18 2005 Joe Orton <jorton@redhat.com> 5.0.3-3
934 - fix build with GCC 4
935
936 * Wed Feb 9 2005 Joe Orton <jorton@redhat.com> 5.0.3-2
937 - install the ext/gd headers (#145891)
938 - enable pcntl extension in /usr/bin/php (#142903)
939 - add libmbfl array arithmetic fix (dcb314@hotmail.com, #143795)
940 - add BuildRequire for recent pcre-devel (#147448)
941
942 * Wed Jan 12 2005 Joe Orton <jorton@redhat.com> 5.0.3-1
943 - update to 5.0.3 (thanks to Robert Scheck et al, #143101)
944 - enable xsl extension (#142174)
945 - package both the xsl and dom extensions in php-xml
946 - enable soap extension, shared (php-soap package) (#142901)
947 - add patches from upstream 5.0 branch:
948 * Zend_strtod.c compile fixes
949 * correct php_sprintf return value usage
950
951 * Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 5.0.2-8
952 - update for db4-4.3 (Robert Scheck, #140167)
953 - build against mysql-devel
954 - run tests in %%check
955
956 * Wed Nov 10 2004 Joe Orton <jorton@redhat.com> 5.0.2-7
957 - truncate changelog at 4.3.1-1
958 - merge from 4.3.x package:
959 - enable mime_magic extension and Require: file (#130276)
960
961 * Mon Nov 8 2004 Joe Orton <jorton@redhat.com> 5.0.2-6
962 - fix dom/sqlite enable/without confusion
963
964 * Mon Nov 8 2004 Joe Orton <jorton@redhat.com> 5.0.2-5
965 - fix phpize installation for lib64 platforms
966 - add fix for segfault in variable parsing introduced in 5.0.2
967
968 * Mon Nov 8 2004 Joe Orton <jorton@redhat.com> 5.0.2-4
969 - update to 5.0.2 (#127980)
970 - build against mysqlclient10-devel
971 - use new RTLD_DEEPBIND to load extension modules
972 - drop explicit requirement for elfutils-devel
973 - use AddHandler in default conf.d/php.conf (#135664)
974 - "fix" round() fudging for recent gcc on x86
975 - disable sqlite pending audit of warnings and subpackage split
976
977 * Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-4
978 - don't build dom extension into 2.0 SAPI
979
980 * Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-3
981 - ExclusiveArch: x86 ppc x86_64 for the moment
982
983 * Fri Sep 17 2004 Joe Orton <jorton@redhat.com> 5.0.1-2
984 - fix default extension_dir and conf.d/php.conf
985
986 * Thu Sep 9 2004 Joe Orton <jorton@redhat.com> 5.0.1-1
987 - update to 5.0.1
988 - only build shared modules once
989 - put dom extension in php-dom subpackage again
990 - move extension modules into %%{_libdir}/php/modules
991 - don't use --with-regex=system, it's ignored for the apache* SAPIs
992
993 * Wed Aug 11 2004 Tom Callaway <tcallawa@redhat.com>
994 - Merge in some spec file changes from Jeff Stern (jastern@uci.edu)
995
996 * Mon Aug 09 2004 Tom Callaway <tcallawa@redhat.com>
997 - bump to 5.0.0
998 - add patch to prevent clobbering struct re_registers from regex.h
999 - remove domxml references, replaced with dom now built-in
1000 - fix php.ini to refer to php5 not php4

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