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 %define extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-%(egrep '#define ZEND_MODULE_API_NO ' %{_builddir}/%{buildsubdir}/Zend/modules.h|sed 's/#define ZEND_MODULE_API_NO //')
78 PHP is an HTML-embedded scripting language. PHP attempts to make it
79 easy for developers to write dynamically generated web pages. PHP also
80 offers built-in database integration for several commercial and
81 non-commercial database management systems, so writing a
82 database-enabled web page with PHP is fairly simple. The most common
83 use of PHP coding is probably as a replacement for CGI scripts. The
84 mod_php module enables the Apache web server to understand and process
85 the embedded PHP language in web pages. This package contains PHP
86 version %{version}. If you use applications which specifically rely on
87 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
88 module contained in the phpfi package. If you're just starting with
89 PHP, you should install this package. You'll also need to install the
93 PHP est un langage de script embarque dans le HTM. PHP essaye de
94 rendre simple aux developpeurs d'ecrire des pages web generees
95 dynamiquement. PHP incorpore egalement une integration avec plusieurs
96 systemes de gestion de bases de donnees commerciaux et
97 non-connerciaux, qui rent facile la creation de pages web liees avec
98 des bases de donnees. L'utilisation la plus commune de PHP est
99 probablement en remplacement de scripts CGI. Le module mod_php permet
100 au serveur web apache de comprendre et de traiter le langage PHP
101 integre dans des pages web. Ce package contient PHP version
102 %{version}. Si vous utilisez des applications qui utilisent
103 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
104 dans le package mod_php. Si vous debutez avec PHP, vous devriez
105 installer ce package. Vous aurez egalement besoin d'installer le
109 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
110 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
111 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
112 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
113 zosta³a z jêzyków: C, Java i Perl.
116 Summary: MySQL database module for PHP
117 Summary(pl): Modu³ bazy danych MySQL dla PHP
120 Group(fr): Librairies
121 Group(pl): Biblioteki
122 PreReq: %{name} = %{version}
125 This is a dynamic shared object (DSO) for Apache that will add MySQL
126 database support to PHP. If you need back-end support for MySQL, you
127 should install this package in addition to the main %{name} package.
129 %description mysql -l pl
130 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
134 Summary: PostgreSQL database module for PHP
135 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
138 Group(fr): Librairies
139 Group(pl): Biblioteki
140 PreReq: %{name} = %{version}
143 This is a dynamic shared object (DSO) for Apache that will add
144 PostgreSQL database support to PHP. If you need back-end support for
145 PostgreSQL, you should install this package in addition to the main
148 %description pgsql -l pl
149 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
152 Summary: Oracle 8 database module for PHP
153 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
156 Group(fr): Librairies
157 Group(pl): Biblioteki
158 PreReq: %{name} = %{version}
162 This is a dynamic shared object (DSO) for Apache that will add Oracle
163 8 database support to PHP. If you need back-end support for Oracle 8,
164 you should install this package in addition to the main %{name}
167 %description oci8 -l pl
168 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8. }
171 Summary: Oracle 7 database module for PHP
172 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
175 Group(fr): Librairies
176 Group(pl): Biblioteki
177 PreReq: %{name} = %{version}
181 This is a dynamic shared object (DSO) for Apache that will add Oracle
182 7 database support to PHP. If you need back-end support for Oracle 7,
183 you should install this package in addition to the main %{name}
186 %description oracle -l pl
187 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7. }
190 Summary: GD extension module for PHP
191 Summary: Modu³ GD dla PHP
194 Group(fr): Librairies
195 Group(pl): Biblioteki
196 PreReq: %{name} = %{version}
199 This is a dynamic shared object (DSO) for Apache that will add GD
200 support to PHP. You should install this package in addition to the
201 main %{name} package if you want to create and manipulate images with
204 %description gd -l pl
206 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
208 Summary: Java extension module for PHP
209 Summary(pl): Modu³ Javy dla PHP
212 Group(fr): Librairies
213 Group(pl): Biblioteki
214 PreReq: %{name} = %{version}
217 This is a dynamic shared object (DSO) for Apache that will add JAVA
218 support to PHP. This extension provides a simple and effective means
219 for creating and invoking methods on Java objects from PHP.
221 %description java -l pl
225 Summary: XML extension module for PHP
226 Summary(pl): Modu³ XML dla PHP
229 Group(fr): Librairies
230 Group(pl): Biblioteki
231 PreReq: %{name} = %{version}
234 This is a dynamic shared object (DSO) for Apache that will add XML
235 support to PHP. This extension lets you create XML parsers and then
236 define handlers for different XML events. If you want to be able to
237 parse XML documents you should install this package in addition to the
238 main %{name} package.
240 #%description xml -l pl
243 Summary: DBA extension module for PHP
244 Summary(pl): Modu³ DBA dla PHP
247 Group(fr): Librairies
248 Group(pl): Biblioteki
249 PreReq: %{name} = %{version}
252 This is a dynamic shared object (DSO) for Apache that will add
253 flat-file databases (DBA) support to PHP.
255 #%description dba -l pl
258 Summary: ODBC extension module for PHP
259 Summary(pl): Modu³ ODBC dla PHP
262 Group(fr): Librairies
263 Group(pl): Biblioteki
264 PreReq: %{name} = %{version}
267 This is a dynamic shared object (DSO) for Apache that will add
270 #%description odbc -l pl
273 Summary: Calendar extension module for PHP
274 Summary(pl): Modu³ funkcji kalendarza dla PHP
277 Group(fr): Librairies
278 Group(pl): Biblioteki
279 PreReq: %{name} = %{version}
281 %description calendar
282 This is a dynamic shared object (DSO) for Apache that will add
283 calendar support to PHP.
285 #%description calendar -l pl
288 Summary: DBase extension module for PHP
289 Summary(pl): Modu³ DBase dla PHP
292 Group(fr): Librairies
293 Group(pl): Biblioteki
294 PreReq: %{name} = %{version}
297 This is a dynamic shared object (DSO) for Apache that will add DBase
300 #%description dbase -l pl
303 Summary: FilePro extension module for PHP
304 Summary(pl): Modu³ FilePro dla PHP
307 Group(fr): Librairies
308 Group(pl): Biblioteki
309 PreReq: %{name} = %{version}
312 This is a dynamic shared object (DSO) for Apache that will add FilePro
315 #%description filepro -l pl
318 Summary: POSIX extension module for PHP
319 Summary(pl): Modu³ POSIX dla PHP
322 Group(fr): Librairies
323 Group(pl): Biblioteki
324 PreReq: %{name} = %{version}
327 This is a dynamic shared object (DSO) for Apache that will add POSIX
328 functions support to PHP.
330 #%description posix -l pl
333 Summary: PCRE extension module for PHP
334 Summary(pl): Modu³ PCRE dla PHP
337 Group(fr): Librairies
338 Group(pl): Biblioteki
339 PreReq: %{name} = %{version}
342 This is a dynamic shared object (DSO) for Apache that will add Perl
343 Compatible Regular Expression support to PHP.
345 #%description pcre -l pl
348 Summary: SysV sem extension module for PHP
349 Summary(pl): Modu³ SysV sem dla PHP
352 Group(fr): Librairies
353 Group(pl): Biblioteki
354 PreReq: %{name} = %{version}
357 This is a dynamic shared object (DSO) for Apache that will add SysV
358 semafores support to PHP.
360 #%description sysvsem -l pl
363 Summary: SysV shm extension module for PHP
364 Summary(pl): Modu³ SysV shm dla PHP
367 Group(fr): Librairies
368 Group(pl): Biblioteki
369 PreReq: %{name} = %{version}
372 This is a dynamic shared object (DSO) for Apache that will add SysV
373 Shared Memory support to PHP.
375 #%description sysvshm -l pl
378 Summary: NIS (yp) extension module for PHP
379 Summary(pl): Modu³ NIS (yp) dla PHP
382 Group(fr): Librairies
383 Group(pl): Biblioteki
384 PreReq: %{name} = %{version}
387 This is a dynamic shared object (DSO) for Apache that will add NIS
388 (Yellow Pages) support to PHP.
390 #%description yp -l pl
393 Summary: bcmath extension module for PHP
394 Summary(pl): Modu³ bcmath dla PHP
397 Group(fr): Librairies
398 Group(pl): Biblioteki
399 PreReq: %{name} = %{version}
402 This is a dynamic shared object (DSO) for Apache that will add bc
403 style precision math functions support to PHP.
405 #%description bcmath -l pl
408 Summary: FTP extension module for PHP
409 Summary(pl): Modu³ FTP dla PHP
412 Group(fr): Librairies
413 Group(pl): Biblioteki
414 PreReq: %{name} = %{version}
417 This is a dynamic shared object (DSO) for Apache that will add FTP
420 #%description ftp -l pl
423 Summary: Zlib extension module for PHP
424 Summary(pl): Modu³ zlib dla PHP
427 Group(fr): Librairies
428 Group(pl): Biblioteki
429 PreReq: %{name} = %{version}
432 This is a dynamic shared object (DSO) for Apache that will add
433 commpresion (zlib) support to PHP.
435 #%description zlib -l pl
438 Summary: exifextension module for PHP
439 Summary(pl): Modu³ exif dla PHP
442 Group(fr): Librairies
443 Group(pl): Biblioteki
444 PreReq: %{name} = %{version}
447 This is a dynamic shared object (DSO) for Apache that will add exif
450 #%description exif -l pl
453 Summary: recodeextension module for PHP
454 Summary(pl): Modu³ recode dla PHP
457 Group(fr): Librairies
458 Group(pl): Biblioteki
459 PreReq: %{name} = %{version}
462 This is a dynamic shared object (DSO) for Apache that will add recode
465 #%description recode -l pl
468 Summary: sessionextension module for PHP
469 Summary(pl): Modu³ session dla PHP
472 Group(fr): Librairies
473 Group(pl): Biblioteki
474 PreReq: %{name} = %{version}
477 This is a dynamic shared object (DSO) for Apache that will add session
480 #%description session -l pl
483 Summary: gettextextension module for PHP
484 Summary(pl): Modu³ gettext dla PHP
487 Group(fr): Librairies
488 Group(pl): Biblioteki
489 PreReq: %{name} = %{version}
492 This is a dynamic shared object (DSO) for Apache that will add gettext
495 #%description gettext -l pl
499 Summary: snmpextension module for PHP
500 Summary(pl): Modu³ snmp dla PHP
503 Group(fr): Librairies
504 Group(pl): Biblioteki
505 PreReq: %{name} = %{version}
508 This is a dynamic shared object (DSO) for Apache that will add snmp
511 #%description snmp -l pl
514 Summary: imapextension module for PHP
515 Summary(pl): Modu³ imap dla PHP
518 Group(fr): Librairies
519 Group(pl): Biblioteki
520 PreReq: %{name} = %{version}
523 This is a dynamic shared object (DSO) for Apache that will add imap
526 #%description imap -l pl
529 Summary: LDAP extension module for PHP
530 Summary(pl): Modu³ LDAP dla PHP
533 Group(fr): Librairies
534 Group(pl): Biblioteki
535 PreReq: %{name} = %{version}
538 This is a dynamic shared object (DSO) for Apache that will add LDAP
541 #%description ldap -l pl
544 Summary: sockets extension module for PHP
545 Summary(pl): Modu³ socket dla PHP
548 Group(fr): Librairies
549 Group(pl): Biblioteki
550 PreReq: %{name} = %{version}
553 This is a dynamic shared object (DSO) for Apache that will add sockets
556 #%description sockets -l pl
559 Summary: mcrypt extension module for PHP
560 Summary(pl): Modu³ mcrypt dla PHP
563 Group(fr): Librairies
564 Group(pl): Biblioteki
565 PreReq: %{name} = %{version}
568 This is a dynamic shared object (DSO) for Apache that will add mcrypt
571 #%description mcrypt -l pl
574 Summary: mhash extension module for PHP
575 Summary(pl): Modu³ mhash dla PHP
578 Group(fr): Librairies
579 Group(pl): Biblioteki
580 PreReq: %{name} = %{version}
583 This is a dynamic shared object (DSO) for Apache that will add mhash
586 #%description mcrypt -l pl
590 Summary: Online manual for PHP
591 Summary(pl): Dokumentacja dla PHP
592 Group: Networking/Daemons
593 Group(de): Netzwerkwesen/Server
594 Group(pl): Sieciowe/Serwery
597 Comprehensive documentation for PHP, viewable through your web
600 %description doc -l pl
601 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
606 Group: Development/Languages/PHP
612 Summary: Files for PHP modules development
613 Group: Development/Languages/PHP
616 Files for PHP modules development.
631 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
634 --with-apxs=/usr/sbin/apxs \
635 --with-config-file-path=%{_sysconfdir}/apache \
636 --with-exec-dir=%{_bindir} \
638 --enable-magic-quotes \
640 --enable-track-vars \
643 --enable-sysvsem=shared \
644 --enable-sysvshm=shared \
645 --enable-shmop=shared \
647 --enable-exif=shared \
648 --with-regex=system \
649 --with-gettext=shared \
650 %{!?bcond_off_ldap:--with-ldap=shared} \
651 --with-mysql=shared,/usr \
652 --with-mysql-sock=/var/lib/mysql/mysql.sock \
654 --enable-gd-imgstrttf \
655 --with-dbase=shared \
656 --with-filepro=shared \
657 --enable-ftp=shared \
659 --with-pdflib=shared \
660 --with-cpdflib=shared \
661 %{?bcond_on_java:--with-java} \
662 --with-pgsql=shared,/usr \
664 --enable-bcmath=shared \
665 --enable-calendar=shared \
667 --with-pcre-regex=shared \
668 --enable-posix=shared \
671 --with-recode=shared \
672 --enable-ucd-snmp-hack \
673 --enable-dba=shared \
680 --enable-xml=shared \
682 --with-mcrypt=shared \
683 --enable-sockets=shared \
685 --with-ctype=shared \
686 --with-mhash=shared \
689 %{?bcond_on_openssl:--with-openssl} \
690 --with-unixODBC=shared \
691 %{?bcond_on_oracle:--with-oracle=shared} \
692 %{?bcond_on_oci8:--with-oci8=shared} \
697 # TODO --with-pspell=/usr,shared (pspell missing)
700 # --with-dom need libxml >= 2.2.7 \
705 rm -rf $RPM_BUILD_ROOT
706 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
707 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc} \
708 $RPM_BUILD_ROOT/%{_sbindir}
710 %{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
712 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
713 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
715 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache/php.ini
716 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
717 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
719 tar zxf %{SOURCE4} -C $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
720 ln -s manual.html $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc/index.html
723 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
724 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
725 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
728 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
729 perl -pi -e 's|^#AddType application/x-httpd-php .php|AddType application/x-httpd-php .php|'
730 if [ -f /var/lock/subsys/httpd ]; then
731 /etc/rc.d/init.d/httpd restart 1>&2
735 perl -pi -e 's|^AddType application/x-httpd-php .php|#AddType application/x-httpd-php .php|'
736 if [ -f /var/lock/subsys/httpd ]; then
737 /etc/rc.d/init.d/httpd restart 1>&2
741 if [ "$1" = "0" ]; then
742 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
743 if [ -f /var/lock/subsys/httpd ]; then
744 /etc/rc.d/init.d/httpd restart 1>&2
750 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/apache/php.ini
753 if [ "$1" = "0" ]; then
754 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/apache/php.ini
758 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/apache/php.ini
761 if [ "$1" = "0" ]; then
762 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/apache/php.ini
766 %{_sbindir}/php-module-install install dba %{_sysconfdir}/apache/php.ini
769 if [ "$1" = "0" ]; then
770 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/apache/php.ini
774 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/apache/php.ini
777 if [ "$1" = "0" ]; then
778 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/apache/php.ini
782 %{_sbindir}/php-module-install install exif %{_sysconfdir}/apache/php.ini
785 if [ "$1" = "0" ]; then
786 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/apache/php.ini
790 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/apache/php.ini
793 if [ "$1" = "0" ]; then
794 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/apache/php.ini
798 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/apache/php.ini
801 if [ "$1" = "0" ]; then
802 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/apache/php.ini
806 %{_sbindir}/php-module-install install gd %{_sysconfdir}/apache/php.ini
809 if [ "$1" = "0" ]; then
810 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/apache/php.ini
814 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/apache/php.ini
817 if [ "$1" = "0" ]; then
818 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/apache/php.ini
822 %{_sbindir}/php-module-install install imap %{_sysconfdir}/apache/php.ini
825 if [ "$1" = "0" ]; then
826 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/apache/php.ini
829 %if %{?bond_on_java:1}%{!?bond_on_java:0}
831 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/apache/php.ini
834 if [ "$1" = "0" ]; then
835 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/apache/php.ini
839 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
841 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/apache/php.ini
844 if [ "$1" = "0" ]; then
845 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/apache/php.ini
850 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/apache/php.ini
853 if [ "$1" = "0" ]; then
854 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/apache/php.ini
858 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/apache/php.ini
861 if [ "$1" = "0" ]; then
862 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/apache/php.ini
866 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/apache/php.ini
869 if [ "$1" = "0" ]; then
870 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/apache/php.ini
873 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
875 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/apache/php.ini
878 if [ "$1" = "0" ]; then
879 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/apache/php.ini
884 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/apache/php.ini
887 if [ "$1" = "0" ]; then
888 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/apache/php.ini
891 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
893 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/apache/php.ini
896 if [ "$1" = "0" ]; then
897 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/apache/php.ini
902 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/apache/php.ini
905 if [ "$1" = "0" ]; then
906 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/apache/php.ini
910 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/apache/php.ini
913 if [ "$1" = "0" ]; then
914 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/apache/php.ini
918 %{_sbindir}/php-module-install install posix %{_sysconfdir}/apache/php.ini
921 if [ "$1" = "0" ]; then
922 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/apache/php.ini
926 %{_sbindir}/php-module-install install recode %{_sysconfdir}/apache/php.ini
929 if [ "$1" = "0" ]; then
930 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/apache/php.ini
934 %{_sbindir}/php-module-install install session %{_sysconfdir}/apache/php.ini
937 if [ "$1" = "0" ]; then
938 %{_sbindir}/php-module-install remove session %{_sysconfdir}/apache/php.ini
942 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/apache/php.ini
945 if [ "$1" = "0" ]; then
946 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/apache/php.ini
950 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/apache/php.ini
953 if [ "$1" = "0" ]; then
954 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/apache/php.ini
958 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/apache/php.ini
961 if [ "$1" = "0" ]; then
962 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/apache/php.ini
966 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/apache/php.ini
969 if [ "$1" = "0" ]; then
970 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/apache/php.ini
974 %{_sbindir}/php-module-install install xml %{_sysconfdir}/apache/php.ini
977 if [ "$1" = "0" ]; then
978 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/apache/php.ini
982 %{_sbindir}/php-module-install install yp %{_sysconfdir}/apache/php.ini
985 if [ "$1" = "0" ]; then
986 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/apache/php.ini
990 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/apache/php.ini
993 if [ "$1" = "0" ]; then
994 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/apache/php.ini
998 rm -rf $RPM_BUILD_ROOT
1001 %defattr(644,root,root,755)
1002 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1003 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1004 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1006 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/apache/*
1009 /home/httpd/html/icons/*
1011 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1012 %attr(755,root,root) %{_sbindir}/*
1015 %dir %{_libdir}/php/extensions
1016 %dir %{extensionsdir}
1019 %defattr(644,root,root,755)
1021 %{_libdir}/php4/build
1022 %attr(755,root,root) %{_bindir}/phpextdist
1023 %attr(755,root,root) %{_bindir}/phpize
1024 %attr(755,root,root) %{_bindir}/php-config
1027 %defattr(644,root,root,755)
1028 %attr(755,root,root) %{_bindir}/pear
1029 %{_libdir}/php/Benchmark
1030 %{_libdir}/php/Crypt
1038 %{_libdir}/php/Payment
1041 %{_libdir}/php/*.php
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{extensionsdir}/mysql.*
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{extensionsdir}/pgsql.so
1052 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1054 %defattr(644,root,root,755)
1055 %attr(755,root,root) %{extensionsdir}/oracle.so
1058 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{extensionsdir}/oci8.so
1065 %defattr(644,root,root,755)
1066 %attr(755,root,root) %{extensionsdir}/gd.so
1069 %defattr(644,root,root,755)
1070 %attr(755,root,root) %{extensionsdir}/xml.so
1073 %defattr(644,root,root,755)
1074 %attr(755,root,root) %{extensionsdir}/dba.so
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{extensionsdir}/dbase.so
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{extensionsdir}/filepro.so
1085 %defattr(644,root,root,755)
1086 %attr(755,root,root) %{extensionsdir}/pcre.so
1089 %defattr(644,root,root,755)
1090 %attr(755,root,root) %{extensionsdir}/posix.so
1093 %defattr(644,root,root,755)
1094 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1097 %defattr(644,root,root,755)
1098 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1101 %defattr(644,root,root,755)
1102 %attr(755,root,root) %{extensionsdir}/yp.so
1105 %defattr(644,root,root,755)
1106 %attr(755,root,root) %{extensionsdir}/calendar.so
1109 %defattr(644,root,root,755)
1110 %attr(755,root,root) %{extensionsdir}/bcmath.so
1113 %defattr(644,root,root,755)
1114 %attr(755,root,root) %{extensionsdir}/ftp.so
1117 %defattr(644,root,root,755)
1118 %attr(755,root,root) %{extensionsdir}/zlib.so
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) %{extensionsdir}/exif.so
1125 %defattr(644,root,root,755)
1126 %attr(755,root,root) %{extensionsdir}/recode.so
1129 #%defattr(644,root,root,755)
1130 #%attr(755,root,root) %{extensionsdir}/session.so
1133 %defattr(644,root,root,755)
1134 %attr(755,root,root) %{extensionsdir}/gettext.so
1137 %defattr(644,root,root,755)
1138 %attr(755,root,root) %{extensionsdir}/imap.so
1141 %defattr(644,root,root,755)
1142 %attr(755,root,root) %{extensionsdir}/snmp.so
1144 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1146 %defattr(644,root,root,755)
1147 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1150 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1152 %defattr(644,root,root,755)
1153 %attr(755,root,root) %{extensionsdir}/ldap.*
1157 %defattr(644,root,root,755)
1158 %attr(755,root,root) %{extensionsdir}/sockets.so
1161 %defattr(644,root,root,755)
1162 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1165 %defattr(644,root,root,755)
1166 %attr(755,root,root) %{extensionsdir}/mhash.so
1169 %defattr(644,root,root,755)
1170 %attr(755,root,root) %{extensionsdir}/odbc.so
1173 %defattr(644,root,root,755)
1174 /home/httpd/html/docs/php4-doc