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}-session-path.patch
38 Patch9: %{name}-libtool_version_check_fix.patch
39 Patch10: %{name}-pdflib.patch
40 Patch11: %{name}-am_ac_lt.patch
41 Patch12: %{name}-fastcgi.patch
42 Patch13: %{name}-shared.patch
44 URL: http://www.php.net/
45 BuildRequires: apache(EAPI)-devel
49 BuildRequires: db3-devel >= 3.1.17
50 BuildRequires: freetype1-devel
51 BuildRequires: gd-devel >= 1.8.3
52 BuildRequires: gdbm-devel
53 %{!?bcond_off_imap:BuildRequires: imap-devel >= 4.7b-1}
54 # I think jdk is better for java
56 %{?bcond_on_java:BuildRequires: kaffe-devel}
57 BuildRequires: libjpeg-devel
58 BuildRequires: libltdl-devel >= 1.4
59 BuildRequires: libpng >= 1.0.8
60 BuildRequires: libtiff-devel
61 BuildRequires: libtool
62 BuildRequires: mm-devel >= 1.1.3
63 BuildRequires: mysql-devel >= 3.23.32
64 %{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
65 BuildRequires: pam-devel
66 BuildRequires: pdflib-devel >= 4.0.0
67 #BuildRequires: libxml-devel >= 2.0.0
68 BuildRequires: postgresql-devel
69 BuildRequires: recode-devel >= 3.5d-3
70 BuildRequires: t1lib-devel
71 %{!?bcond_off_odbc:BuildRequires: unixODBC-devel}
72 BuildRequires: zlib-devel >= 1.0.9
73 %{!?bcond_off_snmp:BuildRequires: ucd-snmp-devel >= 4.2.1-8}
74 BuildRequires: libmcrypt-devel >= 2.4.4
75 BuildRequires: mhash-devel
76 BuildRequires: bzip2-devel
77 BuildRequires: gmp-devel
78 BuildRequires: curl-devel
79 #BuildRequires: fastcgi-devkit
80 %if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
81 BuildRequires: openssl-devel >= 0.9.6a
83 Prereq: apache(EAPI) >= 1.3.9
85 Prereq: %{_sbindir}/apxs
86 PreReq: %{name}-common = %{version}
87 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
90 %define _sysconfdir /etc/php
91 # check ZEND_MODULE_API_NO in Zend/modules.h
92 %define extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-20001222
95 PHP is an HTML-embedded scripting language. PHP attempts to make it
96 easy for developers to write dynamically generated web pages. PHP also
97 offers built-in database integration for several commercial and
98 non-commercial database management systems, so writing a
99 database-enabled web page with PHP is fairly simple. The most common
100 use of PHP coding is probably as a replacement for CGI scripts. The
101 mod_php module enables the Apache web server to understand and process
102 the embedded PHP language in web pages. This package contains PHP
103 version %{version}. If you use applications which specifically rely on
104 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
105 module contained in the phpfi package. If you're just starting with
106 PHP, you should install this package. You'll also need to install the
110 PHP est un langage de script embarque dans le HTM. PHP essaye de
111 rendre simple aux developpeurs d'ecrire des pages web generees
112 dynamiquement. PHP incorpore egalement une integration avec plusieurs
113 systemes de gestion de bases de donnees commerciaux et
114 non-connerciaux, qui rent facile la creation de pages web liees avec
115 des bases de donnees. L'utilisation la plus commune de PHP est
116 probablement en remplacement de scripts CGI. Le module mod_php permet
117 au serveur web apache de comprendre et de traiter le langage PHP
118 integre dans des pages web. Ce package contient PHP version
119 %{version}. Si vous utilisez des applications qui utilisent
120 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
121 dans le package mod_php. Si vous debutez avec PHP, vous devriez
122 installer ce package. Vous aurez egalement besoin d'installer le
126 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
127 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
128 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
129 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
130 zosta³a z jêzyków: C, Java i Perl.
133 Summary: PHP as CGI program
134 Summary(pl): PHP jako program CGI
137 Group(es): Bibliotecas
138 Group(fr): Librairies
139 Group(pl): Biblioteki
140 PreReq: %{name}-common = %{version}
145 %description cgi -l pl
146 PHP jako program CGI.
149 Summary: Common files nneded by both apache module and CGI
150 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
153 Group(es): Bibliotecas
154 Group(fr): Librairies
155 Group(pl): Biblioteki
158 Common files needed by both apache module and CGI.
160 %description common -l pl
161 Wspólne pliki dla modu³u apacha i programu CGI.
164 Summary: MySQL database module for PHP
165 Summary(pl): Modu³ bazy danych MySQL dla PHP
168 Group(es): Bibliotecas
169 Group(fr): Librairies
170 Group(pl): Biblioteki
171 PreReq: %{name}-common = %{version}
174 This is a dynamic shared object (DSO) for Apache that will add MySQL
175 database support to PHP. If you need back-end support for MySQL, you
176 should install this package in addition to the main %{name} package.
178 %description mysql -l pl
179 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
182 Summary: PostgreSQL database module for PHP
183 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
186 Group(es): Bibliotecas
187 Group(fr): Librairies
188 Group(pl): Biblioteki
189 PreReq: %{name}-common = %{version}
192 This is a dynamic shared object (DSO) for Apache that will add
193 PostgreSQL database support to PHP. If you need back-end support for
194 PostgreSQL, you should install this package in addition to the main
197 %description pgsql -l pl
198 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
201 Summary: Oracle 8 database module for PHP
202 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
205 Group(es): Bibliotecas
206 Group(fr): Librairies
207 Group(pl): Biblioteki
208 PreReq: %{name}-common = %{version}
212 This is a dynamic shared object (DSO) for Apache that will add Oracle
213 8 database support to PHP. If you need back-end support for Oracle 8,
214 you should install this package in addition to the main %{name}
217 %description oci8 -l pl
218 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
221 Summary: Oracle 7 database module for PHP
222 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
225 Group(es): Bibliotecas
226 Group(fr): Librairies
227 Group(pl): Biblioteki
228 PreReq: %{name}-common = %{version}
232 This is a dynamic shared object (DSO) for Apache that will add Oracle
233 7 database support to PHP. If you need back-end support for Oracle 7,
234 you should install this package in addition to the main %{name}
237 %description oracle -l pl
238 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
241 Summary: GD extension module for PHP
242 Summary: Modu³ GD dla PHP
245 Group(es): Bibliotecas
246 Group(fr): Librairies
247 Group(pl): Biblioteki
248 PreReq: %{name}-common = %{version}
251 This is a dynamic shared object (DSO) for Apache that will add GD
252 support to PHP. You should install this package in addition to the
253 main %{name} package if you want to create and manipulate images with
256 %description gd -l pl
257 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
258 obrazków z poziomu PHP.
261 Summary: Java extension module for PHP
262 Summary(pl): Modu³ Javy dla PHP
265 Group(es): Bibliotecas
266 Group(fr): Librairies
267 Group(pl): Biblioteki
268 PreReq: %{name}-common = %{version}
271 This is a dynamic shared object (DSO) for Apache that will add JAVA
272 support to PHP. This extension provides a simple and effective means
273 for creating and invoking methods on Java objects from PHP.
275 %description java -l pl
276 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
277 obiektów Javy z poziomu PHP.
280 Summary: XML extension module for PHP
281 Summary(pl): Modu³ XML dla PHP
284 Group(es): Bibliotecas
285 Group(fr): Librairies
286 Group(pl): Biblioteki
287 PreReq: %{name}-common = %{version}
290 This is a dynamic shared object (DSO) for Apache that will add XML
291 support to PHP. This extension lets you create XML parsers and then
292 define handlers for different XML events. If you want to be able to
293 parse XML documents you should install this package in addition to the
294 main %{name} package.
296 %description xml -l pl
297 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
298 zwi±zanych z tymi plikami.
301 Summary: DBA extension module for PHP
302 Summary(pl): Modu³ DBA dla PHP
305 Group(es): Bibliotecas
306 Group(fr): Librairies
307 Group(pl): Biblioteki
308 PreReq: %{name}-common = %{version}
311 This is a dynamic shared object (DSO) for Apache that will add
312 flat-file databases (DBA) support to PHP.
314 #%description dba -l pl
317 Summary: ODBC extension module for PHP
318 Summary(pl): Modu³ ODBC dla PHP
321 Group(es): Bibliotecas
322 Group(fr): Librairies
323 Group(pl): Biblioteki
324 PreReq: %{name}-common = %{version}
327 This is a dynamic shared object (DSO) for Apache that will add ODBC
330 %description odbc -l pl
331 Modu³ PHP ze wsparciem dla ODBC.
334 Summary: Calendar extension module for PHP
335 Summary(pl): Modu³ funkcji kalendarza dla PHP
338 Group(es): Bibliotecas
339 Group(fr): Librairies
340 Group(pl): Biblioteki
341 PreReq: %{name}-common = %{version}
343 %description calendar
344 This is a dynamic shared object (DSO) for Apache that will add
345 calendar support to PHP.
347 #%description calendar -l pl
350 Summary: DBase extension module for PHP
351 Summary(pl): Modu³ DBase dla PHP
354 Group(es): Bibliotecas
355 Group(fr): Librairies
356 Group(pl): Biblioteki
357 PreReq: %{name}-common = %{version}
360 This is a dynamic shared object (DSO) for Apache that will add DBase
363 %description dbase -l pl
364 Modu³ PHP ze wsparciem dla DBase.
367 Summary: FilePro extension module for PHP
368 Summary(pl): Modu³ FilePro dla PHP
371 Group(es): Bibliotecas
372 Group(fr): Librairies
373 Group(pl): Biblioteki
374 PreReq: %{name}-common = %{version}
377 This is a dynamic shared object (DSO) for Apache that will add FilePro
380 #%description filepro -l pl
383 Summary: POSIX extension module for PHP
384 Summary(pl): Modu³ POSIX dla PHP
387 Group(es): Bibliotecas
388 Group(fr): Librairies
389 Group(pl): Biblioteki
390 PreReq: %{name}-common = %{version}
393 This is a dynamic shared object (DSO) for Apache that will add POSIX
394 functions support to PHP.
396 %description posix -l pl
397 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
400 Summary: PCRE extension module for PHP
401 Summary(pl): Modu³ PCRE dla PHP
404 Group(es): Bibliotecas
405 Group(fr): Librairies
406 Group(pl): Biblioteki
407 PreReq: %{name}-common = %{version}
410 This is a dynamic shared object (DSO) for Apache that will add Perl
411 Compatible Regular Expression support to PHP.
413 %description pcre -l pl
414 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
415 (Perl Compatible Regular Expressions)
418 Summary: SysV sem extension module for PHP
419 Summary(pl): Modu³ SysV sem dla PHP
422 Group(es): Bibliotecas
423 Group(fr): Librairies
424 Group(pl): Biblioteki
425 PreReq: %{name}-common = %{version}
428 This is a dynamic shared object (DSO) for Apache that will add SysV
429 semafores support to PHP.
431 %description sysvsem -l pl
432 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
435 Summary: SysV shm extension module for PHP
436 Summary(pl): Modu³ SysV shm dla PHP
439 Group(es): Bibliotecas
440 Group(fr): Librairies
441 Group(pl): Biblioteki
442 PreReq: %{name}-common = %{version}
445 This is a dynamic shared object (DSO) for Apache that will add SysV
446 Shared Memory support to PHP.
448 %description sysvshm -l pl
449 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
452 Summary: NIS (yp) extension module for PHP
453 Summary(pl): Modu³ NIS (yp) dla PHP
456 Group(es): Bibliotecas
457 Group(fr): Librairies
458 Group(pl): Biblioteki
459 PreReq: %{name}-common = %{version}
462 This is a dynamic shared object (DSO) for Apache that will add NIS
463 (Yellow Pages) support to PHP.
465 #%description yp -l pl
468 Summary: bcmath extension module for PHP
469 Summary(pl): Modu³ bcmath dla PHP
472 Group(es): Bibliotecas
473 Group(fr): Librairies
474 Group(pl): Biblioteki
475 PreReq: %{name}-common = %{version}
478 This is a dynamic shared object (DSO) for Apache that will add bc
479 style precision math functions support to PHP.
481 %description bcmath -l pl
482 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
483 matematycznych takich jak w programie bc.
486 Summary: FTP extension module for PHP
487 Summary(pl): Modu³ FTP dla PHP
490 Group(es): Bibliotecas
491 Group(fr): Librairies
492 Group(pl): Biblioteki
493 PreReq: %{name}-common = %{version}
496 This is a dynamic shared object (DSO) for Apache that will add FTP
499 #%description ftp -l pl
502 Summary: Zlib extension module for PHP
503 Summary(pl): Modu³ zlib dla PHP
506 Group(es): Bibliotecas
507 Group(fr): Librairies
508 Group(pl): Biblioteki
509 PreReq: %{name}-common = %{version}
512 This is a dynamic shared object (DSO) for Apache that will add
513 compression (zlib) support to PHP.
515 %description zlib -l pl
516 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
519 Summary: exifextension module for PHP
520 Summary(pl): Modu³ exif dla PHP
523 Group(es): Bibliotecas
524 Group(fr): Librairies
525 Group(pl): Biblioteki
526 PreReq: %{name}-common = %{version}
529 This is a dynamic shared object (DSO) for Apache that will add exif
532 #%description exif -l pl
535 Summary: recodeextension module for PHP
536 Summary(pl): Modu³ recode dla PHP
539 Group(es): Bibliotecas
540 Group(fr): Librairies
541 Group(pl): Biblioteki
542 PreReq: %{name}-common = %{version}
543 Requires: recode >= 3.5d-3
546 This is a dynamic shared object (DSO) for Apache that will add recode
549 #%description recode -l pl
552 Summary: sessionextension module for PHP
553 Summary(pl): Modu³ session dla PHP
556 Group(es): Bibliotecas
557 Group(fr): Librairies
558 Group(pl): Biblioteki
559 PreReq: %{name}-common = %{version}
562 This is a dynamic shared object (DSO) for Apache that will add session
565 #%description session -l pl
568 Summary: gettextextension module for PHP
569 Summary(pl): Modu³ gettext dla PHP
572 Group(es): Bibliotecas
573 Group(fr): Librairies
574 Group(pl): Biblioteki
575 PreReq: %{name}-common = %{version}
578 This is a dynamic shared object (DSO) for Apache that will add gettext
581 #%description gettext -l pl
584 Summary: snmpextension module for PHP
585 Summary(pl): Modu³ snmp dla PHP
588 Group(es): Bibliotecas
589 Group(fr): Librairies
590 Group(pl): Biblioteki
591 PreReq: %{name}-common = %{version}
594 This is a dynamic shared object (DSO) for Apache that will add snmp
597 #%description snmp -l pl
600 Summary: imapextension module for PHP
601 Summary(pl): Modu³ imap dla PHP
604 Group(es): Bibliotecas
605 Group(fr): Librairies
606 Group(pl): Biblioteki
607 PreReq: %{name}-common = %{version}
610 This is a dynamic shared object (DSO) for Apache that will add imap
613 #%description imap -l pl
616 Summary: LDAP extension module for PHP
617 Summary(pl): Modu³ LDAP dla PHP
620 Group(es): Bibliotecas
621 Group(fr): Librairies
622 Group(pl): Biblioteki
623 PreReq: %{name}-common = %{version}
626 This is a dynamic shared object (DSO) for Apache that will add LDAP
629 #%description ldap -l pl
632 Summary: sockets extension module for PHP
633 Summary(pl): Modu³ socket dla PHP
636 Group(es): Bibliotecas
637 Group(fr): Librairies
638 Group(pl): Biblioteki
639 PreReq: %{name}-common = %{version}
642 This is a dynamic shared object (DSO) for Apache that will add sockets
645 #%description sockets -l pl
648 Summary: mcrypt extension module for PHP
649 Summary(pl): Modu³ mcrypt dla PHP
652 Group(es): Bibliotecas
653 Group(fr): Librairies
654 Group(pl): Biblioteki
655 PreReq: %{name}-common = %{version}
658 This is a dynamic shared object (DSO) for Apache that will add mcrypt
661 #%description mcrypt -l pl
664 Summary: mhash extension module for PHP
665 Summary(pl): Modu³ mhash dla PHP
668 Group(es): Bibliotecas
669 Group(fr): Librairies
670 Group(pl): Biblioteki
671 PreReq: %{name}-common = %{version}
674 This is a dynamic shared object (DSO) for Apache that will add mhash
677 #%description mhash -l pl
680 Summary: Online manual for PHP
681 Summary(pl): Dokumentacja dla PHP
682 Group: Networking/Daemons
683 Group(de): Netzwerkwesen/Server
684 Group(pl): Sieciowe/Serwery
687 Comprehensive documentation for PHP, viewable through your web server,
690 %description doc -l pl
691 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
696 Group: Development/Languages/PHP
702 Summary: Files for PHP modules development
703 Summary(pl): Pliki do kompilacji modu³ów PHP
704 Group: Development/Languages/PHP
705 Requires: %{name}-common = %{version}
708 Files for PHP modules development.
710 %description devel -l pl
711 Pliki potrzebne do kompilacji modu³ów PHP.
729 CFLAGS="%{rpmcflags} -DEAPI -I/usr/X11R6/include"; export CFLAGS
731 libtoolize --copy --force
734 for i in cgi fastcgi apxs ; do
736 `[ $i = cgi ] && echo --enable-discard-path` \
737 `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=/usr` \
738 `[ $i = apxs ] && echo --with-apxs=%{_sbindir}/apxs` \
739 --with-config-file-path=%{_sysconfdir} \
740 --with-exec-dir=%{_bindir} \
742 --enable-magic-quotes \
744 --enable-track-vars \
747 --enable-sysvsem=shared \
748 --enable-sysvshm=shared \
749 --enable-shmop=shared \
751 --enable-exif=shared \
752 --with-regex=system \
753 --with-gettext=shared \
754 %{!?bcond_off_ldap:--with-ldap=shared} \
755 --with-mysql=shared,/usr \
756 --with-mysql-sock=/var/lib/mysql/mysql.sock \
758 --enable-gd-imgstrttf \
759 --with-dbase=shared \
760 --with-filepro=shared \
761 --enable-ftp=shared \
763 --with-pdflib=shared \
764 --with-cpdflib=shared \
765 %{?bcond_on_java:--with-java} \
766 --with-pgsql=shared,/usr \
767 %{!?bcond_off_imap:--with-imap=shared} \
768 --enable-bcmath=shared \
769 --enable-calendar=shared \
771 --with-pcre-regex=shared \
772 --enable-posix=shared \
775 --with-recode=shared \
776 --enable-ucd-snmp-hack \
777 --enable-dba=shared \
778 %{!?bcond_off_snmp:--with-snmp=shared} \
783 --enable-xml=shared \
785 --with-mcrypt=shared \
786 --enable-sockets=shared \
788 --with-ctype=shared \
789 --with-mhash=shared \
792 %{?bcond_on_openssl:--with-openssl} \
793 %{!?bcond_off_odbc:--with-unixODBC=shared} \
794 %{?bcond_on_oracle:--with-oracle=shared} \
795 %{?bcond_on_oci8:--with-oci8=shared} \
799 # TODO --with-pspell=/usr,shared (pspell missing)
801 # --with-dom need libxml >= 2.2.7 \
804 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
806 # Kill -rpath from php binary and libphp4.so
807 perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
808 perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
809 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
811 perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
812 rm libphp4.la ; %{__make} libphp4.la
815 rm -rf $RPM_BUILD_ROOT
816 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
817 $RPM_BUILD_ROOT/home/httpd/icons \
818 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
821 DESTDIR=$RPM_BUILD_ROOT \
822 INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
824 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
827 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
828 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
830 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
831 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
832 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
835 tar zxf %{SOURCE4} -C manual
836 ln -s manual.html manual/index.html
839 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
840 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
841 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
844 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
845 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
846 /etc/httpd/httpd.conf
847 if [ -f /var/lock/subsys/httpd ]; then
848 /etc/rc.d/init.d/httpd restart 1>&2
852 if [ "$1" = "0" ]; then
853 %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
855 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
856 /etc/httpd/httpd.conf
857 if [ -f /var/lock/subsys/httpd ]; then
858 /etc/rc.d/init.d/httpd restart 1>&2
862 %post common -p /sbin/ldconfig
863 %postun common -p /sbin/ldconfig
866 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
869 if [ "$1" = "0" ]; then
870 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
874 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
877 if [ "$1" = "0" ]; then
878 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
882 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
885 if [ "$1" = "0" ]; then
886 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
890 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
893 if [ "$1" = "0" ]; then
894 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
898 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
901 if [ "$1" = "0" ]; then
902 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
906 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
909 if [ "$1" = "0" ]; then
910 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
914 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
917 if [ "$1" = "0" ]; then
918 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
922 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
925 if [ "$1" = "0" ]; then
926 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
930 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
933 if [ "$1" = "0" ]; then
934 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
937 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
939 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
942 if [ "$1" = "0" ]; then
943 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
947 %if %{?bond_on_java:1}%{!?bond_on_java:0}
949 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
952 if [ "$1" = "0" ]; then
953 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
957 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
959 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
962 if [ "$1" = "0" ]; then
963 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
968 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
971 if [ "$1" = "0" ]; then
972 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
976 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
979 if [ "$1" = "0" ]; then
980 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
984 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
987 if [ "$1" = "0" ]; then
988 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
991 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
993 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
996 if [ "$1" = "0" ]; then
997 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1001 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1003 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1006 if [ "$1" = "0" ]; then
1007 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1011 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1013 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1016 if [ "$1" = "0" ]; then
1017 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1022 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1025 if [ "$1" = "0" ]; then
1026 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1030 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1033 if [ "$1" = "0" ]; then
1034 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1038 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1041 if [ "$1" = "0" ]; then
1042 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1046 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1049 if [ "$1" = "0" ]; then
1050 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1054 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1057 if [ "$1" = "0" ]; then
1058 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1061 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1063 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1066 if [ "$1" = "0" ]; then
1067 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1072 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1075 if [ "$1" = "0" ]; then
1076 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1080 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1083 if [ "$1" = "0" ]; then
1084 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1088 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1091 if [ "$1" = "0" ]; then
1092 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1096 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1099 if [ "$1" = "0" ]; then
1100 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1104 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1107 if [ "$1" = "0" ]; then
1108 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1112 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1115 if [ "$1" = "0" ]; then
1116 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1120 rm -rf $RPM_BUILD_ROOT
1123 %defattr(644,root,root,755)
1124 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1127 %defattr(644,root,root,755)
1128 %attr(755,root,root) %{_bindir}/php
1131 %defattr(644,root,root,755)
1132 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1133 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1134 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1138 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1142 %attr(755,root,root) %{_sbindir}/*
1144 %attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
1147 %dir %{_libdir}/php/extensions
1148 %dir %{extensionsdir}
1151 %defattr(644,root,root,755)
1154 %attr(755,root,root) %{_bindir}/phpextdist
1155 %attr(755,root,root) %{_bindir}/phpize
1156 %attr(755,root,root) %{_bindir}/php-config
1159 %defattr(644,root,root,755)
1160 %attr(755,root,root) %{_bindir}/pear
1161 %{_libdir}/php/Benchmark
1162 %{_libdir}/php/Crypt
1170 %{_libdir}/php/Payment
1173 %{_libdir}/php/*.php
1176 %defattr(644,root,root,755)
1177 %attr(755,root,root) %{extensionsdir}/mysql.*
1180 %defattr(644,root,root,755)
1181 %attr(755,root,root) %{extensionsdir}/pgsql.so
1183 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1185 %defattr(644,root,root,755)
1186 %attr(755,root,root) %{extensionsdir}/oracle.so
1189 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1191 %defattr(644,root,root,755)
1192 %attr(755,root,root) %{extensionsdir}/oci8.so
1196 %defattr(644,root,root,755)
1197 %attr(755,root,root) %{extensionsdir}/gd.so
1200 %defattr(644,root,root,755)
1201 %attr(755,root,root) %{extensionsdir}/xml.so
1204 %defattr(644,root,root,755)
1205 %attr(755,root,root) %{extensionsdir}/dba.so
1208 %defattr(644,root,root,755)
1209 %attr(755,root,root) %{extensionsdir}/dbase.so
1212 %defattr(644,root,root,755)
1213 %attr(755,root,root) %{extensionsdir}/filepro.so
1216 %defattr(644,root,root,755)
1217 %attr(755,root,root) %{extensionsdir}/pcre.so
1220 %defattr(644,root,root,755)
1221 %attr(755,root,root) %{extensionsdir}/posix.so
1224 %defattr(644,root,root,755)
1225 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1228 %defattr(644,root,root,755)
1229 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1232 %defattr(644,root,root,755)
1233 %attr(755,root,root) %{extensionsdir}/yp.so
1236 %defattr(644,root,root,755)
1237 %attr(755,root,root) %{extensionsdir}/calendar.so
1240 %defattr(644,root,root,755)
1241 %attr(755,root,root) %{extensionsdir}/bcmath.so
1244 %defattr(644,root,root,755)
1245 %attr(755,root,root) %{extensionsdir}/ftp.so
1248 %defattr(644,root,root,755)
1249 %attr(755,root,root) %{extensionsdir}/zlib.so
1252 %defattr(644,root,root,755)
1253 %attr(755,root,root) %{extensionsdir}/exif.so
1256 %defattr(644,root,root,755)
1257 %attr(755,root,root) %{extensionsdir}/recode.so
1260 #%defattr(644,root,root,755)
1261 #%attr(755,root,root) %{extensionsdir}/session.so
1264 %defattr(644,root,root,755)
1265 %attr(755,root,root) %{extensionsdir}/gettext.so
1267 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
1269 %defattr(644,root,root,755)
1270 %attr(755,root,root) %{extensionsdir}/imap.so
1273 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1275 %defattr(644,root,root,755)
1276 %attr(755,root,root) %{extensionsdir}/snmp.so
1279 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1281 %defattr(644,root,root,755)
1282 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1285 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1287 %defattr(644,root,root,755)
1288 %attr(755,root,root) %{extensionsdir}/ldap.*
1292 %defattr(644,root,root,755)
1293 %attr(755,root,root) %{extensionsdir}/sockets.so
1296 %defattr(644,root,root,755)
1297 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1300 %defattr(644,root,root,755)
1301 %attr(755,root,root) %{extensionsdir}/mhash.so
1303 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1305 %defattr(644,root,root,755)
1306 %attr(755,root,root) %{extensionsdir}/odbc.so
1310 %defattr(644,root,root,755)