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: php-module-install
23 Patch0: %{name}-imap.patch
24 Patch1: %{name}-mysql-socket.patch
25 Patch2: %{name}-mail.patch
26 Patch5: %{name}-no_libnsl.patch
27 Patch6: %{name}-DESTDIR.patch
28 Patch7: %{name}-gd-shared.patch
29 Patch8: %{name}-apache-fixes.patch
30 #Patch9: %{name}-system-expat.patch
32 URL: http://www.php.net/
33 BuildRequires: apache(EAPI)-devel
37 BuildRequires: db3-devel >= 3.1.17
38 BuildRequires: freetype-devel
39 BuildRequires: gd-devel >= 1.8.3
40 BuildRequires: gdbm-devel
41 BuildRequires: imap-devel >= 4.7b-1
42 # I think jdk is better for java
44 %{?bcond_on_java:BuildRequires: kaffe-devel}
45 BuildRequires: libjpeg-devel
46 BuildRequires: libltdl-devel
47 BuildRequires: libpng >= 1.0.8
48 BuildRequires: libtiff-devel
49 BuildRequires: mm-devel >= 1.1.3
50 BuildRequires: mysql-devel >= 3.23.32
51 %{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
52 BuildRequires: pam-devel
53 BuildRequires: pdflib-devel >= 3.0
54 #BuildRequires: libxml-devel >= 2.0.0
55 BuildRequires: postgresql-devel
56 BuildRequires: recode-devel >= 3.5
57 BuildRequires: t1lib-devel
58 BuildRequires: unixODBC-devel
59 BuildRequires: zlib-devel >= 1.0.9
60 BuildRequires: ucd-snmp-devel >= 4.1
61 BuildRequires: libmcrypt-devel >= 2.4.4
62 BuildRequires: mhash-devel
63 BuildRequires: bzip2-devel
64 BuildRequires: gmp-devel
65 BuildRequires: curl-devel
66 %if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
67 BuildRequires: openssl-devel >= 0.9.6
69 Requires: apache(EAPI) >= 1.3.9
71 Prereq: /usr/sbin/apxs
72 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
74 %define _sysconfdir /etc/php
75 # check ZEND_MODULE_API_NO in Zend/modules.h
76 %define extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-20001214
79 PHP is an HTML-embedded scripting language. PHP attempts to make it
80 easy for developers to write dynamically generated web pages. PHP also
81 offers built-in database integration for several commercial and
82 non-commercial database management systems, so writing a
83 database-enabled web page with PHP is fairly simple. The most common
84 use of PHP coding is probably as a replacement for CGI scripts. The
85 mod_php module enables the Apache web server to understand and process
86 the embedded PHP language in web pages. This package contains PHP
87 version %{version}. If you use applications which specifically rely on
88 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
89 module contained in the phpfi package. If you're just starting with
90 PHP, you should install this package. You'll also need to install the
94 PHP est un langage de script embarque dans le HTM. PHP essaye de
95 rendre simple aux developpeurs d'ecrire des pages web generees
96 dynamiquement. PHP incorpore egalement une integration avec plusieurs
97 systemes de gestion de bases de donnees commerciaux et
98 non-connerciaux, qui rent facile la creation de pages web liees avec
99 des bases de donnees. L'utilisation la plus commune de PHP est
100 probablement en remplacement de scripts CGI. Le module mod_php permet
101 au serveur web apache de comprendre et de traiter le langage PHP
102 integre dans des pages web. Ce package contient PHP version
103 %{version}. Si vous utilisez des applications qui utilisent
104 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
105 dans le package mod_php. Si vous debutez avec PHP, vous devriez
106 installer ce package. Vous aurez egalement besoin d'installer le
110 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
111 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
112 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
113 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
114 zosta³a z jêzyków: C, Java i Perl.
117 Summary: MySQL database module for PHP
118 Summary(pl): Modu³ bazy danych MySQL dla PHP
121 Group(fr): Librairies
122 Group(pl): Biblioteki
123 PreReq: %{name} = %{version}
126 This is a dynamic shared object (DSO) for Apache that will add MySQL
127 database support to PHP. If you need back-end support for MySQL, you
128 should install this package in addition to the main %{name} package.
130 %description mysql -l pl
131 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
135 Summary: PostgreSQL database module for PHP
136 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
139 Group(fr): Librairies
140 Group(pl): Biblioteki
141 PreReq: %{name} = %{version}
144 This is a dynamic shared object (DSO) for Apache that will add
145 PostgreSQL database support to PHP. If you need back-end support for
146 PostgreSQL, you should install this package in addition to the main
149 %description pgsql -l pl
150 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
153 Summary: Oracle 8 database module for PHP
154 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
157 Group(fr): Librairies
158 Group(pl): Biblioteki
159 PreReq: %{name} = %{version}
163 This is a dynamic shared object (DSO) for Apache that will add Oracle
164 8 database support to PHP. If you need back-end support for Oracle 8,
165 you should install this package in addition to the main %{name}
168 %description oci8 -l pl
169 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8. }
172 Summary: Oracle 7 database module for PHP
173 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
176 Group(fr): Librairies
177 Group(pl): Biblioteki
178 PreReq: %{name} = %{version}
182 This is a dynamic shared object (DSO) for Apache that will add Oracle
183 7 database support to PHP. If you need back-end support for Oracle 7,
184 you should install this package in addition to the main %{name}
187 %description oracle -l pl
188 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7. }
191 Summary: GD extension module for PHP
192 Summary: Modu³ GD dla PHP
195 Group(fr): Librairies
196 Group(pl): Biblioteki
197 PreReq: %{name} = %{version}
200 This is a dynamic shared object (DSO) for Apache that will add GD
201 support to PHP. You should install this package in addition to the
202 main %{name} package if you want to create and manipulate images with
205 %description gd -l pl
207 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
209 Summary: Java extension module for PHP
210 Summary(pl): Modu³ Javy dla PHP
213 Group(fr): Librairies
214 Group(pl): Biblioteki
215 PreReq: %{name} = %{version}
218 This is a dynamic shared object (DSO) for Apache that will add JAVA
219 support to PHP. This extension provides a simple and effective means
220 for creating and invoking methods on Java objects from PHP.
222 %description java -l pl
226 Summary: XML extension module for PHP
227 Summary(pl): Modu³ XML dla PHP
230 Group(fr): Librairies
231 Group(pl): Biblioteki
232 PreReq: %{name} = %{version}
235 This is a dynamic shared object (DSO) for Apache that will add XML
236 support to PHP. This extension lets you create XML parsers and then
237 define handlers for different XML events. If you want to be able to
238 parse XML documents you should install this package in addition to the
239 main %{name} package.
241 #%description xml -l pl
244 Summary: DBA extension module for PHP
245 Summary(pl): Modu³ DBA dla PHP
248 Group(fr): Librairies
249 Group(pl): Biblioteki
250 PreReq: %{name} = %{version}
253 This is a dynamic shared object (DSO) for Apache that will add
254 flat-file databases (DBA) support to PHP.
256 #%description dba -l pl
259 Summary: ODBC extension module for PHP
260 Summary(pl): Modu³ ODBC dla PHP
263 Group(fr): Librairies
264 Group(pl): Biblioteki
265 PreReq: %{name} = %{version}
268 This is a dynamic shared object (DSO) for Apache that will add
271 #%description odbc -l pl
274 Summary: Calendar extension module for PHP
275 Summary(pl): Modu³ funkcji kalendarza dla PHP
278 Group(fr): Librairies
279 Group(pl): Biblioteki
280 PreReq: %{name} = %{version}
282 %description calendar
283 This is a dynamic shared object (DSO) for Apache that will add
284 calendar support to PHP.
286 #%description calendar -l pl
289 Summary: DBase extension module for PHP
290 Summary(pl): Modu³ DBase dla PHP
293 Group(fr): Librairies
294 Group(pl): Biblioteki
295 PreReq: %{name} = %{version}
298 This is a dynamic shared object (DSO) for Apache that will add DBase
301 #%description dbase -l pl
304 Summary: FilePro extension module for PHP
305 Summary(pl): Modu³ FilePro dla PHP
308 Group(fr): Librairies
309 Group(pl): Biblioteki
310 PreReq: %{name} = %{version}
313 This is a dynamic shared object (DSO) for Apache that will add FilePro
316 #%description filepro -l pl
319 Summary: POSIX extension module for PHP
320 Summary(pl): Modu³ POSIX dla PHP
323 Group(fr): Librairies
324 Group(pl): Biblioteki
325 PreReq: %{name} = %{version}
328 This is a dynamic shared object (DSO) for Apache that will add POSIX
329 functions support to PHP.
331 #%description posix -l pl
334 Summary: PCRE extension module for PHP
335 Summary(pl): Modu³ PCRE dla PHP
338 Group(fr): Librairies
339 Group(pl): Biblioteki
340 PreReq: %{name} = %{version}
343 This is a dynamic shared object (DSO) for Apache that will add Perl
344 Compatible Regular Expression support to PHP.
346 #%description pcre -l pl
349 Summary: SysV sem extension module for PHP
350 Summary(pl): Modu³ SysV sem dla PHP
353 Group(fr): Librairies
354 Group(pl): Biblioteki
355 PreReq: %{name} = %{version}
358 This is a dynamic shared object (DSO) for Apache that will add SysV
359 semafores support to PHP.
361 #%description sysvsem -l pl
364 Summary: SysV shm extension module for PHP
365 Summary(pl): Modu³ SysV shm dla PHP
368 Group(fr): Librairies
369 Group(pl): Biblioteki
370 PreReq: %{name} = %{version}
373 This is a dynamic shared object (DSO) for Apache that will add SysV
374 Shared Memory support to PHP.
376 #%description sysvshm -l pl
379 Summary: NIS (yp) extension module for PHP
380 Summary(pl): Modu³ NIS (yp) dla PHP
383 Group(fr): Librairies
384 Group(pl): Biblioteki
385 PreReq: %{name} = %{version}
388 This is a dynamic shared object (DSO) for Apache that will add NIS
389 (Yellow Pages) support to PHP.
391 #%description yp -l pl
394 Summary: bcmath extension module for PHP
395 Summary(pl): Modu³ bcmath dla PHP
398 Group(fr): Librairies
399 Group(pl): Biblioteki
400 PreReq: %{name} = %{version}
403 This is a dynamic shared object (DSO) for Apache that will add bc
404 style precision math functions support to PHP.
406 #%description bcmath -l pl
409 Summary: FTP extension module for PHP
410 Summary(pl): Modu³ FTP dla PHP
413 Group(fr): Librairies
414 Group(pl): Biblioteki
415 PreReq: %{name} = %{version}
418 This is a dynamic shared object (DSO) for Apache that will add FTP
421 #%description ftp -l pl
424 Summary: Zlib extension module for PHP
425 Summary(pl): Modu³ zlib dla PHP
428 Group(fr): Librairies
429 Group(pl): Biblioteki
430 PreReq: %{name} = %{version}
433 This is a dynamic shared object (DSO) for Apache that will add
434 commpresion (zlib) support to PHP.
436 #%description zlib -l pl
439 Summary: exifextension module for PHP
440 Summary(pl): Modu³ exif dla PHP
443 Group(fr): Librairies
444 Group(pl): Biblioteki
445 PreReq: %{name} = %{version}
448 This is a dynamic shared object (DSO) for Apache that will add exif
451 #%description exif -l pl
454 Summary: recodeextension module for PHP
455 Summary(pl): Modu³ recode dla PHP
458 Group(fr): Librairies
459 Group(pl): Biblioteki
460 PreReq: %{name} = %{version}
463 This is a dynamic shared object (DSO) for Apache that will add recode
466 #%description recode -l pl
469 Summary: sessionextension module for PHP
470 Summary(pl): Modu³ session dla PHP
473 Group(fr): Librairies
474 Group(pl): Biblioteki
475 PreReq: %{name} = %{version}
478 This is a dynamic shared object (DSO) for Apache that will add session
481 #%description session -l pl
484 Summary: gettextextension module for PHP
485 Summary(pl): Modu³ gettext dla PHP
488 Group(fr): Librairies
489 Group(pl): Biblioteki
490 PreReq: %{name} = %{version}
493 This is a dynamic shared object (DSO) for Apache that will add gettext
496 #%description gettext -l pl
500 Summary: snmpextension module for PHP
501 Summary(pl): Modu³ snmp dla PHP
504 Group(fr): Librairies
505 Group(pl): Biblioteki
506 PreReq: %{name} = %{version}
509 This is a dynamic shared object (DSO) for Apache that will add snmp
512 #%description snmp -l pl
515 Summary: imapextension module for PHP
516 Summary(pl): Modu³ imap dla PHP
519 Group(fr): Librairies
520 Group(pl): Biblioteki
521 PreReq: %{name} = %{version}
524 This is a dynamic shared object (DSO) for Apache that will add imap
527 #%description imap -l pl
530 Summary: LDAP extension module for PHP
531 Summary(pl): Modu³ LDAP dla PHP
534 Group(fr): Librairies
535 Group(pl): Biblioteki
536 PreReq: %{name} = %{version}
539 This is a dynamic shared object (DSO) for Apache that will add LDAP
542 #%description ldap -l pl
545 Summary: sockets extension module for PHP
546 Summary(pl): Modu³ socket dla PHP
549 Group(fr): Librairies
550 Group(pl): Biblioteki
551 PreReq: %{name} = %{version}
554 This is a dynamic shared object (DSO) for Apache that will add sockets
557 #%description sockets -l pl
560 Summary: mcrypt extension module for PHP
561 Summary(pl): Modu³ mcrypt dla PHP
564 Group(fr): Librairies
565 Group(pl): Biblioteki
566 PreReq: %{name} = %{version}
569 This is a dynamic shared object (DSO) for Apache that will add mcrypt
572 #%description mcrypt -l pl
575 Summary: mhash extension module for PHP
576 Summary(pl): Modu³ mhash dla PHP
579 Group(fr): Librairies
580 Group(pl): Biblioteki
581 PreReq: %{name} = %{version}
584 This is a dynamic shared object (DSO) for Apache that will add mhash
587 #%description mcrypt -l pl
591 Summary: Online manual for PHP
592 Summary(pl): Dokumentacja dla PHP
593 Group: Networking/Daemons
594 Group(de): Netzwerkwesen/Server
595 Group(pl): Sieciowe/Serwery
598 Comprehensive documentation for PHP, viewable through your web
601 %description doc -l pl
602 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
607 Group: Development/Languages/PHP
613 Summary: Files for PHP modules development
614 Group: Development/Languages/PHP
617 Files for PHP modules development.
632 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
635 --with-apxs=/usr/sbin/apxs \
636 --with-config-file-path=%{_sysconfdir}/apache \
637 --with-exec-dir=%{_bindir} \
639 --enable-magic-quotes \
641 --enable-track-vars \
644 --enable-sysvsem=shared \
645 --enable-sysvshm=shared \
646 --enable-shmop=shared \
648 --enable-exif=shared \
649 --with-regex=system \
650 --with-gettext=shared \
651 %{!?bcond_off_ldap:--with-ldap=shared} \
652 --with-mysql=shared,/usr \
653 --with-mysql-sock=/var/lib/mysql/mysql.sock \
655 --enable-gd-imgstrttf \
656 --with-dbase=shared \
657 --with-filepro=shared \
658 --enable-ftp=shared \
660 --with-pdflib=shared \
661 --with-cpdflib=shared \
662 %{?bcond_on_java:--with-java} \
663 --with-pgsql=shared,/usr \
665 --enable-bcmath=shared \
666 --enable-calendar=shared \
668 --with-pcre-regex=shared \
669 --enable-posix=shared \
672 --with-recode=shared \
673 --enable-ucd-snmp-hack \
674 --enable-dba=shared \
681 --enable-xml=shared \
683 --with-mcrypt=shared \
684 --enable-sockets=shared \
686 --with-ctype=shared \
687 --with-mhash=shared \
690 %{?bcond_on_openssl:--with-openssl} \
691 --with-unixODBC=shared \
692 %{?bcond_on_oracle:--with-oracle=shared} \
693 %{?bcond_on_oci8:--with-oci8=shared} \
698 # TODO --with-pspell=/usr,shared (pspell missing)
701 # --with-dom need libxml >= 2.2.7 \
706 rm -rf $RPM_BUILD_ROOT
707 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
708 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc} \
709 $RPM_BUILD_ROOT/%{_sbindir}
711 %{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
713 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
714 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
716 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache/php.ini
717 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
718 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
720 tar zxf %{SOURCE4} -C $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
721 ln -s manual.html $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc/index.html
724 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
725 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
726 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
729 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
730 perl -pi -e 's|^#AddType application/x-httpd-php .php|AddType application/x-httpd-php .php|'
731 if [ -f /var/lock/subsys/httpd ]; then
732 /etc/rc.d/init.d/httpd restart 1>&2
736 perl -pi -e 's|^AddType application/x-httpd-php .php|#AddType application/x-httpd-php .php|'
737 if [ -f /var/lock/subsys/httpd ]; then
738 /etc/rc.d/init.d/httpd restart 1>&2
742 if [ "$1" = "0" ]; then
743 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
744 if [ -f /var/lock/subsys/httpd ]; then
745 /etc/rc.d/init.d/httpd restart 1>&2
751 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/apache/php.ini
754 if [ "$1" = "0" ]; then
755 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/apache/php.ini
759 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/apache/php.ini
762 if [ "$1" = "0" ]; then
763 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/apache/php.ini
767 %{_sbindir}/php-module-install install dba %{_sysconfdir}/apache/php.ini
770 if [ "$1" = "0" ]; then
771 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/apache/php.ini
775 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/apache/php.ini
778 if [ "$1" = "0" ]; then
779 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/apache/php.ini
783 %{_sbindir}/php-module-install install exif %{_sysconfdir}/apache/php.ini
786 if [ "$1" = "0" ]; then
787 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/apache/php.ini
791 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/apache/php.ini
794 if [ "$1" = "0" ]; then
795 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/apache/php.ini
799 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/apache/php.ini
802 if [ "$1" = "0" ]; then
803 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/apache/php.ini
807 %{_sbindir}/php-module-install install gd %{_sysconfdir}/apache/php.ini
810 if [ "$1" = "0" ]; then
811 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/apache/php.ini
815 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/apache/php.ini
818 if [ "$1" = "0" ]; then
819 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/apache/php.ini
823 %{_sbindir}/php-module-install install imap %{_sysconfdir}/apache/php.ini
826 if [ "$1" = "0" ]; then
827 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/apache/php.ini
830 %if %{?bond_on_java:1}%{!?bond_on_java:0}
832 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/apache/php.ini
835 if [ "$1" = "0" ]; then
836 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/apache/php.ini
840 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
842 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/apache/php.ini
845 if [ "$1" = "0" ]; then
846 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/apache/php.ini
851 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/apache/php.ini
854 if [ "$1" = "0" ]; then
855 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/apache/php.ini
859 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/apache/php.ini
862 if [ "$1" = "0" ]; then
863 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/apache/php.ini
867 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/apache/php.ini
870 if [ "$1" = "0" ]; then
871 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/apache/php.ini
874 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
876 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/apache/php.ini
879 if [ "$1" = "0" ]; then
880 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/apache/php.ini
885 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/apache/php.ini
888 if [ "$1" = "0" ]; then
889 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/apache/php.ini
892 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
894 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/apache/php.ini
897 if [ "$1" = "0" ]; then
898 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/apache/php.ini
903 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/apache/php.ini
906 if [ "$1" = "0" ]; then
907 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/apache/php.ini
911 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/apache/php.ini
914 if [ "$1" = "0" ]; then
915 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/apache/php.ini
919 %{_sbindir}/php-module-install install posix %{_sysconfdir}/apache/php.ini
922 if [ "$1" = "0" ]; then
923 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/apache/php.ini
927 %{_sbindir}/php-module-install install recode %{_sysconfdir}/apache/php.ini
930 if [ "$1" = "0" ]; then
931 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/apache/php.ini
935 %{_sbindir}/php-module-install install session %{_sysconfdir}/apache/php.ini
938 if [ "$1" = "0" ]; then
939 %{_sbindir}/php-module-install remove session %{_sysconfdir}/apache/php.ini
943 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/apache/php.ini
946 if [ "$1" = "0" ]; then
947 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/apache/php.ini
951 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/apache/php.ini
954 if [ "$1" = "0" ]; then
955 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/apache/php.ini
959 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/apache/php.ini
962 if [ "$1" = "0" ]; then
963 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/apache/php.ini
967 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/apache/php.ini
970 if [ "$1" = "0" ]; then
971 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/apache/php.ini
975 %{_sbindir}/php-module-install install xml %{_sysconfdir}/apache/php.ini
978 if [ "$1" = "0" ]; then
979 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/apache/php.ini
983 %{_sbindir}/php-module-install install yp %{_sysconfdir}/apache/php.ini
986 if [ "$1" = "0" ]; then
987 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/apache/php.ini
991 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/apache/php.ini
994 if [ "$1" = "0" ]; then
995 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/apache/php.ini
999 rm -rf $RPM_BUILD_ROOT
1002 %defattr(644,root,root,755)
1003 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1004 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1005 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1007 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/apache/*
1010 /home/httpd/html/icons/*
1012 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1013 %attr(755,root,root) %{_sbindir}/*
1016 %dir %{_libdir}/php/extensions
1017 %dir %{extensionsdir}
1020 %defattr(644,root,root,755)
1022 %{_libdir}/php4/build
1023 %attr(755,root,root) %{_bindir}/phpextdist
1024 %attr(755,root,root) %{_bindir}/phpize
1025 %attr(755,root,root) %{_bindir}/php-config
1028 %defattr(644,root,root,755)
1029 %attr(755,root,root) %{_bindir}/pear
1030 %{_libdir}/php/Benchmark
1031 %{_libdir}/php/Crypt
1039 %{_libdir}/php/Payment
1042 %{_libdir}/php/*.php
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{extensionsdir}/mysql.*
1050 %defattr(644,root,root,755)
1051 %attr(755,root,root) %{extensionsdir}/pgsql.so
1053 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1055 %defattr(644,root,root,755)
1056 %attr(755,root,root) %{extensionsdir}/oracle.so
1059 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1061 %defattr(644,root,root,755)
1062 %attr(755,root,root) %{extensionsdir}/oci8.so
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{extensionsdir}/gd.so
1070 %defattr(644,root,root,755)
1071 %attr(755,root,root) %{extensionsdir}/xml.so
1074 %defattr(644,root,root,755)
1075 %attr(755,root,root) %{extensionsdir}/dba.so
1078 %defattr(644,root,root,755)
1079 %attr(755,root,root) %{extensionsdir}/dbase.so
1082 %defattr(644,root,root,755)
1083 %attr(755,root,root) %{extensionsdir}/filepro.so
1086 %defattr(644,root,root,755)
1087 %attr(755,root,root) %{extensionsdir}/pcre.so
1090 %defattr(644,root,root,755)
1091 %attr(755,root,root) %{extensionsdir}/posix.so
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1098 %defattr(644,root,root,755)
1099 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1102 %defattr(644,root,root,755)
1103 %attr(755,root,root) %{extensionsdir}/yp.so
1106 %defattr(644,root,root,755)
1107 %attr(755,root,root) %{extensionsdir}/calendar.so
1110 %defattr(644,root,root,755)
1111 %attr(755,root,root) %{extensionsdir}/bcmath.so
1114 %defattr(644,root,root,755)
1115 %attr(755,root,root) %{extensionsdir}/ftp.so
1118 %defattr(644,root,root,755)
1119 %attr(755,root,root) %{extensionsdir}/zlib.so
1122 %defattr(644,root,root,755)
1123 %attr(755,root,root) %{extensionsdir}/exif.so
1126 %defattr(644,root,root,755)
1127 %attr(755,root,root) %{extensionsdir}/recode.so
1130 #%defattr(644,root,root,755)
1131 #%attr(755,root,root) %{extensionsdir}/session.so
1134 %defattr(644,root,root,755)
1135 %attr(755,root,root) %{extensionsdir}/gettext.so
1138 %defattr(644,root,root,755)
1139 %attr(755,root,root) %{extensionsdir}/imap.so
1142 %defattr(644,root,root,755)
1143 %attr(755,root,root) %{extensionsdir}/snmp.so
1145 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1147 %defattr(644,root,root,755)
1148 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1151 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1153 %defattr(644,root,root,755)
1154 %attr(755,root,root) %{extensionsdir}/ldap.*
1158 %defattr(644,root,root,755)
1159 %attr(755,root,root) %{extensionsdir}/sockets.so
1162 %defattr(644,root,root,755)
1163 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1166 %defattr(644,root,root,755)
1167 %attr(755,root,root) %{extensionsdir}/mhash.so
1170 %defattr(644,root,root,755)
1171 %attr(755,root,root) %{extensionsdir}/odbc.so
1174 %defattr(644,root,root,755)
1175 /home/httpd/html/docs/php4-doc