/[smecontribs]/rpms/php5-cgi/contribs7/php5-cgi.spec
ViewVC logotype

Annotation of /rpms/php5-cgi/contribs7/php5-cgi.spec

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


Revision 1.6 - (hide annotations) (download)
Thu Jul 15 16:29:12 2010 UTC (14 years, 3 months ago) by slords
Branch: MAIN
CVS Tags: php5-cgi-5_3_2-1_el4_sme, HEAD
Changes since 1.5: +45 -10 lines
Update package

1 slords 1.5 # $Id: php5-cgi.spec,v 1.2 2009/03/04 19:31:30 slords Exp $
2 slords 1.4 # Authority: nocvs
3 slords 1.1 # Name: David Harper
4    
5     %define rhel4 1
6    
7     %define contentdir /var/www
8     %define with_oci8 %{?_with_oci8:1}%{!?_with_oci8:0}
9     %define with_mssql %{?_with_mssql:1}%{!?_with_mssql:0}
10     %define with_mhash %{?_with_mhash:1}%{!?_with_mhash:0}
11     %define with_mcrypt %{?_with_mcrypt:1}%{!?_with_mcrypt:0}
12     %define with_mbstring %{?_with_mbstring:1}%{!?_with_mbstring:0}
13     %define with_tidy %{?_with_tidy:1}%{!?_with_tidy:0}
14    
15     Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
16     Name: php5-cgi
17 slords 1.6 Version: 5.3.2
18     Release: 1%{?dist}
19 slords 1.1 %{?rh90:Epoch: 1 }
20     License: The PHP License
21     Group: Development/Languages
22     URL: http://www.php.net/
23    
24     Source0: http://www.php.net/distributions/php-%{version}.tar.bz2
25    
26     Source50: php5.conf
27    
28     #Patch2: php-4.3.4-config.patch
29     #Patch3: php-4.2.2-lib64.patch
30     #Patch4: php-4.2.2-cxx.patch
31     #Patch5: php-4.3.3-install.patch
32     #Patch6: php-4.3.1-tests.patch
33     #Patch7: php-4.3.2-libtool15.patch
34     #Patch8: php-4.3.3-miscfix.patch
35     #Patch9: php-4.3.6-umask.patch
36 slords 1.6 #Patch10: php-4.3.7-handler.patch
37     #Patch11: php-4.3.8-fdsetsize.patch
38 slords 1.1
39     # Fixes for extension modules
40     #Patch21: php-4.3.1-odbc.patch
41     #Patch22: php-4.3.2-db4.patch
42     #Patch23: php-4.3.7-gmppowm.patch
43    
44     # Functional changes
45     #Patch30: php-4.3.1-dlopen.patch
46     #Patch31: php-4.3.4-easter.patch
47    
48 slords 1.6 # Fix for PHAR bug
49     Patch32: php-5.3.2-phar.patch
50    
51 slords 1.1 BuildRoot: %{_tmppath}/%{name}-root
52    
53     BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel, freetype-devel
54     BuildRequires: gd-devel >= 1.8.4, gmp-devel, aspell-devel
55     BuildRequires: httpd-devel, libjpeg-devel, libpng-devel, pam-devel
56     BuildRequires: libstdc++-devel, ncurses-devel, openssl-devel
57     BuildRequires: zlib-devel, pcre-devel libxml2-devel
58     %{?rhel4:BuildRequires: libgcrypt-devel, libxml2-devel, libxslt-devel}
59     BuildRequires: bzip2, fileutils, perl, libtool >= 1.4.3
60     %{?_with_tidy:BuildRequires: tidy}
61     %{?_with_tidy:Requires: tidy}
62    
63 marcohess 1.3 Obsoletes: php-dbg, php3, phpfi, stronghold-php, php-xslt
64 slords 1.1 # Enforce Apache module ABI compatibility
65     Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)
66     Requires: php5-cgi-pear
67     Conflicts: php >= 5.0.0
68     # Require extension which was previously built-in
69     # Requires: php-mbstring = %{version}-%{release}
70    
71    
72     %description
73     PHP is an HTML-embedded scripting language. PHP attempts to make it
74     easy for developers to write dynamically generated webpages. PHP also
75     offers built-in database integration for several commercial and
76     non-commercial database management systems, so writing a
77     database-enabled webpage with PHP is fairly simple. The most common
78     use of PHP coding is probably as a replacement for CGI scripts. The
79     mod_php module enables the Apache Web server to understand and process
80     the embedded PHP language in Web pages.
81    
82     This is a CGI build of PHP5. This is to assist hosts in deploying PHP5 side by side with PHP4. After installation it is recommended the following lines be added to a servers startup scripts to avoid the requirement of a shebang line on .php5 files:
83    
84     # Allow PHP5 to run without shebang
85     modprobe binfmt_misc
86     echo ':PHP5:E::php5::/usr/bin/php5/php:' > /proc/sys/fs/binfmt_misc/register
87    
88     %package devel
89     Group: Development/Libraries
90     Summary: Files needed for building PHP extensions.
91     Requires: php5-cgi = %{version}-%{release}
92    
93     %description devel
94     The php-devel package contains the files needed for building PHP
95     extensions. If you need to compile your own PHP extensions, you will
96     need to install this package.
97    
98     %package pear
99     Group: Development/Languages
100     Summary: PHP Extension and Application Repository Components
101     Requires: php5-cgi
102    
103     %description pear
104     PEAR is a framework and distribution system for reusable PHP
105     components. This package contains a set of PHP components from the
106     PEAR repository.
107    
108     %package imap
109     Summary: An Apache module for PHP applications that use IMAP.
110     Group: Development/Languages
111     Requires: php5-cgi = %{version}-%{release}
112     Obsoletes: mod_php3-imap, stronghold-php-imap
113     BuildRequires: krb5-devel, openssl-devel
114     %{?rh73:BuildRequires: imap-devel}
115     %{?rh90:BuildRequires: imap-devel}
116     %{?rhel3:BuildRequires: imap-devel}
117     %{?rhfc1:BuildRequires: imap-devel}
118     %{?rhfc2:BuildRequires: libc-client-devel}
119     %{?rhel4:BuildRequires: libc-client-devel}
120    
121    
122     %description imap
123     The php-imap package contains a dynamic shared object (DSO) for the
124     Apache Web server. When compiled into Apache, the php-imap module will
125     add IMAP (Internet Message Access Protocol) support to PHP. IMAP is a
126     protocol for retrieving and uploading e-mail messages on mail
127     servers. PHP is an HTML-embedded scripting language. If you need IMAP
128     support for PHP applications, you will need to install this package
129     and the php package.
130    
131     %package ldap
132     Summary: A module for PHP applications that use LDAP.
133     Group: Development/Languages
134     Requires: php5-cgi = %{version}-%{release}
135     Obsoletes: mod_php3-ldap, stronghold-php-ldap
136     BuildRequires: cyrus-sasl-devel, openldap-devel, openssl-devel
137    
138     %description ldap
139     The php-ldap package is a dynamic shared object (DSO) for the Apache
140     Web server that adds Lightweight Directory Access Protocol (LDAP)
141     support to PHP. LDAP is a set of protocols for accessing directory
142     services over the Internet. PHP is an HTML-embedded scripting
143     language. If you need LDAP support for PHP applications, you will
144     need to install this package in addition to the php package.
145    
146     %package mysql
147     Summary: A module for PHP applications that use MySQL databases.
148     Group: Development/Languages
149     Requires: php5-cgi = %{version}-%{release}
150     Provides: php_database
151     Obsoletes: mod_php3-mysql, stronghold-php-mysql
152     BuildRequires: mysql-devel
153    
154     %description mysql
155     The php-mysql package contains a dynamic shared object that will add
156     MySQL database support to PHP. MySQL is an object-relational database
157     management system. PHP is an HTML-embeddable scripting language. If
158     you need MySQL support for PHP applications, you will need to install
159     this package and the php or mod_php package.
160    
161     %package pgsql
162     Summary: A PostgreSQL database module for PHP.
163     Group: Development/Languages
164     Requires: php5-cgi = %{version}-%{release}
165     Provides: php_database
166     Obsoletes: mod_php3-pgsql, stronghold-php-pgsql
167     BuildRequires: krb5-devel, openssl-devel
168     %{?rh73:BuildRequires: postgresql-devel}
169     %{?rhfc1:BuildRequires: postgresql-devel}
170     %{?rhfc2:BuildRequires: postgresql-devel}
171     %{?rhel3:BuildRequires: rh-postgresql-devel}
172     %{?rhel4:BuildRequires: postgresql-devel}
173     %{?rh90:BuildRequires: postgresql-devel}
174    
175    
176     %description pgsql
177     The php-pgsql package includes a dynamic shared object (DSO) that can
178     be compiled in to the Apache Web server to add PostgreSQL database
179     support to PHP. PostgreSQL is an object-relational database management
180     system that supports almost all SQL constructs. PHP is an
181     HTML-embedded scripting language. If you need back-end support for
182     PostgreSQL, you should install this package in addition to the main
183     php package.
184    
185     %package odbc
186     Group: Development/Languages
187     Requires: php5-cgi = %{version}-%{release}
188 slords 1.6 Requires: unixODBC
189 slords 1.1 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     %if %{with_oci8}
204     %package oci8
205     Group: Development/Languages
206     Requires: php5-cgi = %{version}-%{release}
207     Summary: A module for PHP applications that use OCI8 databases.
208     Provides: php_database
209    
210     %description oci8
211     The php-oci8 package contains a dynamic shared object that will add
212     support for accessing OCI8 databases to PHP.
213     %endif
214    
215     %if %{with_mssql}
216     %package mssql
217     Group: Development/Languages
218     Requires: php5-cgi = %{version}-%{release}, freetds
219     Summary: A module for PHP applications that use MSSQL databases.
220     Provides: php_database
221     BuildRequires: freetds-devel
222    
223     %description mssql
224     The mssql package contains a dynamic shared object that will add
225     support for accessing MSSQL databases to PHP.
226     %endif
227    
228     %if %{with_mhash}
229     %package mhash
230     Summary: A module for PHP applications that use Mhash.
231     Group: Development/Languages
232     Requires: php5-cgi = %{version}-%{release}
233     BuildRequires: mhash-devel
234    
235     %description mhash
236     The php-mhash package is a dynamic shared object (DSO) for the Apache
237     Web server that adds Mhash support to PHP.
238     %endif
239    
240    
241     %if %{with_mcrypt}
242     %package mcrypt
243     Group: Development/Languages
244     BuildRequires: libmcrypt, libmcrypt-devel
245     Requires: php5-cgi = %{version}-%{release}, libmcrypt
246     Summary: A module for PHP applications to use the mcrypt library
247    
248     %description mcrypt
249     The php-mcrypt library includes a dynamic shared object (DSO) that adds
250     Mcrypt support to PHP4. The libmcrypt is a data encryption library. The
251     library is thread safe and provides encryption and decryption functions.
252     This version of the library supports many encryption algorithms and
253     encryption modes. Some algorithms which are supported: SERPENT,
254     RIJNDAEL, 3DES, GOST, SAFER+, CAST-256, RC2, XTEA, 3WAY, TWOFISH,
255     BLOWFISH, ARCFOUR, WAKE and more. Install this package in addition
256     to main PHP package if you plan to use any of these algorithms.
257     %endif
258    
259    
260     %package snmp
261     Summary: A module for PHP applications that query SNMP-managed devices.
262     Group: Development/Languages
263     Requires: php5-cgi = %{version}-%{release}
264 slords 1.6 Requires: net-snmp-utils
265 slords 1.1 BuildRequires: net-snmp-devel, elfutils-devel
266     # elfutils-devel requirement workaround for #103982
267    
268     %description snmp
269     The php-snmp package contains a dynamic shared object that will add
270     support for querying SNMP devices to PHP. PHP is an HTML-embeddable
271     scripting language. If you need SNMP support for PHP applications, you
272     will need to install this package and the php package.
273    
274     %package xmlrpc
275     Summary: A module for PHP applications which use the XML-RPC protocol
276     Group: Development/Languages
277     Requires: php5-cgi = %{version}-%{release}
278     BuildRequires: expat-devel
279    
280     %description xmlrpc
281     The php-xmlrpc package contains a dynamic shared object that will add
282     support for the XML-RPC protocol to PHP.
283    
284     %package mbstring
285     Summary: A module for PHP applications which need multi-byte string handling
286     Group: Development/Languages
287     Requires: php5-cgi = %{version}-%{release}
288    
289     %description mbstring
290     The php-mbstring package contains a dynamic shared object that will add
291     support for multi-byte string handling to PHP.
292    
293 slords 1.6 %package soap
294     Summary: A module for PHP applications which use the SOAP protocol
295     Group: Development/Languages
296     Requires: php5-cgi = %{version}-%{release}
297    
298     %description soap
299     The php-soap package contains a dynamic shared object that will add
300     support to PHP for using the SOAP web services protocol.
301    
302    
303 slords 1.1 %prep
304     %setup -q -n php-%{version}
305     #%patch2 -p1 -b .config
306     #%patch3 -p1 -b .lib64
307     #%patch4 -p1 -b .cxx
308     #%patch5 -p1 -b .install
309     #%patch6 -p1 -b .tests
310     #%patch7 -p1 -b .libtool15
311     #%patch8 -p1 -b .miscfix
312     #%patch9 -p1 -b .umask
313     #%patch10 -p1 -b .handler
314     #%patch11 -p1 -b .fdsetsize
315    
316     #%patch21 -p1 -b .odbc
317     #%patch22 -p1 -b .db4
318     #%patch23 -p1 -b .gmppowm
319    
320     #%patch30 -p1 -b .dlopen
321     ##%patch31 -p1 -b .easter
322 slords 1.6 %patch32 -p1 -b .orig
323 slords 1.1
324     # Prevent %%doc confusion over LICENSE files
325     cp Zend/LICENSE Zend/ZEND_LICENSE
326     cp TSRM/LICENSE TSRM_LICENSE
327 slords 1.5 cp ext/ereg/regex/COPYRIGHT regex_COPYRIGHT
328 slords 1.1 cp ext/gd/libgd/README gd_README
329    
330     # Source is built twice: once for /usr/bin/php5/php, once for the Apache DSO.
331     mkdir build-cgi
332    
333     # Use correct libdir
334 slords 1.5 perl -pi -e 's|%{_prefix}/lib|%{_libdir}|' php.ini-production
335     perl -pi -e 's|extension_dir \= \"\.\/\"|extension_dir \= \"%{_libdir}\/php5\/\"|' php.ini-production
336 slords 1.1
337     # Remove bogus test; position of read position after fopen(, "a+")
338     # is not defined by C standard, so don't presume anything.
339     rm -f ext/standard/tests/file/bug21131.phpt
340    
341     # Tests that fail.
342     rm -f ext/standard/tests/file/bug22414.phpt \
343     ext/session/tests/019.phpt \
344     ext/standard/tests/math/pow.phpt \
345     ext/standard/tests/math/round.phpt \
346     ext/standard/tests/math/abs.phpt \
347     ext/iconv/tests/bug16069.phpt
348    
349     : Build for oci8=%{with_oci8} mssql=%{with_mssql} mhash=%{with_mhash} mcrypt=%{with_mcrypt}
350    
351     %build
352    
353     CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"; export CFLAGS
354    
355     # Install extension modules in %{_libdir}/php5.
356     EXTENSION_DIR=%{_libdir}/php5; export EXTENSION_DIR
357    
358     # pull latest ltmain.sh, AC_PROG_LIBTOOL
359     libtoolize --force --copy
360     # force aclocal run during buildconf
361     touch acinclude.m4
362    
363     # Regenerate configure scripts (patches change config.m4's)
364     ./buildconf --force
365    
366     # Shell function to configure and build a PHP tree.
367     build() {
368     # bison-1.875-2 seems to produce a broken parser; workaround.
369     mkdir Zend && cp ../Zend/zend_{language,ini}_{parser,scanner}.[ch] Zend
370     ln -sf ../configure
371     %configure \
372     --bindir=%{_bindir}/php5 \
373     --sbindir=%{_sbindir}/php5 \
374     --libdir=%{_libdir}/php5 \
375     --includedir=/usr/include/php5 \
376     --cache-file=../config.cache \
377     --sysconfdir=/etc/php5 \
378     --with-config-file-path=%{_sysconfdir}/php5 \
379     --with-config-file-scan-dir=%{_sysconfdir}/php5/php5.d \
380     --enable-discard-path \
381     --disable-debug \
382     --enable-pic \
383     --disable-rpath \
384     --enable-inline-optimization \
385     --with-bz2 \
386     --with-kerberos \
387     --with-db4=%{_prefix} \
388     --with-curl \
389     --with-exec-dir=%{_bindir}/php5 \
390     --with-freetype-dir=%{_prefix} \
391 slords 1.2 --with-libdir=%{_lib} \
392 slords 1.1 --with-png-dir=%{_prefix} \
393     --with-gd \
394     --enable-gd-native-ttf \
395 marcohess 1.3 --enable-mbstring \
396     --with-mysqli=/usr/bin/mysql_config \
397 slords 1.1 --without-gdbm \
398     --with-gettext \
399     --with-ncurses \
400     --with-gmp \
401     --with-iconv \
402     --with-jpeg-dir=%{_prefix} \
403     --with-openssl \
404     --with-png \
405     --with-pspell \
406     --with-regex=system \
407     --with-xml \
408     --with-expat-dir=%{_prefix} \
409     --with-dom=shared,%{_prefix} \
410     --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \
411     --with-xsl \
412     --with-xmlrpc=shared \
413     %{?rhfc1:--with-pcre-regex=%{_prefix} } \
414     %{?rhfc2:--with-pcre-regex=%{_prefix} } \
415     --with-zlib \
416     --with-layout=GNU \
417     --enable-bcmath \
418     --enable-exif \
419     --enable-ftp \
420     --enable-magic-quotes \
421     --enable-safe-mode \
422     --enable-sockets \
423     --enable-sysvsem \
424     --enable-sysvshm \
425     --enable-track-vars \
426     --enable-trans-sid \
427     --enable-yp \
428     --enable-wddx \
429     --with-pear=/usr/share/pear5 \
430     --with-imap=shared --with-imap-ssl \
431     %{?rhfc1:--with-kerberos } \
432     %{?rhfc2:--with-kerberos } \
433     %{?rhel3:--with-kerberos=/usr/kerberos } \
434     %{?rhel4:--with-kerberos } \
435     %{?rh90:--with-kerberos=/usr/kerberos } \
436     --with-ldap=shared \
437     --with-mysql=shared,/usr \
438     %{?_with_oci8:--with-oci8=shared} \
439     %{?_with_mssql:--with-mssql=shared} \
440     %{?_with_mhash:--with-mhash=shared} \
441     %{?_with_mcrypt:--with-mcrypt=shared} \
442     --with-pgsql=shared \
443     --with-snmp=shared,%{_prefix} \
444     --with-snmp=shared \
445     --enable-ucd-snmp-hack \
446     --with-unixODBC=shared,%{_prefix} \
447 slords 1.6 --enable-soap=shared \
448 slords 1.1 --enable-memory-limit \
449     --enable-bcmath \
450     --enable-shmop \
451     --enable-calendar \
452     --enable-dbx \
453     --enable-dio \
454     --enable-mcal \
455     %{?_with_tidy:--with-tidy} \
456     %{?_with_mbstring:--enable-mbstring=shared --enable-mbstr-enc-trans --enable-mbregex} \
457     $*
458    
459     make %{?_smp_mflags}
460     }
461    
462     # Build standalone /usr/bin/php
463     echo "PHP CGI"
464     pushd build-cgi
465     build
466     # Run tests
467     #export NO_INTERACTION=1 REPORT_EXIT_STATUS=1
468     #if ! TZ= LANG= LC_ALL= make test; then
469     # for f in `find .. -name \*.diff -type f -print`; do
470     # echo "TEST FAILURE -- $f --"
471     # cat $f
472     # done
473     #fi
474     #popd
475    
476     %install
477     [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
478    
479     # Hack
480     %{?rh90:install -m 755 -d $RPM_BUILD_ROOT/etc/httpd/conf }
481     %{?rh90:install -m 644 /etc/httpd/conf/httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/httpd.conf }
482    
483     # Install from CGI tree
484 slords 1.6 # pushd build-cgi
485     # make install INSTALL_ROOT=$RPM_BUILD_ROOT
486     # popd
487    
488     # install everything from the CGI SAPI build
489     # updated method as of 5.2.13
490     make -C build-cgi install INSTALL_ROOT=$RPM_BUILD_ROOT
491 slords 1.1
492     # remove build files
493     rm -fr $RPM_BUILD_ROOT%{_libdir}/php
494    
495     # Install the default configuration file and icons
496     install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php5
497 slords 1.5 install -m 644 php.ini-production $RPM_BUILD_ROOT%{_sysconfdir}/php5/php.ini
498 slords 1.1 #install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons
499     #install -m 644 *.gif $RPM_BUILD_ROOT%{contentdir}/icons/
500    
501     # Apache config fragment
502     install -m 755 -d $RPM_BUILD_ROOT/etc/httpd/conf.d
503     install -m 644 $RPM_SOURCE_DIR/php5.conf $RPM_BUILD_ROOT/etc/httpd/conf.d
504    
505     install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php5/php5.d
506     install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php5
507     install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php5/session
508    
509     # Generate files lists and stub .ini files for each subpackage
510 slords 1.6 for mod in pgsql mysql odbc ldap snmp soap xmlrpc imap %{?_with_mbstring:mbstring} \
511 slords 1.1 %{?_with_oci8:oci8} %{?_with_mssql:mssql} %{?_with_mhash:mhash} %{?_with_mcrypt:mcrypt}; do
512     cat > $RPM_BUILD_ROOT%{_sysconfdir}/php5/php5.d/${mod}.ini <<EOF
513     ; Enable ${mod} extension module
514     extension=${mod}.so
515     EOF
516     cat > files.${mod} <<EOF
517     %{?rhel4:%attr(755,root,root) %{_libdir}/php5/${mod}.so}
518     %{?rhel3:%attr(755,root,root) %{_libdir}/php5/${mod}}
519     %config(noreplace) %attr(644,root,root) %{_sysconfdir}/php5/php5.d/${mod}.ini
520     EOF
521     done
522    
523     # Remove PEAR testsuite
524     rm -rf $RPM_BUILD_ROOT%{_datadir}/pear5/tests
525    
526     # Remove unpackaged files
527     rm -f $RPM_BUILD_ROOT%{_libdir}/php5/*.a \
528     $RPM_BUILD_ROOT%{_bindir}/php5/{phptar,pearize}
529    
530     rm -fr $RPM_BUILD_ROOT/.channels $RPM_BUILD_ROOT/.depdb $RPM_BUILD_ROOT/.depdblock $RPM_BUILD_ROOT/.filemap $RPM_BUILD_ROOT/.lock $RPM_BUILD_ROOT/.registry
531    
532     # Remove irrelevant docs
533     rm -f README.{Zeus,QNX,CVS-RULES}
534    
535     # Post rh90 hack
536     # Hack
537     %{?rh90: rm -f $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/httpd.conf* }
538    
539    
540    
541     %clean
542     [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
543     rm files.*
544    
545     %files
546     %defattr(-,root,root)
547     %doc CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE NEWS README*
548     %doc Zend/ZEND_* gd_README TSRM_LICENSE regex_COPYRIGHT
549     %config(noreplace) %{_sysconfdir}/php5/php.ini
550     %config %{_sysconfdir}/php5/pear.conf
551     %{_bindir}/php5/php
552     %{_bindir}/php5/php-cgi
553 slords 1.5 %{_bindir}/php5/phar.phar
554 slords 1.1 %dir %{_libdir}/php5
555     %dir %{_localstatedir}/lib/php5
556     %attr(0700,apache,apache) %dir %{_localstatedir}/lib/php5/session
557     %config %{_sysconfdir}/httpd/conf.d/php5.conf
558     %dir %{_sysconfdir}/php5/php5.d
559     %doc %{_datadir}/man
560    
561     #/usr/share/man/man1/p
562    
563     %files pear
564     %defattr(-,root,root)
565     %{_bindir}/php5/pear
566     %{_datadir}/pear5
567     %{_bindir}/php5/peardev
568     %{_bindir}/php5/pecl
569    
570     %files devel
571     %defattr(-,root,root)
572     %{_bindir}/php5/php-config
573     %{_bindir}/php5/phpize
574     #%{_bindir}/php5/phpextdist
575     %{_includedir}/php5
576     %{_libdir}/php5/build
577    
578     %files pgsql -f files.pgsql
579 marcohess 1.3 #%{_libdir}/php5/pgsql.so
580 slords 1.1
581     %files mysql -f files.mysql
582 marcohess 1.3 #%{_libdir}/php5/mysql.so
583 slords 1.1
584     %files odbc -f files.odbc
585 marcohess 1.3 #%{_libdir}/php5/odbc.so
586 slords 1.1
587     %if %{with_oci8}
588     %files oci8 -f files.oci8
589     %endif
590    
591     %if %{with_mssql}
592     %files mssql -f files.mssql
593     %endif
594    
595     %if %{with_mhash}
596     %files mhash -f files.mhash
597     %endif
598    
599     %if %{with_mcrypt}
600     %files mcrypt -f files.mcrypt
601     %endif
602    
603     %files imap -f files.imap
604 marcohess 1.3 # %{_libdir}/php5/imap.so
605 slords 1.1
606     %files ldap -f files.ldap
607 marcohess 1.3 # %{_libdir}/php5/ldap.so
608 slords 1.1
609     %files snmp -f files.snmp
610 marcohess 1.3 # %{_libdir}/php5/snmp.so
611 slords 1.1
612     %files xmlrpc -f files.xmlrpc
613 marcohess 1.3 # %{_libdir}/php5/xmlrpc.so
614 slords 1.1
615     %if %{with_mbstring}
616     %files mbstring -f files.mbstring
617     %endif
618    
619 slords 1.6 %files soap -f files.soap
620     # %{_libdir}/php5/soap.so
621    
622 slords 1.1 %changelog
623 slords 1.6 * Wed Jun 6 2010 David Harper <davidiwharper@hotmail.com> 5.3.2-1.el4
624     - Update to the latest version of PHP
625     - Add SOAP extension [SME: 5878]
626     - Build fixes for CentOS/SME
627     - Add Fedora patch for phar.phar shebang [PHP: 50578]
628    
629 marcohess 1.3 * Thu Sep 17 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-2.el4
630     - Fix for PHP4 compatibility issues [SME: 5463]
631 slords 1.6
632 marcohess 1.3 * Sun Sep 6 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-1.el4
633     - Upgrade to the latest version of PHP [SME: 5376]
634     - Add MySQLi support
635     - Re-add mbstring support
636     - Misc. build fixes for CentOS/SME
637 slords 1.6
638 slords 1.5 * Mon Jan 12 2009 David Harper <davidiwharper@hotmail.com> 5.2.8-1.el4
639 slords 1.1 - Upgrade to latest version of PHP
640     - Build fixes for CentOS/SME
641 slords 1.6
642 slords 1.1 * Fri Jan 20 2006 Stuart K. Low <stuart@serverpeak.com> 5.1.2-1
643     - Mass upgrade
644     - Added rhel4 flags
645     - Fixed pointers to changed (?) libraries from lib.so to just lib. Odd change.
646 slords 1.6
647 slords 1.1 * Fri Jun 10 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.4-2
648     - Fixed tidy again.
649 slords 1.6
650 slords 1.1 * Sun May 29 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.4-1
651     - Upgrade to 5.0.4
652 slords 1.6
653 slords 1.1 * Sat Feb 19 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.3-3
654     - addition of --with-tidy
655 slords 1.6
656 slords 1.1 * Wed Jan 26 2005 Stuart K. Low <stuart@serverpeak.com> 5.0.3-1
657     - initial conversion to a CGI version for PHP5
658     - removed domxml since it's been moved to PECL in PHP5
659     - renamed to php5-cgi for clarity reasons (not to conflict with ARTs PHP5)
660     - removed mbstring dependency, don't know if this is smart
661    
662     * Fri Oct 15 2004 Scott R. Shinn <scott@atomicrocketturtle.com> 4.3.9-11
663     - set the Epoch number for rh90 only, apparently there is some bug in yum on FC1/FC2/3ES that causes issues when using the Epoch
664    
665     * Sat Oct 09 2004 Scott R. Shinn <scott@atomicrocketturtle.com> 4.3.9-10
666     - rebuilt for high file descriptor environments
667    
668     * Fri Oct 08 2004 Scott R. Shinn <scott@atomicrocketturtle.com> 4.3.9-8
669     - logs of bugfixes
670    
671     * Thu Oct 07 2004 Scott R. Shinn <scott@atomicrocketturtle.com> 4.3.9-6
672     - merging my php 4.3.9 rpm with the FC2 version
673    
674     * Fri Jul 16 2004 Joe Orton <jorton@redhat.com> 4.3.8-2.1
675     - revert upstream default php.ini change since 4.3.6
676     - add three FD_SETSIZE changes to main/network.c (#125258)
677    
678     * Wed Jul 14 2004 Joe Orton <jorton@redhat.com> 4.3.8-2.0
679     - update to 4.3.8
680     - add gmp_powm fix (Oskari Saarenmaa, #124318)
681     - split out mbstring extension into php-mbstring subpackage
682     - fix rebuild without bison/flex
683     - have -devel require php of same release
684     - add fixes for memory handling in 2.0 handler SAPI
685    
686     * Wed May 19 2004 Joe Orton <jorton@redhat.com> 4.3.6-5
687     - don't obsolete php-imap (#123580)
688     - unconditionally build -imap subpackage
689    
690     * Thu May 13 2004 Joe Orton <jorton@redhat.com> 4.3.6-4
691     - remove trigger
692    
693     * Thu Apr 22 2004 Joe Orton <jorton@redhat.com> 4.3.6-3
694     - fix umask reset "feature" (#121454)
695     - don't use DL_GLOBAL when dlopen'ing extension modules
696    
697     * Sun Apr 18 2004 Joe Orton <jorton@redhat.com> 4.3.6-2
698     - fix segfault on httpd SIGHUP (upstream #27810)
699    
700     * Fri Apr 16 2004 Joe Orton <jorton@redhat.com> 4.3.6-1
701     - update to 4.3.6 (Robert Scheck, #121011)
702    
703     * Wed Apr 7 2004 Joe Orton <jorton@redhat.com> 4.3.4-11
704     - add back imap subpackage, using libc-client (#115535)
705    
706     * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
707     - rebuilt
708    
709     * Wed Feb 18 2004 Joe Orton <jorton@redhat.com> 4.3.4-10
710     - eliminate /usr/local/lib RPATH in odbc.so
711     - really use system pcre library
712    
713     * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 4.3.4-9
714     - rebuilt
715    
716     * Mon Feb 2 2004 Bill Nottingham <notting@redhat.com> 4.3.4-8
717     - obsolete php-imap if we're not building it
718    
719     * Wed Jan 28 2004 Joe Orton <jorton@redhat.com> 4.3.4-7
720     - gd fix for build with recent Freetype2 (from upstream)
721     - remove easter egg (Oden Eriksson, Mandrake)
722    
723     * Wed Jan 21 2004 Joe Orton <jorton@redhat.com> 4.3.4-6
724     - php-pear requires php
725     - also remove extension=imap from php.ini in upgrade trigger
726     - merge from Taroon: allow upgrade from Stronghold 4.0
727    
728     * Wed Jan 21 2004 Joe Orton <jorton@redhat.com> 4.3.4-5
729     - add defattr for php-pear subpackage
730     - restore defaults: output_buffering=Off, register_argc_argv=On
731     - add trigger to handle php.ini upgrades smoothly (#112470)
732    
733     * Tue Jan 13 2004 Joe Orton <jorton@redhat.com> 4.3.4-4
734     - conditionalize support for imap extension for the time being
735     - switch /etc/php.ini to use php.ini-recommended (but leave
736     variables_order as EGPCS) (#97765)
737     - set session.path to /var/lib/php/session by default (#89975)
738     - own /var/lib/php{,/session} and have apache own the latter
739     - split off php-pear subpackage (#83771)
740    
741     * Sat Dec 13 2003 Jeff Johnson <jbj@jbj.org> 4.3.4-3
742     - rebuild against db-4.2.52.
743    
744     * Mon Dec 1 2003 Joe Orton <jorton@redhat.com> 4.3.4-2
745     - rebuild for new libxslt (#110658)
746     - use --with-{mssql,oci8} for enabling extensions (#110482)
747     - fix rebuild issues (Jan Visser, #110274)
748     - remove hard-coded LIBS
749     - conditional support for mhash (Aleksander Adamowski, #111251)
750    
751     * Mon Nov 10 2003 Joe Orton <jorton@redhat.com> 4.3.4-1.1
752     - rebuild for FC1 updates
753    
754     * Mon Nov 10 2003 Joe Orton <jorton@redhat.com> 4.3.4-1
755     - update to 4.3.4
756     - include all licence files
757     - libxmlrpc fixes
758    
759     * Mon Oct 20 2003 Joe Orton <jorton@redhat.com> 4.3.3-6
760     - use bundled libgd (#107407)
761     - remove manual: up-to-date manual sources are no longer DFSG-free;
762     it's too big; it's on the web anyway; #91292, #105804, #107384
763    
764     * Wed Oct 15 2003 Joe Orton <jorton@redhat.com> 4.3.3-5
765     - add php-xmlrpc subpackage (#107138)
766    
767     * Mon Oct 13 2003 Joe Orton <jorton@redhat.com> 4.3.3-4
768     - drop recode support, symbols collide with MySQL
769    
770     * Sun Oct 12 2003 Joe Orton <jorton@redhat.com> 4.3.3-3
771     - split domxml extension into php-domxml subpackage
772     - enable xslt and xml support in domxml extension (#106042)
773     - fix httpd-devel build requirement (#104341)
774     - enable recode extension (#106755)
775     - add workaround for #103982
776    
777     * Thu Sep 25 2003 Jeff Johnson <jbj@jbj.org> 4.3.3-3
778     - rebuild against db-4.2.42.
779    
780     * Sun Sep 7 2003 Joe Orton <jorton@redhat.com> 4.3.3-2
781     - don't use --enable-versioning, it depends on libtool being
782     broken (#103690)
783    
784     * Sun Sep 7 2003 Joe Orton <jorton@redhat.com> 4.3.3-1
785     - update to 4.3.3
786     - add libtool build prereq (#103388)
787     - switch to apache2handler
788    
789     * Mon Jul 28 2003 Joe Orton <jorton@redhat.com> 4.3.2-8
790     - rebuild
791    
792     * Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 4.3.2-7
793     - rebuild
794    
795     * Tue Jul 8 2003 Joe Orton <jorton@redhat.com> 4.3.2-6
796     - use system pcre library
797    
798     * Mon Jun 9 2003 Joe Orton <jorton@redhat.com> 4.3.2-5
799     - enable mbstring and mbregex (#81336)
800     - fix use of libtool 1.5
801    
802     * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
803     - rebuilt
804    
805     * Tue Jun 3 2003 Joe Orton <jorton@redhat.com> 4.3.2-3
806     - add lib64 and domxml fixes
807    
808     * Tue Jun 3 2003 Frank Dauer <f@paf.net>
809     - added conditional support for mssql module (#92149)
810    
811     * Fri May 30 2003 Joe Orton <jorton@redhat.com> 4.3.2-2
812     - update the -tests and -lib64 patches
813     - fixes for db4 detection
814     - require aspell-devel >= 0.50.0 for pspell compatibility
815    
816     * Thu May 29 2003 Joe Orton <jorton@redhat.com> 4.3.2-1
817     - update to 4.3.2
818    
819     * Fri May 16 2003 Joe Orton <jorton@redhat.com> 4.3.1-3
820     - link odbc module correctly
821     - patch so that php -n doesn't scan inidir
822     - run tests using php -n, avoid loading system modules
823    
824     * Wed May 14 2003 Joe Orton <jorton@redhat.com> 4.3.1-2
825     - workaround broken parser produced by bison-1.875
826    
827     * Tue May 6 2003 Joe Orton <jorton@redhat.com> 4.3.1-1
828     - update to 4.3.1; run test suite
829     - open extension modules with RTLD_NOW rather than _LAZY
830    
831     * Tue May 6 2003 Joe Orton <jorton@redhat.com> 4.2.2-19
832     - patch for gd 2.x API changes in gd extension
833    
834     * Thu May 1 2003 Joe Orton <jorton@redhat.com> 4.2.2-18
835     - rebuild to use aspell (#89925)
836     - patch to work round conditional AC_PROG_CXX break in autoconf 2.57
837     - fix dba build against db >= 4.1
838    
839     * Mon Feb 24 2003 Joe Orton <jorton@redhat.com> 4.2.2-17
840     - restrict SNMP patch to minimal changes, fixing segv on startup (#84607)
841    
842     * Wed Feb 12 2003 Joe Orton <jorton@redhat.com> 4.2.2-16
843     - prevent startup if using httpd.worker to avoid thread-safety issues.
844     - fix parsing private keys in OpenSSL extension (#83994)
845     - fixes for SNMP extension (backport from 4.3) (#74761)
846    
847     * Wed Jan 29 2003 Joe Orton <jorton@redhat.com> 4.2.2-15
848     - add security fixes for wordwrap() and mail()
849    
850     * Mon Jan 13 2003 Joe Orton <jorton@redhat.com> 4.2.2-14
851     - drop explicit Requires in subpackages, rely on automatic deps.
852     - further fixes for libdir=lib64
853    
854     * Tue Dec 17 2002 Joe Orton <jorton@redhat.com> 4.2.2-13
855     - drop prereq for perl, grep in subpackages
856     - rebuild and patch for OpenSSL 0.9.7
857    
858     * Tue Dec 10 2002 Joe Orton <jorton@redhat.com> 4.2.2-12
859     - backport "ini dir scanning" patch from CVS HEAD; /etc/php.d/*.ini
860     are now loaded at startup; each subpackage places an ini file
861     in that directory rather than munging /etc/php.ini in post/postun.
862     - default config changes: enable short_open_tag; remove settings for
863     php-dbg extension
864    
865     * Wed Dec 4 2002 Joe Orton <jorton@redhat.com> 4.2.2-11
866     - own the /usr/lib/php4 directory (#73894)
867     - reinstate dropped patch to unconditionally disable ZTS
868    
869     * Mon Dec 2 2002 Joe Orton <jorton@redhat.com> 4.2.2-10
870     - remove ldconfig invocation in post/postun
871     - fixes for #73516 (partially), #78586, #75029, #75712, #75878
872    
873     * Wed Nov 6 2002 Joe Orton <jorton@redhat.com> 4.2.2-9
874     - fixes for libdir=/usr/lib64, based on SuSE's patches.
875     - add build prereqs for zlib-devel, imap-devel, curl-devel (#74819)
876     - remove unpackaged files from install root
877     - libtoolize; use configure cache to speed up build
878    
879     * Mon Sep 23 2002 Philip Copeland <bryce@redhat.com> 4.2.2-8.0.6
880     - PHP cannot determine which UID is being used, so safe
881     mode restrictions were always applied. Fixed. (#74396)
882    
883     * Tue Sep 3 2002 Philip Copeland <bryce@redhat.com> 4.2.2-8.0.4
884     - zts support seems to crash out httpd on a *second* sighup
885     ie service httpd start;
886     apachectl restart ; (ok)
887     apachectl restart ; (httpd segv's and collapses)
888     removed --enable-experimental-zts which this seems related to.
889     - Small patch added because some places need to know that they
890     aren't using the ZTS API's (dumb)
891    
892     * Mon Sep 2 2002 Philip Copeland <bryce@redhat.com> 4.2.2-8.0.3
893     - fixup /etc/httpd/conf.d/php.conf to limit largest amount
894     of data accepted (#73254) Limited to 512K (which seems a
895     little excessive but anyway,..)
896     Note: php.conf is part of the srpm sources not part of the
897     php codebase.
898     - ditched extrenious --enable-debugger (was for php-dbg)
899     - When upgrading we tend not to modify /etc/php.ini if it exists,
900     instead we create php.ini.rpmnew. Modified the post scripts to
901     edit php.ini.rpmnew if it exists, so that people can copy
902     over the php.ini.rpmnew as php.ini knowing that it will
903     be an edited version, consistant with what modules they
904     installed #72033
905    
906     * Sun Sep 1 2002 Joe Orton <jorton@redhat.com> 4.2.2-8.0.2
907     - require httpd-mmn for module ABI compatibility
908    
909     * Fri Aug 30 2002 Philip Copeland <bryce@redhat.com> 4.2.2-8.0.1
910     - URLS would drop the last arguments #72752
911     --enable-mbstring
912     --enable-mbstr-enc-trans
913     These were supposed to help provide multibyte language
914     support, however, they cause problems. Removed. Maybe in
915     a later errata when they work.
916     - added small patch to php_variables.c that allows
917     $_GET[<var>] to initialise properly when
918     --enable-mbstr-enc-trans is disabled.
919     - Be consistant with errata naming (8.0.x)
920    
921     * Tue Aug 27 2002 Nalin Dahyabhai <nalin@redhat.com> 4.2.2-11
922     - rebuild
923    
924     * Wed Aug 22 2002 Philip Copeland <bryce@redhat.com> 4.2.2-10
925     - Beat down the requirement list to something a little
926     more sane
927    
928     * Wed Aug 14 2002 Bill Nottingham <notting@redhat.com> 4.2.2-9
929     - trim manual language lists
930    
931     * Mon Aug 12 2002 Gary Benson <gbenson@redhat.com> 4.2.2-8
932     - rebuild against httpd-2.0.40
933    
934     * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> 4.2.2-7
935     - rebuilt with gcc-3.2 (we hope)
936    
937     * Wed Aug 7 2002 Philip Copeland <bryce@redhat.com> 4.2.2-6
938     - Where multiple cookies are set, only the last one
939     was actually made. Fixes #67853
940    
941     * Mon Aug 5 2002 Philip Copeland <bryce@redhat.com> 4.2.2-5
942     - Shuffled the php/php-devel package file manifest
943     with respect to PEAR (PHP Extension and Application
944     Repository) #70673
945    
946     * Fri Aug 2 2002 Philip Copeland <bryce@redhat.com> 4.2.2-4
947     - #67815, search path doesn't include the pear directory
948     -pear not being installed correctly. Added --with-pear=
949     option.
950    
951     * Tue Jul 23 2002 Tim Powers <timp@redhat.com> 4.2.2-2
952     - build using gcc-3.2-0.1
953    
954     * Mon Jul 22 2002 Philip Copeland <bryce@redhat.com> 4.2.2-1
955     - Yippie 8/ another security vunerability (see
956     http://www.php.net/release_4_2_2.php for details)
957    
958     * Wed Jul 17 2002 Philip Copeland <bryce@redhat.com> 4.2.1-9
959     - Reminder to self that mm was pushed out because it's
960     NOT thread safe.
961     - Updated the manuals (much to Bills horror)
962    
963     * Tue Jul 16 2002 Philip Copeland <bryce@redhat.com> 4.2.1-8
964     - php.ini alteration to fit in with the install/uninstall
965     of various php rpm based installable modules
966    
967     * Mon Jul 15 2002 Philip Copeland <bryce@redhat.com> 4.2.1-8
968     - php -v showing signs of deep unhappiness with the world
969     added --enable-experimental-zts to configure to make it
970     happy again (yes I know experimental sounds 'dangerous'
971     it's just a name for an option we need)
972    
973     * Fri Jul 12 2002 Philip Copeland <bryce@redhat.com> 4.2.1-7
974     - #68715, Wrong name for Mysql Module in php.ini. Fixed.
975    
976     * Fri Jun 28 2002 Philip Copeland <bryce@redhat.com> 4.2.1-6
977     - SNMP fixup
978    
979     * Thu Jun 27 2002 Philip Copeland <bryce@redhat.com> 4.2.1-5
980     - Ah,.. seems httpd2 has been renamed to just plain
981     ol' httpd. Fixed spec file to suit.
982     - ucd-snmp changed to net-snmp overnight...
983     temporarily disabled snmp while I work out the
984     impact of this change and if it is safe
985    
986     * Wed Jun 26 2002 Philip Copeland <bryce@redhat.com> 4.2.1-4
987     - openldap 2.1.x problem solved by Nalin. Sure the ldap
988     API didn't change,... <mutter>. Added TSRMLS_FETCH()
989     to ldap_rebind_proc().
990     - Removed the php-dbg package as thats going to be provided
991     elsewhere
992    
993     * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 4.2.1-3
994     - automated rebuild
995    
996     * Mon Jun 10 2002 Philip Copeland <bryce@redhat.com> 4.2.1-2
997     - Actually mm is now a dead project. Removed permently.
998    
999     * Tue May 28 2002 Gary Benson <gbenson@redhat.com> 4.2.1-2
1000     - change paths for httpd-2.0
1001     - add the config file
1002     - disable mm temporarily
1003    
1004     * Sun May 26 2002 Tim Powers <timp@redhat.com> 4.2.1-1
1005     - automated rebuild
1006    
1007     * Wed May 22 2002 Philip Copeland <bryce@redhat.com> 4.2.1-0
1008     - Initial pristine build of php-4.2.1
1009     - Minor patch to get around a 64 bitism
1010     - Added in the dgb debugging hooks
1011    

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