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
41 URL: http://www.php.net/
42 BuildRequires: apache(EAPI)-devel
46 BuildRequires: db3-devel >= 3.1.17
47 BuildRequires: freetype-devel
48 BuildRequires: gd-devel >= 1.8.3
49 BuildRequires: gdbm-devel
50 %{!?bcond_off_imap:BuildRequires: imap-devel >= 4.7b-1}
51 # I think jdk is better for java
53 %{?bcond_on_java:BuildRequires: kaffe-devel}
54 BuildRequires: libjpeg-devel
55 BuildRequires: libltdl-devel
56 BuildRequires: libpng >= 1.0.8
57 BuildRequires: libtiff-devel
58 BuildRequires: mm-devel >= 1.1.3
59 BuildRequires: mysql-devel >= 3.23.32
60 %{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
61 BuildRequires: pam-devel
62 BuildRequires: pdflib-devel >= 3.0
63 #BuildRequires: libxml-devel >= 2.0.0
64 BuildRequires: postgresql-devel
65 BuildRequires: recode-devel >= 3.5
66 BuildRequires: t1lib-devel
67 %{!?bcond_off_odbc:BuildRequires: unixODBC-devel}
68 BuildRequires: zlib-devel >= 1.0.9
69 %{!?bcond_off_snmp:BuildRequires: ucd-snmp-devel >= 4.1}
70 BuildRequires: libmcrypt-devel >= 2.4.4
71 BuildRequires: mhash-devel
72 BuildRequires: bzip2-devel
73 BuildRequires: gmp-devel
74 BuildRequires: curl-devel
75 %if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
76 BuildRequires: openssl-devel >= 0.9.6
78 Requires: apache(EAPI) >= 1.3.9
80 Prereq: /usr/sbin/apxs
81 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
83 %define _sysconfdir /etc/php
84 # check ZEND_MODULE_API_NO in Zend/modules.h
85 %define extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-20001214
88 PHP is an HTML-embedded scripting language. PHP attempts to make it
89 easy for developers to write dynamically generated web pages. PHP also
90 offers built-in database integration for several commercial and
91 non-commercial database management systems, so writing a
92 database-enabled web page with PHP is fairly simple. The most common
93 use of PHP coding is probably as a replacement for CGI scripts. The
94 mod_php module enables the Apache web server to understand and process
95 the embedded PHP language in web pages. This package contains PHP
96 version %{version}. If you use applications which specifically rely on
97 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
98 module contained in the phpfi package. If you're just starting with
99 PHP, you should install this package. You'll also need to install the
103 PHP est un langage de script embarque dans le HTM. PHP essaye de
104 rendre simple aux developpeurs d'ecrire des pages web generees
105 dynamiquement. PHP incorpore egalement une integration avec plusieurs
106 systemes de gestion de bases de donnees commerciaux et
107 non-connerciaux, qui rent facile la creation de pages web liees avec
108 des bases de donnees. L'utilisation la plus commune de PHP est
109 probablement en remplacement de scripts CGI. Le module mod_php permet
110 au serveur web apache de comprendre et de traiter le langage PHP
111 integre dans des pages web. Ce package contient PHP version
112 %{version}. Si vous utilisez des applications qui utilisent
113 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
114 dans le package mod_php. Si vous debutez avec PHP, vous devriez
115 installer ce package. Vous aurez egalement besoin d'installer le
119 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
120 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
121 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
122 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
123 zosta³a z jêzyków: C, Java i Perl.
126 Summary: MySQL database module for PHP
127 Summary(pl): Modu³ bazy danych MySQL dla PHP
130 Group(es): Bibliotecas
131 Group(fr): Librairies
132 Group(pl): Biblioteki
133 PreReq: %{name} = %{version}
136 This is a dynamic shared object (DSO) for Apache that will add MySQL
137 database support to PHP. If you need back-end support for MySQL, you
138 should install this package in addition to the main %{name} package.
140 %description mysql -l pl
141 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
144 Summary: PostgreSQL database module for PHP
145 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
148 Group(es): Bibliotecas
149 Group(fr): Librairies
150 Group(pl): Biblioteki
151 PreReq: %{name} = %{version}
154 This is a dynamic shared object (DSO) for Apache that will add
155 PostgreSQL database support to PHP. If you need back-end support for
156 PostgreSQL, you should install this package in addition to the main
159 %description pgsql -l pl
160 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
163 Summary: Oracle 8 database module for PHP
164 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
167 Group(es): Bibliotecas
168 Group(fr): Librairies
169 Group(pl): Biblioteki
170 PreReq: %{name} = %{version}
174 This is a dynamic shared object (DSO) for Apache that will add Oracle
175 8 database support to PHP. If you need back-end support for Oracle 8,
176 you should install this package in addition to the main %{name}
179 %description oci8 -l pl
180 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
183 Summary: Oracle 7 database module for PHP
184 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
187 Group(es): Bibliotecas
188 Group(fr): Librairies
189 Group(pl): Biblioteki
190 PreReq: %{name} = %{version}
194 This is a dynamic shared object (DSO) for Apache that will add Oracle
195 7 database support to PHP. If you need back-end support for Oracle 7,
196 you should install this package in addition to the main %{name}
199 %description oracle -l pl
200 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
203 Summary: GD extension module for PHP
204 Summary: Modu³ GD dla PHP
207 Group(es): Bibliotecas
208 Group(fr): Librairies
209 Group(pl): Biblioteki
210 PreReq: %{name} = %{version}
213 This is a dynamic shared object (DSO) for Apache that will add GD
214 support to PHP. You should install this package in addition to the
215 main %{name} package if you want to create and manipulate images with
218 %description gd -l pl
219 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki obrazków
223 Summary: Java extension module for PHP
224 Summary(pl): Modu³ Javy dla PHP
227 Group(es): Bibliotecas
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 JAVA
234 support to PHP. This extension provides a simple and effective means
235 for creating and invoking methods on Java objects from PHP.
237 %description java -l pl
238 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
239 obiektów Javy z poziomu PHP.
242 Summary: XML extension module for PHP
243 Summary(pl): Modu³ XML dla PHP
246 Group(es): Bibliotecas
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 XML
253 support to PHP. This extension lets you create XML parsers and then
254 define handlers for different XML events. If you want to be able to
255 parse XML documents you should install this package in addition to the
256 main %{name} package.
258 %description xml -l pl
259 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
260 zwi±zanych z tymi plikami.
263 Summary: DBA extension module for PHP
264 Summary(pl): Modu³ DBA dla PHP
267 Group(es): Bibliotecas
268 Group(fr): Librairies
269 Group(pl): Biblioteki
270 PreReq: %{name} = %{version}
273 This is a dynamic shared object (DSO) for Apache that will add
274 flat-file databases (DBA) support to PHP.
276 #%description dba -l pl
279 Summary: ODBC extension module for PHP
280 Summary(pl): Modu³ ODBC dla PHP
283 Group(es): Bibliotecas
284 Group(fr): Librairies
285 Group(pl): Biblioteki
286 PreReq: %{name} = %{version}
289 This is a dynamic shared object (DSO) for Apache that will add
292 %description odbc -l pl
293 Modu³ PHP ze wsparciem dla ODBC.
296 Summary: Calendar extension module for PHP
297 Summary(pl): Modu³ funkcji kalendarza dla PHP
300 Group(es): Bibliotecas
301 Group(fr): Librairies
302 Group(pl): Biblioteki
303 PreReq: %{name} = %{version}
305 %description calendar
306 This is a dynamic shared object (DSO) for Apache that will add
307 calendar support to PHP.
309 #%description calendar -l pl
312 Summary: DBase extension module for PHP
313 Summary(pl): Modu³ DBase dla PHP
316 Group(es): Bibliotecas
317 Group(fr): Librairies
318 Group(pl): Biblioteki
319 PreReq: %{name} = %{version}
322 This is a dynamic shared object (DSO) for Apache that will add DBase
325 %description dbase -l pl
326 Modu³ PHP ze wsparciem dla DBase.
329 Summary: FilePro extension module for PHP
330 Summary(pl): Modu³ FilePro dla PHP
333 Group(es): Bibliotecas
334 Group(fr): Librairies
335 Group(pl): Biblioteki
336 PreReq: %{name} = %{version}
339 This is a dynamic shared object (DSO) for Apache that will add FilePro
342 #%description filepro -l pl
345 Summary: POSIX extension module for PHP
346 Summary(pl): Modu³ POSIX dla PHP
349 Group(es): Bibliotecas
350 Group(fr): Librairies
351 Group(pl): Biblioteki
352 PreReq: %{name} = %{version}
355 This is a dynamic shared object (DSO) for Apache that will add POSIX
356 functions support to PHP.
358 %description posix -l pl
359 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
362 Summary: PCRE extension module for PHP
363 Summary(pl): Modu³ PCRE dla PHP
366 Group(es): Bibliotecas
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 Perl
373 Compatible Regular Expression support to PHP.
375 %description pcre -l pl
376 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
377 (Perl Compatible Regular Expressions)
380 Summary: SysV sem extension module for PHP
381 Summary(pl): Modu³ SysV sem dla PHP
384 Group(es): Bibliotecas
385 Group(fr): Librairies
386 Group(pl): Biblioteki
387 PreReq: %{name} = %{version}
390 This is a dynamic shared object (DSO) for Apache that will add SysV
391 semafores support to PHP.
393 %description sysvsem -l pl
394 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
397 Summary: SysV shm extension module for PHP
398 Summary(pl): Modu³ SysV shm dla PHP
401 Group(es): Bibliotecas
402 Group(fr): Librairies
403 Group(pl): Biblioteki
404 PreReq: %{name} = %{version}
407 This is a dynamic shared object (DSO) for Apache that will add SysV
408 Shared Memory support to PHP.
410 %description sysvshm -l pl
411 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
414 Summary: NIS (yp) extension module for PHP
415 Summary(pl): Modu³ NIS (yp) dla PHP
418 Group(es): Bibliotecas
419 Group(fr): Librairies
420 Group(pl): Biblioteki
421 PreReq: %{name} = %{version}
424 This is a dynamic shared object (DSO) for Apache that will add NIS
425 (Yellow Pages) support to PHP.
427 #%description yp -l pl
430 Summary: bcmath extension module for PHP
431 Summary(pl): Modu³ bcmath dla PHP
434 Group(es): Bibliotecas
435 Group(fr): Librairies
436 Group(pl): Biblioteki
437 PreReq: %{name} = %{version}
440 This is a dynamic shared object (DSO) for Apache that will add bc
441 style precision math functions support to PHP.
443 %description bcmath -l pl
444 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji matematycznych
445 takich jak w programie bc.
448 Summary: FTP extension module for PHP
449 Summary(pl): Modu³ FTP dla PHP
452 Group(es): Bibliotecas
453 Group(fr): Librairies
454 Group(pl): Biblioteki
455 PreReq: %{name} = %{version}
458 This is a dynamic shared object (DSO) for Apache that will add FTP
461 #%description ftp -l pl
464 Summary: Zlib extension module for PHP
465 Summary(pl): Modu³ zlib dla PHP
468 Group(es): Bibliotecas
469 Group(fr): Librairies
470 Group(pl): Biblioteki
471 PreReq: %{name} = %{version}
474 This is a dynamic shared object (DSO) for Apache that will add
475 compression (zlib) support to PHP.
477 %description zlib -l pl
478 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
481 Summary: exifextension module for PHP
482 Summary(pl): Modu³ exif dla PHP
485 Group(es): Bibliotecas
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 exif
494 #%description exif -l pl
497 Summary: recodeextension module for PHP
498 Summary(pl): Modu³ recode dla PHP
501 Group(es): Bibliotecas
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 recode
510 #%description recode -l pl
513 Summary: sessionextension module for PHP
514 Summary(pl): Modu³ session dla PHP
517 Group(es): Bibliotecas
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 session
526 #%description session -l pl
529 Summary: gettextextension module for PHP
530 Summary(pl): Modu³ gettext dla PHP
533 Group(es): Bibliotecas
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 gettext
542 #%description gettext -l pl
545 Summary: snmpextension module for PHP
546 Summary(pl): Modu³ snmp dla PHP
549 Group(es): Bibliotecas
550 Group(fr): Librairies
551 Group(pl): Biblioteki
552 PreReq: %{name} = %{version}
555 This is a dynamic shared object (DSO) for Apache that will add snmp
558 #%description snmp -l pl
561 Summary: imapextension module for PHP
562 Summary(pl): Modu³ imap dla PHP
565 Group(es): Bibliotecas
566 Group(fr): Librairies
567 Group(pl): Biblioteki
568 PreReq: %{name} = %{version}
571 This is a dynamic shared object (DSO) for Apache that will add imap
574 #%description imap -l pl
577 Summary: LDAP extension module for PHP
578 Summary(pl): Modu³ LDAP dla PHP
581 Group(es): Bibliotecas
582 Group(fr): Librairies
583 Group(pl): Biblioteki
584 PreReq: %{name} = %{version}
587 This is a dynamic shared object (DSO) for Apache that will add LDAP
590 #%description ldap -l pl
593 Summary: sockets extension module for PHP
594 Summary(pl): Modu³ socket dla PHP
597 Group(es): Bibliotecas
598 Group(fr): Librairies
599 Group(pl): Biblioteki
600 PreReq: %{name} = %{version}
603 This is a dynamic shared object (DSO) for Apache that will add sockets
606 #%description sockets -l pl
609 Summary: mcrypt extension module for PHP
610 Summary(pl): Modu³ mcrypt dla PHP
613 Group(es): Bibliotecas
614 Group(fr): Librairies
615 Group(pl): Biblioteki
616 PreReq: %{name} = %{version}
619 This is a dynamic shared object (DSO) for Apache that will add mcrypt
622 #%description mcrypt -l pl
625 Summary: mhash extension module for PHP
626 Summary(pl): Modu³ mhash dla PHP
629 Group(es): Bibliotecas
630 Group(fr): Librairies
631 Group(pl): Biblioteki
632 PreReq: %{name} = %{version}
635 This is a dynamic shared object (DSO) for Apache that will add mhash
638 #%description mcrypt -l pl
641 Summary: Online manual for PHP
642 Summary(pl): Dokumentacja dla PHP
643 Group: Networking/Daemons
644 Group(de): Netzwerkwesen/Server
645 Group(pl): Sieciowe/Serwery
648 Comprehensive documentation for PHP, viewable through your web
651 %description doc -l pl
652 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
657 Group: Development/Languages/PHP
663 Summary: Files for PHP modules development
664 Group: Development/Languages/PHP
667 Files for PHP modules development.
682 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
685 --with-apxs=/usr/sbin/apxs \
686 --with-config-file-path=%{_sysconfdir}/apache \
687 --with-exec-dir=%{_bindir} \
689 --enable-magic-quotes \
691 --enable-track-vars \
694 --enable-sysvsem=shared \
695 --enable-sysvshm=shared \
696 --enable-shmop=shared \
698 --enable-exif=shared \
699 --with-regex=system \
700 --with-gettext=shared \
701 %{!?bcond_off_ldap:--with-ldap=shared} \
702 --with-mysql=shared,/usr \
703 --with-mysql-sock=/var/lib/mysql/mysql.sock \
705 --enable-gd-imgstrttf \
706 --with-dbase=shared \
707 --with-filepro=shared \
708 --enable-ftp=shared \
710 --with-pdflib=shared \
711 --with-cpdflib=shared \
712 %{?bcond_on_java:--with-java} \
713 --with-pgsql=shared,/usr \
714 %{!?bcond_off_imap:--with-imap=shared} \
715 --enable-bcmath=shared \
716 --enable-calendar=shared \
718 --with-pcre-regex=shared \
719 --enable-posix=shared \
722 --with-recode=shared \
723 --enable-ucd-snmp-hack \
724 --enable-dba=shared \
725 %{!?bcond_off_snmp:--with-snmp=shared} \
730 --enable-xml=shared \
732 --with-mcrypt=shared \
733 --enable-sockets=shared \
735 --with-ctype=shared \
736 --with-mhash=shared \
739 %{?bcond_on_openssl:--with-openssl} \
740 %{!?bcond_off_odbc:--with-unixODBC=shared} \
741 %{?bcond_on_oracle:--with-oracle=shared} \
742 %{?bcond_on_oci8:--with-oci8=shared} \
745 # TODO --with-pspell=/usr,shared (pspell missing)
747 # --with-dom need libxml >= 2.2.7 \
752 rm -rf $RPM_BUILD_ROOT
753 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
754 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc} \
755 $RPM_BUILD_ROOT/%{_sbindir}
757 %{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
759 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
760 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
762 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache/php.ini
763 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
764 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
766 tar zxf %{SOURCE4} -C $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
767 ln -s manual.html $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc/index.html
770 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
771 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
772 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
775 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
776 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
777 /etc/httpd/httpd.conf
778 if [ -f /var/lock/subsys/httpd ]; then
779 /etc/rc.d/init.d/httpd restart 1>&2
783 if [ "$1" = "0" ]; then
784 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
786 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
787 /etc/httpd/httpd.conf
788 if [ -f /var/lock/subsys/httpd ]; then
789 /etc/rc.d/init.d/httpd restart 1>&2
794 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/apache/php.ini
797 if [ "$1" = "0" ]; then
798 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/apache/php.ini
802 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/apache/php.ini
805 if [ "$1" = "0" ]; then
806 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/apache/php.ini
810 %{_sbindir}/php-module-install install dba %{_sysconfdir}/apache/php.ini
813 if [ "$1" = "0" ]; then
814 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/apache/php.ini
818 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/apache/php.ini
821 if [ "$1" = "0" ]; then
822 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/apache/php.ini
826 %{_sbindir}/php-module-install install exif %{_sysconfdir}/apache/php.ini
829 if [ "$1" = "0" ]; then
830 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/apache/php.ini
834 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/apache/php.ini
837 if [ "$1" = "0" ]; then
838 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/apache/php.ini
842 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/apache/php.ini
845 if [ "$1" = "0" ]; then
846 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/apache/php.ini
850 %{_sbindir}/php-module-install install gd %{_sysconfdir}/apache/php.ini
853 if [ "$1" = "0" ]; then
854 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/apache/php.ini
858 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/apache/php.ini
861 if [ "$1" = "0" ]; then
862 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/apache/php.ini
865 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
867 %{_sbindir}/php-module-install install imap %{_sysconfdir}/apache/php.ini
870 if [ "$1" = "0" ]; then
871 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/apache/php.ini
875 %if %{?bond_on_java:1}%{!?bond_on_java:0}
877 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/apache/php.ini
880 if [ "$1" = "0" ]; then
881 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/apache/php.ini
885 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
887 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/apache/php.ini
890 if [ "$1" = "0" ]; then
891 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/apache/php.ini
896 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/apache/php.ini
899 if [ "$1" = "0" ]; then
900 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/apache/php.ini
904 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/apache/php.ini
907 if [ "$1" = "0" ]; then
908 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/apache/php.ini
912 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/apache/php.ini
915 if [ "$1" = "0" ]; then
916 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/apache/php.ini
919 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
921 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/apache/php.ini
924 if [ "$1" = "0" ]; then
925 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/apache/php.ini
929 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
931 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/apache/php.ini
934 if [ "$1" = "0" ]; then
935 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/apache/php.ini
939 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
941 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/apache/php.ini
944 if [ "$1" = "0" ]; then
945 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/apache/php.ini
950 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/apache/php.ini
953 if [ "$1" = "0" ]; then
954 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/apache/php.ini
958 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/apache/php.ini
961 if [ "$1" = "0" ]; then
962 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/apache/php.ini
966 %{_sbindir}/php-module-install install posix %{_sysconfdir}/apache/php.ini
969 if [ "$1" = "0" ]; then
970 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/apache/php.ini
974 %{_sbindir}/php-module-install install recode %{_sysconfdir}/apache/php.ini
977 if [ "$1" = "0" ]; then
978 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/apache/php.ini
982 %{_sbindir}/php-module-install install session %{_sysconfdir}/apache/php.ini
985 if [ "$1" = "0" ]; then
986 %{_sbindir}/php-module-install remove session %{_sysconfdir}/apache/php.ini
989 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
991 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/apache/php.ini
994 if [ "$1" = "0" ]; then
995 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/apache/php.ini
1000 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/apache/php.ini
1003 if [ "$1" = "0" ]; then
1004 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/apache/php.ini
1008 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/apache/php.ini
1011 if [ "$1" = "0" ]; then
1012 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/apache/php.ini
1016 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/apache/php.ini
1019 if [ "$1" = "0" ]; then
1020 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/apache/php.ini
1024 %{_sbindir}/php-module-install install xml %{_sysconfdir}/apache/php.ini
1027 if [ "$1" = "0" ]; then
1028 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/apache/php.ini
1032 %{_sbindir}/php-module-install install yp %{_sysconfdir}/apache/php.ini
1035 if [ "$1" = "0" ]; then
1036 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/apache/php.ini
1040 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/apache/php.ini
1043 if [ "$1" = "0" ]; then
1044 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/apache/php.ini
1048 rm -rf $RPM_BUILD_ROOT
1051 %defattr(644,root,root,755)
1052 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1053 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1054 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1056 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/apache/*
1058 /home/httpd/html/icons/*
1060 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1061 %attr(755,root,root) %{_sbindir}/*
1064 %dir %{_libdir}/php/extensions
1065 %dir %{extensionsdir}
1068 %defattr(644,root,root,755)
1070 %{_libdir}/php4/build
1071 %attr(755,root,root) %{_bindir}/phpextdist
1072 %attr(755,root,root) %{_bindir}/phpize
1073 %attr(755,root,root) %{_bindir}/php-config
1076 %defattr(644,root,root,755)
1077 %attr(755,root,root) %{_bindir}/pear
1078 %{_libdir}/php/Benchmark
1079 %{_libdir}/php/Crypt
1087 %{_libdir}/php/Payment
1090 %{_libdir}/php/*.php
1093 %defattr(644,root,root,755)
1094 %attr(755,root,root) %{extensionsdir}/mysql.*
1097 %defattr(644,root,root,755)
1098 %attr(755,root,root) %{extensionsdir}/pgsql.so
1100 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1102 %defattr(644,root,root,755)
1103 %attr(755,root,root) %{extensionsdir}/oracle.so
1106 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1108 %defattr(644,root,root,755)
1109 %attr(755,root,root) %{extensionsdir}/oci8.so
1113 %defattr(644,root,root,755)
1114 %attr(755,root,root) %{extensionsdir}/gd.so
1117 %defattr(644,root,root,755)
1118 %attr(755,root,root) %{extensionsdir}/xml.so
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) %{extensionsdir}/dba.so
1125 %defattr(644,root,root,755)
1126 %attr(755,root,root) %{extensionsdir}/dbase.so
1129 %defattr(644,root,root,755)
1130 %attr(755,root,root) %{extensionsdir}/filepro.so
1133 %defattr(644,root,root,755)
1134 %attr(755,root,root) %{extensionsdir}/pcre.so
1137 %defattr(644,root,root,755)
1138 %attr(755,root,root) %{extensionsdir}/posix.so
1141 %defattr(644,root,root,755)
1142 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1145 %defattr(644,root,root,755)
1146 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1149 %defattr(644,root,root,755)
1150 %attr(755,root,root) %{extensionsdir}/yp.so
1153 %defattr(644,root,root,755)
1154 %attr(755,root,root) %{extensionsdir}/calendar.so
1157 %defattr(644,root,root,755)
1158 %attr(755,root,root) %{extensionsdir}/bcmath.so
1161 %defattr(644,root,root,755)
1162 %attr(755,root,root) %{extensionsdir}/ftp.so
1165 %defattr(644,root,root,755)
1166 %attr(755,root,root) %{extensionsdir}/zlib.so
1169 %defattr(644,root,root,755)
1170 %attr(755,root,root) %{extensionsdir}/exif.so
1173 %defattr(644,root,root,755)
1174 %attr(755,root,root) %{extensionsdir}/recode.so
1177 #%defattr(644,root,root,755)
1178 #%attr(755,root,root) %{extensionsdir}/session.so
1181 %defattr(644,root,root,755)
1182 %attr(755,root,root) %{extensionsdir}/gettext.so
1184 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
1186 %defattr(644,root,root,755)
1187 %attr(755,root,root) %{extensionsdir}/imap.so
1190 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1192 %defattr(644,root,root,755)
1193 %attr(755,root,root) %{extensionsdir}/snmp.so
1196 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1198 %defattr(644,root,root,755)
1199 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1202 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1204 %defattr(644,root,root,755)
1205 %attr(755,root,root) %{extensionsdir}/ldap.*
1209 %defattr(644,root,root,755)
1210 %attr(755,root,root) %{extensionsdir}/sockets.so
1213 %defattr(644,root,root,755)
1214 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1217 %defattr(644,root,root,755)
1218 %attr(755,root,root) %{extensionsdir}/mhash.so
1220 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1222 %defattr(644,root,root,755)
1223 %attr(755,root,root) %{extensionsdir}/odbc.so
1227 %defattr(644,root,root,755)
1228 /home/httpd/html/docs/php4-doc