3 # bcond_on_oracle - with oracle support
4 # bcond_on_oci8 - with oci8 support
5 # bcond_on_java - with Java support
6 # bcond_on_openssl - with OpenSSL support
7 # bcond_off_imap - without IMAP support
8 # bcond_off_ldap - without LDAP support
9 # bcond_off_odbc - without ODBC support
10 # bcond_off_snmp - without SNMP support
12 Summary: The PHP HTML-embedded scripting language for use with Apache
13 Summary(fr): Le langage de script embarque-HTML PHP pour Apache
14 Summary(pl): Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache
21 Group(es): Bibliotecas
24 License: The PHP license (see "LICENSE" file included in distribution)
25 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.gz
29 Source4: http://www.php.net/distributions/manual.tar.gz
30 Source5: php-module-install
31 Patch0: %{name}-imap.patch
32 Patch1: %{name}-mysql-socket.patch
33 Patch2: %{name}-mail.patch
34 Patch5: %{name}-no_libnsl.patch
35 Patch6: %{name}-DESTDIR.patch
36 Patch7: %{name}-gd-shared.patch
37 Patch8: %{name}-apache-fixes.patch
38 #Patch9: %{name}-system-expat.patch
39 Patch10: %{name}-quotes.patch
40 Patch11: %{name}-session-path.patch
42 URL: http://www.php.net/
43 BuildRequires: apache(EAPI)-devel
47 BuildRequires: db3-devel >= 3.1.17
48 BuildRequires: freetype-devel
49 BuildRequires: gd-devel >= 1.8.3
50 BuildRequires: gdbm-devel
51 %{!?bcond_off_imap:BuildRequires: imap-devel >= 4.7b-1}
52 # I think jdk is better for java
54 %{?bcond_on_java:BuildRequires: kaffe-devel}
55 BuildRequires: libjpeg-devel
56 BuildRequires: libltdl-devel
57 BuildRequires: libpng >= 1.0.8
58 BuildRequires: libtiff-devel
59 BuildRequires: mm-devel >= 1.1.3
60 BuildRequires: mysql-devel >= 3.23.32
61 %{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
62 BuildRequires: pam-devel
63 BuildRequires: pdflib-devel >= 3.0
64 #BuildRequires: libxml-devel >= 2.0.0
65 BuildRequires: postgresql-devel
66 BuildRequires: recode-devel >= 3.5
67 BuildRequires: t1lib-devel
68 %{!?bcond_off_odbc:BuildRequires: unixODBC-devel}
69 BuildRequires: zlib-devel >= 1.0.9
70 %{!?bcond_off_snmp:BuildRequires: ucd-snmp-devel >= 4.1}
71 BuildRequires: libmcrypt-devel >= 2.4.4
72 BuildRequires: mhash-devel
73 BuildRequires: bzip2-devel
74 BuildRequires: gmp-devel
75 BuildRequires: curl-devel
76 %if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
77 BuildRequires: openssl-devel >= 0.9.6
79 Requires: apache(EAPI) >= 1.3.9
81 Prereq: /usr/sbin/apxs
82 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84 %define _sysconfdir /etc/php
85 # check ZEND_MODULE_API_NO in Zend/modules.h
86 %define extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-20001214
89 PHP is an HTML-embedded scripting language. PHP attempts to make it
90 easy for developers to write dynamically generated web pages. PHP also
91 offers built-in database integration for several commercial and
92 non-commercial database management systems, so writing a
93 database-enabled web page with PHP is fairly simple. The most common
94 use of PHP coding is probably as a replacement for CGI scripts. The
95 mod_php module enables the Apache web server to understand and process
96 the embedded PHP language in web pages. This package contains PHP
97 version %{version}. If you use applications which specifically rely on
98 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
99 module contained in the phpfi package. If you're just starting with
100 PHP, you should install this package. You'll also need to install the
104 PHP est un langage de script embarque dans le HTM. PHP essaye de
105 rendre simple aux developpeurs d'ecrire des pages web generees
106 dynamiquement. PHP incorpore egalement une integration avec plusieurs
107 systemes de gestion de bases de donnees commerciaux et
108 non-connerciaux, qui rent facile la creation de pages web liees avec
109 des bases de donnees. L'utilisation la plus commune de PHP est
110 probablement en remplacement de scripts CGI. Le module mod_php permet
111 au serveur web apache de comprendre et de traiter le langage PHP
112 integre dans des pages web. Ce package contient PHP version
113 %{version}. Si vous utilisez des applications qui utilisent
114 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
115 dans le package mod_php. Si vous debutez avec PHP, vous devriez
116 installer ce package. Vous aurez egalement besoin d'installer le
120 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
121 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
122 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
123 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
124 zosta³a z jêzyków: C, Java i Perl.
127 Summary: MySQL database module for PHP
128 Summary(pl): Modu³ bazy danych MySQL dla PHP
131 Group(es): Bibliotecas
132 Group(fr): Librairies
133 Group(pl): Biblioteki
134 PreReq: %{name} = %{version}
137 This is a dynamic shared object (DSO) for Apache that will add MySQL
138 database support to PHP. If you need back-end support for MySQL, you
139 should install this package in addition to the main %{name} package.
141 %description mysql -l pl
142 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
145 Summary: PostgreSQL database module for PHP
146 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
149 Group(es): Bibliotecas
150 Group(fr): Librairies
151 Group(pl): Biblioteki
152 PreReq: %{name} = %{version}
155 This is a dynamic shared object (DSO) for Apache that will add
156 PostgreSQL database support to PHP. If you need back-end support for
157 PostgreSQL, you should install this package in addition to the main
160 %description pgsql -l pl
161 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
164 Summary: Oracle 8 database module for PHP
165 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
168 Group(es): Bibliotecas
169 Group(fr): Librairies
170 Group(pl): Biblioteki
171 PreReq: %{name} = %{version}
175 This is a dynamic shared object (DSO) for Apache that will add Oracle
176 8 database support to PHP. If you need back-end support for Oracle 8,
177 you should install this package in addition to the main %{name}
180 %description oci8 -l pl
181 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
184 Summary: Oracle 7 database module for PHP
185 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
188 Group(es): Bibliotecas
189 Group(fr): Librairies
190 Group(pl): Biblioteki
191 PreReq: %{name} = %{version}
195 This is a dynamic shared object (DSO) for Apache that will add Oracle
196 7 database support to PHP. If you need back-end support for Oracle 7,
197 you should install this package in addition to the main %{name}
200 %description oracle -l pl
201 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
204 Summary: GD extension module for PHP
205 Summary: Modu³ GD dla PHP
208 Group(es): Bibliotecas
209 Group(fr): Librairies
210 Group(pl): Biblioteki
211 PreReq: %{name} = %{version}
214 This is a dynamic shared object (DSO) for Apache that will add GD
215 support to PHP. You should install this package in addition to the
216 main %{name} package if you want to create and manipulate images with
219 %description gd -l pl
220 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
221 obrazków z poziomu PHP.
224 Summary: Java extension module for PHP
225 Summary(pl): Modu³ Javy dla PHP
228 Group(es): Bibliotecas
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 JAVA
235 support to PHP. This extension provides a simple and effective means
236 for creating and invoking methods on Java objects from PHP.
238 %description java -l pl
239 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
240 obiektów Javy z poziomu PHP.
243 Summary: XML extension module for PHP
244 Summary(pl): Modu³ XML dla PHP
247 Group(es): Bibliotecas
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 XML
254 support to PHP. This extension lets you create XML parsers and then
255 define handlers for different XML events. If you want to be able to
256 parse XML documents you should install this package in addition to the
257 main %{name} package.
259 %description xml -l pl
260 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
261 zwi±zanych z tymi plikami.
264 Summary: DBA extension module for PHP
265 Summary(pl): Modu³ DBA dla PHP
268 Group(es): Bibliotecas
269 Group(fr): Librairies
270 Group(pl): Biblioteki
271 PreReq: %{name} = %{version}
274 This is a dynamic shared object (DSO) for Apache that will add
275 flat-file databases (DBA) support to PHP.
277 #%description dba -l pl
280 Summary: ODBC extension module for PHP
281 Summary(pl): Modu³ ODBC dla PHP
284 Group(es): Bibliotecas
285 Group(fr): Librairies
286 Group(pl): Biblioteki
287 PreReq: %{name} = %{version}
290 This is a dynamic shared object (DSO) for Apache that will add ODBC
293 %description odbc -l pl
294 Modu³ PHP ze wsparciem dla ODBC.
297 Summary: Calendar extension module for PHP
298 Summary(pl): Modu³ funkcji kalendarza dla PHP
301 Group(es): Bibliotecas
302 Group(fr): Librairies
303 Group(pl): Biblioteki
304 PreReq: %{name} = %{version}
306 %description calendar
307 This is a dynamic shared object (DSO) for Apache that will add
308 calendar support to PHP.
310 #%description calendar -l pl
313 Summary: DBase extension module for PHP
314 Summary(pl): Modu³ DBase dla PHP
317 Group(es): Bibliotecas
318 Group(fr): Librairies
319 Group(pl): Biblioteki
320 PreReq: %{name} = %{version}
323 This is a dynamic shared object (DSO) for Apache that will add DBase
326 %description dbase -l pl
327 Modu³ PHP ze wsparciem dla DBase.
330 Summary: FilePro extension module for PHP
331 Summary(pl): Modu³ FilePro dla PHP
334 Group(es): Bibliotecas
335 Group(fr): Librairies
336 Group(pl): Biblioteki
337 PreReq: %{name} = %{version}
340 This is a dynamic shared object (DSO) for Apache that will add FilePro
343 #%description filepro -l pl
346 Summary: POSIX extension module for PHP
347 Summary(pl): Modu³ POSIX dla PHP
350 Group(es): Bibliotecas
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 POSIX
357 functions support to PHP.
359 %description posix -l pl
360 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
363 Summary: PCRE extension module for PHP
364 Summary(pl): Modu³ PCRE dla PHP
367 Group(es): Bibliotecas
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 Perl
374 Compatible Regular Expression support to PHP.
376 %description pcre -l pl
377 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
378 (Perl Compatible Regular Expressions)
381 Summary: SysV sem extension module for PHP
382 Summary(pl): Modu³ SysV sem dla PHP
385 Group(es): Bibliotecas
386 Group(fr): Librairies
387 Group(pl): Biblioteki
388 PreReq: %{name} = %{version}
391 This is a dynamic shared object (DSO) for Apache that will add SysV
392 semafores support to PHP.
394 %description sysvsem -l pl
395 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
398 Summary: SysV shm extension module for PHP
399 Summary(pl): Modu³ SysV shm dla PHP
402 Group(es): Bibliotecas
403 Group(fr): Librairies
404 Group(pl): Biblioteki
405 PreReq: %{name} = %{version}
408 This is a dynamic shared object (DSO) for Apache that will add SysV
409 Shared Memory support to PHP.
411 %description sysvshm -l pl
412 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
415 Summary: NIS (yp) extension module for PHP
416 Summary(pl): Modu³ NIS (yp) dla PHP
419 Group(es): Bibliotecas
420 Group(fr): Librairies
421 Group(pl): Biblioteki
422 PreReq: %{name} = %{version}
425 This is a dynamic shared object (DSO) for Apache that will add NIS
426 (Yellow Pages) support to PHP.
428 #%description yp -l pl
431 Summary: bcmath extension module for PHP
432 Summary(pl): Modu³ bcmath dla PHP
435 Group(es): Bibliotecas
436 Group(fr): Librairies
437 Group(pl): Biblioteki
438 PreReq: %{name} = %{version}
441 This is a dynamic shared object (DSO) for Apache that will add bc
442 style precision math functions support to PHP.
444 %description bcmath -l pl
445 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
446 matematycznych takich jak w programie bc.
449 Summary: FTP extension module for PHP
450 Summary(pl): Modu³ FTP dla PHP
453 Group(es): Bibliotecas
454 Group(fr): Librairies
455 Group(pl): Biblioteki
456 PreReq: %{name} = %{version}
459 This is a dynamic shared object (DSO) for Apache that will add FTP
462 #%description ftp -l pl
465 Summary: Zlib extension module for PHP
466 Summary(pl): Modu³ zlib dla PHP
469 Group(es): Bibliotecas
470 Group(fr): Librairies
471 Group(pl): Biblioteki
472 PreReq: %{name} = %{version}
475 This is a dynamic shared object (DSO) for Apache that will add
476 compression (zlib) support to PHP.
478 %description zlib -l pl
479 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
482 Summary: exifextension module for PHP
483 Summary(pl): Modu³ exif dla PHP
486 Group(es): Bibliotecas
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 exif
495 #%description exif -l pl
498 Summary: recodeextension module for PHP
499 Summary(pl): Modu³ recode dla PHP
502 Group(es): Bibliotecas
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 recode
511 #%description recode -l pl
514 Summary: sessionextension module for PHP
515 Summary(pl): Modu³ session dla PHP
518 Group(es): Bibliotecas
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 session
527 #%description session -l pl
530 Summary: gettextextension module for PHP
531 Summary(pl): Modu³ gettext dla PHP
534 Group(es): Bibliotecas
535 Group(fr): Librairies
536 Group(pl): Biblioteki
537 PreReq: %{name} = %{version}
540 This is a dynamic shared object (DSO) for Apache that will add gettext
543 #%description gettext -l pl
546 Summary: snmpextension module for PHP
547 Summary(pl): Modu³ snmp dla PHP
550 Group(es): Bibliotecas
551 Group(fr): Librairies
552 Group(pl): Biblioteki
553 PreReq: %{name} = %{version}
556 This is a dynamic shared object (DSO) for Apache that will add snmp
559 #%description snmp -l pl
562 Summary: imapextension module for PHP
563 Summary(pl): Modu³ imap dla PHP
566 Group(es): Bibliotecas
567 Group(fr): Librairies
568 Group(pl): Biblioteki
569 PreReq: %{name} = %{version}
572 This is a dynamic shared object (DSO) for Apache that will add imap
575 #%description imap -l pl
578 Summary: LDAP extension module for PHP
579 Summary(pl): Modu³ LDAP dla PHP
582 Group(es): Bibliotecas
583 Group(fr): Librairies
584 Group(pl): Biblioteki
585 PreReq: %{name} = %{version}
588 This is a dynamic shared object (DSO) for Apache that will add LDAP
591 #%description ldap -l pl
594 Summary: sockets extension module for PHP
595 Summary(pl): Modu³ socket dla PHP
598 Group(es): Bibliotecas
599 Group(fr): Librairies
600 Group(pl): Biblioteki
601 PreReq: %{name} = %{version}
604 This is a dynamic shared object (DSO) for Apache that will add sockets
607 #%description sockets -l pl
610 Summary: mcrypt extension module for PHP
611 Summary(pl): Modu³ mcrypt dla PHP
614 Group(es): Bibliotecas
615 Group(fr): Librairies
616 Group(pl): Biblioteki
617 PreReq: %{name} = %{version}
620 This is a dynamic shared object (DSO) for Apache that will add mcrypt
623 #%description mcrypt -l pl
626 Summary: mhash extension module for PHP
627 Summary(pl): Modu³ mhash dla PHP
630 Group(es): Bibliotecas
631 Group(fr): Librairies
632 Group(pl): Biblioteki
633 PreReq: %{name} = %{version}
636 This is a dynamic shared object (DSO) for Apache that will add mhash
639 #%description mcrypt -l pl
642 Summary: Online manual for PHP
643 Summary(pl): Dokumentacja dla PHP
644 Group: Networking/Daemons
645 Group(de): Netzwerkwesen/Server
646 Group(pl): Sieciowe/Serwery
649 Comprehensive documentation for PHP, viewable through your web server,
652 %description doc -l pl
653 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
658 Group: Development/Languages/PHP
664 Summary: Files for PHP modules development
665 Summary(pl): Pliki do kompilacji modu³ów PHP
666 Group: Development/Languages/PHP
667 Requires: %{name} = %{version}
670 Files for PHP modules development.
672 %description devel -l pl
673 Pliki potrzebne do kompilacji modu³ów PHP.
689 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
692 --with-apxs=/usr/sbin/apxs \
693 --with-config-file-path=%{_sysconfdir}/apache \
694 --with-exec-dir=%{_bindir} \
696 --enable-magic-quotes \
698 --enable-track-vars \
701 --enable-sysvsem=shared \
702 --enable-sysvshm=shared \
703 --enable-shmop=shared \
705 --enable-exif=shared \
706 --with-regex=system \
707 --with-gettext=shared \
708 %{!?bcond_off_ldap:--with-ldap=shared} \
709 --with-mysql=shared,/usr \
710 --with-mysql-sock=/var/lib/mysql/mysql.sock \
712 --enable-gd-imgstrttf \
713 --with-dbase=shared \
714 --with-filepro=shared \
715 --enable-ftp=shared \
717 --with-pdflib=shared \
718 --with-cpdflib=shared \
719 %{?bcond_on_java:--with-java} \
720 --with-pgsql=shared,/usr \
721 %{!?bcond_off_imap:--with-imap=shared} \
722 --enable-bcmath=shared \
723 --enable-calendar=shared \
725 --with-pcre-regex=shared \
726 --enable-posix=shared \
729 --with-recode=shared \
730 --enable-ucd-snmp-hack \
731 --enable-dba=shared \
732 %{!?bcond_off_snmp:--with-snmp=shared} \
737 --enable-xml=shared \
739 --with-mcrypt=shared \
740 --enable-sockets=shared \
742 --with-ctype=shared \
743 --with-mhash=shared \
746 %{?bcond_on_openssl:--with-openssl} \
747 %{!?bcond_off_odbc:--with-unixODBC=shared} \
748 %{?bcond_on_oracle:--with-oracle=shared} \
749 %{?bcond_on_oci8:--with-oci8=shared} \
752 # TODO --with-pspell=/usr,shared (pspell missing)
754 # --with-dom need libxml >= 2.2.7 \
759 rm -rf $RPM_BUILD_ROOT
760 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
761 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc} \
762 $RPM_BUILD_ROOT/%{_sbindir}
764 %{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
766 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
767 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
769 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache/php.ini
770 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
771 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
773 tar zxf %{SOURCE4} -C $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
774 ln -s manual.html $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc/index.html
777 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
778 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
779 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
782 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
783 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
784 /etc/httpd/httpd.conf
785 if [ -f /var/lock/subsys/httpd ]; then
786 /etc/rc.d/init.d/httpd restart 1>&2
790 if [ "$1" = "0" ]; then
791 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
793 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
794 /etc/httpd/httpd.conf
795 if [ -f /var/lock/subsys/httpd ]; then
796 /etc/rc.d/init.d/httpd restart 1>&2
801 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/apache/php.ini
804 if [ "$1" = "0" ]; then
805 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/apache/php.ini
809 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/apache/php.ini
812 if [ "$1" = "0" ]; then
813 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/apache/php.ini
817 %{_sbindir}/php-module-install install dba %{_sysconfdir}/apache/php.ini
820 if [ "$1" = "0" ]; then
821 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/apache/php.ini
825 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/apache/php.ini
828 if [ "$1" = "0" ]; then
829 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/apache/php.ini
833 %{_sbindir}/php-module-install install exif %{_sysconfdir}/apache/php.ini
836 if [ "$1" = "0" ]; then
837 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/apache/php.ini
841 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/apache/php.ini
844 if [ "$1" = "0" ]; then
845 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/apache/php.ini
849 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/apache/php.ini
852 if [ "$1" = "0" ]; then
853 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/apache/php.ini
857 %{_sbindir}/php-module-install install gd %{_sysconfdir}/apache/php.ini
860 if [ "$1" = "0" ]; then
861 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/apache/php.ini
865 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/apache/php.ini
868 if [ "$1" = "0" ]; then
869 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/apache/php.ini
872 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
874 %{_sbindir}/php-module-install install imap %{_sysconfdir}/apache/php.ini
877 if [ "$1" = "0" ]; then
878 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/apache/php.ini
882 %if %{?bond_on_java:1}%{!?bond_on_java:0}
884 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/apache/php.ini
887 if [ "$1" = "0" ]; then
888 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/apache/php.ini
892 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
894 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/apache/php.ini
897 if [ "$1" = "0" ]; then
898 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/apache/php.ini
903 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/apache/php.ini
906 if [ "$1" = "0" ]; then
907 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/apache/php.ini
911 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/apache/php.ini
914 if [ "$1" = "0" ]; then
915 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/apache/php.ini
919 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/apache/php.ini
922 if [ "$1" = "0" ]; then
923 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/apache/php.ini
926 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
928 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/apache/php.ini
931 if [ "$1" = "0" ]; then
932 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/apache/php.ini
936 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
938 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/apache/php.ini
941 if [ "$1" = "0" ]; then
942 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/apache/php.ini
946 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
948 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/apache/php.ini
951 if [ "$1" = "0" ]; then
952 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/apache/php.ini
957 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/apache/php.ini
960 if [ "$1" = "0" ]; then
961 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/apache/php.ini
965 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/apache/php.ini
968 if [ "$1" = "0" ]; then
969 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/apache/php.ini
973 %{_sbindir}/php-module-install install posix %{_sysconfdir}/apache/php.ini
976 if [ "$1" = "0" ]; then
977 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/apache/php.ini
981 %{_sbindir}/php-module-install install recode %{_sysconfdir}/apache/php.ini
984 if [ "$1" = "0" ]; then
985 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/apache/php.ini
989 %{_sbindir}/php-module-install install session %{_sysconfdir}/apache/php.ini
992 if [ "$1" = "0" ]; then
993 %{_sbindir}/php-module-install remove session %{_sysconfdir}/apache/php.ini
996 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
998 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/apache/php.ini
1001 if [ "$1" = "0" ]; then
1002 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/apache/php.ini
1007 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/apache/php.ini
1010 if [ "$1" = "0" ]; then
1011 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/apache/php.ini
1015 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/apache/php.ini
1018 if [ "$1" = "0" ]; then
1019 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/apache/php.ini
1023 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/apache/php.ini
1026 if [ "$1" = "0" ]; then
1027 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/apache/php.ini
1031 %{_sbindir}/php-module-install install xml %{_sysconfdir}/apache/php.ini
1034 if [ "$1" = "0" ]; then
1035 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/apache/php.ini
1039 %{_sbindir}/php-module-install install yp %{_sysconfdir}/apache/php.ini
1042 if [ "$1" = "0" ]; then
1043 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/apache/php.ini
1047 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/apache/php.ini
1050 if [ "$1" = "0" ]; then
1051 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/apache/php.ini
1055 rm -rf $RPM_BUILD_ROOT
1058 %defattr(644,root,root,755)
1059 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1060 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1061 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1063 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/apache/*
1065 /home/httpd/html/icons/*
1067 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1068 %attr(755,root,root) %{_sbindir}/*
1071 %dir %{_libdir}/php/extensions
1072 %dir %{extensionsdir}
1075 %defattr(644,root,root,755)
1077 %{_libdir}/php4/build
1078 %attr(755,root,root) %{_bindir}/phpextdist
1079 %attr(755,root,root) %{_bindir}/phpize
1080 %attr(755,root,root) %{_bindir}/php-config
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_bindir}/pear
1085 %{_libdir}/php/Benchmark
1086 %{_libdir}/php/Crypt
1094 %{_libdir}/php/Payment
1097 %{_libdir}/php/*.php
1100 %defattr(644,root,root,755)
1101 %attr(755,root,root) %{extensionsdir}/mysql.*
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{extensionsdir}/pgsql.so
1107 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1109 %defattr(644,root,root,755)
1110 %attr(755,root,root) %{extensionsdir}/oracle.so
1113 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1115 %defattr(644,root,root,755)
1116 %attr(755,root,root) %{extensionsdir}/oci8.so
1120 %defattr(644,root,root,755)
1121 %attr(755,root,root) %{extensionsdir}/gd.so
1124 %defattr(644,root,root,755)
1125 %attr(755,root,root) %{extensionsdir}/xml.so
1128 %defattr(644,root,root,755)
1129 %attr(755,root,root) %{extensionsdir}/dba.so
1132 %defattr(644,root,root,755)
1133 %attr(755,root,root) %{extensionsdir}/dbase.so
1136 %defattr(644,root,root,755)
1137 %attr(755,root,root) %{extensionsdir}/filepro.so
1140 %defattr(644,root,root,755)
1141 %attr(755,root,root) %{extensionsdir}/pcre.so
1144 %defattr(644,root,root,755)
1145 %attr(755,root,root) %{extensionsdir}/posix.so
1148 %defattr(644,root,root,755)
1149 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1152 %defattr(644,root,root,755)
1153 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1156 %defattr(644,root,root,755)
1157 %attr(755,root,root) %{extensionsdir}/yp.so
1160 %defattr(644,root,root,755)
1161 %attr(755,root,root) %{extensionsdir}/calendar.so
1164 %defattr(644,root,root,755)
1165 %attr(755,root,root) %{extensionsdir}/bcmath.so
1168 %defattr(644,root,root,755)
1169 %attr(755,root,root) %{extensionsdir}/ftp.so
1172 %defattr(644,root,root,755)
1173 %attr(755,root,root) %{extensionsdir}/zlib.so
1176 %defattr(644,root,root,755)
1177 %attr(755,root,root) %{extensionsdir}/exif.so
1180 %defattr(644,root,root,755)
1181 %attr(755,root,root) %{extensionsdir}/recode.so
1184 #%defattr(644,root,root,755)
1185 #%attr(755,root,root) %{extensionsdir}/session.so
1188 %defattr(644,root,root,755)
1189 %attr(755,root,root) %{extensionsdir}/gettext.so
1191 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
1193 %defattr(644,root,root,755)
1194 %attr(755,root,root) %{extensionsdir}/imap.so
1197 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1199 %defattr(644,root,root,755)
1200 %attr(755,root,root) %{extensionsdir}/snmp.so
1203 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1205 %defattr(644,root,root,755)
1206 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1209 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1211 %defattr(644,root,root,755)
1212 %attr(755,root,root) %{extensionsdir}/ldap.*
1216 %defattr(644,root,root,755)
1217 %attr(755,root,root) %{extensionsdir}/sockets.so
1220 %defattr(644,root,root,755)
1221 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1224 %defattr(644,root,root,755)
1225 %attr(755,root,root) %{extensionsdir}/mhash.so
1227 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1229 %defattr(644,root,root,755)
1230 %attr(755,root,root) %{extensionsdir}/odbc.so
1234 %defattr(644,root,root,755)
1235 /home/httpd/html/docs/php4-doc