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.
10 License: The PHP license (see "LICENSE" file included in distribution)
11 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.gz
15 Source4: http://www.php.net/distributions/manual.tar.gz
16 Source5: http://www.php.net/extra/number4.tar.gz
17 Patch0: %{name}-imap.patch
18 Patch1: %{name}-mysql-socket.patch
19 Patch2: %{name}-mail.patch
20 Patch3: %{name}-ldap.patch
21 Patch4: %{name}-bcmath.patch
22 Patch5: %{name}-no_libnsl.patch
24 URL: http://www.php.net/
25 BuildRequires: apache(EAPI)-devel
29 #BuildRequires: db-devel >= 3.0.55
30 BuildRequires: freetype-devel
31 BuildRequires: gd-devel >= 1.8.3
32 BuildRequires: gdbm-devel
33 BuildRequires: imap-devel >= 4.7b-1
34 # I think jdk is better for java
36 BuildRequires: kaffe-devel
37 BuildRequires: libjpeg-devel
38 BuildRequires: libpng >= 1.0.8
39 BuildRequires: libtiff-devel
40 BuildRequires: mm-devel >= 1.1.3
41 BuildRequires: openldap-devel
42 BuildRequires: pam-devel
43 BuildRequires: pdflib-devel >= 3.0
44 #BuildRequires: libxml-devel >= 2.0.0
45 BuildRequires: postgresql-devel
46 BuildRequires: recode-devel >= 3.5
47 BuildRequires: t1lib-devel
48 # BuildRequires: unixODBC-devel
49 BuildRequires: zlib-devel >= 1.0.9
50 BuildRequires: ucd-snmp-devel >= 4.1
51 BuildRequires: libmcrypt-devel >= 2.4.4
52 BuildRequires: libltdl-devel
53 Requires: apache(EAPI) >= 1.3.9
54 Prereq: /usr/sbin/apxs
55 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 %define _pkglibdir %{_libdir}/apache
60 PHP is an HTML-embedded scripting language. PHP attempts to make it
61 easy for developers to write dynamically generated web pages. PHP also
62 offers built-in database integration for several commercial and
63 non-commercial database management systems, so writing a
64 database-enabled web page with PHP is fairly simple. The most common
65 use of PHP coding is probably as a replacement for CGI scripts. The
66 mod_php module enables the Apache web server to understand and process
67 the embedded PHP language in web pages. This package contains PHP
68 version %{version}. If you use applications which specifically rely on
69 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
70 module contained in the phpfi package. If you're just starting with
71 PHP, you should install this package. You'll also need to install the
75 PHP est un langage de script embarque dans le HTM. PHP essaye de
76 rendre simple aux developpeurs d'ecrire des pages web generees
77 dynamiquement. PHP incorpore egalement une integration avec plusieurs
78 systemes de gestion de bases de donnees commerciaux et
79 non-connerciaux, qui rent facile la creation de pages web liees avec
80 des bases de donnees. L'utilisation la plus commune de PHP est
81 probablement en remplacement de scripts CGI. Le module mod_php permet
82 au serveur web apache de comprendre et de traiter le langage PHP
83 integre dans des pages web. Ce package contient PHP version
84 %{version}. Si vous utilisez des applications qui utilisent
85 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
86 dans le package mod_php. Si vous debutez avec PHP, vous devriez
87 installer ce package. Vous aurez egalement besoin d'installer le
91 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
92 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
93 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
94 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
95 zosta³a z jêzyków: C, Java i Perl.
98 Summary: MySQL database module for PHP4
99 Summary(pl): Modu³ bazy danych MySQL dla PHP4
101 Group(fr): Librairies
102 Group(pl): Biblioteki
103 Requires: %{name} = %{version}
106 This is a dynamic shared object (DSO) for Apache that will add MySQL
107 database support to PHP4. If you need back-end support for MySQL, you
108 should install this package in addition to the main %{name} package.
110 %description mysql -l pl
111 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych MySQL.
115 Summary: PostgreSQL database module for PHP4
116 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP4
118 Group(fr): Librairies
119 Group(pl): Biblioteki
120 Requires: %{name} = %{version}
123 This is a dynamic shared object (DSO) for Apache that will add
124 PostgreSQL database support to PHP4. If you need back-end support for
125 PostgreSQL, you should install this package in addition to the main
128 %description pgsql -l pl
129 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
132 Summary: Oracle 8 database module for PHP4
133 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP4
135 Group(fr): Librairies
136 Group(pl): Biblioteki
137 Requires: %{name} = %{version}
141 This is a dynamic shared object (DSO) for Apache that will add
142 Oracle 8 database support to PHP4. If you need back-end support for
143 Oracle 8, you should install this package in addition to the main
146 %description oci8 -l pl
147 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
151 Summary: Oracle 7 database module for PHP4
152 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP4
154 Group(fr): Librairies
155 Group(pl): Biblioteki
156 Requires: %{name} = %{version}
160 This is a dynamic shared object (DSO) for Apache that will add
161 Oracle 7 database support to PHP4. If you need back-end support for
162 Oracle 7, you should install this package in addition to the main
165 %description oracle -l pl
166 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
170 Summary: GD extension module for PHP4
171 Summary: Modu³ GD dla PHP4
173 Group(fr): Librairies
174 Group(pl): Biblioteki
175 Requires: %{name} = %{version}
178 This is a dynamic shared object (DSO) for Apache that will add GD
179 support to PHP4. You should install this package in addition to the
180 main %{name} package if you want to create and manipulate images with
183 %description gd -l pl
186 Summary: Java extension module for PHP4
187 Summary(pl): Modu³ Javy dla PHP4
189 Group(fr): Librairies
190 Group(pl): Biblioteki
191 Requires: %{name} = %{version}
194 This is a dynamic shared object (DSO) for Apache that will add JAVA
195 support to PHP4. This extension provides a simple and effective means
196 for creating and invoking methods on Java objects from PHP.
198 %description java -l pl
201 Summary: XML extension module for PHP4
202 Summary(pl): Modu³ XML dla PHP4
204 Group(fr): Librairies
205 Group(pl): Biblioteki
206 Requires: %{name} = %{version}
209 This is a dynamic shared object (DSO) for Apache that will add XML
210 support to PHP4. This extension lets you create XML parsers and then
211 define handlers for different XML events. If you want to be able to
212 parse XML documents you should install this package in addition to the
213 main %{name} package.
215 #%description xml -l pl
218 Summary: DBA extension module for PHP4
219 Summary(pl): Modu³ DBA dla PHP4
221 Group(fr): Librairies
222 Group(pl): Biblioteki
223 Requires: %{name} = %{version}
226 This is a dynamic shared object (DSO) for Apache that will add
227 flat-file databases (DBA) support to PHP4.
229 #%description dba -l pl
232 Summary: Calendar extension module for PHP4
233 Summary(pl): Modu³ funkcji kalendarza dla PHP4
235 Group(fr): Librairies
236 Group(pl): Biblioteki
237 Requires: %{name} = %{version}
239 %description calendar
240 This is a dynamic shared object (DSO) for Apache that will add
241 calendar support to PHP4.
243 #%description calendar -l pl
246 Summary: DBase extension module for PHP4
247 Summary(pl): Modu³ DBase dla PHP4
249 Group(fr): Librairies
250 Group(pl): Biblioteki
251 Requires: %{name} = %{version}
254 This is a dynamic shared object (DSO) for Apache that will add DBase
257 #%description dbase -l pl
260 Summary: FilePro extension module for PHP4
261 Summary(pl): Modu³ FilePro dla PHP4
263 Group(fr): Librairies
264 Group(pl): Biblioteki
265 Requires: %{name} = %{version}
268 This is a dynamic shared object (DSO) for Apache that will add FilePro
271 #%description filepro -l pl
274 Summary: POSIX extension module for PHP4
275 Summary(pl): Modu³ POSIX dla PHP4
277 Group(fr): Librairies
278 Group(pl): Biblioteki
279 Requires: %{name} = %{version}
282 This is a dynamic shared object (DSO) for Apache that will add POSIX
283 functions support to PHP4.
285 #%description posix -l pl
288 Summary: PCRE extension module for PHP4
289 Summary(pl): Modu³ PCRE dla PHP4
291 Group(fr): Librairies
292 Group(pl): Biblioteki
293 Requires: %{name} = %{version}
296 This is a dynamic shared object (DSO) for Apache that will add Perl
297 Compatible Regular Expression support to PHP4.
299 #%description pcre -l pl
302 Summary: SysV sem extension module for PHP4
303 Summary(pl): Modu³ SysV sem dla PHP4
305 Group(fr): Librairies
306 Group(pl): Biblioteki
307 Requires: %{name} = %{version}
310 This is a dynamic shared object (DSO) for Apache that will add SysV
311 semafores support to PHP4.
313 #%description sysvsem -l pl
316 Summary: SysV shm extension module for PHP4
317 Summary(pl): Modu³ SysV shm 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 Shared Memory support to PHP4.
327 #%description sysvshm -l pl
330 Summary: NIS (yp) extension module for PHP4
331 Summary(pl): Modu³ NIS (yp) dla PHP4
333 Group(fr): Librairies
334 Group(pl): Biblioteki
335 Requires: %{name} = %{version}
338 This is a dynamic shared object (DSO) for Apache that will add NIS
339 (Yellow Pages) support to PHP4.
341 #%description yp -l pl
344 Summary: bcmath extension module for PHP4
345 Summary(pl): Modu³ bcmath dla PHP4
347 Group(fr): Librairies
348 Group(pl): Biblioteki
349 Requires: %{name} = %{version}
352 This is a dynamic shared object (DSO) for Apache that will add bc
353 style precision math functions support to PHP4.
355 #%description bcmath -l pl
358 Summary: FTP extension module for PHP4
359 Summary(pl): Modu³ FTP dla PHP4
361 Group(fr): Librairies
362 Group(pl): Biblioteki
363 Requires: %{name} = %{version}
366 This is a dynamic shared object (DSO) for Apache that will add FTP
369 #%description ftp -l pl
372 Summary: Zlib extension module for PHP4
373 Summary(pl): Modu³ zlib dla PHP4
375 Group(fr): Librairies
376 Group(pl): Biblioteki
377 Requires: %{name} = %{version}
380 This is a dynamic shared object (DSO) for Apache that will add
381 commpresion (zlib) support to PHP4.
383 #%description zlib -l pl
386 Summary: exifextension module for PHP4
387 Summary(pl): Modu³ exif dla PHP4
389 Group(fr): Librairies
390 Group(pl): Biblioteki
391 Requires: %{name} = %{version}
394 This is a dynamic shared object (DSO) for Apache that will add exif
397 #%description exif -l pl
400 Summary: recodeextension module for PHP4
401 Summary(pl): Modu³ recode dla PHP4
403 Group(fr): Librairies
404 Group(pl): Biblioteki
405 Requires: %{name} = %{version}
408 This is a dynamic shared object (DSO) for Apache that will add recode
411 #%description recode -l pl
414 Summary: sessionextension module for PHP4
415 Summary(pl): Modu³ session dla PHP4
417 Group(fr): Librairies
418 Group(pl): Biblioteki
419 Requires: %{name} = %{version}
422 This is a dynamic shared object (DSO) for Apache that will add session
425 #%description session -l pl
428 Summary: gettextextension module for PHP4
429 Summary(pl): Modu³ gettext dla PHP4
431 Group(fr): Librairies
432 Group(pl): Biblioteki
433 Requires: %{name} = %{version}
436 This is a dynamic shared object (DSO) for Apache that will add gettext
439 #%description gettext -l pl
443 Summary: snmpextension module for PHP4
444 Summary(pl): Modu³ snmp dla PHP4
446 Group(fr): Librairies
447 Group(pl): Biblioteki
448 Requires: %{name} = %{version}
451 This is a dynamic shared object (DSO) for Apache that will add snmp
454 #%description snmp -l pl
457 Summary: imapextension module for PHP4
458 Summary(pl): Modu³ imap dla PHP4
460 Group(fr): Librairies
461 Group(pl): Biblioteki
462 Requires: %{name} = %{version}
465 This is a dynamic shared object (DSO) for Apache that will add imap
468 #%description imap -l pl
471 Summary: LDAP extension module for PHP4
472 Summary(pl): Modu³ LDAP dla PHP4
474 Group(fr): Librairies
475 Group(pl): Biblioteki
476 Requires: %{name} = %{version}
479 This is a dynamic shared object (DSO) for Apache that will add LDAP
482 #%description ldap -l pl
485 Summary: sockets extension module for PHP4
486 Summary(pl): Modu³ socket dla PHP4
488 Group(fr): Librairies
489 Group(pl): Biblioteki
490 Requires: %{name} = %{version}
493 This is a dynamic shared object (DSO) for Apache that will add sockets
496 #%description sockets -l pl
499 Summary: mcrypt extension module for PHP4
500 Summary(pl): Modu³ mcrypt dla PHP4
502 Group(fr): Librairies
503 Group(pl): Biblioteki
504 Requires: %{name} = %{version}
507 This is a dynamic shared object (DSO) for Apache that will add mcrypt
510 #%description mcrypt -l pl
513 Summary: Online manual for PHP4
514 Summary(pl): Dokumentacja dla PHP4
515 Group: Networking/Daemons
516 Group(pl): Sieciowe/Serwery
519 Comprehensive documentation for PHP4, viewable through your web
522 %description doc -l pl
523 Dokumentacja dla pakietu PHP4. Mo¿na j± równie¿ ogl±daæ poprzez serwer
536 LDFLAGS="-s"; export LDFLAGS
537 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
540 --with-apxs=%{_sbindir}/apxs \
541 --with-config-file-path=%{_sysconfdir}/httpd \
542 --with-exec-dir=%{_bindir} \
544 --enable-magic-quotes \
546 --enable-track-vars \
549 --enable-sysvsem=shared \
550 --enable-sysvshm=shared \
552 --enable-exif=shared \
553 --with-regex=system \
554 --with-gettext=shared \
556 --with-mysql=shared \
557 --with-mysql-sock=/var/lib/mysql/mysql.sock \
559 --with-dbase=shared \
560 --with-filepro=shared \
561 --enable-ftp=shared \
563 --with-pdflib=shared \
564 --with-cpdflib=shared \
566 --with-pgsql=shared,/usr \
568 --enable-bcmath=shared \
569 --enable-calendar=shared \
571 --with-pcre-regex=shared \
572 --enable-posix=shared \
575 --with-recode=shared \
576 --enable-ucd-snmp-hack \
577 --enable-dba=shared \
584 --enable-xml=shared \
586 --with-mcrypt=shared \
587 --enable-sockets=shared \
589 %{?oracle:--with-oracle=shared} %{?oci8:--with-oci8=shared}
593 # TODO --with-pspell=/usr,shared (brak pspella)
594 # --with-unixODBC=shared (nie jest shared)
595 # --with-mhash=shared (brak libmhash)
596 # --with-curl=shared (brak libcurl)
602 #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
603 # Solution: make pdf and cpdf shared
608 # This option get trouble with imap
609 # --enable-versioning \
611 # To old/new libmcrypt ?
612 # --with-mcrypt=shared \
613 # --with-dom=%{_prefix}/X11R6 \
618 rm -rf $RPM_BUILD_ROOT
619 install -d $RPM_BUILD_ROOT{%{_pkglibdir}/php,%{_sysconfdir}/httpd} \
620 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc}
622 install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
623 install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
625 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/php.ini
626 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
628 cd $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
630 ln -s manual.html index.html
633 strip --strip-unneeded \
634 $RPM_BUILD_ROOT%{_pkglibdir}/*.so \
635 $RPM_BUILD_ROOT%{_pkglibdir}/php/*.so
638 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
639 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
640 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
643 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
644 perl -pi -e 's|^#AddType application/x-httpd-php .php|AddType application/x-httpd-php .php|'
645 if [ -f /var/lock/subsys/httpd ]; then
646 /etc/rc.d/init.d/httpd restart 1>&2
650 perl -pi -e 's|^AddType application/x-httpd-php .php|#AddType application/x-httpd-php .php|'
651 if [ -f /var/lock/subsys/httpd ]; then
652 /etc/rc.d/init.d/httpd restart 1>&2
656 if [ "$1" = "0" ]; then
657 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
658 if [ -f /var/lock/subsys/httpd ]; then
659 /etc/rc.d/init.d/httpd restart 1>&2
664 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
665 echo "activating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
666 perl -pi -e 's|^;extension=mysql.so|extension=mysql.so|g' \
667 %{_sysconfdir}/httpd/php.ini
669 if [ -f /var/lock/subsys/httpd ]; then
670 /etc/rc.d/init.d/httpd restart 1>&2
674 if [ "$1" = "0" ]; then
675 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
676 echo "deactivating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
677 perl -pi -e 's|^extension=mysql.so|;extension=mysql.so|g' \
678 %{_sysconfdir}/httpd/php.ini
680 if [ -f /var/lock/subsys/httpd ]; then
681 /etc/rc.d/init.d/httpd restart 1>&2
686 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
687 echo "activating module 'pgsql.so' in /etc/httpd/php.ini" 1>&2
688 perl -pi -e 's|^;extension=pgsql.so|extension=pgsql.so|g' \
689 %{_sysconfdir}/httpd/php.ini
691 if [ -f /var/lock/subsys/httpd ]; then
692 /etc/rc.d/init.d/httpd restart 1>&2
696 if [ "$1" = "0" ]; then
697 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
698 echo "deactivating module 'pgsql.so' in /etc/httpd/php.ini" 1>&2
699 perl -pi -e 's|^extension=pgsql.so|;extension=pgsql.so|g' \
700 %{_sysconfdir}/httpd/php.ini
702 if [ -f /var/lock/subsys/httpd ]; then
703 /etc/rc.d/init.d/httpd restart 1>&2
707 %{?oracle:%post oracle}
708 %{?oracle:if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
709 %{?oracle: echo "activating module 'oracle.so' in /etc/httpd/php.ini" 1>&2}
710 %{?oracle: perl -pi -e 's|^;extension=oracle.so|extension=oracle.so|g' %{_sysconfdir}/httpd/php.ini}
712 %{?oracle:if [ -f /var/lock/subsys/httpd ]; then}
713 %{?oracle: /etc/rc.d/init.d/httpd restart 1>&2}
716 %{?oracle:%preun oracle}
717 %{?oracle:if [ "$1" = "0" ]; then}
718 %{?oracle: if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
719 %{?oracle: echo "deactivating module 'oracle.so' in /etc/httpd/php.ini" 1>&2}
720 %{?oracle: perl -pi -e 's|^extension=oracle.so|;extension=oracle.so|g' {_sysconfdir}/httpd/php.ini}
722 %{?oracle: if [ -f /var/lock/subsys/httpd ]; then}
723 %{?oracle: /etc/rc.d/init.d/httpd restart 1>&2}
728 %{?oci8:if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
729 %{?oci8: echo "activating module 'oci8.so' in /etc/httpd/php.ini" 1>&2}
730 %{?oci8: perl -pi -e 's|^;extension=oci8.so|extension=oci8.so|g' %{_sysconfdir}/httpd/php.ini}
732 %{?oci8:if [ -f /var/lock/subsys/httpd ]; then}
733 %{?oci8: /etc/rc.d/init.d/httpd restart 1>&2}
737 %{?oci8:if [ "$1" = "0" ]; then}
738 %{?oci8: if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
739 %{?oci8: echo "deactivating module 'oci8.so' in /etc/httpd/php.ini" 1>&2}
740 %{?oci8: perl -pi -e 's|^extension=oci8.so|;extension=oci8.so|g' %{_sysconfdir}/httpd/php.ini}
742 %{?oci8: if [ -f /var/lock/subsys/httpd ]; then}
743 %{?oci8: /etc/rc.d/init.d/httpd restart 1>&2}
748 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
749 echo "activating module 'gd.so' in /etc/httpd/php.ini" 1>&2
750 perl -pi -e 's|^;extension=gd.so|extension=gd.so|g' \
751 %{_sysconfdir}/httpd/php.ini
753 if [ -f /var/lock/subsys/httpd ]; then
754 /etc/rc.d/init.d/httpd restart 1>&2
758 if [ "$1" = "0" ]; then
759 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
760 echo "deactivating module 'gd.so' in /etc/httpd/php.ini" 1>&2
761 perl -pi -e 's|^extension=gd.so|;extension=gd.so|g' \
762 %{_sysconfdir}/httpd/php.ini
764 if [ -f /var/lock/subsys/httpd ]; then
765 /etc/rc.d/init.d/httpd restart 1>&2
770 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
771 echo "activating module 'xml.so' in /etc/httpd/php.ini" 1>&2
772 perl -pi -e 's|^;extension=xml.so|extension=xml.so|g' \
773 %{_sysconfdir}/httpd/php.ini
775 if [ -f /var/lock/subsys/httpd ]; then
776 /etc/rc.d/init.d/httpd restart 1>&2
780 if [ "$1" = "0" ]; then
781 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
782 echo "deactivating module 'xml.so' in /etc/httpd/php.ini" 1>&2
783 perl -pi -e 's|^extension=xml.so|;extension=xml.so|g' \
784 %{_sysconfdir}/httpd/php.ini
786 if [ -f /var/lock/subsys/httpd ]; then
787 /etc/rc.d/init.d/httpd restart 1>&2
792 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
793 echo "activating module 'dba.so' in /etc/httpd/php.ini" 1>&2
794 perl -pi -e 's|^;extension=dba.so|extension=dba.so|g' \
795 %{_sysconfdir}/httpd/php.ini
797 if [ -f /var/lock/subsys/httpd ]; then
798 /etc/rc.d/init.d/httpd restart 1>&2
802 if [ "$1" = "0" ]; then
803 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
804 echo "deactivating module 'dba.so' in /etc/httpd/php.ini" 1>&2
805 perl -pi -e 's|^extension=dba.so|;extension=dba.so|g' \
806 %{_sysconfdir}/httpd/php.ini
808 if [ -f /var/lock/subsys/httpd ]; then
809 /etc/rc.d/init.d/httpd restart 1>&2
814 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
815 echo "activating module 'calendar.so' in /etc/httpd/php.ini" 1>&2
816 perl -pi -e 's|^;extension=calendar.so|extension=calendar.so|g' \
817 %{_sysconfdir}/httpd/php.ini
819 if [ -f /var/lock/subsys/httpd ]; then
820 /etc/rc.d/init.d/httpd restart 1>&2
824 if [ "$1" = "0" ]; then
825 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
826 echo "deactivating module 'calendar.so' in /etc/httpd/php.ini" 1>&2
827 perl -pi -e 's|^extension=calendar.so|;extension=calendar.so|g' \
828 %{_sysconfdir}/httpd/php.ini
830 if [ -f /var/lock/subsys/httpd ]; then
831 /etc/rc.d/init.d/httpd restart 1>&2
836 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
837 echo "activating module 'dbase.so' in /etc/httpd/php.ini" 1>&2
838 perl -pi -e 's|^;extension=dbase.so|extension=dbase.so|g' \
839 %{_sysconfdir}/httpd/php.ini
841 if [ -f /var/lock/subsys/httpd ]; then
842 /etc/rc.d/init.d/httpd restart 1>&2
846 if [ "$1" = "0" ]; then
847 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
848 echo "deactivating module 'dbase.so' in /etc/httpd/php.ini" 1>&2
849 perl -pi -e 's|^extension=dbase.so|;extension=dbase.so|g' \
850 %{_sysconfdir}/httpd/php.ini
852 if [ -f /var/lock/subsys/httpd ]; then
853 /etc/rc.d/init.d/httpd restart 1>&2
859 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
860 echo "activating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
861 perl -pi -e 's|^;extension=libphp_java.so|extension=libphp_java.so|g' \
862 %{_sysconfdir}/httpd/php.ini
864 if [ -f /var/lock/subsys/httpd ]; then
865 /etc/rc.d/init.d/httpd restart 1>&2
869 if [ "$1" = "0" ]; then
870 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
871 echo "deactivating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
872 perl -pi -e 's|^extension=libphp_java.so|;extension=libphp_java.so|g' \
873 %{_sysconfdir}/httpd/php.ini
875 if [ -f /var/lock/subsys/httpd ]; then
876 /etc/rc.d/init.d/httpd restart 1>&2
881 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
882 echo "activating module 'filepro.so' in /etc/httpd/php.ini" 1>&2
883 perl -pi -e 's|^;extension=filepro.so|extension=filepro.so|g' \
884 %{_sysconfdir}/httpd/php.ini
886 if [ -f /var/lock/subsys/httpd ]; then
887 /etc/rc.d/init.d/httpd restart 1>&2
891 if [ "$1" = "0" ]; then
892 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
893 echo "deactivating module 'filepro.so' in /etc/httpd/php.ini" 1>&2
894 perl -pi -e 's|^extension=filepro.so|;extension=filepro.so|g' \
895 %{_sysconfdir}/httpd/php.ini
897 if [ -f /var/lock/subsys/httpd ]; then
898 /etc/rc.d/init.d/httpd restart 1>&2
903 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
904 echo "activating module 'pcre.so' in /etc/httpd/php.ini" 1>&2
905 perl -pi -e 's|^;extension=pcre.so|extension=pcre.so|g' \
906 %{_sysconfdir}/httpd/php.ini
908 if [ -f /var/lock/subsys/httpd ]; then
909 /etc/rc.d/init.d/httpd restart 1>&2
913 if [ "$1" = "0" ]; then
914 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
915 echo "deactivating module 'pcre.so' in /etc/httpd/php.ini" 1>&2
916 perl -pi -e 's|^extension=pcre.so|;extension=pcre.so|g' \
917 %{_sysconfdir}/httpd/php.ini
919 if [ -f /var/lock/subsys/httpd ]; then
920 /etc/rc.d/init.d/httpd restart 1>&2
925 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
926 echo "activating module 'posix.so' in /etc/httpd/php.ini" 1>&2
927 perl -pi -e 's|^;extension=posix.so|extension=posix.so|g' \
928 %{_sysconfdir}/httpd/php.ini
930 if [ -f /var/lock/subsys/httpd ]; then
931 /etc/rc.d/init.d/httpd restart 1>&2
935 if [ "$1" = "0" ]; then
936 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
937 echo "deactivating module 'posix.so' in /etc/httpd/php.ini" 1>&2
938 perl -pi -e 's|^extension=posix.so|;extension=posix.so|g' \
939 %{_sysconfdir}/httpd/php.ini
941 if [ -f /var/lock/subsys/httpd ]; then
942 /etc/rc.d/init.d/httpd restart 1>&2
947 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
948 echo "activating module 'sysvsem.so' in /etc/httpd/php.ini" 1>&2
949 perl -pi -e 's|^;extension=sysvsem.so|extension=sysvsem.so|g' \
950 %{_sysconfdir}/httpd/php.ini
952 if [ -f /var/lock/subsys/httpd ]; then
953 /etc/rc.d/init.d/httpd restart 1>&2
957 if [ "$1" = "0" ]; then
958 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
959 echo "deactivating module 'sysvsem.so' in /etc/httpd/php.ini" 1>&2
960 perl -pi -e 's|^extension=sysvsem.so|;extension=sysvsem.so|g' \
961 %{_sysconfdir}/httpd/php.ini
963 if [ -f /var/lock/subsys/httpd ]; then
964 /etc/rc.d/init.d/httpd restart 1>&2
969 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
970 echo "activating module 'sysvshm.so' in /etc/httpd/php.ini" 1>&2
971 perl -pi -e 's|^;extension=sysvshm.so|extension=sysvshm.so|g' \
972 %{_sysconfdir}/httpd/php.ini
974 if [ -f /var/lock/subsys/httpd ]; then
975 /etc/rc.d/init.d/httpd restart 1>&2
979 if [ "$1" = "0" ]; then
980 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
981 echo "deactivating module 'sysvshm.so' in /etc/httpd/php.ini" 1>&2
982 perl -pi -e 's|^extension=sysvshm.so|;extension=sysvshm.so|g' \
983 %{_sysconfdir}/httpd/php.ini
985 if [ -f /var/lock/subsys/httpd ]; then
986 /etc/rc.d/init.d/httpd restart 1>&2
991 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
992 echo "activating module 'yp.so' in /etc/httpd/php.ini" 1>&2
993 perl -pi -e 's|^;extension=yp.so|extension=yp.so|g' \
994 %{_sysconfdir}/httpd/php.ini
996 if [ -f /var/lock/subsys/httpd ]; then
997 /etc/rc.d/init.d/httpd restart 1>&2
1001 if [ "$1" = "0" ]; then
1002 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1003 echo "deactivating module 'yp.so' in /etc/httpd/php.ini" 1>&2
1004 perl -pi -e 's|^extension=yp.so|;extension=yp.so|g' \
1005 %{_sysconfdir}/httpd/php.ini
1007 if [ -f /var/lock/subsys/httpd ]; then
1008 /etc/rc.d/init.d/httpd restart 1>&2
1013 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1014 echo "activating module 'ftp.so' in /etc/httpd/php.ini" 1>&2
1015 perl -pi -e 's|^;extension=ftp.so|extension=ftp.so|g' \
1016 %{_sysconfdir}/httpd/php.ini
1018 if [ -f /var/lock/subsys/httpd ]; then
1019 /etc/rc.d/init.d/httpd restart 1>&2
1023 if [ "$1" = "0" ]; then
1024 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1025 echo "deactivating module 'ftp.so' in /etc/httpd/php.ini" 1>&2
1026 perl -pi -e 's|^extension=ftp.so|;extension=ftp.so|g' \
1027 %{_sysconfdir}/httpd/php.ini
1029 if [ -f /var/lock/subsys/httpd ]; then
1030 /etc/rc.d/init.d/httpd restart 1>&2
1035 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1036 echo "activating module 'zlib.so' in /etc/httpd/php.ini" 1>&2
1037 perl -pi -e 's|^;extension=zlib.so|extension=zlib.so|g' \
1038 %{_sysconfdir}/httpd/php.ini
1040 if [ -f /var/lock/subsys/httpd ]; then
1041 /etc/rc.d/init.d/httpd restart 1>&2
1045 if [ "$1" = "0" ]; then
1046 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1047 echo "deactivating module 'zlib.so' in /etc/httpd/php.ini" 1>&2
1048 perl -pi -e 's|^extension=zlib.so|;extension=zlib.so|g' \
1049 %{_sysconfdir}/httpd/php.ini
1051 if [ -f /var/lock/subsys/httpd ]; then
1052 /etc/rc.d/init.d/httpd restart 1>&2
1057 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1058 echo "activating module 'bcmath.so' in /etc/httpd/php.ini" 1>&2
1059 perl -pi -e 's|^;extension=bcmath.so|extension=bcmath.so|g' \
1060 %{_sysconfdir}/httpd/php.ini
1062 if [ -f /var/lock/subsys/httpd ]; then
1063 /etc/rc.d/init.d/httpd restart 1>&2
1067 if [ "$1" = "0" ]; then
1068 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1069 echo "deactivating module 'bcmath.so' in /etc/httpd/php.ini" 1>&2
1070 perl -pi -e 's|^extension=bcmath.so|;extension=bcmath.so|g' \
1071 %{_sysconfdir}/httpd/php.ini
1073 if [ -f /var/lock/subsys/httpd ]; then
1074 /etc/rc.d/init.d/httpd restart 1>&2
1079 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1080 echo "activating module 'exif.so' in /etc/httpd/php.ini" 1>&2
1081 perl -pi -e 's|^;extension=exif.so|extension=exif.so|g' \
1082 %{_sysconfdir}/httpd/php.ini
1084 if [ -f /var/lock/subsys/httpd ]; then
1085 /etc/rc.d/init.d/httpd restart 1>&2
1089 if [ "$1" = "0" ]; then
1090 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1091 echo "deactivating module 'exif.so' in /etc/httpd/php.ini" 1>&2
1092 perl -pi -e 's|^extension=exif.so|;extension=exif.so|g' \
1093 %{_sysconfdir}/httpd/php.ini
1095 if [ -f /var/lock/subsys/httpd ]; then
1096 /etc/rc.d/init.d/httpd restart 1>&2
1101 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1102 echo "activating module 'recode.so' in /etc/httpd/php.ini" 1>&2
1103 perl -pi -e 's|^;extension=recode.so|extension=recode.so|g' \
1104 %{_sysconfdir}/httpd/php.ini
1106 if [ -f /var/lock/subsys/httpd ]; then
1107 /etc/rc.d/init.d/httpd restart 1>&2
1111 if [ "$1" = "0" ]; then
1112 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1113 echo "deactivating module 'recode.so' in /etc/httpd/php.ini" 1>&2
1114 perl -pi -e 's|^extension=recode.so|;extension=recode.so|g' \
1115 %{_sysconfdir}/httpd/php.ini
1117 if [ -f /var/lock/subsys/httpd ]; then
1118 /etc/rc.d/init.d/httpd restart 1>&2
1123 #if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1124 # echo "activating module 'session.so' in /etc/httpd/php.ini" 1>&2
1125 # perl -pi -e 's|^;extension=session.so|extension=session.so|g' \
1126 # %{_sysconfdir}/httpd/php.ini
1128 #if [ -f /var/lock/subsys/httpd ]; then
1129 # /etc/rc.d/init.d/httpd restart 1>&2
1133 #if [ "$1" = "0" ]; then
1134 #if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1135 # echo "deactivating module 'session.so' in /etc/httpd/php.ini" 1>&2
1136 # perl -pi -e 's|^extension=session.so|;extension=session.so|g' \
1137 # %{_sysconfdir}/httpd/php.ini
1139 #if [ -f /var/lock/subsys/httpd ]; then
1140 # /etc/rc.d/init.d/httpd restart 1>&2
1145 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1146 echo "activating module 'gettext.so' in /etc/httpd/php.ini" 1>&2
1147 perl -pi -e 's|^;extension=gettext.so|extension=gettext.so|g' \
1148 %{_sysconfdir}/httpd/php.ini
1150 if [ -f /var/lock/subsys/httpd ]; then
1151 /etc/rc.d/init.d/httpd restart 1>&2
1155 if [ "$1" = "0" ]; then
1156 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1157 echo "deactivating module 'gettext.so' in /etc/httpd/php.ini" 1>&2
1158 perl -pi -e 's|^extension=gettext.so|;extension=gettext.so|g' \
1159 %{_sysconfdir}/httpd/php.ini
1161 if [ -f /var/lock/subsys/httpd ]; then
1162 /etc/rc.d/init.d/httpd restart 1>&2
1167 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1168 echo "activating module 'snmp.so' in /etc/httpd/php.ini" 1>&2
1169 perl -pi -e 's|^;extension=snmp.so|extension=snmp.so|g' \
1170 %{_sysconfdir}/httpd/php.ini
1172 if [ -f /var/lock/subsys/httpd ]; then
1173 /etc/rc.d/init.d/httpd restart 1>&2
1177 if [ "$1" = "0" ]; then
1178 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1179 echo "deactivating module 'snmp.so' in /etc/httpd/php.ini" 1>&2
1180 perl -pi -e 's|^extension=snmp.so|;extension=snmp.so|g' \
1181 %{_sysconfdir}/httpd/php.ini
1183 if [ -f /var/lock/subsys/httpd ]; then
1184 /etc/rc.d/init.d/httpd restart 1>&2
1189 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1190 echo "activating module 'imap.so' in /etc/httpd/php.ini" 1>&2
1191 perl -pi -e 's|^;extension=imap.so|extension=imap.so|g' \
1192 %{_sysconfdir}/httpd/php.ini
1194 if [ -f /var/lock/subsys/httpd ]; then
1195 /etc/rc.d/init.d/httpd restart 1>&2
1199 if [ "$1" = "0" ]; then
1200 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1201 echo "deactivating module 'imap.so' in /etc/httpd/php.ini" 1>&2
1202 perl -pi -e 's|^extension=imap.so|;extension=imap.so|g' \
1203 %{_sysconfdir}/httpd/php.ini
1205 if [ -f /var/lock/subsys/httpd ]; then
1206 /etc/rc.d/init.d/httpd restart 1>&2
1211 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1212 echo "activating module 'ldap.so' in /etc/httpd/php.ini" 1>&2
1213 perl -pi -e 's|^;extension=ldap.so|extension=ldap.so|g' \
1214 %{_sysconfdir}/httpd/php.ini
1216 if [ -f /var/lock/subsys/httpd ]; then
1217 /etc/rc.d/init.d/httpd restart 1>&2
1221 if [ "$1" = "0" ]; then
1222 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1223 echo "deactivating module 'ldap.so' in /etc/httpd/php.ini" 1>&2
1224 perl -pi -e 's|^extension=ldap.so|;extension=ldap.so|g' \
1225 %{_sysconfdir}/httpd/php.ini
1227 if [ -f /var/lock/subsys/httpd ]; then
1228 /etc/rc.d/init.d/httpd restart 1>&2
1233 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1234 echo "activating module 'sockets.so' in /etc/httpd/php.ini" 1>&2
1235 perl -pi -e 's|^;extension=sockets.so|extension=sockets.so|g' \
1236 %{_sysconfdir}/httpd/php.ini
1238 if [ -f /var/lock/subsys/httpd ]; then
1239 /etc/rc.d/init.d/httpd restart 1>&2
1243 if [ "$1" = "0" ]; then
1244 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1245 echo "deactivating module 'sockets.so' in /etc/httpd/php.ini" 1>&2
1246 perl -pi -e 's|^extension=sockets.so|;extension=sockets.so|g' \
1247 %{_sysconfdir}/httpd/php.ini
1249 if [ -f /var/lock/subsys/httpd ]; then
1250 /etc/rc.d/init.d/httpd restart 1>&2
1255 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1256 echo "activating module 'mcrypt.so' in /etc/httpd/php.ini" 1>&2
1257 perl -pi -e 's|^;extension=mcrypt.so|extension=mcrypt.so|g' \
1258 %{_sysconfdir}/httpd/php.ini
1260 if [ -f /var/lock/subsys/httpd ]; then
1261 /etc/rc.d/init.d/httpd restart 1>&2
1265 if [ "$1" = "0" ]; then
1266 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1267 echo "deactivating module 'mcrypt.so' in /etc/httpd/php.ini" 1>&2
1268 perl -pi -e 's|^extension=mcrypt.so|;extension=mcrypt.so|g' \
1269 %{_sysconfdir}/httpd/php.ini
1271 if [ -f /var/lock/subsys/httpd ]; then
1272 /etc/rc.d/init.d/httpd restart 1>&2
1277 rm -rf $RPM_BUILD_ROOT
1280 %defattr(644,root,root,755)
1281 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1282 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1283 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1285 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/*
1286 %dir %{_pkglibdir}/php
1288 #%attr(755,root,root) %{_libdir}/apache/php/*.so
1290 /home/httpd/html/icons/*
1292 %attr(755,root,root) %{_pkglibdir}/libphp4.so
1295 %defattr(644,root,root,755)
1296 %attr(755,root,root) %{_pkglibdir}/php/mysql.so
1299 %defattr(644,root,root,755)
1300 %attr(755,root,root) %{_pkglibdir}/php/pgsql.so
1302 %{?oracle:%files oracle}
1303 %{?oracle:%defattr(644,root,root,755)}
1304 %{?oracle:%attr(755,root,root) %{_pkglibdir}/php/oracle.so}
1306 %{?oci8:%files oci8}
1307 %{?oci8:%defattr(644,root,root,755)}
1308 %{?oci8:%attr(755,root,root) %{_pkglibdir}/php/oci8.so}
1311 %defattr(644,root,root,755)
1312 %attr(755,root,root) %{_pkglibdir}/php/gd.so
1315 %defattr(644,root,root,755)
1316 %attr(755,root,root) %{_pkglibdir}/php/xml.so
1319 %defattr(644,root,root,755)
1320 %attr(755,root,root) %{_pkglibdir}/php/dba.so
1323 %defattr(644,root,root,755)
1324 %attr(755,root,root) %{_pkglibdir}/php/dbase.so
1327 %defattr(644,root,root,755)
1328 %attr(755,root,root) %{_pkglibdir}/php/filepro.so
1331 %defattr(644,root,root,755)
1332 %attr(755,root,root) %{_pkglibdir}/php/pcre.so
1335 %defattr(644,root,root,755)
1336 %attr(755,root,root) %{_pkglibdir}/php/posix.so
1339 %defattr(644,root,root,755)
1340 %attr(755,root,root) %{_pkglibdir}/php/sysvsem.so
1343 %defattr(644,root,root,755)
1344 %attr(755,root,root) %{_pkglibdir}/php/sysvshm.so
1347 %defattr(644,root,root,755)
1348 %attr(755,root,root) %{_pkglibdir}/php/yp.so
1351 %defattr(644,root,root,755)
1352 %attr(755,root,root) %{_pkglibdir}/php/calendar.so
1355 %defattr(644,root,root,755)
1356 %attr(755,root,root) %{_pkglibdir}/php/bcmath.so
1359 %defattr(644,root,root,755)
1360 %attr(755,root,root) %{_pkglibdir}/php/ftp.so
1363 %defattr(644,root,root,755)
1364 %attr(755,root,root) %{_pkglibdir}/php/zlib.so
1367 %defattr(644,root,root,755)
1368 %attr(755,root,root) %{_pkglibdir}/php/exif.so
1371 %defattr(644,root,root,755)
1372 %attr(755,root,root) %{_pkglibdir}/php/recode.so
1375 #%defattr(644,root,root,755)
1376 #%attr(755,root,root) %{_pkglibdir}/php/session.so
1379 %defattr(644,root,root,755)
1380 %attr(755,root,root) %{_pkglibdir}/php/gettext.so
1383 %defattr(644,root,root,755)
1384 %attr(755,root,root) %{_pkglibdir}/php/imap.so
1387 %defattr(644,root,root,755)
1388 %attr(755,root,root) %{_pkglibdir}/php/snmp.so
1391 %defattr(644,root,root,755)
1392 %attr(755,root,root) %{_pkglibdir}/php/libphp_java.so
1395 %defattr(644,root,root,755)
1396 %attr(755,root,root) %{_pkglibdir}/php/ldap.so
1399 %defattr(644,root,root,755)
1400 %attr(755,root,root) %{_pkglibdir}/php/sockets.so
1403 %defattr(644,root,root,755)
1404 %attr(755,root,root) %{_pkglibdir}/php/mcrypt.so
1407 %defattr(644,root,root,755)
1408 /home/httpd/html/docs/php4-doc