/[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.2 - (show annotations) (download)
Thu Mar 4 16:31:07 2010 UTC (14 years, 3 months ago) by slords
Branch: MAIN
Changes since 1.1: +2 -0 lines
Fix headers

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

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