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 %{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
51 BuildRequires: pam-devel
52 BuildRequires: pdflib-devel >= 3.0
53 #BuildRequires: libxml-devel >= 2.0.0
54 BuildRequires: postgresql-devel
55 BuildRequires: recode-devel >= 3.5
56 BuildRequires: t1lib-devel
57 BuildRequires: unixODBC-devel
58 BuildRequires: zlib-devel >= 1.0.9
59 BuildRequires: ucd-snmp-devel >= 4.1
60 BuildRequires: libmcrypt-devel >= 2.4.4
61 BuildRequires: mhash-devel
62 BuildRequires: bzip2-devel
63 BuildRequires: gmp-devel
64 BuildRequires: curl-devel
65 %if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
66 BuildRequires: openssl-devel >= 0.9.6
68 Requires: apache(EAPI) >= 1.3.9
70 Prereq: /usr/sbin/apxs
71 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73 %define _sysconfdir /etc/php
74 %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 //')
77 PHP is an HTML-embedded scripting language. PHP attempts to make it
78 easy for developers to write dynamically generated web pages. PHP also
79 offers built-in database integration for several commercial and
80 non-commercial database management systems, so writing a
81 database-enabled web page with PHP is fairly simple. The most common
82 use of PHP coding is probably as a replacement for CGI scripts. The
83 mod_php module enables the Apache web server to understand and process
84 the embedded PHP language in web pages. This package contains PHP
85 version %{version}. If you use applications which specifically rely on
86 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
87 module contained in the phpfi package. If you're just starting with
88 PHP, you should install this package. You'll also need to install the
92 PHP est un langage de script embarque dans le HTM. PHP essaye de
93 rendre simple aux developpeurs d'ecrire des pages web generees
94 dynamiquement. PHP incorpore egalement une integration avec plusieurs
95 systemes de gestion de bases de donnees commerciaux et
96 non-connerciaux, qui rent facile la creation de pages web liees avec
97 des bases de donnees. L'utilisation la plus commune de PHP est
98 probablement en remplacement de scripts CGI. Le module mod_php permet
99 au serveur web apache de comprendre et de traiter le langage PHP
100 integre dans des pages web. Ce package contient PHP version
101 %{version}. Si vous utilisez des applications qui utilisent
102 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
103 dans le package mod_php. Si vous debutez avec PHP, vous devriez
104 installer ce package. Vous aurez egalement besoin d'installer le
108 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
109 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
110 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
111 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
112 zosta³a z jêzyków: C, Java i Perl.
115 Summary: MySQL database module for PHP
116 Summary(pl): Modu³ bazy danych MySQL dla PHP
119 Group(fr): Librairies
120 Group(pl): Biblioteki
121 PreReq: %{name} = %{version}
124 This is a dynamic shared object (DSO) for Apache that will add MySQL
125 database support to PHP. If you need back-end support for MySQL, you
126 should install this package in addition to the main %{name} package.
128 %description mysql -l pl
129 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
133 Summary: PostgreSQL database module for PHP
134 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
137 Group(fr): Librairies
138 Group(pl): Biblioteki
139 PreReq: %{name} = %{version}
142 This is a dynamic shared object (DSO) for Apache that will add
143 PostgreSQL database support to PHP. If you need back-end support for
144 PostgreSQL, you should install this package in addition to the main
147 %description pgsql -l pl
148 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
151 Summary: Oracle 8 database module for PHP
152 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
155 Group(fr): Librairies
156 Group(pl): Biblioteki
157 PreReq: %{name} = %{version}
161 This is a dynamic shared object (DSO) for Apache that will add Oracle
162 8 database support to PHP. If you need back-end support for Oracle 8,
163 you should install this package in addition to the main %{name}
166 %description oci8 -l pl
167 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8. }
170 Summary: Oracle 7 database module for PHP
171 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
174 Group(fr): Librairies
175 Group(pl): Biblioteki
176 PreReq: %{name} = %{version}
180 This is a dynamic shared object (DSO) for Apache that will add Oracle
181 7 database support to PHP. If you need back-end support for Oracle 7,
182 you should install this package in addition to the main %{name}
185 %description oracle -l pl
186 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7. }
189 Summary: GD extension module for PHP
190 Summary: Modu³ GD dla PHP
193 Group(fr): Librairies
194 Group(pl): Biblioteki
195 PreReq: %{name} = %{version}
198 This is a dynamic shared object (DSO) for Apache that will add GD
199 support to PHP. You should install this package in addition to the
200 main %{name} package if you want to create and manipulate images with
203 %description gd -l pl
205 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
207 Summary: Java extension module for PHP
208 Summary(pl): Modu³ Javy dla PHP
211 Group(fr): Librairies
212 Group(pl): Biblioteki
213 PreReq: %{name} = %{version}
216 This is a dynamic shared object (DSO) for Apache that will add JAVA
217 support to PHP. This extension provides a simple and effective means
218 for creating and invoking methods on Java objects from PHP.
220 %description java -l pl
224 Summary: XML extension module for PHP
225 Summary(pl): Modu³ XML dla PHP
228 Group(fr): Librairies
229 Group(pl): Biblioteki
230 PreReq: %{name} = %{version}
233 This is a dynamic shared object (DSO) for Apache that will add XML
234 support to PHP. This extension lets you create XML parsers and then
235 define handlers for different XML events. If you want to be able to
236 parse XML documents you should install this package in addition to the
237 main %{name} package.
239 #%description xml -l pl
242 Summary: DBA extension module for PHP
243 Summary(pl): Modu³ DBA dla PHP
246 Group(fr): Librairies
247 Group(pl): Biblioteki
248 PreReq: %{name} = %{version}
251 This is a dynamic shared object (DSO) for Apache that will add
252 flat-file databases (DBA) support to PHP.
254 #%description dba -l pl
257 Summary: ODBC extension module for PHP
258 Summary(pl): Modu³ ODBC dla PHP
261 Group(fr): Librairies
262 Group(pl): Biblioteki
263 PreReq: %{name} = %{version}
266 This is a dynamic shared object (DSO) for Apache that will add
269 #%description odbc -l pl
272 Summary: Calendar extension module for PHP
273 Summary(pl): Modu³ funkcji kalendarza dla PHP
276 Group(fr): Librairies
277 Group(pl): Biblioteki
278 PreReq: %{name} = %{version}
280 %description calendar
281 This is a dynamic shared object (DSO) for Apache that will add
282 calendar support to PHP.
284 #%description calendar -l pl
287 Summary: DBase extension module for PHP
288 Summary(pl): Modu³ DBase dla PHP
291 Group(fr): Librairies
292 Group(pl): Biblioteki
293 PreReq: %{name} = %{version}
296 This is a dynamic shared object (DSO) for Apache that will add DBase
299 #%description dbase -l pl
302 Summary: FilePro extension module for PHP
303 Summary(pl): Modu³ FilePro dla PHP
306 Group(fr): Librairies
307 Group(pl): Biblioteki
308 PreReq: %{name} = %{version}
311 This is a dynamic shared object (DSO) for Apache that will add FilePro
314 #%description filepro -l pl
317 Summary: POSIX extension module for PHP
318 Summary(pl): Modu³ POSIX dla PHP
321 Group(fr): Librairies
322 Group(pl): Biblioteki
323 PreReq: %{name} = %{version}
326 This is a dynamic shared object (DSO) for Apache that will add POSIX
327 functions support to PHP.
329 #%description posix -l pl
332 Summary: PCRE extension module for PHP
333 Summary(pl): Modu³ PCRE dla PHP
336 Group(fr): Librairies
337 Group(pl): Biblioteki
338 PreReq: %{name} = %{version}
341 This is a dynamic shared object (DSO) for Apache that will add Perl
342 Compatible Regular Expression support to PHP.
344 #%description pcre -l pl
347 Summary: SysV sem extension module for PHP
348 Summary(pl): Modu³ SysV sem dla PHP
351 Group(fr): Librairies
352 Group(pl): Biblioteki
353 PreReq: %{name} = %{version}
356 This is a dynamic shared object (DSO) for Apache that will add SysV
357 semafores support to PHP.
359 #%description sysvsem -l pl
362 Summary: SysV shm extension module for PHP
363 Summary(pl): Modu³ SysV shm dla PHP
366 Group(fr): Librairies
367 Group(pl): Biblioteki
368 PreReq: %{name} = %{version}
371 This is a dynamic shared object (DSO) for Apache that will add SysV
372 Shared Memory support to PHP.
374 #%description sysvshm -l pl
377 Summary: NIS (yp) extension module for PHP
378 Summary(pl): Modu³ NIS (yp) dla PHP
381 Group(fr): Librairies
382 Group(pl): Biblioteki
383 PreReq: %{name} = %{version}
386 This is a dynamic shared object (DSO) for Apache that will add NIS
387 (Yellow Pages) support to PHP.
389 #%description yp -l pl
392 Summary: bcmath extension module for PHP
393 Summary(pl): Modu³ bcmath dla PHP
396 Group(fr): Librairies
397 Group(pl): Biblioteki
398 PreReq: %{name} = %{version}
401 This is a dynamic shared object (DSO) for Apache that will add bc
402 style precision math functions support to PHP.
404 #%description bcmath -l pl
407 Summary: FTP extension module for PHP
408 Summary(pl): Modu³ FTP dla PHP
411 Group(fr): Librairies
412 Group(pl): Biblioteki
413 PreReq: %{name} = %{version}
416 This is a dynamic shared object (DSO) for Apache that will add FTP
419 #%description ftp -l pl
422 Summary: Zlib extension module for PHP
423 Summary(pl): Modu³ zlib dla PHP
426 Group(fr): Librairies
427 Group(pl): Biblioteki
428 PreReq: %{name} = %{version}
431 This is a dynamic shared object (DSO) for Apache that will add
432 commpresion (zlib) support to PHP.
434 #%description zlib -l pl
437 Summary: exifextension module for PHP
438 Summary(pl): Modu³ exif dla PHP
441 Group(fr): Librairies
442 Group(pl): Biblioteki
443 PreReq: %{name} = %{version}
446 This is a dynamic shared object (DSO) for Apache that will add exif
449 #%description exif -l pl
452 Summary: recodeextension module for PHP
453 Summary(pl): Modu³ recode dla PHP
456 Group(fr): Librairies
457 Group(pl): Biblioteki
458 PreReq: %{name} = %{version}
461 This is a dynamic shared object (DSO) for Apache that will add recode
464 #%description recode -l pl
467 Summary: sessionextension module for PHP
468 Summary(pl): Modu³ session dla PHP
471 Group(fr): Librairies
472 Group(pl): Biblioteki
473 PreReq: %{name} = %{version}
476 This is a dynamic shared object (DSO) for Apache that will add session
479 #%description session -l pl
482 Summary: gettextextension module for PHP
483 Summary(pl): Modu³ gettext dla PHP
486 Group(fr): Librairies
487 Group(pl): Biblioteki
488 PreReq: %{name} = %{version}
491 This is a dynamic shared object (DSO) for Apache that will add gettext
494 #%description gettext -l pl
498 Summary: snmpextension module for PHP
499 Summary(pl): Modu³ snmp dla PHP
502 Group(fr): Librairies
503 Group(pl): Biblioteki
504 PreReq: %{name} = %{version}
507 This is a dynamic shared object (DSO) for Apache that will add snmp
510 #%description snmp -l pl
513 Summary: imapextension module for PHP
514 Summary(pl): Modu³ imap dla PHP
517 Group(fr): Librairies
518 Group(pl): Biblioteki
519 PreReq: %{name} = %{version}
522 This is a dynamic shared object (DSO) for Apache that will add imap
525 #%description imap -l pl
528 Summary: LDAP extension module for PHP
529 Summary(pl): Modu³ LDAP dla PHP
532 Group(fr): Librairies
533 Group(pl): Biblioteki
534 PreReq: %{name} = %{version}
537 This is a dynamic shared object (DSO) for Apache that will add LDAP
540 #%description ldap -l pl
543 Summary: sockets extension module for PHP
544 Summary(pl): Modu³ socket dla PHP
547 Group(fr): Librairies
548 Group(pl): Biblioteki
549 PreReq: %{name} = %{version}
552 This is a dynamic shared object (DSO) for Apache that will add sockets
555 #%description sockets -l pl
558 Summary: mcrypt extension module for PHP
559 Summary(pl): Modu³ mcrypt dla PHP
562 Group(fr): Librairies
563 Group(pl): Biblioteki
564 PreReq: %{name} = %{version}
567 This is a dynamic shared object (DSO) for Apache that will add mcrypt
570 #%description mcrypt -l pl
573 Summary: mhash extension module for PHP
574 Summary(pl): Modu³ mhash dla PHP
577 Group(fr): Librairies
578 Group(pl): Biblioteki
579 PreReq: %{name} = %{version}
582 This is a dynamic shared object (DSO) for Apache that will add mhash
585 #%description mcrypt -l pl
589 Summary: Online manual for PHP
590 Summary(pl): Dokumentacja dla PHP
591 Group: Networking/Daemons
592 Group(de): Netzwerkwesen/Server
593 Group(pl): Sieciowe/Serwery
596 Comprehensive documentation for PHP, viewable through your web
599 %description doc -l pl
600 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
605 Group: Development/Languages/PHP
611 Summary: Files for PHP modules development
612 Group: Development/Languages/PHP
615 Files for PHP modules development.
630 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
633 --with-apxs=/usr/sbin/apxs \
634 --with-config-file-path=%{_sysconfdir}/apache \
635 --with-exec-dir=%{_bindir} \
637 --enable-magic-quotes \
639 --enable-track-vars \
642 --enable-sysvsem=shared \
643 --enable-sysvshm=shared \
644 --enable-shmop=shared \
646 --enable-exif=shared \
647 --with-regex=system \
648 --with-gettext=shared \
649 %{!?bcond_off_ldap:--with-ldap=shared} \
650 --with-mysql=shared \
651 --with-mysql-sock=/var/lib/mysql/mysql.sock \
653 --enable-gd-imgstrttf \
654 --with-dbase=shared \
655 --with-filepro=shared \
656 --enable-ftp=shared \
658 --with-pdflib=shared \
659 --with-cpdflib=shared \
660 %{?bcond_on_java:--with-java} \
661 --with-pgsql=shared,/usr \
663 --enable-bcmath=shared \
664 --enable-calendar=shared \
666 --with-pcre-regex=shared \
667 --enable-posix=shared \
670 --with-recode=shared \
671 --enable-ucd-snmp-hack \
672 --enable-dba=shared \
679 --enable-xml=shared \
681 --with-mcrypt=shared \
682 --enable-sockets=shared \
684 --with-ctype=shared \
685 --with-mhash=shared \
688 %{?bcond_on_openssl:--with-openssl} \
689 --with-unixODBC=shared \
690 %{?bcond_on_oracle:--with-oracle=shared} \
691 %{?bcond_on_oci8:--with-oci8=shared} \
696 # TODO --with-pspell=/usr,shared (pspell missing)
699 # --with-dom need libxml >= 2.2.7 \
704 rm -rf $RPM_BUILD_ROOT
705 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
706 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc} \
707 $RPM_BUILD_ROOT/%{_sbindir}
709 %{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
711 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
712 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
714 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache/php.ini
715 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
716 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
718 tar zxf %{SOURCE4} -C $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
719 ln -s manual.html $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc/index.html
722 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
723 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
724 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
727 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
728 perl -pi -e 's|^#AddType application/x-httpd-php .php|AddType application/x-httpd-php .php|'
729 if [ -f /var/lock/subsys/httpd ]; then
730 /etc/rc.d/init.d/httpd restart 1>&2
734 perl -pi -e 's|^AddType application/x-httpd-php .php|#AddType application/x-httpd-php .php|'
735 if [ -f /var/lock/subsys/httpd ]; then
736 /etc/rc.d/init.d/httpd restart 1>&2
740 if [ "$1" = "0" ]; then
741 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
742 if [ -f /var/lock/subsys/httpd ]; then
743 /etc/rc.d/init.d/httpd restart 1>&2
749 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/apache/php.ini
752 if [ "$1" = "0" ]; then
753 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/apache/php.ini
757 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/apache/php.ini
760 if [ "$1" = "0" ]; then
761 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/apache/php.ini
765 %{_sbindir}/php-module-install install dba %{_sysconfdir}/apache/php.ini
768 if [ "$1" = "0" ]; then
769 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/apache/php.ini
773 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/apache/php.ini
776 if [ "$1" = "0" ]; then
777 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/apache/php.ini
781 %{_sbindir}/php-module-install install exif %{_sysconfdir}/apache/php.ini
784 if [ "$1" = "0" ]; then
785 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/apache/php.ini
789 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/apache/php.ini
792 if [ "$1" = "0" ]; then
793 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/apache/php.ini
797 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/apache/php.ini
800 if [ "$1" = "0" ]; then
801 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/apache/php.ini
805 %{_sbindir}/php-module-install install gd %{_sysconfdir}/apache/php.ini
808 if [ "$1" = "0" ]; then
809 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/apache/php.ini
813 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/apache/php.ini
816 if [ "$1" = "0" ]; then
817 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/apache/php.ini
821 %{_sbindir}/php-module-install install imap %{_sysconfdir}/apache/php.ini
824 if [ "$1" = "0" ]; then
825 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/apache/php.ini
828 %if %{?bond_on_java:1}%{!?bond_on_java:0}
830 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/apache/php.ini
833 if [ "$1" = "0" ]; then
834 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/apache/php.ini
838 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
840 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/apache/php.ini
843 if [ "$1" = "0" ]; then
844 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/apache/php.ini
849 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/apache/php.ini
852 if [ "$1" = "0" ]; then
853 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/apache/php.ini
857 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/apache/php.ini
860 if [ "$1" = "0" ]; then
861 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/apache/php.ini
865 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/apache/php.ini
868 if [ "$1" = "0" ]; then
869 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/apache/php.ini
872 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
874 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/apache/php.ini
877 if [ "$1" = "0" ]; then
878 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/apache/php.ini
883 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/apache/php.ini
886 if [ "$1" = "0" ]; then
887 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/apache/php.ini
890 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
892 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/apache/php.ini
895 if [ "$1" = "0" ]; then
896 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/apache/php.ini
901 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/apache/php.ini
904 if [ "$1" = "0" ]; then
905 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/apache/php.ini
909 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/apache/php.ini
912 if [ "$1" = "0" ]; then
913 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/apache/php.ini
917 %{_sbindir}/php-module-install install posix %{_sysconfdir}/apache/php.ini
920 if [ "$1" = "0" ]; then
921 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/apache/php.ini
925 %{_sbindir}/php-module-install install recode %{_sysconfdir}/apache/php.ini
928 if [ "$1" = "0" ]; then
929 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/apache/php.ini
933 %{_sbindir}/php-module-install install session %{_sysconfdir}/apache/php.ini
936 if [ "$1" = "0" ]; then
937 %{_sbindir}/php-module-install remove session %{_sysconfdir}/apache/php.ini
941 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/apache/php.ini
944 if [ "$1" = "0" ]; then
945 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/apache/php.ini
949 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/apache/php.ini
952 if [ "$1" = "0" ]; then
953 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/apache/php.ini
957 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/apache/php.ini
960 if [ "$1" = "0" ]; then
961 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/apache/php.ini
965 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/apache/php.ini
968 if [ "$1" = "0" ]; then
969 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/apache/php.ini
973 %{_sbindir}/php-module-install install xml %{_sysconfdir}/apache/php.ini
976 if [ "$1" = "0" ]; then
977 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/apache/php.ini
981 %{_sbindir}/php-module-install install yp %{_sysconfdir}/apache/php.ini
984 if [ "$1" = "0" ]; then
985 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/apache/php.ini
989 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/apache/php.ini
992 if [ "$1" = "0" ]; then
993 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/apache/php.ini
997 rm -rf $RPM_BUILD_ROOT
1000 %defattr(644,root,root,755)
1001 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1002 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1003 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1005 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/apache/*
1008 /home/httpd/html/icons/*
1010 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1011 %attr(755,root,root) %{_sbindir}/*
1014 %dir %{_libdir}/php/extensions
1015 %dir %{extensionsdir}
1018 %defattr(644,root,root,755)
1020 %{_libdir}/php4/build
1021 %attr(755,root,root) %{_bindir}/phpextdist
1022 %attr(755,root,root) %{_bindir}/phpize
1023 %attr(755,root,root) %{_bindir}/php-config
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{_bindir}/pear
1028 %{_libdir}/php/Benchmark
1029 %{_libdir}/php/Crypt
1037 %{_libdir}/php/Payment
1040 %{_libdir}/php/*.php
1044 %defattr(644,root,root,755)
1045 %attr(755,root,root) %{extensionsdir}/mysql.*
1048 %defattr(644,root,root,755)
1049 %attr(755,root,root) %{extensionsdir}/pgsql.so
1051 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1053 %defattr(644,root,root,755)
1054 %attr(755,root,root) %{extensionsdir}/oracle.so
1057 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1059 %defattr(644,root,root,755)
1060 %attr(755,root,root) %{extensionsdir}/oci8.so
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{extensionsdir}/gd.so
1068 %defattr(644,root,root,755)
1069 %attr(755,root,root) %{extensionsdir}/xml.so
1072 %defattr(644,root,root,755)
1073 %attr(755,root,root) %{extensionsdir}/dba.so
1076 %defattr(644,root,root,755)
1077 %attr(755,root,root) %{extensionsdir}/dbase.so
1080 %defattr(644,root,root,755)
1081 %attr(755,root,root) %{extensionsdir}/filepro.so
1084 %defattr(644,root,root,755)
1085 %attr(755,root,root) %{extensionsdir}/pcre.so
1088 %defattr(644,root,root,755)
1089 %attr(755,root,root) %{extensionsdir}/posix.so
1092 %defattr(644,root,root,755)
1093 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1100 %defattr(644,root,root,755)
1101 %attr(755,root,root) %{extensionsdir}/yp.so
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{extensionsdir}/calendar.so
1108 %defattr(644,root,root,755)
1109 %attr(755,root,root) %{extensionsdir}/bcmath.so
1112 %defattr(644,root,root,755)
1113 %attr(755,root,root) %{extensionsdir}/ftp.so
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{extensionsdir}/zlib.so
1120 %defattr(644,root,root,755)
1121 %attr(755,root,root) %{extensionsdir}/exif.so
1124 %defattr(644,root,root,755)
1125 %attr(755,root,root) %{extensionsdir}/recode.so
1128 #%defattr(644,root,root,755)
1129 #%attr(755,root,root) %{extensionsdir}/session.so
1132 %defattr(644,root,root,755)
1133 %attr(755,root,root) %{extensionsdir}/gettext.so
1136 %defattr(644,root,root,755)
1137 %attr(755,root,root) %{extensionsdir}/imap.so
1140 %defattr(644,root,root,755)
1141 %attr(755,root,root) %{extensionsdir}/snmp.so
1143 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1145 %defattr(644,root,root,755)
1146 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1149 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1151 %defattr(644,root,root,755)
1152 %attr(755,root,root) %{extensionsdir}/ldap.*
1156 %defattr(644,root,root,755)
1157 %attr(755,root,root) %{extensionsdir}/sockets.so
1160 %defattr(644,root,root,755)
1161 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1164 %defattr(644,root,root,755)
1165 %attr(755,root,root) %{extensionsdir}/mhash.so
1168 %defattr(644,root,root,755)
1169 %attr(755,root,root) %{extensionsdir}/odbc.so
1172 %defattr(644,root,root,755)
1173 /home/httpd/html/docs/php4-doc