2 # oracle - with oracle support
3 # oci8 - with oci8 support
5 Summary: The PHP HTML-embedded scripting language for use with Apache.
6 Summary(fr): Le langage de script embarque-HTML PHP pour Apache.
7 Summary(pl): Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache.
16 License: The PHP license (see "LICENSE" file included in distribution)
17 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.gz
21 Source4: http://www.php.net/distributions/manual.tar.gz
22 Source5: http://www.php.net/extra/number4.tar.gz
23 Patch0: %{name}-imap.patch
24 Patch1: %{name}-mysql-socket.patch
25 Patch2: %{name}-mail.patch
26 Patch3: %{name}-ldap.patch
27 Patch4: %{name}-bcmath.patch
28 Patch5: %{name}-no_libnsl.patch
30 URL: http://www.php.net/
31 BuildRequires: apache(EAPI)-devel
35 BuildRequires: db3-devel >= 3.1.17
36 BuildRequires: freetype-devel
37 BuildRequires: gd-devel >= 1.8.3
38 BuildRequires: gdbm-devel
39 BuildRequires: imap-devel >= 4.7b-1
40 # I think jdk is better for java
42 BuildRequires: kaffe-devel
43 BuildRequires: libjpeg-devel
44 BuildRequires: libltdl-devel
45 BuildRequires: libpng >= 1.0.8
46 BuildRequires: libtiff-devel
47 BuildRequires: mm-devel >= 1.1.3
48 BuildRequires: openldap-devel
49 BuildRequires: pam-devel
50 BuildRequires: pdflib-devel >= 3.0
51 #BuildRequires: libxml-devel >= 2.0.0
52 BuildRequires: postgresql-devel
53 BuildRequires: recode-devel >= 3.5
54 BuildRequires: t1lib-devel
55 # BuildRequires: unixODBC-devel
56 BuildRequires: zlib-devel >= 1.0.9
57 BuildRequires: ucd-snmp-devel >= 4.1
58 BuildRequires: libmcrypt-devel >= 2.4.4
59 BuildRequires: libltdl-devel
60 Requires: apache(EAPI) >= 1.3.9
61 Prereq: /usr/sbin/apxs
62 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 %define _pkglibdir %{_libdir}/apache
67 PHP is an HTML-embedded scripting language. PHP attempts to make it
68 easy for developers to write dynamically generated web pages. PHP also
69 offers built-in database integration for several commercial and
70 non-commercial database management systems, so writing a
71 database-enabled web page with PHP is fairly simple. The most common
72 use of PHP coding is probably as a replacement for CGI scripts. The
73 mod_php module enables the Apache web server to understand and process
74 the embedded PHP language in web pages. This package contains PHP
75 version %{version}. If you use applications which specifically rely on
76 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
77 module contained in the phpfi package. If you're just starting with
78 PHP, you should install this package. You'll also need to install the
82 PHP est un langage de script embarque dans le HTM. PHP essaye de
83 rendre simple aux developpeurs d'ecrire des pages web generees
84 dynamiquement. PHP incorpore egalement une integration avec plusieurs
85 systemes de gestion de bases de donnees commerciaux et
86 non-connerciaux, qui rent facile la creation de pages web liees avec
87 des bases de donnees. L'utilisation la plus commune de PHP est
88 probablement en remplacement de scripts CGI. Le module mod_php permet
89 au serveur web apache de comprendre et de traiter le langage PHP
90 integre dans des pages web. Ce package contient PHP version
91 %{version}. Si vous utilisez des applications qui utilisent
92 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
93 dans le package mod_php. Si vous debutez avec PHP, vous devriez
94 installer ce package. Vous aurez egalement besoin d'installer le
98 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
99 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
100 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
101 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
102 zosta³a z jêzyków: C, Java i Perl.
105 Summary: MySQL database module for PHP4
106 Summary(pl): Modu³ bazy danych MySQL dla PHP4
109 Group(fr): Librairies
110 Group(pl): Biblioteki
111 Requires: %{name} = %{version}
114 This is a dynamic shared object (DSO) for Apache that will add MySQL
115 database support to PHP4. If you need back-end support for MySQL, you
116 should install this package in addition to the main %{name} package.
118 %description mysql -l pl
119 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych MySQL.
123 Summary: PostgreSQL database module for PHP4
124 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP4
127 Group(fr): Librairies
128 Group(pl): Biblioteki
129 Requires: %{name} = %{version}
132 This is a dynamic shared object (DSO) for Apache that will add
133 PostgreSQL database support to PHP4. If you need back-end support for
134 PostgreSQL, you should install this package in addition to the main
137 %description pgsql -l pl
138 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
141 Summary: Oracle 8 database module for PHP4
142 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP4
145 Group(fr): Librairies
146 Group(pl): Biblioteki
147 Requires: %{name} = %{version}
151 This is a dynamic shared object (DSO) for Apache that will add Oracle
152 8 database support to PHP4. If you need back-end support for Oracle 8,
153 you should install this package in addition to the main %{name}
156 %description oci8 -l pl
157 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych Oracle 8. }
160 Summary: Oracle 7 database module for PHP4
161 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP4
164 Group(fr): Librairies
165 Group(pl): Biblioteki
166 Requires: %{name} = %{version}
170 This is a dynamic shared object (DSO) for Apache that will add Oracle
171 7 database support to PHP4. If you need back-end support for Oracle 7,
172 you should install this package in addition to the main %{name}
175 %description oracle -l pl
176 Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych Oracle 7. }
179 Summary: GD extension module for PHP4
180 Summary: Modu³ GD dla PHP4
183 Group(fr): Librairies
184 Group(pl): Biblioteki
185 Requires: %{name} = %{version}
188 This is a dynamic shared object (DSO) for Apache that will add GD
189 support to PHP4. You should install this package in addition to the
190 main %{name} package if you want to create and manipulate images with
193 %description gd -l pl
196 Summary: Java extension module for PHP4
197 Summary(pl): Modu³ Javy dla PHP4
200 Group(fr): Librairies
201 Group(pl): Biblioteki
202 Requires: %{name} = %{version}
205 This is a dynamic shared object (DSO) for Apache that will add JAVA
206 support to PHP4. This extension provides a simple and effective means
207 for creating and invoking methods on Java objects from PHP.
209 %description java -l pl
212 Summary: XML extension module for PHP4
213 Summary(pl): Modu³ XML dla PHP4
216 Group(fr): Librairies
217 Group(pl): Biblioteki
218 Requires: %{name} = %{version}
221 This is a dynamic shared object (DSO) for Apache that will add XML
222 support to PHP4. This extension lets you create XML parsers and then
223 define handlers for different XML events. If you want to be able to
224 parse XML documents you should install this package in addition to the
225 main %{name} package.
227 #%description xml -l pl
230 Summary: DBA extension module for PHP4
231 Summary(pl): Modu³ DBA dla PHP4
234 Group(fr): Librairies
235 Group(pl): Biblioteki
236 Requires: %{name} = %{version}
239 This is a dynamic shared object (DSO) for Apache that will add
240 flat-file databases (DBA) support to PHP4.
242 #%description dba -l pl
245 Summary: Calendar extension module for PHP4
246 Summary(pl): Modu³ funkcji kalendarza dla PHP4
249 Group(fr): Librairies
250 Group(pl): Biblioteki
251 Requires: %{name} = %{version}
253 %description calendar
254 This is a dynamic shared object (DSO) for Apache that will add
255 calendar support to PHP4.
257 #%description calendar -l pl
260 Summary: DBase extension module for PHP4
261 Summary(pl): Modu³ DBase dla PHP4
264 Group(fr): Librairies
265 Group(pl): Biblioteki
266 Requires: %{name} = %{version}
269 This is a dynamic shared object (DSO) for Apache that will add DBase
272 #%description dbase -l pl
275 Summary: FilePro extension module for PHP4
276 Summary(pl): Modu³ FilePro dla PHP4
279 Group(fr): Librairies
280 Group(pl): Biblioteki
281 Requires: %{name} = %{version}
284 This is a dynamic shared object (DSO) for Apache that will add FilePro
287 #%description filepro -l pl
290 Summary: POSIX extension module for PHP4
291 Summary(pl): Modu³ POSIX dla PHP4
294 Group(fr): Librairies
295 Group(pl): Biblioteki
296 Requires: %{name} = %{version}
299 This is a dynamic shared object (DSO) for Apache that will add POSIX
300 functions support to PHP4.
302 #%description posix -l pl
305 Summary: PCRE extension module for PHP4
306 Summary(pl): Modu³ PCRE dla PHP4
309 Group(fr): Librairies
310 Group(pl): Biblioteki
311 Requires: %{name} = %{version}
314 This is a dynamic shared object (DSO) for Apache that will add Perl
315 Compatible Regular Expression support to PHP4.
317 #%description pcre -l pl
320 Summary: SysV sem extension module for PHP4
321 Summary(pl): Modu³ SysV sem dla PHP4
324 Group(fr): Librairies
325 Group(pl): Biblioteki
326 Requires: %{name} = %{version}
329 This is a dynamic shared object (DSO) for Apache that will add SysV
330 semafores support to PHP4.
332 #%description sysvsem -l pl
335 Summary: SysV shm extension module for PHP4
336 Summary(pl): Modu³ SysV shm dla PHP4
339 Group(fr): Librairies
340 Group(pl): Biblioteki
341 Requires: %{name} = %{version}
344 This is a dynamic shared object (DSO) for Apache that will add SysV
345 Shared Memory support to PHP4.
347 #%description sysvshm -l pl
350 Summary: NIS (yp) extension module for PHP4
351 Summary(pl): Modu³ NIS (yp) dla PHP4
354 Group(fr): Librairies
355 Group(pl): Biblioteki
356 Requires: %{name} = %{version}
359 This is a dynamic shared object (DSO) for Apache that will add NIS
360 (Yellow Pages) support to PHP4.
362 #%description yp -l pl
365 Summary: bcmath extension module for PHP4
366 Summary(pl): Modu³ bcmath dla PHP4
369 Group(fr): Librairies
370 Group(pl): Biblioteki
371 Requires: %{name} = %{version}
374 This is a dynamic shared object (DSO) for Apache that will add bc
375 style precision math functions support to PHP4.
377 #%description bcmath -l pl
380 Summary: FTP extension module for PHP4
381 Summary(pl): Modu³ FTP dla PHP4
384 Group(fr): Librairies
385 Group(pl): Biblioteki
386 Requires: %{name} = %{version}
389 This is a dynamic shared object (DSO) for Apache that will add FTP
392 #%description ftp -l pl
395 Summary: Zlib extension module for PHP4
396 Summary(pl): Modu³ zlib dla PHP4
399 Group(fr): Librairies
400 Group(pl): Biblioteki
401 Requires: %{name} = %{version}
404 This is a dynamic shared object (DSO) for Apache that will add
405 commpresion (zlib) support to PHP4.
407 #%description zlib -l pl
410 Summary: exifextension module for PHP4
411 Summary(pl): Modu³ exif dla PHP4
414 Group(fr): Librairies
415 Group(pl): Biblioteki
416 Requires: %{name} = %{version}
419 This is a dynamic shared object (DSO) for Apache that will add exif
422 #%description exif -l pl
425 Summary: recodeextension module for PHP4
426 Summary(pl): Modu³ recode dla PHP4
429 Group(fr): Librairies
430 Group(pl): Biblioteki
431 Requires: %{name} = %{version}
434 This is a dynamic shared object (DSO) for Apache that will add recode
437 #%description recode -l pl
440 Summary: sessionextension module for PHP4
441 Summary(pl): Modu³ session dla PHP4
444 Group(fr): Librairies
445 Group(pl): Biblioteki
446 Requires: %{name} = %{version}
449 This is a dynamic shared object (DSO) for Apache that will add session
452 #%description session -l pl
455 Summary: gettextextension module for PHP4
456 Summary(pl): Modu³ gettext dla PHP4
459 Group(fr): Librairies
460 Group(pl): Biblioteki
461 Requires: %{name} = %{version}
464 This is a dynamic shared object (DSO) for Apache that will add gettext
467 #%description gettext -l pl
471 Summary: snmpextension module for PHP4
472 Summary(pl): Modu³ snmp dla PHP4
475 Group(fr): Librairies
476 Group(pl): Biblioteki
477 Requires: %{name} = %{version}
480 This is a dynamic shared object (DSO) for Apache that will add snmp
483 #%description snmp -l pl
486 Summary: imapextension module for PHP4
487 Summary(pl): Modu³ imap dla PHP4
490 Group(fr): Librairies
491 Group(pl): Biblioteki
492 Requires: %{name} = %{version}
495 This is a dynamic shared object (DSO) for Apache that will add imap
498 #%description imap -l pl
501 Summary: LDAP extension module for PHP4
502 Summary(pl): Modu³ LDAP dla PHP4
505 Group(fr): Librairies
506 Group(pl): Biblioteki
507 Requires: %{name} = %{version}
510 This is a dynamic shared object (DSO) for Apache that will add LDAP
513 #%description ldap -l pl
516 Summary: sockets extension module for PHP4
517 Summary(pl): Modu³ socket dla PHP4
520 Group(fr): Librairies
521 Group(pl): Biblioteki
522 Requires: %{name} = %{version}
525 This is a dynamic shared object (DSO) for Apache that will add sockets
528 #%description sockets -l pl
531 Summary: mcrypt extension module for PHP4
532 Summary(pl): Modu³ mcrypt dla PHP4
535 Group(fr): Librairies
536 Group(pl): Biblioteki
537 Requires: %{name} = %{version}
540 This is a dynamic shared object (DSO) for Apache that will add mcrypt
543 #%description mcrypt -l pl
546 Summary: Online manual for PHP4
547 Summary(pl): Dokumentacja dla PHP4
548 Group: Networking/Daemons
549 Group(de): Netzwerkwesen/Server
550 Group(pl): Sieciowe/Serwery
553 Comprehensive documentation for PHP4, viewable through your web
556 %description doc -l pl
557 Dokumentacja dla pakietu PHP4. Mo¿na j± równie¿ ogl±daæ poprzez serwer
570 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I%{_prefix}/X11R6/include"; export CFLAGS
573 --with-apxs=%{_sbindir}/apxs \
574 --with-config-file-path=%{_sysconfdir}/httpd \
575 --with-exec-dir=%{_bindir} \
577 --enable-magic-quotes \
579 --enable-track-vars \
582 --enable-sysvsem=shared \
583 --enable-sysvshm=shared \
585 --enable-exif=shared \
586 --with-regex=system \
587 --with-gettext=shared \
589 --with-mysql=shared \
590 --with-mysql-sock=/var/lib/mysql/mysql.sock \
592 --with-dbase=shared \
593 --with-filepro=shared \
594 --enable-ftp=shared \
596 --with-pdflib=shared \
597 --with-cpdflib=shared \
599 --with-pgsql=shared,/usr \
601 --enable-bcmath=shared \
602 --enable-calendar=shared \
604 --with-pcre-regex=shared \
605 --enable-posix=shared \
608 --with-recode=shared \
609 --enable-ucd-snmp-hack \
610 --enable-dba=shared \
617 --enable-xml=shared \
619 --with-mcrypt=shared \
620 --enable-sockets=shared \
621 %{?oracle:--with-oracle=shared} \
622 %{?oci8:--with-oci8=shared} \
627 # TODO --with-pspell=/usr,shared (pspell missing)
628 # --with-unixODBC=shared (nie jest shared)
629 # --with-mhash=shared (brak libmhash)
630 # --with-curl=shared (brak libcurl)
636 #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
637 # Solution: make pdf and cpdf shared
642 # This option get trouble with imap
643 # --enable-versioning \
645 # To old/new libmcrypt ?
646 # --with-mcrypt=shared \
647 # --with-dom=%{_prefix}/X11R6 \
652 rm -rf $RPM_BUILD_ROOT
653 install -d $RPM_BUILD_ROOT{%{_pkglibdir}/php,%{_sysconfdir}/httpd} \
654 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc}
656 install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
657 install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
659 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/php.ini
660 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
662 cd $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
664 ln -s manual.html index.html
668 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
669 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
670 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
673 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 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 perl -pi -e 's|^AddType application/x-httpd-php .php|#AddType application/x-httpd-php .php|'
681 if [ -f /var/lock/subsys/httpd ]; then
682 /etc/rc.d/init.d/httpd restart 1>&2
686 if [ "$1" = "0" ]; then
687 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
688 if [ -f /var/lock/subsys/httpd ]; then
689 /etc/rc.d/init.d/httpd restart 1>&2
694 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
695 echo "activating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
696 perl -pi -e 's|^;extension=mysql.so|extension=mysql.so|g' \
697 %{_sysconfdir}/httpd/php.ini
699 if [ -f /var/lock/subsys/httpd ]; then
700 /etc/rc.d/init.d/httpd restart 1>&2
704 if [ "$1" = "0" ]; then
705 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
706 echo "deactivating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
707 perl -pi -e 's|^extension=mysql.so|;extension=mysql.so|g' \
708 %{_sysconfdir}/httpd/php.ini
710 if [ -f /var/lock/subsys/httpd ]; then
711 /etc/rc.d/init.d/httpd restart 1>&2
716 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
717 echo "activating module 'pgsql.so' in /etc/httpd/php.ini" 1>&2
718 perl -pi -e 's|^;extension=pgsql.so|extension=pgsql.so|g' \
719 %{_sysconfdir}/httpd/php.ini
721 if [ -f /var/lock/subsys/httpd ]; then
722 /etc/rc.d/init.d/httpd restart 1>&2
726 if [ "$1" = "0" ]; then
727 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
728 echo "deactivating module 'pgsql.so' in /etc/httpd/php.ini" 1>&2
729 perl -pi -e 's|^extension=pgsql.so|;extension=pgsql.so|g' \
730 %{_sysconfdir}/httpd/php.ini
732 if [ -f /var/lock/subsys/httpd ]; then
733 /etc/rc.d/init.d/httpd restart 1>&2
737 %{?oracle:%post oracle}
738 %{?oracle:if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
739 %{?oracle: echo "activating module 'oracle.so' in /etc/httpd/php.ini" 1>&2}
740 %{?oracle: perl -pi -e 's|^;extension=oracle.so|extension=oracle.so|g' %{_sysconfdir}/httpd/php.ini}
742 %{?oracle:if [ -f /var/lock/subsys/httpd ]; then}
743 %{?oracle: /etc/rc.d/init.d/httpd restart 1>&2}
746 %{?oracle:%preun oracle}
747 %{?oracle:if [ "$1" = "0" ]; then}
748 %{?oracle: if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
749 %{?oracle: echo "deactivating module 'oracle.so' in /etc/httpd/php.ini" 1>&2}
750 %{?oracle: perl -pi -e 's|^extension=oracle.so|;extension=oracle.so|g' {_sysconfdir}/httpd/php.ini}
752 %{?oracle: if [ -f /var/lock/subsys/httpd ]; then}
753 %{?oracle: /etc/rc.d/init.d/httpd restart 1>&2}
758 %{?oci8:if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
759 %{?oci8: echo "activating module 'oci8.so' in /etc/httpd/php.ini" 1>&2}
760 %{?oci8: perl -pi -e 's|^;extension=oci8.so|extension=oci8.so|g' %{_sysconfdir}/httpd/php.ini}
762 %{?oci8:if [ -f /var/lock/subsys/httpd ]; then}
763 %{?oci8: /etc/rc.d/init.d/httpd restart 1>&2}
767 %{?oci8:if [ "$1" = "0" ]; then}
768 %{?oci8: if [ -f %{_sysconfdir}/httpd/php.ini ]; then}
769 %{?oci8: echo "deactivating module 'oci8.so' in /etc/httpd/php.ini" 1>&2}
770 %{?oci8: perl -pi -e 's|^extension=oci8.so|;extension=oci8.so|g' %{_sysconfdir}/httpd/php.ini}
772 %{?oci8: if [ -f /var/lock/subsys/httpd ]; then}
773 %{?oci8: /etc/rc.d/init.d/httpd restart 1>&2}
778 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
779 echo "activating module 'gd.so' in /etc/httpd/php.ini" 1>&2
780 perl -pi -e 's|^;extension=gd.so|extension=gd.so|g' \
781 %{_sysconfdir}/httpd/php.ini
783 if [ -f /var/lock/subsys/httpd ]; then
784 /etc/rc.d/init.d/httpd restart 1>&2
788 if [ "$1" = "0" ]; then
789 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
790 echo "deactivating module 'gd.so' in /etc/httpd/php.ini" 1>&2
791 perl -pi -e 's|^extension=gd.so|;extension=gd.so|g' \
792 %{_sysconfdir}/httpd/php.ini
794 if [ -f /var/lock/subsys/httpd ]; then
795 /etc/rc.d/init.d/httpd restart 1>&2
800 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
801 echo "activating module 'xml.so' in /etc/httpd/php.ini" 1>&2
802 perl -pi -e 's|^;extension=xml.so|extension=xml.so|g' \
803 %{_sysconfdir}/httpd/php.ini
805 if [ -f /var/lock/subsys/httpd ]; then
806 /etc/rc.d/init.d/httpd restart 1>&2
810 if [ "$1" = "0" ]; then
811 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
812 echo "deactivating module 'xml.so' in /etc/httpd/php.ini" 1>&2
813 perl -pi -e 's|^extension=xml.so|;extension=xml.so|g' \
814 %{_sysconfdir}/httpd/php.ini
816 if [ -f /var/lock/subsys/httpd ]; then
817 /etc/rc.d/init.d/httpd restart 1>&2
822 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
823 echo "activating module 'dba.so' in /etc/httpd/php.ini" 1>&2
824 perl -pi -e 's|^;extension=dba.so|extension=dba.so|g' \
825 %{_sysconfdir}/httpd/php.ini
827 if [ -f /var/lock/subsys/httpd ]; then
828 /etc/rc.d/init.d/httpd restart 1>&2
832 if [ "$1" = "0" ]; then
833 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
834 echo "deactivating module 'dba.so' in /etc/httpd/php.ini" 1>&2
835 perl -pi -e 's|^extension=dba.so|;extension=dba.so|g' \
836 %{_sysconfdir}/httpd/php.ini
838 if [ -f /var/lock/subsys/httpd ]; then
839 /etc/rc.d/init.d/httpd restart 1>&2
844 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
845 echo "activating module 'calendar.so' in /etc/httpd/php.ini" 1>&2
846 perl -pi -e 's|^;extension=calendar.so|extension=calendar.so|g' \
847 %{_sysconfdir}/httpd/php.ini
849 if [ -f /var/lock/subsys/httpd ]; then
850 /etc/rc.d/init.d/httpd restart 1>&2
854 if [ "$1" = "0" ]; then
855 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
856 echo "deactivating module 'calendar.so' in /etc/httpd/php.ini" 1>&2
857 perl -pi -e 's|^extension=calendar.so|;extension=calendar.so|g' \
858 %{_sysconfdir}/httpd/php.ini
860 if [ -f /var/lock/subsys/httpd ]; then
861 /etc/rc.d/init.d/httpd restart 1>&2
866 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
867 echo "activating module 'dbase.so' in /etc/httpd/php.ini" 1>&2
868 perl -pi -e 's|^;extension=dbase.so|extension=dbase.so|g' \
869 %{_sysconfdir}/httpd/php.ini
871 if [ -f /var/lock/subsys/httpd ]; then
872 /etc/rc.d/init.d/httpd restart 1>&2
876 if [ "$1" = "0" ]; then
877 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
878 echo "deactivating module 'dbase.so' in /etc/httpd/php.ini" 1>&2
879 perl -pi -e 's|^extension=dbase.so|;extension=dbase.so|g' \
880 %{_sysconfdir}/httpd/php.ini
882 if [ -f /var/lock/subsys/httpd ]; then
883 /etc/rc.d/init.d/httpd restart 1>&2
889 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
890 echo "activating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
891 perl -pi -e 's|^;extension=libphp_java.so|extension=libphp_java.so|g' \
892 %{_sysconfdir}/httpd/php.ini
894 if [ -f /var/lock/subsys/httpd ]; then
895 /etc/rc.d/init.d/httpd restart 1>&2
899 if [ "$1" = "0" ]; then
900 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
901 echo "deactivating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
902 perl -pi -e 's|^extension=libphp_java.so|;extension=libphp_java.so|g' \
903 %{_sysconfdir}/httpd/php.ini
905 if [ -f /var/lock/subsys/httpd ]; then
906 /etc/rc.d/init.d/httpd restart 1>&2
911 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
912 echo "activating module 'filepro.so' in /etc/httpd/php.ini" 1>&2
913 perl -pi -e 's|^;extension=filepro.so|extension=filepro.so|g' \
914 %{_sysconfdir}/httpd/php.ini
916 if [ -f /var/lock/subsys/httpd ]; then
917 /etc/rc.d/init.d/httpd restart 1>&2
921 if [ "$1" = "0" ]; then
922 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
923 echo "deactivating module 'filepro.so' in /etc/httpd/php.ini" 1>&2
924 perl -pi -e 's|^extension=filepro.so|;extension=filepro.so|g' \
925 %{_sysconfdir}/httpd/php.ini
927 if [ -f /var/lock/subsys/httpd ]; then
928 /etc/rc.d/init.d/httpd restart 1>&2
933 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
934 echo "activating module 'pcre.so' in /etc/httpd/php.ini" 1>&2
935 perl -pi -e 's|^;extension=pcre.so|extension=pcre.so|g' \
936 %{_sysconfdir}/httpd/php.ini
938 if [ -f /var/lock/subsys/httpd ]; then
939 /etc/rc.d/init.d/httpd restart 1>&2
943 if [ "$1" = "0" ]; then
944 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
945 echo "deactivating module 'pcre.so' in /etc/httpd/php.ini" 1>&2
946 perl -pi -e 's|^extension=pcre.so|;extension=pcre.so|g' \
947 %{_sysconfdir}/httpd/php.ini
949 if [ -f /var/lock/subsys/httpd ]; then
950 /etc/rc.d/init.d/httpd restart 1>&2
955 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
956 echo "activating module 'posix.so' in /etc/httpd/php.ini" 1>&2
957 perl -pi -e 's|^;extension=posix.so|extension=posix.so|g' \
958 %{_sysconfdir}/httpd/php.ini
960 if [ -f /var/lock/subsys/httpd ]; then
961 /etc/rc.d/init.d/httpd restart 1>&2
965 if [ "$1" = "0" ]; then
966 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
967 echo "deactivating module 'posix.so' in /etc/httpd/php.ini" 1>&2
968 perl -pi -e 's|^extension=posix.so|;extension=posix.so|g' \
969 %{_sysconfdir}/httpd/php.ini
971 if [ -f /var/lock/subsys/httpd ]; then
972 /etc/rc.d/init.d/httpd restart 1>&2
977 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
978 echo "activating module 'sysvsem.so' in /etc/httpd/php.ini" 1>&2
979 perl -pi -e 's|^;extension=sysvsem.so|extension=sysvsem.so|g' \
980 %{_sysconfdir}/httpd/php.ini
982 if [ -f /var/lock/subsys/httpd ]; then
983 /etc/rc.d/init.d/httpd restart 1>&2
987 if [ "$1" = "0" ]; then
988 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
989 echo "deactivating module 'sysvsem.so' in /etc/httpd/php.ini" 1>&2
990 perl -pi -e 's|^extension=sysvsem.so|;extension=sysvsem.so|g' \
991 %{_sysconfdir}/httpd/php.ini
993 if [ -f /var/lock/subsys/httpd ]; then
994 /etc/rc.d/init.d/httpd restart 1>&2
999 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1000 echo "activating module 'sysvshm.so' in /etc/httpd/php.ini" 1>&2
1001 perl -pi -e 's|^;extension=sysvshm.so|extension=sysvshm.so|g' \
1002 %{_sysconfdir}/httpd/php.ini
1004 if [ -f /var/lock/subsys/httpd ]; then
1005 /etc/rc.d/init.d/httpd restart 1>&2
1009 if [ "$1" = "0" ]; then
1010 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1011 echo "deactivating module 'sysvshm.so' in /etc/httpd/php.ini" 1>&2
1012 perl -pi -e 's|^extension=sysvshm.so|;extension=sysvshm.so|g' \
1013 %{_sysconfdir}/httpd/php.ini
1015 if [ -f /var/lock/subsys/httpd ]; then
1016 /etc/rc.d/init.d/httpd restart 1>&2
1021 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1022 echo "activating module 'yp.so' in /etc/httpd/php.ini" 1>&2
1023 perl -pi -e 's|^;extension=yp.so|extension=yp.so|g' \
1024 %{_sysconfdir}/httpd/php.ini
1026 if [ -f /var/lock/subsys/httpd ]; then
1027 /etc/rc.d/init.d/httpd restart 1>&2
1031 if [ "$1" = "0" ]; then
1032 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1033 echo "deactivating module 'yp.so' in /etc/httpd/php.ini" 1>&2
1034 perl -pi -e 's|^extension=yp.so|;extension=yp.so|g' \
1035 %{_sysconfdir}/httpd/php.ini
1037 if [ -f /var/lock/subsys/httpd ]; then
1038 /etc/rc.d/init.d/httpd restart 1>&2
1043 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1044 echo "activating module 'ftp.so' in /etc/httpd/php.ini" 1>&2
1045 perl -pi -e 's|^;extension=ftp.so|extension=ftp.so|g' \
1046 %{_sysconfdir}/httpd/php.ini
1048 if [ -f /var/lock/subsys/httpd ]; then
1049 /etc/rc.d/init.d/httpd restart 1>&2
1053 if [ "$1" = "0" ]; then
1054 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1055 echo "deactivating module 'ftp.so' in /etc/httpd/php.ini" 1>&2
1056 perl -pi -e 's|^extension=ftp.so|;extension=ftp.so|g' \
1057 %{_sysconfdir}/httpd/php.ini
1059 if [ -f /var/lock/subsys/httpd ]; then
1060 /etc/rc.d/init.d/httpd restart 1>&2
1065 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1066 echo "activating module 'zlib.so' in /etc/httpd/php.ini" 1>&2
1067 perl -pi -e 's|^;extension=zlib.so|extension=zlib.so|g' \
1068 %{_sysconfdir}/httpd/php.ini
1070 if [ -f /var/lock/subsys/httpd ]; then
1071 /etc/rc.d/init.d/httpd restart 1>&2
1075 if [ "$1" = "0" ]; then
1076 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1077 echo "deactivating module 'zlib.so' in /etc/httpd/php.ini" 1>&2
1078 perl -pi -e 's|^extension=zlib.so|;extension=zlib.so|g' \
1079 %{_sysconfdir}/httpd/php.ini
1081 if [ -f /var/lock/subsys/httpd ]; then
1082 /etc/rc.d/init.d/httpd restart 1>&2
1087 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1088 echo "activating module 'bcmath.so' in /etc/httpd/php.ini" 1>&2
1089 perl -pi -e 's|^;extension=bcmath.so|extension=bcmath.so|g' \
1090 %{_sysconfdir}/httpd/php.ini
1092 if [ -f /var/lock/subsys/httpd ]; then
1093 /etc/rc.d/init.d/httpd restart 1>&2
1097 if [ "$1" = "0" ]; then
1098 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1099 echo "deactivating module 'bcmath.so' in /etc/httpd/php.ini" 1>&2
1100 perl -pi -e 's|^extension=bcmath.so|;extension=bcmath.so|g' \
1101 %{_sysconfdir}/httpd/php.ini
1103 if [ -f /var/lock/subsys/httpd ]; then
1104 /etc/rc.d/init.d/httpd restart 1>&2
1109 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1110 echo "activating module 'exif.so' in /etc/httpd/php.ini" 1>&2
1111 perl -pi -e 's|^;extension=exif.so|extension=exif.so|g' \
1112 %{_sysconfdir}/httpd/php.ini
1114 if [ -f /var/lock/subsys/httpd ]; then
1115 /etc/rc.d/init.d/httpd restart 1>&2
1119 if [ "$1" = "0" ]; then
1120 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1121 echo "deactivating module 'exif.so' in /etc/httpd/php.ini" 1>&2
1122 perl -pi -e 's|^extension=exif.so|;extension=exif.so|g' \
1123 %{_sysconfdir}/httpd/php.ini
1125 if [ -f /var/lock/subsys/httpd ]; then
1126 /etc/rc.d/init.d/httpd restart 1>&2
1131 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1132 echo "activating module 'recode.so' in /etc/httpd/php.ini" 1>&2
1133 perl -pi -e 's|^;extension=recode.so|extension=recode.so|g' \
1134 %{_sysconfdir}/httpd/php.ini
1136 if [ -f /var/lock/subsys/httpd ]; then
1137 /etc/rc.d/init.d/httpd restart 1>&2
1141 if [ "$1" = "0" ]; then
1142 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1143 echo "deactivating module 'recode.so' in /etc/httpd/php.ini" 1>&2
1144 perl -pi -e 's|^extension=recode.so|;extension=recode.so|g' \
1145 %{_sysconfdir}/httpd/php.ini
1147 if [ -f /var/lock/subsys/httpd ]; then
1148 /etc/rc.d/init.d/httpd restart 1>&2
1153 #if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1154 # echo "activating module 'session.so' in /etc/httpd/php.ini" 1>&2
1155 # perl -pi -e 's|^;extension=session.so|extension=session.so|g' \
1156 # %{_sysconfdir}/httpd/php.ini
1158 #if [ -f /var/lock/subsys/httpd ]; then
1159 # /etc/rc.d/init.d/httpd restart 1>&2
1163 #if [ "$1" = "0" ]; then
1164 #if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1165 # echo "deactivating module 'session.so' in /etc/httpd/php.ini" 1>&2
1166 # perl -pi -e 's|^extension=session.so|;extension=session.so|g' \
1167 # %{_sysconfdir}/httpd/php.ini
1169 #if [ -f /var/lock/subsys/httpd ]; then
1170 # /etc/rc.d/init.d/httpd restart 1>&2
1175 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1176 echo "activating module 'gettext.so' in /etc/httpd/php.ini" 1>&2
1177 perl -pi -e 's|^;extension=gettext.so|extension=gettext.so|g' \
1178 %{_sysconfdir}/httpd/php.ini
1180 if [ -f /var/lock/subsys/httpd ]; then
1181 /etc/rc.d/init.d/httpd restart 1>&2
1185 if [ "$1" = "0" ]; then
1186 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1187 echo "deactivating module 'gettext.so' in /etc/httpd/php.ini" 1>&2
1188 perl -pi -e 's|^extension=gettext.so|;extension=gettext.so|g' \
1189 %{_sysconfdir}/httpd/php.ini
1191 if [ -f /var/lock/subsys/httpd ]; then
1192 /etc/rc.d/init.d/httpd restart 1>&2
1197 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1198 echo "activating module 'snmp.so' in /etc/httpd/php.ini" 1>&2
1199 perl -pi -e 's|^;extension=snmp.so|extension=snmp.so|g' \
1200 %{_sysconfdir}/httpd/php.ini
1202 if [ -f /var/lock/subsys/httpd ]; then
1203 /etc/rc.d/init.d/httpd restart 1>&2
1207 if [ "$1" = "0" ]; then
1208 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1209 echo "deactivating module 'snmp.so' in /etc/httpd/php.ini" 1>&2
1210 perl -pi -e 's|^extension=snmp.so|;extension=snmp.so|g' \
1211 %{_sysconfdir}/httpd/php.ini
1213 if [ -f /var/lock/subsys/httpd ]; then
1214 /etc/rc.d/init.d/httpd restart 1>&2
1219 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1220 echo "activating module 'imap.so' in /etc/httpd/php.ini" 1>&2
1221 perl -pi -e 's|^;extension=imap.so|extension=imap.so|g' \
1222 %{_sysconfdir}/httpd/php.ini
1224 if [ -f /var/lock/subsys/httpd ]; then
1225 /etc/rc.d/init.d/httpd restart 1>&2
1229 if [ "$1" = "0" ]; then
1230 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1231 echo "deactivating module 'imap.so' in /etc/httpd/php.ini" 1>&2
1232 perl -pi -e 's|^extension=imap.so|;extension=imap.so|g' \
1233 %{_sysconfdir}/httpd/php.ini
1235 if [ -f /var/lock/subsys/httpd ]; then
1236 /etc/rc.d/init.d/httpd restart 1>&2
1241 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1242 echo "activating module 'ldap.so' in /etc/httpd/php.ini" 1>&2
1243 perl -pi -e 's|^;extension=ldap.so|extension=ldap.so|g' \
1244 %{_sysconfdir}/httpd/php.ini
1246 if [ -f /var/lock/subsys/httpd ]; then
1247 /etc/rc.d/init.d/httpd restart 1>&2
1251 if [ "$1" = "0" ]; then
1252 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1253 echo "deactivating module 'ldap.so' in /etc/httpd/php.ini" 1>&2
1254 perl -pi -e 's|^extension=ldap.so|;extension=ldap.so|g' \
1255 %{_sysconfdir}/httpd/php.ini
1257 if [ -f /var/lock/subsys/httpd ]; then
1258 /etc/rc.d/init.d/httpd restart 1>&2
1263 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1264 echo "activating module 'sockets.so' in /etc/httpd/php.ini" 1>&2
1265 perl -pi -e 's|^;extension=sockets.so|extension=sockets.so|g' \
1266 %{_sysconfdir}/httpd/php.ini
1268 if [ -f /var/lock/subsys/httpd ]; then
1269 /etc/rc.d/init.d/httpd restart 1>&2
1273 if [ "$1" = "0" ]; then
1274 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1275 echo "deactivating module 'sockets.so' in /etc/httpd/php.ini" 1>&2
1276 perl -pi -e 's|^extension=sockets.so|;extension=sockets.so|g' \
1277 %{_sysconfdir}/httpd/php.ini
1279 if [ -f /var/lock/subsys/httpd ]; then
1280 /etc/rc.d/init.d/httpd restart 1>&2
1285 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1286 echo "activating module 'mcrypt.so' in /etc/httpd/php.ini" 1>&2
1287 perl -pi -e 's|^;extension=mcrypt.so|extension=mcrypt.so|g' \
1288 %{_sysconfdir}/httpd/php.ini
1290 if [ -f /var/lock/subsys/httpd ]; then
1291 /etc/rc.d/init.d/httpd restart 1>&2
1295 if [ "$1" = "0" ]; then
1296 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
1297 echo "deactivating module 'mcrypt.so' in /etc/httpd/php.ini" 1>&2
1298 perl -pi -e 's|^extension=mcrypt.so|;extension=mcrypt.so|g' \
1299 %{_sysconfdir}/httpd/php.ini
1301 if [ -f /var/lock/subsys/httpd ]; then
1302 /etc/rc.d/init.d/httpd restart 1>&2
1307 rm -rf $RPM_BUILD_ROOT
1310 %defattr(644,root,root,755)
1311 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1312 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1313 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1315 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/*
1316 %dir %{_pkglibdir}/php
1318 #%attr(755,root,root) %{_libdir}/apache/php/*.so
1320 /home/httpd/html/icons/*
1322 %attr(755,root,root) %{_pkglibdir}/libphp4.so
1325 %defattr(644,root,root,755)
1326 %attr(755,root,root) %{_pkglibdir}/php/mysql.so
1329 %defattr(644,root,root,755)
1330 %attr(755,root,root) %{_pkglibdir}/php/pgsql.so
1332 %{?oracle:%files oracle}
1333 %{?oracle:%defattr(644,root,root,755)}
1334 %{?oracle:%attr(755,root,root) %{_pkglibdir}/php/oracle.so}
1336 %{?oci8:%files oci8}
1337 %{?oci8:%defattr(644,root,root,755)}
1338 %{?oci8:%attr(755,root,root) %{_pkglibdir}/php/oci8.so}
1341 %defattr(644,root,root,755)
1342 %attr(755,root,root) %{_pkglibdir}/php/gd.so
1345 %defattr(644,root,root,755)
1346 %attr(755,root,root) %{_pkglibdir}/php/xml.so
1349 %defattr(644,root,root,755)
1350 %attr(755,root,root) %{_pkglibdir}/php/dba.so
1353 %defattr(644,root,root,755)
1354 %attr(755,root,root) %{_pkglibdir}/php/dbase.so
1357 %defattr(644,root,root,755)
1358 %attr(755,root,root) %{_pkglibdir}/php/filepro.so
1361 %defattr(644,root,root,755)
1362 %attr(755,root,root) %{_pkglibdir}/php/pcre.so
1365 %defattr(644,root,root,755)
1366 %attr(755,root,root) %{_pkglibdir}/php/posix.so
1369 %defattr(644,root,root,755)
1370 %attr(755,root,root) %{_pkglibdir}/php/sysvsem.so
1373 %defattr(644,root,root,755)
1374 %attr(755,root,root) %{_pkglibdir}/php/sysvshm.so
1377 %defattr(644,root,root,755)
1378 %attr(755,root,root) %{_pkglibdir}/php/yp.so
1381 %defattr(644,root,root,755)
1382 %attr(755,root,root) %{_pkglibdir}/php/calendar.so
1385 %defattr(644,root,root,755)
1386 %attr(755,root,root) %{_pkglibdir}/php/bcmath.so
1389 %defattr(644,root,root,755)
1390 %attr(755,root,root) %{_pkglibdir}/php/ftp.so
1393 %defattr(644,root,root,755)
1394 %attr(755,root,root) %{_pkglibdir}/php/zlib.so
1397 %defattr(644,root,root,755)
1398 %attr(755,root,root) %{_pkglibdir}/php/exif.so
1401 %defattr(644,root,root,755)
1402 %attr(755,root,root) %{_pkglibdir}/php/recode.so
1405 #%defattr(644,root,root,755)
1406 #%attr(755,root,root) %{_pkglibdir}/php/session.so
1409 %defattr(644,root,root,755)
1410 %attr(755,root,root) %{_pkglibdir}/php/gettext.so
1413 %defattr(644,root,root,755)
1414 %attr(755,root,root) %{_pkglibdir}/php/imap.so
1417 %defattr(644,root,root,755)
1418 %attr(755,root,root) %{_pkglibdir}/php/snmp.so
1421 %defattr(644,root,root,755)
1422 %attr(755,root,root) %{_pkglibdir}/php/libphp_java.so
1425 %defattr(644,root,root,755)
1426 %attr(755,root,root) %{_pkglibdir}/php/ldap.so
1429 %defattr(644,root,root,755)
1430 %attr(755,root,root) %{_pkglibdir}/php/sockets.so
1433 %defattr(644,root,root,755)
1434 %attr(755,root,root) %{_pkglibdir}/php/mcrypt.so
1437 %defattr(644,root,root,755)
1438 /home/httpd/html/docs/php4-doc