3 # _with_oracle - with oracle support
4 # _with_oci8 - with oci8 support
5 # _with_java - with Java support
6 # _with_openssl - with OpenSSL support
7 # _without_imap - without IMAP support
8 # _without_ldap - without LDAP support
9 # _without_odbc - without ODBC support
10 # _without_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 Patch3: %{name}-link-libs.patch
35 #Patch4: %{name}-DESTDIR.patch
36 #Patch5: %{name}-gd-shared.patch
37 Patch6: %{name}-session-path.patch
38 #Patch7: %{name}-libtool_version_check_fix.patch
39 #Patch8: %{name}-pdflib.patch
40 Patch9: %{name}-am_ac_lt.patch
41 Patch10: %{name}-fastcgi.patch
42 Patch11: %{name}-shared.patch
43 Patch12: %{name}-ac250.patch
45 URL: http://www.php.net/
46 BuildRequires: apache(EAPI)-devel
50 BuildRequires: db3-devel >= 3.1.17
51 BuildRequires: freetype1-devel
52 BuildRequires: gd-devel >= 1.8.3
53 BuildRequires: gdbm-devel
54 %{!?_without_imap:BuildRequires: imap-devel >= 1:2001-0.BETA }
55 # I think jdk is better for java
57 %{?_with_java:BuildRequires: kaffe-devel}
58 BuildRequires: libjpeg-devel
59 BuildRequires: libltdl-devel >= 1.4
60 BuildRequires: libpng >= 1.0.8
61 BuildRequires: libtiff-devel
62 BuildRequires: libtool
63 BuildRequires: mm-devel >= 1.1.3
64 BuildRequires: mysql-devel >= 3.23.32
65 %{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
66 BuildRequires: pam-devel
67 BuildRequires: pdflib-devel >= 4.0.0
68 #BuildRequires: libxml-devel >= 2.0.0
69 BuildRequires: postgresql-devel
70 BuildRequires: recode-devel >= 3.5d-3
71 BuildRequires: t1lib-devel
72 %{!?_without_odbc:BuildRequires: unixODBC-devel}
73 BuildRequires: zlib-devel >= 1.0.9
74 %{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.1-8}
75 BuildRequires: libmcrypt-devel >= 2.4.4
76 BuildRequires: mhash-devel
77 BuildRequires: bzip2-devel
78 BuildRequires: gmp-devel
79 BuildRequires: curl-devel
80 #BuildRequires: fastcgi-devkit
81 %if %(expr %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_ldap:0})
82 BuildRequires: openssl-devel >= 0.9.6a
84 Prereq: apache(EAPI) >= 1.3.9
86 Prereq: %{_sbindir}/apxs
87 PreReq: %{name}-common = %{version}
88 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
91 %define _sysconfdir /etc/php
92 # check ZEND_MODULE_API_NO in Zend/modules.h
93 %define extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-20001222
96 PHP is an HTML-embedded scripting language. PHP attempts to make it
97 easy for developers to write dynamically generated web pages. PHP also
98 offers built-in database integration for several commercial and
99 non-commercial database management systems, so writing a
100 database-enabled web page with PHP is fairly simple. The most common
101 use of PHP coding is probably as a replacement for CGI scripts. The
102 mod_php module enables the Apache web server to understand and process
103 the embedded PHP language in web pages. This package contains PHP
104 version %{version}. If you use applications which specifically rely on
105 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
106 module contained in the phpfi package. If you're just starting with
107 PHP, you should install this package. You'll also need to install the
111 PHP est un langage de script embarque dans le HTM. PHP essaye de
112 rendre simple aux developpeurs d'ecrire des pages web generees
113 dynamiquement. PHP incorpore egalement une integration avec plusieurs
114 systemes de gestion de bases de donnees commerciaux et
115 non-connerciaux, qui rent facile la creation de pages web liees avec
116 des bases de donnees. L'utilisation la plus commune de PHP est
117 probablement en remplacement de scripts CGI. Le module mod_php permet
118 au serveur web apache de comprendre et de traiter le langage PHP
119 integre dans des pages web. Ce package contient PHP version
120 %{version}. Si vous utilisez des applications qui utilisent
121 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
122 dans le package mod_php. Si vous debutez avec PHP, vous devriez
123 installer ce package. Vous aurez egalement besoin d'installer le
127 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
128 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
129 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
130 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
131 zosta³a z jêzyków: C, Java i Perl.
134 Summary: PHP as CGI program
135 Summary(pl): PHP jako program CGI
138 Group(es): Bibliotecas
139 Group(fr): Librairies
140 Group(pl): Biblioteki
141 PreReq: %{name}-common = %{version}
146 %description cgi -l pl
147 PHP jako program CGI.
150 Summary: Common files nneded by both apache module and CGI
151 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
154 Group(es): Bibliotecas
155 Group(fr): Librairies
156 Group(pl): Biblioteki
159 Common files needed by both apache module and CGI.
161 %description common -l pl
162 Wspólne pliki dla modu³u apacha i programu CGI.
165 Summary: MySQL database module for PHP
166 Summary(pl): Modu³ bazy danych MySQL dla PHP
169 Group(es): Bibliotecas
170 Group(fr): Librairies
171 Group(pl): Biblioteki
172 PreReq: %{name}-common = %{version}
175 This is a dynamic shared object (DSO) for Apache that will add MySQL
176 database support to PHP. If you need back-end support for MySQL, you
177 should install this package in addition to the main %{name} package.
179 %description mysql -l pl
180 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
183 Summary: PostgreSQL database module for PHP
184 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
187 Group(es): Bibliotecas
188 Group(fr): Librairies
189 Group(pl): Biblioteki
190 PreReq: %{name}-common = %{version}
193 This is a dynamic shared object (DSO) for Apache that will add
194 PostgreSQL database support to PHP. If you need back-end support for
195 PostgreSQL, you should install this package in addition to the main
198 %description pgsql -l pl
199 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
202 Summary: Oracle 8 database module for PHP
203 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
206 Group(es): Bibliotecas
207 Group(fr): Librairies
208 Group(pl): Biblioteki
209 PreReq: %{name}-common = %{version}
213 This is a dynamic shared object (DSO) for Apache that will add Oracle
214 8 database support to PHP. If you need back-end support for Oracle 8,
215 you should install this package in addition to the main %{name}
218 %description oci8 -l pl
219 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
222 Summary: Oracle 7 database module for PHP
223 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
226 Group(es): Bibliotecas
227 Group(fr): Librairies
228 Group(pl): Biblioteki
229 PreReq: %{name}-common = %{version}
233 This is a dynamic shared object (DSO) for Apache that will add Oracle
234 7 database support to PHP. If you need back-end support for Oracle 7,
235 you should install this package in addition to the main %{name}
238 %description oracle -l pl
239 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
242 Summary: GD extension module for PHP
243 Summary: Modu³ GD dla PHP
246 Group(es): Bibliotecas
247 Group(fr): Librairies
248 Group(pl): Biblioteki
249 PreReq: %{name}-common = %{version}
252 This is a dynamic shared object (DSO) for Apache that will add GD
253 support to PHP. You should install this package in addition to the
254 main %{name} package if you want to create and manipulate images with
257 %description gd -l pl
258 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
259 obrazków z poziomu PHP.
262 Summary: Java extension module for PHP
263 Summary(pl): Modu³ Javy dla PHP
266 Group(es): Bibliotecas
267 Group(fr): Librairies
268 Group(pl): Biblioteki
269 PreReq: %{name}-common = %{version}
272 This is a dynamic shared object (DSO) for Apache that will add JAVA
273 support to PHP. This extension provides a simple and effective means
274 for creating and invoking methods on Java objects from PHP.
276 %description java -l pl
277 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
278 obiektów Javy z poziomu PHP.
281 Summary: XML extension module for PHP
282 Summary(pl): Modu³ XML dla PHP
285 Group(es): Bibliotecas
286 Group(fr): Librairies
287 Group(pl): Biblioteki
288 PreReq: %{name}-common = %{version}
291 This is a dynamic shared object (DSO) for Apache that will add XML
292 support to PHP. This extension lets you create XML parsers and then
293 define handlers for different XML events. If you want to be able to
294 parse XML documents you should install this package in addition to the
295 main %{name} package.
297 %description xml -l pl
298 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
299 zwi±zanych z tymi plikami.
302 Summary: DBA extension module for PHP
303 Summary(pl): Modu³ DBA dla PHP
306 Group(es): Bibliotecas
307 Group(fr): Librairies
308 Group(pl): Biblioteki
309 PreReq: %{name}-common = %{version}
312 This is a dynamic shared object (DSO) for Apache that will add
313 flat-file databases (DBA) support to PHP.
315 #%description dba -l pl
318 Summary: ODBC extension module for PHP
319 Summary(pl): Modu³ ODBC dla PHP
322 Group(es): Bibliotecas
323 Group(fr): Librairies
324 Group(pl): Biblioteki
325 PreReq: %{name}-common = %{version}
328 This is a dynamic shared object (DSO) for Apache that will add ODBC
331 %description odbc -l pl
332 Modu³ PHP ze wsparciem dla ODBC.
335 Summary: Calendar extension module for PHP
336 Summary(pl): Modu³ funkcji kalendarza dla PHP
339 Group(es): Bibliotecas
340 Group(fr): Librairies
341 Group(pl): Biblioteki
342 PreReq: %{name}-common = %{version}
344 %description calendar
345 This is a dynamic shared object (DSO) for Apache that will add
346 calendar support to PHP.
348 #%description calendar -l pl
351 Summary: DBase extension module for PHP
352 Summary(pl): Modu³ DBase dla PHP
355 Group(es): Bibliotecas
356 Group(fr): Librairies
357 Group(pl): Biblioteki
358 PreReq: %{name}-common = %{version}
361 This is a dynamic shared object (DSO) for Apache that will add DBase
364 %description dbase -l pl
365 Modu³ PHP ze wsparciem dla DBase.
368 Summary: FilePro extension module for PHP
369 Summary(pl): Modu³ FilePro dla PHP
372 Group(es): Bibliotecas
373 Group(fr): Librairies
374 Group(pl): Biblioteki
375 PreReq: %{name}-common = %{version}
378 This is a dynamic shared object (DSO) for Apache that will add FilePro
381 #%description filepro -l pl
384 Summary: POSIX extension module for PHP
385 Summary(pl): Modu³ POSIX dla PHP
388 Group(es): Bibliotecas
389 Group(fr): Librairies
390 Group(pl): Biblioteki
391 PreReq: %{name}-common = %{version}
394 This is a dynamic shared object (DSO) for Apache that will add POSIX
395 functions support to PHP.
397 %description posix -l pl
398 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
401 Summary: PCRE extension module for PHP
402 Summary(pl): Modu³ PCRE dla PHP
405 Group(es): Bibliotecas
406 Group(fr): Librairies
407 Group(pl): Biblioteki
408 PreReq: %{name}-common = %{version}
411 This is a dynamic shared object (DSO) for Apache that will add Perl
412 Compatible Regular Expression support to PHP.
414 %description pcre -l pl
415 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
416 (Perl Compatible Regular Expressions)
419 Summary: SysV sem extension module for PHP
420 Summary(pl): Modu³ SysV sem dla PHP
423 Group(es): Bibliotecas
424 Group(fr): Librairies
425 Group(pl): Biblioteki
426 PreReq: %{name}-common = %{version}
429 This is a dynamic shared object (DSO) for Apache that will add SysV
430 semafores support to PHP.
432 %description sysvsem -l pl
433 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
436 Summary: SysV shm extension module for PHP
437 Summary(pl): Modu³ SysV shm dla PHP
440 Group(es): Bibliotecas
441 Group(fr): Librairies
442 Group(pl): Biblioteki
443 PreReq: %{name}-common = %{version}
446 This is a dynamic shared object (DSO) for Apache that will add SysV
447 Shared Memory support to PHP.
449 %description sysvshm -l pl
450 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
453 Summary: NIS (yp) extension module for PHP
454 Summary(pl): Modu³ NIS (yp) dla PHP
457 Group(es): Bibliotecas
458 Group(fr): Librairies
459 Group(pl): Biblioteki
460 PreReq: %{name}-common = %{version}
463 This is a dynamic shared object (DSO) for Apache that will add NIS
464 (Yellow Pages) support to PHP.
466 #%description yp -l pl
469 Summary: bcmath extension module for PHP
470 Summary(pl): Modu³ bcmath dla PHP
473 Group(es): Bibliotecas
474 Group(fr): Librairies
475 Group(pl): Biblioteki
476 PreReq: %{name}-common = %{version}
479 This is a dynamic shared object (DSO) for Apache that will add bc
480 style precision math functions support to PHP.
482 %description bcmath -l pl
483 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
484 matematycznych takich jak w programie bc.
487 Summary: FTP extension module for PHP
488 Summary(pl): Modu³ FTP dla PHP
491 Group(es): Bibliotecas
492 Group(fr): Librairies
493 Group(pl): Biblioteki
494 PreReq: %{name}-common = %{version}
497 This is a dynamic shared object (DSO) for Apache that will add FTP
500 #%description ftp -l pl
503 Summary: Zlib extension module for PHP
504 Summary(pl): Modu³ zlib dla PHP
507 Group(es): Bibliotecas
508 Group(fr): Librairies
509 Group(pl): Biblioteki
510 PreReq: %{name}-common = %{version}
513 This is a dynamic shared object (DSO) for Apache that will add
514 compression (zlib) support to PHP.
516 %description zlib -l pl
517 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
520 Summary: exifextension module for PHP
521 Summary(pl): Modu³ exif dla PHP
524 Group(es): Bibliotecas
525 Group(fr): Librairies
526 Group(pl): Biblioteki
527 PreReq: %{name}-common = %{version}
530 This is a dynamic shared object (DSO) for Apache that will add exif
533 #%description exif -l pl
536 Summary: recodeextension module for PHP
537 Summary(pl): Modu³ recode dla PHP
540 Group(es): Bibliotecas
541 Group(fr): Librairies
542 Group(pl): Biblioteki
543 PreReq: %{name}-common = %{version}
544 Requires: recode >= 3.5d-3
547 This is a dynamic shared object (DSO) for Apache that will add recode
550 #%description recode -l pl
553 Summary: sessionextension module for PHP
554 Summary(pl): Modu³ session dla PHP
557 Group(es): Bibliotecas
558 Group(fr): Librairies
559 Group(pl): Biblioteki
560 PreReq: %{name}-common = %{version}
563 This is a dynamic shared object (DSO) for Apache that will add session
566 #%description session -l pl
569 Summary: gettextextension module for PHP
570 Summary(pl): Modu³ gettext dla PHP
573 Group(es): Bibliotecas
574 Group(fr): Librairies
575 Group(pl): Biblioteki
576 PreReq: %{name}-common = %{version}
579 This is a dynamic shared object (DSO) for Apache that will add gettext
582 #%description gettext -l pl
585 Summary: snmpextension module for PHP
586 Summary(pl): Modu³ snmp dla PHP
589 Group(es): Bibliotecas
590 Group(fr): Librairies
591 Group(pl): Biblioteki
592 PreReq: %{name}-common = %{version}
595 This is a dynamic shared object (DSO) for Apache that will add snmp
598 #%description snmp -l pl
601 Summary: imapextension module for PHP
602 Summary(pl): Modu³ imap dla PHP
605 Group(es): Bibliotecas
606 Group(fr): Librairies
607 Group(pl): Biblioteki
608 PreReq: %{name}-common = %{version}
611 This is a dynamic shared object (DSO) for Apache that will add imap
614 #%description imap -l pl
617 Summary: LDAP extension module for PHP
618 Summary(pl): Modu³ LDAP dla PHP
621 Group(es): Bibliotecas
622 Group(fr): Librairies
623 Group(pl): Biblioteki
624 PreReq: %{name}-common = %{version}
627 This is a dynamic shared object (DSO) for Apache that will add LDAP
630 #%description ldap -l pl
633 Summary: sockets extension module for PHP
634 Summary(pl): Modu³ socket dla PHP
637 Group(es): Bibliotecas
638 Group(fr): Librairies
639 Group(pl): Biblioteki
640 PreReq: %{name}-common = %{version}
643 This is a dynamic shared object (DSO) for Apache that will add sockets
646 #%description sockets -l pl
649 Summary: mcrypt extension module for PHP
650 Summary(pl): Modu³ mcrypt dla PHP
653 Group(es): Bibliotecas
654 Group(fr): Librairies
655 Group(pl): Biblioteki
656 PreReq: %{name}-common = %{version}
659 This is a dynamic shared object (DSO) for Apache that will add mcrypt
662 #%description mcrypt -l pl
665 Summary: mhash extension module for PHP
666 Summary(pl): Modu³ mhash dla PHP
669 Group(es): Bibliotecas
670 Group(fr): Librairies
671 Group(pl): Biblioteki
672 PreReq: %{name}-common = %{version}
675 This is a dynamic shared object (DSO) for Apache that will add mhash
678 #%description mhash -l pl
681 Summary: Online manual for PHP
682 Summary(pl): Dokumentacja dla PHP
683 Group: Networking/Daemons
684 Group(de): Netzwerkwesen/Server
685 Group(pl): Sieciowe/Serwery
688 Comprehensive documentation for PHP, viewable through your web server,
691 %description doc -l pl
692 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
697 Group: Development/Languages/PHP
703 Summary: Files for PHP modules development
704 Summary(pl): Pliki do kompilacji modu³ów PHP
705 Group: Development/Languages/PHP
706 Requires: %{name}-common = %{version}
709 Files for PHP modules development.
711 %description devel -l pl
712 Pliki potrzebne do kompilacji modu³ów PHP.
723 %patch12 -p1 -b .wiget
726 CFLAGS="%{rpmcflags} -DEAPI -I/usr/X11R6/include"; export CFLAGS
728 libtoolize --copy --force
731 #for i in cgi fastcgi apxs ; do
732 for i in cgi apxs ; do
734 `[ $i = cgi ] && echo --enable-discard-path` \
735 `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=/usr` \
736 `[ $i = apxs ] && echo --with-apxs=%{_sbindir}/apxs` \
737 --with-config-file-path=%{_sysconfdir} \
738 --with-exec-dir=%{_bindir} \
740 --enable-magic-quotes \
742 --enable-track-vars \
745 --enable-sysvsem=shared \
746 --enable-sysvshm=shared \
747 --enable-shmop=shared \
749 --enable-exif=shared \
751 --with-gettext=shared \
752 %{!?_without_ldap:--with-ldap=shared} \
753 --with-mysql=shared,/usr \
754 --with-mysql-sock=/var/lib/mysql/mysql.sock \
756 --enable-gd-imgstrttf \
757 --with-dbase=shared \
758 --with-filepro=shared \
759 --enable-ftp=shared \
761 --with-pdflib=shared \
762 --with-cpdflib=shared \
763 %{?_with_java:--with-java} \
764 --with-pgsql=shared,/usr \
765 %{!?_without_imap:--with-imap=shared} \
766 --enable-bcmath=shared \
767 --enable-calendar=shared \
769 --with-pcre-regex=shared \
770 --enable-posix=shared \
773 --with-recode=shared \
774 --enable-ucd-snmp-hack \
775 --enable-dba=shared \
776 %{!?_without_snmp:--with-snmp=shared} \
781 --enable-xml=shared \
783 --with-mcrypt=shared \
784 --enable-sockets=shared \
786 --with-ctype=shared \
787 --with-mhash=shared \
790 %{?_with_openssl:--with-openssl} \
791 %{!?_without_odbc:--with-unixODBC=shared} \
792 %{?_with_oracle:--with-oracle=shared} \
793 %{?_with_oci8:--with-oci8=shared} \
797 # TODO --with-pspell=/usr,shared (pspell missing)
799 # --with-dom need libxml >= 2.2.7 \
802 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
804 # Kill -rpath from php binary and libphp4.so
805 perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
806 perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
807 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
809 perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
810 rm libphp4.la ; %{__make} libphp4.la
813 rm -rf $RPM_BUILD_ROOT
814 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
815 $RPM_BUILD_ROOT/home/httpd/icons \
816 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
819 INSTALL_ROOT=$RPM_BUILD_ROOT \
820 INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
822 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
825 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
826 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
828 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
829 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
830 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
833 tar zxf %{SOURCE4} -C manual
834 ln -s manual.html manual/index.html
837 gzip -9nf CODING_STANDARDS CREDITS \
838 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
839 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
842 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
843 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
844 /etc/httpd/httpd.conf
845 if [ -f /var/lock/subsys/httpd ]; then
846 /etc/rc.d/init.d/httpd restart 1>&2
850 if [ "$1" = "0" ]; then
851 %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
853 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
854 /etc/httpd/httpd.conf
855 if [ -f /var/lock/subsys/httpd ]; then
856 /etc/rc.d/init.d/httpd restart 1>&2
860 %post common -p /sbin/ldconfig
861 %postun common -p /sbin/ldconfig
864 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
867 if [ "$1" = "0" ]; then
868 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
872 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
875 if [ "$1" = "0" ]; then
876 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
880 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
883 if [ "$1" = "0" ]; then
884 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
888 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
891 if [ "$1" = "0" ]; then
892 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
896 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
899 if [ "$1" = "0" ]; then
900 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
904 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
907 if [ "$1" = "0" ]; then
908 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
912 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
915 if [ "$1" = "0" ]; then
916 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
920 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
923 if [ "$1" = "0" ]; then
924 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
928 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
931 if [ "$1" = "0" ]; then
932 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
935 %if %{?_without_imap:0}%{!?_without_imap:1}
937 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
940 if [ "$1" = "0" ]; then
941 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
945 %if %{?bond_on_java:1}%{!?bond_on_java:0}
947 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
950 if [ "$1" = "0" ]; then
951 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
955 %if %{?_without_ldap:0}%{!?_without_ldap:1}
957 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
960 if [ "$1" = "0" ]; then
961 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
966 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
969 if [ "$1" = "0" ]; then
970 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
974 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
977 if [ "$1" = "0" ]; then
978 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
982 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
985 if [ "$1" = "0" ]; then
986 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
989 %if %{?_with_oci8:1}%{!?_with_oci8:0}
991 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
994 if [ "$1" = "0" ]; then
995 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
999 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1001 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1004 if [ "$1" = "0" ]; then
1005 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1009 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1011 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1014 if [ "$1" = "0" ]; then
1015 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1020 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1023 if [ "$1" = "0" ]; then
1024 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1028 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1031 if [ "$1" = "0" ]; then
1032 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1036 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1039 if [ "$1" = "0" ]; then
1040 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1044 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1047 if [ "$1" = "0" ]; then
1048 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1052 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1055 if [ "$1" = "0" ]; then
1056 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1059 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1061 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1064 if [ "$1" = "0" ]; then
1065 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1070 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1073 if [ "$1" = "0" ]; then
1074 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1078 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1081 if [ "$1" = "0" ]; then
1082 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1086 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1089 if [ "$1" = "0" ]; then
1090 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1094 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1097 if [ "$1" = "0" ]; then
1098 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1102 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1105 if [ "$1" = "0" ]; then
1106 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1110 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1113 if [ "$1" = "0" ]; then
1114 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1118 rm -rf $RPM_BUILD_ROOT
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1125 %defattr(644,root,root,755)
1126 %attr(755,root,root) %{_bindir}/php
1129 %defattr(644,root,root,755)
1130 %doc {CODING_STANDARDS,CREDITS,Zend/ZEND_CHANGES}.gz
1131 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1132 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1136 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1140 %attr(755,root,root) %{_sbindir}/*
1142 %attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
1145 %dir %{_libdir}/php/extensions
1146 %dir %{extensionsdir}
1149 %defattr(644,root,root,755)
1152 %attr(755,root,root) %{_bindir}/phpextdist
1153 %attr(755,root,root) %{_bindir}/phpize
1154 %attr(755,root,root) %{_bindir}/php-config
1157 %defattr(644,root,root,755)
1158 %attr(755,root,root) %{_bindir}/pear
1159 %{_libdir}/php/Benchmark
1160 %{_libdir}/php/Crypt
1168 %{_libdir}/php/Payment
1171 %{_libdir}/php/*.php
1174 %defattr(644,root,root,755)
1175 %attr(755,root,root) %{extensionsdir}/mysql.so
1178 %defattr(644,root,root,755)
1179 %attr(755,root,root) %{extensionsdir}/pgsql.so
1181 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1183 %defattr(644,root,root,755)
1184 %attr(755,root,root) %{extensionsdir}/oracle.so
1187 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1189 %defattr(644,root,root,755)
1190 %attr(755,root,root) %{extensionsdir}/oci8.so
1194 %defattr(644,root,root,755)
1195 %attr(755,root,root) %{extensionsdir}/gd.so
1198 %defattr(644,root,root,755)
1199 %attr(755,root,root) %{extensionsdir}/xml.so
1202 %defattr(644,root,root,755)
1203 %attr(755,root,root) %{extensionsdir}/dba.so
1206 %defattr(644,root,root,755)
1207 %attr(755,root,root) %{extensionsdir}/dbase.so
1210 %defattr(644,root,root,755)
1211 %attr(755,root,root) %{extensionsdir}/filepro.so
1214 %defattr(644,root,root,755)
1215 %attr(755,root,root) %{extensionsdir}/pcre.so
1218 %defattr(644,root,root,755)
1219 %attr(755,root,root) %{extensionsdir}/posix.so
1222 %defattr(644,root,root,755)
1223 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1226 %defattr(644,root,root,755)
1227 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1230 %defattr(644,root,root,755)
1231 %attr(755,root,root) %{extensionsdir}/yp.so
1234 %defattr(644,root,root,755)
1235 %attr(755,root,root) %{extensionsdir}/calendar.so
1238 %defattr(644,root,root,755)
1239 %attr(755,root,root) %{extensionsdir}/bcmath.so
1242 %defattr(644,root,root,755)
1243 %attr(755,root,root) %{extensionsdir}/ftp.so
1246 %defattr(644,root,root,755)
1247 %attr(755,root,root) %{extensionsdir}/zlib.so
1250 %defattr(644,root,root,755)
1251 %attr(755,root,root) %{extensionsdir}/exif.so
1254 %defattr(644,root,root,755)
1255 %attr(755,root,root) %{extensionsdir}/recode.so
1258 #%defattr(644,root,root,755)
1259 #%attr(755,root,root) %{extensionsdir}/session.so
1262 %defattr(644,root,root,755)
1263 %attr(755,root,root) %{extensionsdir}/gettext.so
1265 %if %{?_without_imap:0}%{!?_without_imap:1}
1267 %defattr(644,root,root,755)
1268 %attr(755,root,root) %{extensionsdir}/imap.so
1271 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1273 %defattr(644,root,root,755)
1274 %attr(755,root,root) %{extensionsdir}/snmp.so
1277 %if %{?_with_java:1}%{!?_with_java:0}
1279 %defattr(644,root,root,755)
1280 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1283 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1285 %defattr(644,root,root,755)
1286 %attr(755,root,root) %{extensionsdir}/ldap.*
1290 %defattr(644,root,root,755)
1291 %attr(755,root,root) %{extensionsdir}/sockets.so
1294 %defattr(644,root,root,755)
1295 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1298 %defattr(644,root,root,755)
1299 %attr(755,root,root) %{extensionsdir}/mhash.so
1301 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1303 %defattr(644,root,root,755)
1304 %attr(755,root,root) %{extensionsdir}/odbc.so
1308 %defattr(644,root,root,755)