1 Summary: The PHP HTML-embedded scripting language for use with Apache.
2 Summary(fr): Le langage de script embarque-HTML PHP pour Apache.
3 Summary(pl): Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache.
11 License: The PHP license (see "LICENSE" file included in distribution)
12 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.gz
16 Source4: http://www.php.net/distributions/manual.tar.gz
17 Source5: http://www.php.net/extra/number4.tar.gz
18 Patch0: %{name}-imap.patch
19 Patch1: %{name}-mysql-socket.patch
20 Patch2: %{name}-mail.patch
21 Patch3: %{name}-ldap.patch
22 Patch4: %{name}-bcmath.patch
23 Patch5: %{name}-no_libnsl.patch
25 URL: http://www.php.net/
26 BuildRequires: apache(EAPI)-devel
30 #BuildRequires: db-devel >= 3.0.55
31 BuildRequires: freetype-devel
32 BuildRequires: gd-devel >= 1.8.3
33 BuildRequires: gdbm-devel
34 BuildRequires: imap-devel >= 4.7b-1
35 # I think jdk is better for java
37 BuildRequires: kaffe-devel
38 BuildRequires: libjpeg-devel
39 BuildRequires: libltdl-devel
40 BuildRequires: libpng >= 1.0.8
41 BuildRequires: libtiff-devel
42 BuildRequires: mm-devel >= 1.1.3
43 BuildRequires: openldap-devel
44 BuildRequires: pam-devel
45 BuildRequires: pdflib-devel >= 3.0
46 #BuildRequires: libxml-devel >= 2.0.0
47 BuildRequires: postgresql-devel
48 BuildRequires: recode-devel >= 3.5
49 BuildRequires: t1lib-devel
50 # BuildRequires: unixODBC-devel
51 BuildRequires: zlib-devel >= 1.0.9
52 BuildRequires: ucd-snmp-devel >= 4.1
53 BuildRequires: libmcrypt-devel >= 2.4.4
54 BuildRequires: libltdl-devel
55 Requires: apache(EAPI) >= 1.3.9
56 Prereq: /usr/sbin/apxs
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 %define _pkglibdir %{_libdir}/apache
62 PHP is an HTML-embedded scripting language. PHP attempts to make it
63 easy for developers to write dynamically generated web pages. PHP also
64 offers built-in database integration for several commercial and
65 non-commercial database management systems, so writing a
66 database-enabled web page with PHP is fairly simple. The most common
67 use of PHP coding is probably as a replacement for CGI scripts. The
68 mod_php module enables the Apache web server to understand and process
69 the embedded PHP language in web pages. This package contains PHP
70 version %{version}. If you use applications which specifically rely on
71 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
72 module contained in the phpfi package. If you're just starting with
73 PHP, you should install this package. You'll also need to install the
77 PHP est un langage de script embarque dans le HTM. PHP essaye de
78 rendre simple aux developpeurs d'ecrire des pages web generees
79 dynamiquement. PHP incorpore egalement une integration avec plusieurs
80 systemes de gestion de bases de donnees commerciaux et
81 non-connerciaux, qui rent facile la creation de pages web liees avec
82 des bases de donnees. L'utilisation la plus commune de PHP est
83 probablement en remplacement de scripts CGI. Le module mod_php permet
84 au serveur web apache de comprendre et de traiter le langage PHP
85 integre dans des pages web. Ce package contient PHP version
86 %{version}. Si vous utilisez des applications qui utilisent
87 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
88 dans le package mod_php. Si vous debutez avec PHP, vous devriez
89 installer ce package. Vous aurez egalement besoin d'installer le
93 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
94 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
95 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
96 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
97 zosta³a z jêzyków: C, Java i Perl.
100 Summary: MySQL database module for PHP4
101 Summary(pl): Modu³ bazy danych MySQL dla PHP4
104 Group(fr): Librairies
105 Group(pl): Biblioteki
106 Requires: %{name} = %{version}
109 This is a dynamic shared object (DSO) for Apache that will add MySQL
110 database support to PHP4. If you need back-end support for MySQL, you
111 should install this package in addition to the main %{name} package.
113 %description mysql -l pl
114 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych MySQL.
118 Summary: PostgreSQL database module for PHP4
119 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP4
122 Group(fr): Librairies
123 Group(pl): Biblioteki
124 Requires: %{name} = %{version}
127 This is a dynamic shared object (DSO) for Apache that will add
128 PostgreSQL database support to PHP4. If you need back-end support for
129 PostgreSQL, you should install this package in addition to the main
132 %description pgsql -l pl
133 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
136 Summary: Oracle 8 database module for PHP4
137 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP4
140 Group(fr): Librairies
141 Group(pl): Biblioteki
142 Requires: %{name} = %{version}
146 This is a dynamic shared object (DSO) for Apache that will add Oracle
147 8 database support to PHP4. If you need back-end support for Oracle 8,
148 you should install this package in addition to the main %{name}
151 %description oci8 -l pl
152 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych Oracle 8. }
155 Summary: Oracle 7 database module for PHP4
156 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP4
159 Group(fr): Librairies
160 Group(pl): Biblioteki
161 Requires: %{name} = %{version}
165 This is a dynamic shared object (DSO) for Apache that will add Oracle
166 7 database support to PHP4. If you need back-end support for Oracle 7,
167 you should install this package in addition to the main %{name}
170 %description oracle -l pl
171 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych Oracle 7. }
174 Summary: GD extension module for PHP4
175 Summary: Modu³ GD dla PHP4
178 Group(fr): Librairies
179 Group(pl): Biblioteki
180 Requires: %{name} = %{version}
183 This is a dynamic shared object (DSO) for Apache that will add GD
184 support to PHP4. You should install this package in addition to the
185 main %{name} package if you want to create and manipulate images with
188 %description gd -l pl
191 Summary: Java extension module for PHP4
192 Summary(pl): Modu³ Javy dla PHP4
195 Group(fr): Librairies
196 Group(pl): Biblioteki
197 Requires: %{name} = %{version}
200 This is a dynamic shared object (DSO) for Apache that will add JAVA
201 support to PHP4. This extension provides a simple and effective means
202 for creating and invoking methods on Java objects from PHP.
204 %description java -l pl
207 Summary: XML extension module for PHP4
208 Summary(pl): Modu³ XML dla PHP4
211 Group(fr): Librairies
212 Group(pl): Biblioteki
213 Requires: %{name} = %{version}
216 This is a dynamic shared object (DSO) for Apache that will add XML
217 support to PHP4. This extension lets you create XML parsers and then
218 define handlers for different XML events. If you want to be able to
219 parse XML documents you should install this package in addition to the
220 main %{name} package.
222 #%description xml -l pl
225 Summary: DBA extension module for PHP4
226 Summary(pl): Modu³ DBA dla PHP4
229 Group(fr): Librairies
230 Group(pl): Biblioteki
231 Requires: %{name} = %{version}
234 This is a dynamic shared object (DSO) for Apache that will add
235 flat-file databases (DBA) support to PHP4.
237 #%description dba -l pl
240 Summary: Calendar extension module for PHP4
241 Summary(pl): Modu³ funkcji kalendarza dla PHP4
244 Group(fr): Librairies
245 Group(pl): Biblioteki
246 Requires: %{name} = %{version}
248 %description calendar
249 This is a dynamic shared object (DSO) for Apache that will add
250 calendar support to PHP4.
252 #%description calendar -l pl
255 Summary: DBase extension module for PHP4
256 Summary(pl): Modu³ DBase dla PHP4
259 Group(fr): Librairies
260 Group(pl): Biblioteki
261 Requires: %{name} = %{version}
264 This is a dynamic shared object (DSO) for Apache that will add DBase
267 #%description dbase -l pl
270 Summary: FilePro extension module for PHP4
271 Summary(pl): Modu³ FilePro dla PHP4
274 Group(fr): Librairies
275 Group(pl): Biblioteki
276 Requires: %{name} = %{version}
279 This is a dynamic shared object (DSO) for Apache that will add FilePro
282 #%description filepro -l pl
285 Summary: POSIX extension module for PHP4
286 Summary(pl): Modu³ POSIX dla PHP4
289 Group(fr): Librairies
290 Group(pl): Biblioteki
291 Requires: %{name} = %{version}
294 This is a dynamic shared object (DSO) for Apache that will add POSIX
295 functions support to PHP4.
297 #%description posix -l pl
300 Summary: PCRE extension module for PHP4
301 Summary(pl): Modu³ PCRE dla PHP4
304 Group(fr): Librairies
305 Group(pl): Biblioteki
306 Requires: %{name} = %{version}
309 This is a dynamic shared object (DSO) for Apache that will add Perl
310 Compatible Regular Expression support to PHP4.
312 #%description pcre -l pl
315 Summary: SysV sem extension module for PHP4
316 Summary(pl): Modu³ SysV sem dla PHP4
319 Group(fr): Librairies
320 Group(pl): Biblioteki
321 Requires: %{name} = %{version}
324 This is a dynamic shared object (DSO) for Apache that will add SysV
325 semafores support to PHP4.
327 #%description sysvsem -l pl
330 Summary: SysV shm extension module for PHP4
331 Summary(pl): Modu³ SysV shm dla PHP4
334 Group(fr): Librairies
335 Group(pl): Biblioteki
336 Requires: %{name} = %{version}
339 This is a dynamic shared object (DSO) for Apache that will add SysV
340 Shared Memory support to PHP4.
342 #%description sysvshm -l pl
345 Summary: NIS (yp) extension module for PHP4
346 Summary(pl): Modu³ NIS (yp) dla PHP4
349 Group(fr): Librairies
350 Group(pl): Biblioteki
351 Requires: %{name} = %{version}
354 This is a dynamic shared object (DSO) for Apache that will add NIS
355 (Yellow Pages) support to PHP4.
357 #%description yp -l pl
360 Summary: bcmath extension module for PHP4
361 Summary(pl): Modu³ bcmath dla PHP4
364 Group(fr): Librairies
365 Group(pl): Biblioteki
366 Requires: %{name} = %{version}
369 This is a dynamic shared object (DSO) for Apache that will add bc
370 style precision math functions support to PHP4.
372 #%description bcmath -l pl
375 Summary: FTP extension module for PHP4
376 Summary(pl): Modu³ FTP dla PHP4
379 Group(fr): Librairies
380 Group(pl): Biblioteki
381 Requires: %{name} = %{version}
384 This is a dynamic shared object (DSO) for Apache that will add FTP
387 #%description ftp -l pl
390 Summary: Zlib extension module for PHP4
391 Summary(pl): Modu³ zlib dla PHP4
394 Group(fr): Librairies
395 Group(pl): Biblioteki
396 Requires: %{name} = %{version}
399 This is a dynamic shared object (DSO) for Apache that will add
400 commpresion (zlib) support to PHP4.
402 #%description zlib -l pl
405 Summary: exifextension module for PHP4
406 Summary(pl): Modu³ exif dla PHP4
409 Group(fr): Librairies
410 Group(pl): Biblioteki
411 Requires: %{name} = %{version}
414 This is a dynamic shared object (DSO) for Apache that will add exif
417 #%description exif -l pl
420 Summary: recodeextension module for PHP4
421 Summary(pl): Modu³ recode dla PHP4
424 Group(fr): Librairies
425 Group(pl): Biblioteki
426 Requires: %{name} = %{version}
429 This is a dynamic shared object (DSO) for Apache that will add recode
432 #%description recode -l pl
435 Summary: sessionextension module for PHP4
436 Summary(pl): Modu³ session dla PHP4
439 Group(fr): Librairies
440 Group(pl): Biblioteki
441 Requires: %{name} = %{version}
444 This is a dynamic shared object (DSO) for Apache that will add session
447 #%description session -l pl
450 Summary: gettextextension module for PHP4
451 Summary(pl): Modu³ gettext dla PHP4
454 Group(fr): Librairies
455 Group(pl): Biblioteki
456 Requires: %{name} = %{version}
459 This is a dynamic shared object (DSO) for Apache that will add gettext
462 #%description gettext -l pl
466 Summary: snmpextension module for PHP4
467 Summary(pl): Modu³ snmp dla PHP4
470 Group(fr): Librairies
471 Group(pl): Biblioteki
472 Requires: %{name} = %{version}
475 This is a dynamic shared object (DSO) for Apache that will add snmp
478 #%description snmp -l pl
481 Summary: imapextension module for PHP4
482 Summary(pl): Modu³ imap dla PHP4
485 Group(fr): Librairies
486 Group(pl): Biblioteki
487 Requires: %{name} = %{version}
490 This is a dynamic shared object (DSO) for Apache that will add imap
493 #%description imap -l pl
496 Summary: LDAP extension module for PHP4
497 Summary(pl): Modu³ LDAP dla PHP4
500 Group(fr): Librairies
501 Group(pl): Biblioteki
502 Requires: %{name} = %{version}
505 This is a dynamic shared object (DSO) for Apache that will add LDAP
508 #%description ldap -l pl
511 Summary: sockets extension module for PHP4
512 Summary(pl): Modu³ socket dla PHP4
515 Group(fr): Librairies
516 Group(pl): Biblioteki
517 Requires: %{name} = %{version}
520 This is a dynamic shared object (DSO) for Apache that will add sockets
523 #%description sockets -l pl
526 Summary: mcrypt extension module for PHP4
527 Summary(pl): Modu³ mcrypt dla PHP4
530 Group(fr): Librairies
531 Group(pl): Biblioteki
532 Requires: %{name} = %{version}
535 This is a dynamic shared object (DSO) for Apache that will add mcrypt
538 #%description mcrypt -l pl
541 Summary: Online manual for PHP4
542 Summary(pl): Dokumentacja dla PHP4
543 Group: Networking/Daemons
544 Group(de): Netzwerkwesen/Server
545 Group(pl): Sieciowe/Serwery
548 Comprehensive documentation for PHP4, viewable through your web
551 %description doc -l pl
552 Dokumentacja dla pakietu PHP4. Mo¿na j± równie¿ ogl±daæ poprzez serwer
565 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I%{_prefix}/X11R6/include"; export CFLAGS
568 --with-apxs=%{_sbindir}/apxs \
569 --with-config-file-path=%{_sysconfdir}/httpd \
570 --with-exec-dir=%{_bindir} \
572 --enable-magic-quotes \
574 --enable-track-vars \
577 --enable-sysvsem=shared \
578 --enable-sysvshm=shared \
580 --enable-exif=shared \
581 --with-regex=system \
582 --with-gettext=shared \
584 --with-mysql=shared \
585 --with-mysql-sock=/var/lib/mysql/mysql.sock \
587 --with-dbase=shared \
588 --with-filepro=shared \
589 --enable-ftp=shared \
591 --with-pdflib=shared \
592 --with-cpdflib=shared \
594 --with-pgsql=shared,/usr \
596 --enable-bcmath=shared \
597 --enable-calendar=shared \
599 --with-pcre-regex=shared \
600 --enable-posix=shared \
603 --with-recode=shared \
604 --enable-ucd-snmp-hack \
605 --enable-dba=shared \
612 --enable-xml=shared \
614 --with-mcrypt=shared \
615 --enable-sockets=shared \
617 %{?oracle:--with-oracle=shared} %{?oci8:--with-oci8=shared}
621 # TODO --with-pspell=/usr,shared (pspell missing)
622 # --with-unixODBC=shared (nie jest shared)
623 # --with-mhash=shared (brak libmhash)
624 # --with-curl=shared (brak libcurl)
630 #Syntax error on line 228 of %{_sysconfdir}/httpd/httpd.conf: Cannot load %{_libdir}/apache/libphp4.so into server: %{_libdir}/apache/libphp4.so: undefined symbol: phpi_get_le_gd
631 # Solution: make pdf and cpdf shared
636 # This option get trouble with imap
637 # --enable-versioning \
639 # To old/new libmcrypt ?
640 # --with-mcrypt=shared \
641 # --with-dom=%{_prefix}/X11R6 \
646 rm -rf $RPM_BUILD_ROOT
647 install -d $RPM_BUILD_ROOT{%{_pkglibdir}/php,%{_sysconfdir}/httpd} \
648 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc}
650 install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
651 install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
653 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/php.ini
654 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
656 cd $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
658 ln -s manual.html index.html
662 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
663 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
664 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
667 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
668 perl -pi -e 's|^#AddType application/x-httpd-php .php|AddType application/x-httpd-php .php|'
669 if [ -f /var/lock/subsys/httpd ]; then
670 /etc/rc.d/init.d/httpd restart 1>&2
674 perl -pi -e 's|^AddType application/x-httpd-php .php|#AddType application/x-httpd-php .php|'
675 if [ -f /var/lock/subsys/httpd ]; then
676 /etc/rc.d/init.d/httpd restart 1>&2
680 if [ "$1" = "0" ]; then
681 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
682 if [ -f /var/lock/subsys/httpd ]; then
683 /etc/rc.d/init.d/httpd restart 1>&2
688 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
689 echo "activating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
690 perl -pi -e 's|^;extension=mysql.so|extension=mysql.so|g' \
691 %{_sysconfdir}/httpd/php.ini
693 if [ -f /var/lock/subsys/httpd ]; then
694 /etc/rc.d/init.d/httpd restart 1>&2
698 if [ "$1" = "0" ]; then
699 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
700 echo "deactivating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
701 perl -pi -e 's|^extension=mysql.so|;extension=mysql.so|g' \
702 %{_sysconfdir}/httpd/php.ini
704 if [ -f /var/lock/subsys/httpd ]; then
705 /etc/rc.d/init.d/httpd restart 1>&2
710 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
711 echo "activating module 'pgsql.so' in /etc/httpd/php.ini" 1>&2
712 perl -pi -e 's|^;extension=pgsql.so|extension=pgsql.so|g' \
713 %{_sysconfdir}/httpd/php.ini
715 if [ -f /var/lock/subsys/httpd ]; then
716 /etc/rc.d/init.d/httpd restart 1>&2
720 if [ "$1" = "0" ]; then
721 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
722 echo "deactivating module 'pgsql.so' in /etc/httpd/php.ini" 1>&2
723 perl -pi -e 's|^extension=pgsql.so|;extension=pgsql.so|g' \
724 %{_sysconfdir}/httpd/php.ini
726 if [ -f /var/lock/subsys/httpd ]; then
727 /etc/rc.d/init.d/httpd restart 1>&2
731 %{?oracle:%post oracle}
732 %{?oracle:if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
733 %{?oracle: echo "activating module 'oracle.so' in /etc/httpd/php.ini" 1>&2}
734 %{?oracle: perl -pi -e 's|^;extension=oracle.so|extension=oracle.so|g' %{_sysconfdir}/httpd/php.ini}
736 %{?oracle:if [ -f /var/lock/subsys/httpd ]; then}
737 %{?oracle: /etc/rc.d/init.d/httpd restart 1>&2}
740 %{?oracle:%preun oracle}
741 %{?oracle:if [ "$1" = "0" ]; then}
742 %{?oracle: if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
743 %{?oracle: echo "deactivating module 'oracle.so' in /etc/httpd/php.ini" 1>&2}
744 %{?oracle: perl -pi -e 's|^extension=oracle.so|;extension=oracle.so|g' {_sysconfdir}/httpd/php.ini}
746 %{?oracle: if [ -f /var/lock/subsys/httpd ]; then}
747 %{?oracle: /etc/rc.d/init.d/httpd restart 1>&2}
752 %{?oci8:if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
753 %{?oci8: echo "activating module 'oci8.so' in /etc/httpd/php.ini" 1>&2}
754 %{?oci8: perl -pi -e 's|^;extension=oci8.so|extension=oci8.so|g' %{_sysconfdir}/httpd/php.ini}
756 %{?oci8:if [ -f /var/lock/subsys/httpd ]; then}
757 %{?oci8: /etc/rc.d/init.d/httpd restart 1>&2}
761 %{?oci8:if [ "$1" = "0" ]; then}
762 %{?oci8: if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
763 %{?oci8: echo "deactivating module 'oci8.so' in /etc/httpd/php.ini" 1>&2}
764 %{?oci8: perl -pi -e 's|^extension=oci8.so|;extension=oci8.so|g' %{_sysconfdir}/httpd/php.ini}
766 %{?oci8: if [ -f /var/lock/subsys/httpd ]; then}
767 %{?oci8: /etc/rc.d/init.d/httpd restart 1>&2}
772 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
773 echo "activating module 'gd.so' in /etc/httpd/php.ini" 1>&2
774 perl -pi -e 's|^;extension=gd.so|extension=gd.so|g' \
775 %{_sysconfdir}/httpd/php.ini
777 if [ -f /var/lock/subsys/httpd ]; then
778 /etc/rc.d/init.d/httpd restart 1>&2
782 if [ "$1" = "0" ]; then
783 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
784 echo "deactivating module 'gd.so' in /etc/httpd/php.ini" 1>&2
785 perl -pi -e 's|^extension=gd.so|;extension=gd.so|g' \
786 %{_sysconfdir}/httpd/php.ini
788 if [ -f /var/lock/subsys/httpd ]; then
789 /etc/rc.d/init.d/httpd restart 1>&2
794 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
795 echo "activating module 'xml.so' in /etc/httpd/php.ini" 1>&2
796 perl -pi -e 's|^;extension=xml.so|extension=xml.so|g' \
797 %{_sysconfdir}/httpd/php.ini
799 if [ -f /var/lock/subsys/httpd ]; then
800 /etc/rc.d/init.d/httpd restart 1>&2
804 if [ "$1" = "0" ]; then
805 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
806 echo "deactivating module 'xml.so' in /etc/httpd/php.ini" 1>&2
807 perl -pi -e 's|^extension=xml.so|;extension=xml.so|g' \
808 %{_sysconfdir}/httpd/php.ini
810 if [ -f /var/lock/subsys/httpd ]; then
811 /etc/rc.d/init.d/httpd restart 1>&2
816 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
817 echo "activating module 'dba.so' in /etc/httpd/php.ini" 1>&2
818 perl -pi -e 's|^;extension=dba.so|extension=dba.so|g' \
819 %{_sysconfdir}/httpd/php.ini
821 if [ -f /var/lock/subsys/httpd ]; then
822 /etc/rc.d/init.d/httpd restart 1>&2
826 if [ "$1" = "0" ]; then
827 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
828 echo "deactivating module 'dba.so' in /etc/httpd/php.ini" 1>&2
829 perl -pi -e 's|^extension=dba.so|;extension=dba.so|g' \
830 %{_sysconfdir}/httpd/php.ini
832 if [ -f /var/lock/subsys/httpd ]; then
833 /etc/rc.d/init.d/httpd restart 1>&2
838 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
839 echo "activating module 'calendar.so' in /etc/httpd/php.ini" 1>&2
840 perl -pi -e 's|^;extension=calendar.so|extension=calendar.so|g' \
841 %{_sysconfdir}/httpd/php.ini
843 if [ -f /var/lock/subsys/httpd ]; then
844 /etc/rc.d/init.d/httpd restart 1>&2
848 if [ "$1" = "0" ]; then
849 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
850 echo "deactivating module 'calendar.so' in /etc/httpd/php.ini" 1>&2
851 perl -pi -e 's|^extension=calendar.so|;extension=calendar.so|g' \
852 %{_sysconfdir}/httpd/php.ini
854 if [ -f /var/lock/subsys/httpd ]; then
855 /etc/rc.d/init.d/httpd restart 1>&2
860 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
861 echo "activating module 'dbase.so' in /etc/httpd/php.ini" 1>&2
862 perl -pi -e 's|^;extension=dbase.so|extension=dbase.so|g' \
863 %{_sysconfdir}/httpd/php.ini
865 if [ -f /var/lock/subsys/httpd ]; then
866 /etc/rc.d/init.d/httpd restart 1>&2
870 if [ "$1" = "0" ]; then
871 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
872 echo "deactivating module 'dbase.so' in /etc/httpd/php.ini" 1>&2
873 perl -pi -e 's|^extension=dbase.so|;extension=dbase.so|g' \
874 %{_sysconfdir}/httpd/php.ini
876 if [ -f /var/lock/subsys/httpd ]; then
877 /etc/rc.d/init.d/httpd restart 1>&2
883 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
884 echo "activating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
885 perl -pi -e 's|^;extension=libphp_java.so|extension=libphp_java.so|g' \
886 %{_sysconfdir}/httpd/php.ini
888 if [ -f /var/lock/subsys/httpd ]; then
889 /etc/rc.d/init.d/httpd restart 1>&2
893 if [ "$1" = "0" ]; then
894 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
895 echo "deactivating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
896 perl -pi -e 's|^extension=libphp_java.so|;extension=libphp_java.so|g' \
897 %{_sysconfdir}/httpd/php.ini
899 if [ -f /var/lock/subsys/httpd ]; then
900 /etc/rc.d/init.d/httpd restart 1>&2
905 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
906 echo "activating module 'filepro.so' in /etc/httpd/php.ini" 1>&2
907 perl -pi -e 's|^;extension=filepro.so|extension=filepro.so|g' \
908 %{_sysconfdir}/httpd/php.ini
910 if [ -f /var/lock/subsys/httpd ]; then
911 /etc/rc.d/init.d/httpd restart 1>&2
915 if [ "$1" = "0" ]; then
916 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
917 echo "deactivating module 'filepro.so' in /etc/httpd/php.ini" 1>&2
918 perl -pi -e 's|^extension=filepro.so|;extension=filepro.so|g' \
919 %{_sysconfdir}/httpd/php.ini
921 if [ -f /var/lock/subsys/httpd ]; then
922 /etc/rc.d/init.d/httpd restart 1>&2
927 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
928 echo "activating module 'pcre.so' in /etc/httpd/php.ini" 1>&2
929 perl -pi -e 's|^;extension=pcre.so|extension=pcre.so|g' \
930 %{_sysconfdir}/httpd/php.ini
932 if [ -f /var/lock/subsys/httpd ]; then
933 /etc/rc.d/init.d/httpd restart 1>&2
937 if [ "$1" = "0" ]; then
938 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
939 echo "deactivating module 'pcre.so' in /etc/httpd/php.ini" 1>&2
940 perl -pi -e 's|^extension=pcre.so|;extension=pcre.so|g' \
941 %{_sysconfdir}/httpd/php.ini
943 if [ -f /var/lock/subsys/httpd ]; then
944 /etc/rc.d/init.d/httpd restart 1>&2
949 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
950 echo "activating module 'posix.so' in /etc/httpd/php.ini" 1>&2
951 perl -pi -e 's|^;extension=posix.so|extension=posix.so|g' \
952 %{_sysconfdir}/httpd/php.ini
954 if [ -f /var/lock/subsys/httpd ]; then
955 /etc/rc.d/init.d/httpd restart 1>&2
959 if [ "$1" = "0" ]; then
960 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
961 echo "deactivating module 'posix.so' in /etc/httpd/php.ini" 1>&2
962 perl -pi -e 's|^extension=posix.so|;extension=posix.so|g' \
963 %{_sysconfdir}/httpd/php.ini
965 if [ -f /var/lock/subsys/httpd ]; then
966 /etc/rc.d/init.d/httpd restart 1>&2
971 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
972 echo "activating module 'sysvsem.so' in /etc/httpd/php.ini" 1>&2
973 perl -pi -e 's|^;extension=sysvsem.so|extension=sysvsem.so|g' \
974 %{_sysconfdir}/httpd/php.ini
976 if [ -f /var/lock/subsys/httpd ]; then
977 /etc/rc.d/init.d/httpd restart 1>&2
981 if [ "$1" = "0" ]; then
982 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
983 echo "deactivating module 'sysvsem.so' in /etc/httpd/php.ini" 1>&2
984 perl -pi -e 's|^extension=sysvsem.so|;extension=sysvsem.so|g' \
985 %{_sysconfdir}/httpd/php.ini
987 if [ -f /var/lock/subsys/httpd ]; then
988 /etc/rc.d/init.d/httpd restart 1>&2
993 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
994 echo "activating module 'sysvshm.so' in /etc/httpd/php.ini" 1>&2
995 perl -pi -e 's|^;extension=sysvshm.so|extension=sysvshm.so|g' \
996 %{_sysconfdir}/httpd/php.ini
998 if [ -f /var/lock/subsys/httpd ]; then
999 /etc/rc.d/init.d/httpd restart 1>&2
1003 if [ "$1" = "0" ]; then
1004 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1005 echo "deactivating module 'sysvshm.so' in /etc/httpd/php.ini" 1>&2
1006 perl -pi -e 's|^extension=sysvshm.so|;extension=sysvshm.so|g' \
1007 %{_sysconfdir}/httpd/php.ini
1009 if [ -f /var/lock/subsys/httpd ]; then
1010 /etc/rc.d/init.d/httpd restart 1>&2
1015 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1016 echo "activating module 'yp.so' in /etc/httpd/php.ini" 1>&2
1017 perl -pi -e 's|^;extension=yp.so|extension=yp.so|g' \
1018 %{_sysconfdir}/httpd/php.ini
1020 if [ -f /var/lock/subsys/httpd ]; then
1021 /etc/rc.d/init.d/httpd restart 1>&2
1025 if [ "$1" = "0" ]; then
1026 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1027 echo "deactivating module 'yp.so' in /etc/httpd/php.ini" 1>&2
1028 perl -pi -e 's|^extension=yp.so|;extension=yp.so|g' \
1029 %{_sysconfdir}/httpd/php.ini
1031 if [ -f /var/lock/subsys/httpd ]; then
1032 /etc/rc.d/init.d/httpd restart 1>&2
1037 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1038 echo "activating module 'ftp.so' in /etc/httpd/php.ini" 1>&2
1039 perl -pi -e 's|^;extension=ftp.so|extension=ftp.so|g' \
1040 %{_sysconfdir}/httpd/php.ini
1042 if [ -f /var/lock/subsys/httpd ]; then
1043 /etc/rc.d/init.d/httpd restart 1>&2
1047 if [ "$1" = "0" ]; then
1048 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1049 echo "deactivating module 'ftp.so' in /etc/httpd/php.ini" 1>&2
1050 perl -pi -e 's|^extension=ftp.so|;extension=ftp.so|g' \
1051 %{_sysconfdir}/httpd/php.ini
1053 if [ -f /var/lock/subsys/httpd ]; then
1054 /etc/rc.d/init.d/httpd restart 1>&2
1059 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1060 echo "activating module 'zlib.so' in /etc/httpd/php.ini" 1>&2
1061 perl -pi -e 's|^;extension=zlib.so|extension=zlib.so|g' \
1062 %{_sysconfdir}/httpd/php.ini
1064 if [ -f /var/lock/subsys/httpd ]; then
1065 /etc/rc.d/init.d/httpd restart 1>&2
1069 if [ "$1" = "0" ]; then
1070 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1071 echo "deactivating module 'zlib.so' in /etc/httpd/php.ini" 1>&2
1072 perl -pi -e 's|^extension=zlib.so|;extension=zlib.so|g' \
1073 %{_sysconfdir}/httpd/php.ini
1075 if [ -f /var/lock/subsys/httpd ]; then
1076 /etc/rc.d/init.d/httpd restart 1>&2
1081 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1082 echo "activating module 'bcmath.so' in /etc/httpd/php.ini" 1>&2
1083 perl -pi -e 's|^;extension=bcmath.so|extension=bcmath.so|g' \
1084 %{_sysconfdir}/httpd/php.ini
1086 if [ -f /var/lock/subsys/httpd ]; then
1087 /etc/rc.d/init.d/httpd restart 1>&2
1091 if [ "$1" = "0" ]; then
1092 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1093 echo "deactivating module 'bcmath.so' in /etc/httpd/php.ini" 1>&2
1094 perl -pi -e 's|^extension=bcmath.so|;extension=bcmath.so|g' \
1095 %{_sysconfdir}/httpd/php.ini
1097 if [ -f /var/lock/subsys/httpd ]; then
1098 /etc/rc.d/init.d/httpd restart 1>&2
1103 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1104 echo "activating module 'exif.so' in /etc/httpd/php.ini" 1>&2
1105 perl -pi -e 's|^;extension=exif.so|extension=exif.so|g' \
1106 %{_sysconfdir}/httpd/php.ini
1108 if [ -f /var/lock/subsys/httpd ]; then
1109 /etc/rc.d/init.d/httpd restart 1>&2
1113 if [ "$1" = "0" ]; then
1114 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1115 echo "deactivating module 'exif.so' in /etc/httpd/php.ini" 1>&2
1116 perl -pi -e 's|^extension=exif.so|;extension=exif.so|g' \
1117 %{_sysconfdir}/httpd/php.ini
1119 if [ -f /var/lock/subsys/httpd ]; then
1120 /etc/rc.d/init.d/httpd restart 1>&2
1125 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1126 echo "activating module 'recode.so' in /etc/httpd/php.ini" 1>&2
1127 perl -pi -e 's|^;extension=recode.so|extension=recode.so|g' \
1128 %{_sysconfdir}/httpd/php.ini
1130 if [ -f /var/lock/subsys/httpd ]; then
1131 /etc/rc.d/init.d/httpd restart 1>&2
1135 if [ "$1" = "0" ]; then
1136 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1137 echo "deactivating module 'recode.so' in /etc/httpd/php.ini" 1>&2
1138 perl -pi -e 's|^extension=recode.so|;extension=recode.so|g' \
1139 %{_sysconfdir}/httpd/php.ini
1141 if [ -f /var/lock/subsys/httpd ]; then
1142 /etc/rc.d/init.d/httpd restart 1>&2
1147 #if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1148 # echo "activating module 'session.so' in /etc/httpd/php.ini" 1>&2
1149 # perl -pi -e 's|^;extension=session.so|extension=session.so|g' \
1150 # %{_sysconfdir}/httpd/php.ini
1152 #if [ -f /var/lock/subsys/httpd ]; then
1153 # /etc/rc.d/init.d/httpd restart 1>&2
1157 #if [ "$1" = "0" ]; then
1158 #if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1159 # echo "deactivating module 'session.so' in /etc/httpd/php.ini" 1>&2
1160 # perl -pi -e 's|^extension=session.so|;extension=session.so|g' \
1161 # %{_sysconfdir}/httpd/php.ini
1163 #if [ -f /var/lock/subsys/httpd ]; then
1164 # /etc/rc.d/init.d/httpd restart 1>&2
1169 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1170 echo "activating module 'gettext.so' in /etc/httpd/php.ini" 1>&2
1171 perl -pi -e 's|^;extension=gettext.so|extension=gettext.so|g' \
1172 %{_sysconfdir}/httpd/php.ini
1174 if [ -f /var/lock/subsys/httpd ]; then
1175 /etc/rc.d/init.d/httpd restart 1>&2
1179 if [ "$1" = "0" ]; then
1180 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1181 echo "deactivating module 'gettext.so' in /etc/httpd/php.ini" 1>&2
1182 perl -pi -e 's|^extension=gettext.so|;extension=gettext.so|g' \
1183 %{_sysconfdir}/httpd/php.ini
1185 if [ -f /var/lock/subsys/httpd ]; then
1186 /etc/rc.d/init.d/httpd restart 1>&2
1191 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1192 echo "activating module 'snmp.so' in /etc/httpd/php.ini" 1>&2
1193 perl -pi -e 's|^;extension=snmp.so|extension=snmp.so|g' \
1194 %{_sysconfdir}/httpd/php.ini
1196 if [ -f /var/lock/subsys/httpd ]; then
1197 /etc/rc.d/init.d/httpd restart 1>&2
1201 if [ "$1" = "0" ]; then
1202 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1203 echo "deactivating module 'snmp.so' in /etc/httpd/php.ini" 1>&2
1204 perl -pi -e 's|^extension=snmp.so|;extension=snmp.so|g' \
1205 %{_sysconfdir}/httpd/php.ini
1207 if [ -f /var/lock/subsys/httpd ]; then
1208 /etc/rc.d/init.d/httpd restart 1>&2
1213 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1214 echo "activating module 'imap.so' in /etc/httpd/php.ini" 1>&2
1215 perl -pi -e 's|^;extension=imap.so|extension=imap.so|g' \
1216 %{_sysconfdir}/httpd/php.ini
1218 if [ -f /var/lock/subsys/httpd ]; then
1219 /etc/rc.d/init.d/httpd restart 1>&2
1223 if [ "$1" = "0" ]; then
1224 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1225 echo "deactivating module 'imap.so' in /etc/httpd/php.ini" 1>&2
1226 perl -pi -e 's|^extension=imap.so|;extension=imap.so|g' \
1227 %{_sysconfdir}/httpd/php.ini
1229 if [ -f /var/lock/subsys/httpd ]; then
1230 /etc/rc.d/init.d/httpd restart 1>&2
1235 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1236 echo "activating module 'ldap.so' in /etc/httpd/php.ini" 1>&2
1237 perl -pi -e 's|^;extension=ldap.so|extension=ldap.so|g' \
1238 %{_sysconfdir}/httpd/php.ini
1240 if [ -f /var/lock/subsys/httpd ]; then
1241 /etc/rc.d/init.d/httpd restart 1>&2
1245 if [ "$1" = "0" ]; then
1246 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1247 echo "deactivating module 'ldap.so' in /etc/httpd/php.ini" 1>&2
1248 perl -pi -e 's|^extension=ldap.so|;extension=ldap.so|g' \
1249 %{_sysconfdir}/httpd/php.ini
1251 if [ -f /var/lock/subsys/httpd ]; then
1252 /etc/rc.d/init.d/httpd restart 1>&2
1257 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1258 echo "activating module 'sockets.so' in /etc/httpd/php.ini" 1>&2
1259 perl -pi -e 's|^;extension=sockets.so|extension=sockets.so|g' \
1260 %{_sysconfdir}/httpd/php.ini
1262 if [ -f /var/lock/subsys/httpd ]; then
1263 /etc/rc.d/init.d/httpd restart 1>&2
1267 if [ "$1" = "0" ]; then
1268 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1269 echo "deactivating module 'sockets.so' in /etc/httpd/php.ini" 1>&2
1270 perl -pi -e 's|^extension=sockets.so|;extension=sockets.so|g' \
1271 %{_sysconfdir}/httpd/php.ini
1273 if [ -f /var/lock/subsys/httpd ]; then
1274 /etc/rc.d/init.d/httpd restart 1>&2
1279 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1280 echo "activating module 'mcrypt.so' in /etc/httpd/php.ini" 1>&2
1281 perl -pi -e 's|^;extension=mcrypt.so|extension=mcrypt.so|g' \
1282 %{_sysconfdir}/httpd/php.ini
1284 if [ -f /var/lock/subsys/httpd ]; then
1285 /etc/rc.d/init.d/httpd restart 1>&2
1289 if [ "$1" = "0" ]; then
1290 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1291 echo "deactivating module 'mcrypt.so' in /etc/httpd/php.ini" 1>&2
1292 perl -pi -e 's|^extension=mcrypt.so|;extension=mcrypt.so|g' \
1293 %{_sysconfdir}/httpd/php.ini
1295 if [ -f /var/lock/subsys/httpd ]; then
1296 /etc/rc.d/init.d/httpd restart 1>&2
1301 rm -rf $RPM_BUILD_ROOT
1304 %defattr(644,root,root,755)
1305 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1306 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1307 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1309 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/*
1310 %dir %{_pkglibdir}/php
1312 #%attr(755,root,root) %{_libdir}/apache/php/*.so
1314 /home/httpd/html/icons/*
1316 %attr(755,root,root) %{_pkglibdir}/libphp4.so
1319 %defattr(644,root,root,755)
1320 %attr(755,root,root) %{_pkglibdir}/php/mysql.so
1323 %defattr(644,root,root,755)
1324 %attr(755,root,root) %{_pkglibdir}/php/pgsql.so
1326 %{?oracle:%files oracle}
1327 %{?oracle:%defattr(644,root,root,755)}
1328 %{?oracle:%attr(755,root,root) %{_pkglibdir}/php/oracle.so}
1330 %{?oci8:%files oci8}
1331 %{?oci8:%defattr(644,root,root,755)}
1332 %{?oci8:%attr(755,root,root) %{_pkglibdir}/php/oci8.so}
1335 %defattr(644,root,root,755)
1336 %attr(755,root,root) %{_pkglibdir}/php/gd.so
1339 %defattr(644,root,root,755)
1340 %attr(755,root,root) %{_pkglibdir}/php/xml.so
1343 %defattr(644,root,root,755)
1344 %attr(755,root,root) %{_pkglibdir}/php/dba.so
1347 %defattr(644,root,root,755)
1348 %attr(755,root,root) %{_pkglibdir}/php/dbase.so
1351 %defattr(644,root,root,755)
1352 %attr(755,root,root) %{_pkglibdir}/php/filepro.so
1355 %defattr(644,root,root,755)
1356 %attr(755,root,root) %{_pkglibdir}/php/pcre.so
1359 %defattr(644,root,root,755)
1360 %attr(755,root,root) %{_pkglibdir}/php/posix.so
1363 %defattr(644,root,root,755)
1364 %attr(755,root,root) %{_pkglibdir}/php/sysvsem.so
1367 %defattr(644,root,root,755)
1368 %attr(755,root,root) %{_pkglibdir}/php/sysvshm.so
1371 %defattr(644,root,root,755)
1372 %attr(755,root,root) %{_pkglibdir}/php/yp.so
1375 %defattr(644,root,root,755)
1376 %attr(755,root,root) %{_pkglibdir}/php/calendar.so
1379 %defattr(644,root,root,755)
1380 %attr(755,root,root) %{_pkglibdir}/php/bcmath.so
1383 %defattr(644,root,root,755)
1384 %attr(755,root,root) %{_pkglibdir}/php/ftp.so
1387 %defattr(644,root,root,755)
1388 %attr(755,root,root) %{_pkglibdir}/php/zlib.so
1391 %defattr(644,root,root,755)
1392 %attr(755,root,root) %{_pkglibdir}/php/exif.so
1395 %defattr(644,root,root,755)
1396 %attr(755,root,root) %{_pkglibdir}/php/recode.so
1399 #%defattr(644,root,root,755)
1400 #%attr(755,root,root) %{_pkglibdir}/php/session.so
1403 %defattr(644,root,root,755)
1404 %attr(755,root,root) %{_pkglibdir}/php/gettext.so
1407 %defattr(644,root,root,755)
1408 %attr(755,root,root) %{_pkglibdir}/php/imap.so
1411 %defattr(644,root,root,755)
1412 %attr(755,root,root) %{_pkglibdir}/php/snmp.so
1415 %defattr(644,root,root,755)
1416 %attr(755,root,root) %{_pkglibdir}/php/libphp_java.so
1419 %defattr(644,root,root,755)
1420 %attr(755,root,root) %{_pkglibdir}/php/ldap.so
1423 %defattr(644,root,root,755)
1424 %attr(755,root,root) %{_pkglibdir}/php/sockets.so
1427 %defattr(644,root,root,755)
1428 %attr(755,root,root) %{_pkglibdir}/php/mcrypt.so
1431 %defattr(644,root,root,755)
1432 /home/httpd/html/docs/php4-doc