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
40 URL: http://www.php.net/
41 BuildRequires: apache(EAPI)-devel
45 BuildRequires: db3-devel >= 3.1.17
46 BuildRequires: freetype-devel
47 BuildRequires: gd-devel >= 1.8.3
48 BuildRequires: gdbm-devel
49 %{!?bcond_off_imap:BuildRequires: imap-devel >= 4.7b-1}
50 # I think jdk is better for java
52 %{?bcond_on_java:BuildRequires: kaffe-devel}
53 BuildRequires: libjpeg-devel
54 BuildRequires: libltdl-devel
55 BuildRequires: libpng >= 1.0.8
56 BuildRequires: libtiff-devel
57 BuildRequires: mm-devel >= 1.1.3
58 BuildRequires: mysql-devel >= 3.23.32
59 %{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
60 BuildRequires: pam-devel
61 BuildRequires: pdflib-devel >= 3.0
62 #BuildRequires: libxml-devel >= 2.0.0
63 BuildRequires: postgresql-devel
64 BuildRequires: recode-devel >= 3.5
65 BuildRequires: t1lib-devel
66 %{!?bcond_off_odbc:BuildRequires: unixODBC-devel}
67 BuildRequires: zlib-devel >= 1.0.9
68 %{!?bcond_off_snmp:BuildRequires: ucd-snmp-devel >= 4.1}
69 BuildRequires: libmcrypt-devel >= 2.4.4
70 BuildRequires: mhash-devel
71 BuildRequires: bzip2-devel
72 BuildRequires: gmp-devel
73 BuildRequires: curl-devel
74 %if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
75 BuildRequires: openssl-devel >= 0.9.6
77 Requires: apache(EAPI) >= 1.3.9
79 Prereq: /usr/sbin/apxs
80 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
82 %define _sysconfdir /etc/php
83 # check ZEND_MODULE_API_NO in Zend/modules.h
84 %define extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-20001214
87 PHP is an HTML-embedded scripting language. PHP attempts to make it
88 easy for developers to write dynamically generated web pages. PHP also
89 offers built-in database integration for several commercial and
90 non-commercial database management systems, so writing a
91 database-enabled web page with PHP is fairly simple. The most common
92 use of PHP coding is probably as a replacement for CGI scripts. The
93 mod_php module enables the Apache web server to understand and process
94 the embedded PHP language in web pages. This package contains PHP
95 version %{version}. If you use applications which specifically rely on
96 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
97 module contained in the phpfi package. If you're just starting with
98 PHP, you should install this package. You'll also need to install the
102 PHP est un langage de script embarque dans le HTM. PHP essaye de
103 rendre simple aux developpeurs d'ecrire des pages web generees
104 dynamiquement. PHP incorpore egalement une integration avec plusieurs
105 systemes de gestion de bases de donnees commerciaux et
106 non-connerciaux, qui rent facile la creation de pages web liees avec
107 des bases de donnees. L'utilisation la plus commune de PHP est
108 probablement en remplacement de scripts CGI. Le module mod_php permet
109 au serveur web apache de comprendre et de traiter le langage PHP
110 integre dans des pages web. Ce package contient PHP version
111 %{version}. Si vous utilisez des applications qui utilisent
112 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
113 dans le package mod_php. Si vous debutez avec PHP, vous devriez
114 installer ce package. Vous aurez egalement besoin d'installer le
118 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
119 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
120 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
121 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
122 zosta³a z jêzyków: C, Java i Perl.
125 Summary: MySQL database module for PHP
126 Summary(pl): Modu³ bazy danych MySQL dla PHP
129 Group(es): Bibliotecas
130 Group(fr): Librairies
131 Group(pl): Biblioteki
132 PreReq: %{name} = %{version}
135 This is a dynamic shared object (DSO) for Apache that will add MySQL
136 database support to PHP. If you need back-end support for MySQL, you
137 should install this package in addition to the main %{name} package.
139 %description mysql -l pl
140 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
143 Summary: PostgreSQL database module for PHP
144 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
147 Group(es): Bibliotecas
148 Group(fr): Librairies
149 Group(pl): Biblioteki
150 PreReq: %{name} = %{version}
153 This is a dynamic shared object (DSO) for Apache that will add
154 PostgreSQL database support to PHP. If you need back-end support for
155 PostgreSQL, you should install this package in addition to the main
158 %description pgsql -l pl
159 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
162 Summary: Oracle 8 database module for PHP
163 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
166 Group(es): Bibliotecas
167 Group(fr): Librairies
168 Group(pl): Biblioteki
169 PreReq: %{name} = %{version}
173 This is a dynamic shared object (DSO) for Apache that will add Oracle
174 8 database support to PHP. If you need back-end support for Oracle 8,
175 you should install this package in addition to the main %{name}
178 %description oci8 -l pl
179 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
182 Summary: Oracle 7 database module for PHP
183 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
186 Group(es): Bibliotecas
187 Group(fr): Librairies
188 Group(pl): Biblioteki
189 PreReq: %{name} = %{version}
193 This is a dynamic shared object (DSO) for Apache that will add Oracle
194 7 database support to PHP. If you need back-end support for Oracle 7,
195 you should install this package in addition to the main %{name}
198 %description oracle -l pl
199 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
202 Summary: GD extension module for PHP
203 Summary: Modu³ GD dla PHP
206 Group(es): Bibliotecas
207 Group(fr): Librairies
208 Group(pl): Biblioteki
209 PreReq: %{name} = %{version}
212 This is a dynamic shared object (DSO) for Apache that will add GD
213 support to PHP. You should install this package in addition to the
214 main %{name} package if you want to create and manipulate images with
217 %description gd -l pl
218 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki obrazków
222 Summary: Java extension module for PHP
223 Summary(pl): Modu³ Javy dla PHP
226 Group(es): Bibliotecas
227 Group(fr): Librairies
228 Group(pl): Biblioteki
229 PreReq: %{name} = %{version}
232 This is a dynamic shared object (DSO) for Apache that will add JAVA
233 support to PHP. This extension provides a simple and effective means
234 for creating and invoking methods on Java objects from PHP.
236 %description java -l pl
237 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
238 obiektów Javy z poziomu PHP.
241 Summary: XML extension module for PHP
242 Summary(pl): Modu³ XML dla PHP
245 Group(es): Bibliotecas
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 XML
252 support to PHP. This extension lets you create XML parsers and then
253 define handlers for different XML events. If you want to be able to
254 parse XML documents you should install this package in addition to the
255 main %{name} package.
257 %description xml -l pl
258 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
259 zwi±zanych z tymi plikami.
262 Summary: DBA extension module for PHP
263 Summary(pl): Modu³ DBA dla PHP
266 Group(es): Bibliotecas
267 Group(fr): Librairies
268 Group(pl): Biblioteki
269 PreReq: %{name} = %{version}
272 This is a dynamic shared object (DSO) for Apache that will add
273 flat-file databases (DBA) support to PHP.
275 #%description dba -l pl
278 Summary: ODBC extension module for PHP
279 Summary(pl): Modu³ ODBC dla PHP
282 Group(es): Bibliotecas
283 Group(fr): Librairies
284 Group(pl): Biblioteki
285 PreReq: %{name} = %{version}
288 This is a dynamic shared object (DSO) for Apache that will add
291 %description odbc -l pl
292 Modu³ PHP ze wsparciem dla ODBC.
295 Summary: Calendar extension module for PHP
296 Summary(pl): Modu³ funkcji kalendarza dla PHP
299 Group(es): Bibliotecas
300 Group(fr): Librairies
301 Group(pl): Biblioteki
302 PreReq: %{name} = %{version}
304 %description calendar
305 This is a dynamic shared object (DSO) for Apache that will add
306 calendar support to PHP.
308 #%description calendar -l pl
311 Summary: DBase extension module for PHP
312 Summary(pl): Modu³ DBase dla PHP
315 Group(es): Bibliotecas
316 Group(fr): Librairies
317 Group(pl): Biblioteki
318 PreReq: %{name} = %{version}
321 This is a dynamic shared object (DSO) for Apache that will add DBase
324 %description dbase -l pl
325 Modu³ PHP ze wsparciem dla DBase.
328 Summary: FilePro extension module for PHP
329 Summary(pl): Modu³ FilePro dla PHP
332 Group(es): Bibliotecas
333 Group(fr): Librairies
334 Group(pl): Biblioteki
335 PreReq: %{name} = %{version}
338 This is a dynamic shared object (DSO) for Apache that will add FilePro
341 #%description filepro -l pl
344 Summary: POSIX extension module for PHP
345 Summary(pl): Modu³ POSIX dla PHP
348 Group(es): Bibliotecas
349 Group(fr): Librairies
350 Group(pl): Biblioteki
351 PreReq: %{name} = %{version}
354 This is a dynamic shared object (DSO) for Apache that will add POSIX
355 functions support to PHP.
357 %description posix -l pl
358 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
361 Summary: PCRE extension module for PHP
362 Summary(pl): Modu³ PCRE dla PHP
365 Group(es): Bibliotecas
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 Perl
372 Compatible Regular Expression support to PHP.
374 %description pcre -l pl
375 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
376 (Perl Compatible Regular Expressions)
379 Summary: SysV sem extension module for PHP
380 Summary(pl): Modu³ SysV sem dla PHP
383 Group(es): Bibliotecas
384 Group(fr): Librairies
385 Group(pl): Biblioteki
386 PreReq: %{name} = %{version}
389 This is a dynamic shared object (DSO) for Apache that will add SysV
390 semafores support to PHP.
392 %description sysvsem -l pl
393 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
396 Summary: SysV shm extension module for PHP
397 Summary(pl): Modu³ SysV shm dla PHP
400 Group(es): Bibliotecas
401 Group(fr): Librairies
402 Group(pl): Biblioteki
403 PreReq: %{name} = %{version}
406 This is a dynamic shared object (DSO) for Apache that will add SysV
407 Shared Memory support to PHP.
409 %description sysvshm -l pl
410 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
413 Summary: NIS (yp) extension module for PHP
414 Summary(pl): Modu³ NIS (yp) dla PHP
417 Group(es): Bibliotecas
418 Group(fr): Librairies
419 Group(pl): Biblioteki
420 PreReq: %{name} = %{version}
423 This is a dynamic shared object (DSO) for Apache that will add NIS
424 (Yellow Pages) support to PHP.
426 #%description yp -l pl
429 Summary: bcmath extension module for PHP
430 Summary(pl): Modu³ bcmath dla PHP
433 Group(es): Bibliotecas
434 Group(fr): Librairies
435 Group(pl): Biblioteki
436 PreReq: %{name} = %{version}
439 This is a dynamic shared object (DSO) for Apache that will add bc
440 style precision math functions support to PHP.
442 %description bcmath -l pl
443 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji matematycznych
444 takich jak w programie bc.
447 Summary: FTP extension module for PHP
448 Summary(pl): Modu³ FTP dla PHP
451 Group(es): Bibliotecas
452 Group(fr): Librairies
453 Group(pl): Biblioteki
454 PreReq: %{name} = %{version}
457 This is a dynamic shared object (DSO) for Apache that will add FTP
460 #%description ftp -l pl
463 Summary: Zlib extension module for PHP
464 Summary(pl): Modu³ zlib dla PHP
467 Group(es): Bibliotecas
468 Group(fr): Librairies
469 Group(pl): Biblioteki
470 PreReq: %{name} = %{version}
473 This is a dynamic shared object (DSO) for Apache that will add
474 compression (zlib) support to PHP.
476 %description zlib -l pl
477 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
480 Summary: exifextension module for PHP
481 Summary(pl): Modu³ exif dla PHP
484 Group(es): Bibliotecas
485 Group(fr): Librairies
486 Group(pl): Biblioteki
487 PreReq: %{name} = %{version}
490 This is a dynamic shared object (DSO) for Apache that will add exif
493 #%description exif -l pl
496 Summary: recodeextension module for PHP
497 Summary(pl): Modu³ recode dla PHP
500 Group(es): Bibliotecas
501 Group(fr): Librairies
502 Group(pl): Biblioteki
503 PreReq: %{name} = %{version}
506 This is a dynamic shared object (DSO) for Apache that will add recode
509 #%description recode -l pl
512 Summary: sessionextension module for PHP
513 Summary(pl): Modu³ session dla PHP
516 Group(es): Bibliotecas
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 session
525 #%description session -l pl
528 Summary: gettextextension module for PHP
529 Summary(pl): Modu³ gettext dla PHP
532 Group(es): Bibliotecas
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 gettext
541 #%description gettext -l pl
544 Summary: snmpextension module for PHP
545 Summary(pl): Modu³ snmp dla PHP
548 Group(es): Bibliotecas
549 Group(fr): Librairies
550 Group(pl): Biblioteki
551 PreReq: %{name} = %{version}
554 This is a dynamic shared object (DSO) for Apache that will add snmp
557 #%description snmp -l pl
560 Summary: imapextension module for PHP
561 Summary(pl): Modu³ imap dla PHP
564 Group(es): Bibliotecas
565 Group(fr): Librairies
566 Group(pl): Biblioteki
567 PreReq: %{name} = %{version}
570 This is a dynamic shared object (DSO) for Apache that will add imap
573 #%description imap -l pl
576 Summary: LDAP extension module for PHP
577 Summary(pl): Modu³ LDAP dla PHP
580 Group(es): Bibliotecas
581 Group(fr): Librairies
582 Group(pl): Biblioteki
583 PreReq: %{name} = %{version}
586 This is a dynamic shared object (DSO) for Apache that will add LDAP
589 #%description ldap -l pl
592 Summary: sockets extension module for PHP
593 Summary(pl): Modu³ socket dla PHP
596 Group(es): Bibliotecas
597 Group(fr): Librairies
598 Group(pl): Biblioteki
599 PreReq: %{name} = %{version}
602 This is a dynamic shared object (DSO) for Apache that will add sockets
605 #%description sockets -l pl
608 Summary: mcrypt extension module for PHP
609 Summary(pl): Modu³ mcrypt dla PHP
612 Group(es): Bibliotecas
613 Group(fr): Librairies
614 Group(pl): Biblioteki
615 PreReq: %{name} = %{version}
618 This is a dynamic shared object (DSO) for Apache that will add mcrypt
621 #%description mcrypt -l pl
624 Summary: mhash extension module for PHP
625 Summary(pl): Modu³ mhash dla PHP
628 Group(es): Bibliotecas
629 Group(fr): Librairies
630 Group(pl): Biblioteki
631 PreReq: %{name} = %{version}
634 This is a dynamic shared object (DSO) for Apache that will add mhash
637 #%description mcrypt -l pl
640 Summary: Online manual for PHP
641 Summary(pl): Dokumentacja dla PHP
642 Group: Networking/Daemons
643 Group(de): Netzwerkwesen/Server
644 Group(pl): Sieciowe/Serwery
647 Comprehensive documentation for PHP, viewable through your web
650 %description doc -l pl
651 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
656 Group: Development/Languages/PHP
662 Summary: Files for PHP modules development
663 Group: Development/Languages/PHP
666 Files for PHP modules development.
681 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
684 --with-apxs=/usr/sbin/apxs \
685 --with-config-file-path=%{_sysconfdir}/apache \
686 --with-exec-dir=%{_bindir} \
688 --enable-magic-quotes \
690 --enable-track-vars \
693 --enable-sysvsem=shared \
694 --enable-sysvshm=shared \
695 --enable-shmop=shared \
697 --enable-exif=shared \
698 --with-regex=system \
699 --with-gettext=shared \
700 %{!?bcond_off_ldap:--with-ldap=shared} \
701 --with-mysql=shared,/usr \
702 --with-mysql-sock=/var/lib/mysql/mysql.sock \
704 --enable-gd-imgstrttf \
705 --with-dbase=shared \
706 --with-filepro=shared \
707 --enable-ftp=shared \
709 --with-pdflib=shared \
710 --with-cpdflib=shared \
711 %{?bcond_on_java:--with-java} \
712 --with-pgsql=shared,/usr \
713 %{!?bcond_off_imap:--with-imap=shared} \
714 --enable-bcmath=shared \
715 --enable-calendar=shared \
717 --with-pcre-regex=shared \
718 --enable-posix=shared \
721 --with-recode=shared \
722 --enable-ucd-snmp-hack \
723 --enable-dba=shared \
724 %{!?bcond_off_snmp:--with-snmp=shared} \
729 --enable-xml=shared \
731 --with-mcrypt=shared \
732 --enable-sockets=shared \
734 --with-ctype=shared \
735 --with-mhash=shared \
738 %{?bcond_on_openssl:--with-openssl} \
739 %{!?bcond_off_odbc:--with-unixODBC=shared} \
740 %{?bcond_on_oracle:--with-oracle=shared} \
741 %{?bcond_on_oci8:--with-oci8=shared} \
744 # TODO --with-pspell=/usr,shared (pspell missing)
746 # --with-dom need libxml >= 2.2.7 \
751 rm -rf $RPM_BUILD_ROOT
752 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
753 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc} \
754 $RPM_BUILD_ROOT/%{_sbindir}
756 %{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
758 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
759 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
761 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache/php.ini
762 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
763 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
765 tar zxf %{SOURCE4} -C $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
766 ln -s manual.html $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc/index.html
769 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
770 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
771 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
774 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
775 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
776 /etc/httpd/httpd.conf
777 if [ -f /var/lock/subsys/httpd ]; then
778 /etc/rc.d/init.d/httpd restart 1>&2
782 if [ "$1" = "0" ]; then
783 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
785 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
786 /etc/httpd/httpd.conf
787 if [ -f /var/lock/subsys/httpd ]; then
788 /etc/rc.d/init.d/httpd restart 1>&2
793 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/apache/php.ini
796 if [ "$1" = "0" ]; then
797 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/apache/php.ini
801 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/apache/php.ini
804 if [ "$1" = "0" ]; then
805 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/apache/php.ini
809 %{_sbindir}/php-module-install install dba %{_sysconfdir}/apache/php.ini
812 if [ "$1" = "0" ]; then
813 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/apache/php.ini
817 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/apache/php.ini
820 if [ "$1" = "0" ]; then
821 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/apache/php.ini
825 %{_sbindir}/php-module-install install exif %{_sysconfdir}/apache/php.ini
828 if [ "$1" = "0" ]; then
829 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/apache/php.ini
833 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/apache/php.ini
836 if [ "$1" = "0" ]; then
837 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/apache/php.ini
841 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/apache/php.ini
844 if [ "$1" = "0" ]; then
845 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/apache/php.ini
849 %{_sbindir}/php-module-install install gd %{_sysconfdir}/apache/php.ini
852 if [ "$1" = "0" ]; then
853 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/apache/php.ini
857 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/apache/php.ini
860 if [ "$1" = "0" ]; then
861 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/apache/php.ini
864 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
866 %{_sbindir}/php-module-install install imap %{_sysconfdir}/apache/php.ini
869 if [ "$1" = "0" ]; then
870 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/apache/php.ini
874 %if %{?bond_on_java:1}%{!?bond_on_java:0}
876 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/apache/php.ini
879 if [ "$1" = "0" ]; then
880 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/apache/php.ini
884 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
886 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/apache/php.ini
889 if [ "$1" = "0" ]; then
890 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/apache/php.ini
895 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/apache/php.ini
898 if [ "$1" = "0" ]; then
899 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/apache/php.ini
903 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/apache/php.ini
906 if [ "$1" = "0" ]; then
907 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/apache/php.ini
911 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/apache/php.ini
914 if [ "$1" = "0" ]; then
915 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/apache/php.ini
918 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
920 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/apache/php.ini
923 if [ "$1" = "0" ]; then
924 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/apache/php.ini
928 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
930 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/apache/php.ini
933 if [ "$1" = "0" ]; then
934 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/apache/php.ini
938 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
940 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/apache/php.ini
943 if [ "$1" = "0" ]; then
944 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/apache/php.ini
949 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/apache/php.ini
952 if [ "$1" = "0" ]; then
953 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/apache/php.ini
957 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/apache/php.ini
960 if [ "$1" = "0" ]; then
961 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/apache/php.ini
965 %{_sbindir}/php-module-install install posix %{_sysconfdir}/apache/php.ini
968 if [ "$1" = "0" ]; then
969 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/apache/php.ini
973 %{_sbindir}/php-module-install install recode %{_sysconfdir}/apache/php.ini
976 if [ "$1" = "0" ]; then
977 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/apache/php.ini
981 %{_sbindir}/php-module-install install session %{_sysconfdir}/apache/php.ini
984 if [ "$1" = "0" ]; then
985 %{_sbindir}/php-module-install remove session %{_sysconfdir}/apache/php.ini
988 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
990 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/apache/php.ini
993 if [ "$1" = "0" ]; then
994 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/apache/php.ini
999 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/apache/php.ini
1002 if [ "$1" = "0" ]; then
1003 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/apache/php.ini
1007 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/apache/php.ini
1010 if [ "$1" = "0" ]; then
1011 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/apache/php.ini
1015 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/apache/php.ini
1018 if [ "$1" = "0" ]; then
1019 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/apache/php.ini
1023 %{_sbindir}/php-module-install install xml %{_sysconfdir}/apache/php.ini
1026 if [ "$1" = "0" ]; then
1027 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/apache/php.ini
1031 %{_sbindir}/php-module-install install yp %{_sysconfdir}/apache/php.ini
1034 if [ "$1" = "0" ]; then
1035 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/apache/php.ini
1039 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/apache/php.ini
1042 if [ "$1" = "0" ]; then
1043 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/apache/php.ini
1047 rm -rf $RPM_BUILD_ROOT
1050 %defattr(644,root,root,755)
1051 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1052 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1053 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1055 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/apache/*
1057 /home/httpd/html/icons/*
1059 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1060 %attr(755,root,root) %{_sbindir}/*
1063 %dir %{_libdir}/php/extensions
1064 %dir %{extensionsdir}
1067 %defattr(644,root,root,755)
1069 %{_libdir}/php4/build
1070 %attr(755,root,root) %{_bindir}/phpextdist
1071 %attr(755,root,root) %{_bindir}/phpize
1072 %attr(755,root,root) %{_bindir}/php-config
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_bindir}/pear
1077 %{_libdir}/php/Benchmark
1078 %{_libdir}/php/Crypt
1086 %{_libdir}/php/Payment
1089 %{_libdir}/php/*.php
1092 %defattr(644,root,root,755)
1093 %attr(755,root,root) %{extensionsdir}/mysql.*
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{extensionsdir}/pgsql.so
1099 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1101 %defattr(644,root,root,755)
1102 %attr(755,root,root) %{extensionsdir}/oracle.so
1105 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1107 %defattr(644,root,root,755)
1108 %attr(755,root,root) %{extensionsdir}/oci8.so
1112 %defattr(644,root,root,755)
1113 %attr(755,root,root) %{extensionsdir}/gd.so
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{extensionsdir}/xml.so
1120 %defattr(644,root,root,755)
1121 %attr(755,root,root) %{extensionsdir}/dba.so
1124 %defattr(644,root,root,755)
1125 %attr(755,root,root) %{extensionsdir}/dbase.so
1128 %defattr(644,root,root,755)
1129 %attr(755,root,root) %{extensionsdir}/filepro.so
1132 %defattr(644,root,root,755)
1133 %attr(755,root,root) %{extensionsdir}/pcre.so
1136 %defattr(644,root,root,755)
1137 %attr(755,root,root) %{extensionsdir}/posix.so
1140 %defattr(644,root,root,755)
1141 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1144 %defattr(644,root,root,755)
1145 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1148 %defattr(644,root,root,755)
1149 %attr(755,root,root) %{extensionsdir}/yp.so
1152 %defattr(644,root,root,755)
1153 %attr(755,root,root) %{extensionsdir}/calendar.so
1156 %defattr(644,root,root,755)
1157 %attr(755,root,root) %{extensionsdir}/bcmath.so
1160 %defattr(644,root,root,755)
1161 %attr(755,root,root) %{extensionsdir}/ftp.so
1164 %defattr(644,root,root,755)
1165 %attr(755,root,root) %{extensionsdir}/zlib.so
1168 %defattr(644,root,root,755)
1169 %attr(755,root,root) %{extensionsdir}/exif.so
1172 %defattr(644,root,root,755)
1173 %attr(755,root,root) %{extensionsdir}/recode.so
1176 #%defattr(644,root,root,755)
1177 #%attr(755,root,root) %{extensionsdir}/session.so
1180 %defattr(644,root,root,755)
1181 %attr(755,root,root) %{extensionsdir}/gettext.so
1183 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
1185 %defattr(644,root,root,755)
1186 %attr(755,root,root) %{extensionsdir}/imap.so
1189 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1191 %defattr(644,root,root,755)
1192 %attr(755,root,root) %{extensionsdir}/snmp.so
1195 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1197 %defattr(644,root,root,755)
1198 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1201 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1203 %defattr(644,root,root,755)
1204 %attr(755,root,root) %{extensionsdir}/ldap.*
1208 %defattr(644,root,root,755)
1209 %attr(755,root,root) %{extensionsdir}/sockets.so
1212 %defattr(644,root,root,755)
1213 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1216 %defattr(644,root,root,755)
1217 %attr(755,root,root) %{extensionsdir}/mhash.so
1219 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1221 %defattr(644,root,root,755)
1222 %attr(755,root,root) %{extensionsdir}/odbc.so
1226 %defattr(644,root,root,755)
1227 /home/httpd/html/docs/php4-doc