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
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 %{!?_without_imap:BuildRequires: imap-devel >= 4.7b-1}
54 # I think jdk is better for java
56 %{?_with_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 %{!?_without_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 %{!?_without_odbc:BuildRequires: unixODBC-devel}
72 BuildRequires: zlib-devel >= 1.0.9
73 %{!?_without_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 %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_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
735 for i in cgi apxs ; do
737 `[ $i = cgi ] && echo --enable-discard-path` \
738 `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=/usr` \
739 `[ $i = apxs ] && echo --with-apxs=%{_sbindir}/apxs` \
740 --with-config-file-path=%{_sysconfdir} \
741 --with-exec-dir=%{_bindir} \
743 --enable-magic-quotes \
745 --enable-track-vars \
748 --enable-sysvsem=shared \
749 --enable-sysvshm=shared \
750 --enable-shmop=shared \
752 --enable-exif=shared \
753 --with-regex=system \
754 --with-gettext=shared \
755 %{!?_without_ldap:--with-ldap=shared} \
756 --with-mysql=shared,/usr \
757 --with-mysql-sock=/var/lib/mysql/mysql.sock \
759 --enable-gd-imgstrttf \
760 --with-dbase=shared \
761 --with-filepro=shared \
762 --enable-ftp=shared \
764 --with-pdflib=shared \
765 --with-cpdflib=shared \
766 %{?_with_java:--with-java} \
767 --with-pgsql=shared,/usr \
768 %{!?_without_imap:--with-imap=shared} \
769 --enable-bcmath=shared \
770 --enable-calendar=shared \
772 --with-pcre-regex=shared \
773 --enable-posix=shared \
776 --with-recode=shared \
777 --enable-ucd-snmp-hack \
778 --enable-dba=shared \
779 %{!?_without_snmp:--with-snmp=shared} \
784 --enable-xml=shared \
786 --with-mcrypt=shared \
787 --enable-sockets=shared \
789 --with-ctype=shared \
790 --with-mhash=shared \
793 %{?_with_openssl:--with-openssl} \
794 %{!?_without_odbc:--with-unixODBC=shared} \
795 %{?_with_oracle:--with-oracle=shared} \
796 %{?_with_oci8:--with-oci8=shared} \
800 # TODO --with-pspell=/usr,shared (pspell missing)
802 # --with-dom need libxml >= 2.2.7 \
805 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
807 # Kill -rpath from php binary and libphp4.so
808 perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
809 perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
810 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
812 perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
813 rm libphp4.la ; %{__make} libphp4.la
816 rm -rf $RPM_BUILD_ROOT
817 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
818 $RPM_BUILD_ROOT/home/httpd/icons \
819 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
822 DESTDIR=$RPM_BUILD_ROOT \
823 INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
825 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
828 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
829 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
831 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
832 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
833 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
836 tar zxf %{SOURCE4} -C manual
837 ln -s manual.html manual/index.html
840 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
841 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
842 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
845 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
846 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
847 /etc/httpd/httpd.conf
848 if [ -f /var/lock/subsys/httpd ]; then
849 /etc/rc.d/init.d/httpd restart 1>&2
853 if [ "$1" = "0" ]; then
854 %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
856 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
857 /etc/httpd/httpd.conf
858 if [ -f /var/lock/subsys/httpd ]; then
859 /etc/rc.d/init.d/httpd restart 1>&2
863 %post common -p /sbin/ldconfig
864 %postun common -p /sbin/ldconfig
867 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
870 if [ "$1" = "0" ]; then
871 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
875 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
878 if [ "$1" = "0" ]; then
879 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
883 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
886 if [ "$1" = "0" ]; then
887 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
891 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
894 if [ "$1" = "0" ]; then
895 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
899 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
902 if [ "$1" = "0" ]; then
903 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
907 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
910 if [ "$1" = "0" ]; then
911 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
915 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
918 if [ "$1" = "0" ]; then
919 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
923 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
926 if [ "$1" = "0" ]; then
927 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
931 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
934 if [ "$1" = "0" ]; then
935 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
938 %if %{?_without_imap:0}%{!?_without_imap:1}
940 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
943 if [ "$1" = "0" ]; then
944 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
948 %if %{?bond_on_java:1}%{!?bond_on_java:0}
950 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
953 if [ "$1" = "0" ]; then
954 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
958 %if %{?_without_ldap:0}%{!?_without_ldap:1}
960 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
963 if [ "$1" = "0" ]; then
964 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
969 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
972 if [ "$1" = "0" ]; then
973 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
977 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
980 if [ "$1" = "0" ]; then
981 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
985 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
988 if [ "$1" = "0" ]; then
989 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
992 %if %{?_with_oci8:1}%{!?_with_oci8:0}
994 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
997 if [ "$1" = "0" ]; then
998 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1002 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1004 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1007 if [ "$1" = "0" ]; then
1008 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1012 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1014 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1017 if [ "$1" = "0" ]; then
1018 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1023 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1026 if [ "$1" = "0" ]; then
1027 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1031 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1034 if [ "$1" = "0" ]; then
1035 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1039 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1042 if [ "$1" = "0" ]; then
1043 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1047 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1050 if [ "$1" = "0" ]; then
1051 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1055 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1058 if [ "$1" = "0" ]; then
1059 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1062 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1064 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1067 if [ "$1" = "0" ]; then
1068 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1073 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1076 if [ "$1" = "0" ]; then
1077 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1081 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1084 if [ "$1" = "0" ]; then
1085 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1089 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1092 if [ "$1" = "0" ]; then
1093 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1097 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1100 if [ "$1" = "0" ]; then
1101 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1105 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1108 if [ "$1" = "0" ]; then
1109 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1113 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1116 if [ "$1" = "0" ]; then
1117 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1121 rm -rf $RPM_BUILD_ROOT
1124 %defattr(644,root,root,755)
1125 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1128 %defattr(644,root,root,755)
1129 %attr(755,root,root) %{_bindir}/php
1132 %defattr(644,root,root,755)
1133 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1134 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1135 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1139 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1143 %attr(755,root,root) %{_sbindir}/*
1145 %attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
1148 %dir %{_libdir}/php/extensions
1149 %dir %{extensionsdir}
1152 %defattr(644,root,root,755)
1155 %attr(755,root,root) %{_bindir}/phpextdist
1156 %attr(755,root,root) %{_bindir}/phpize
1157 %attr(755,root,root) %{_bindir}/php-config
1160 %defattr(644,root,root,755)
1161 %attr(755,root,root) %{_bindir}/pear
1162 %{_libdir}/php/Benchmark
1163 %{_libdir}/php/Crypt
1171 %{_libdir}/php/Payment
1174 %{_libdir}/php/*.php
1177 %defattr(644,root,root,755)
1178 %attr(755,root,root) %{extensionsdir}/mysql.*
1181 %defattr(644,root,root,755)
1182 %attr(755,root,root) %{extensionsdir}/pgsql.so
1184 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1186 %defattr(644,root,root,755)
1187 %attr(755,root,root) %{extensionsdir}/oracle.so
1190 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1192 %defattr(644,root,root,755)
1193 %attr(755,root,root) %{extensionsdir}/oci8.so
1197 %defattr(644,root,root,755)
1198 %attr(755,root,root) %{extensionsdir}/gd.so
1201 %defattr(644,root,root,755)
1202 %attr(755,root,root) %{extensionsdir}/xml.so
1205 %defattr(644,root,root,755)
1206 %attr(755,root,root) %{extensionsdir}/dba.so
1209 %defattr(644,root,root,755)
1210 %attr(755,root,root) %{extensionsdir}/dbase.so
1213 %defattr(644,root,root,755)
1214 %attr(755,root,root) %{extensionsdir}/filepro.so
1217 %defattr(644,root,root,755)
1218 %attr(755,root,root) %{extensionsdir}/pcre.so
1221 %defattr(644,root,root,755)
1222 %attr(755,root,root) %{extensionsdir}/posix.so
1225 %defattr(644,root,root,755)
1226 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1229 %defattr(644,root,root,755)
1230 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1233 %defattr(644,root,root,755)
1234 %attr(755,root,root) %{extensionsdir}/yp.so
1237 %defattr(644,root,root,755)
1238 %attr(755,root,root) %{extensionsdir}/calendar.so
1241 %defattr(644,root,root,755)
1242 %attr(755,root,root) %{extensionsdir}/bcmath.so
1245 %defattr(644,root,root,755)
1246 %attr(755,root,root) %{extensionsdir}/ftp.so
1249 %defattr(644,root,root,755)
1250 %attr(755,root,root) %{extensionsdir}/zlib.so
1253 %defattr(644,root,root,755)
1254 %attr(755,root,root) %{extensionsdir}/exif.so
1257 %defattr(644,root,root,755)
1258 %attr(755,root,root) %{extensionsdir}/recode.so
1261 #%defattr(644,root,root,755)
1262 #%attr(755,root,root) %{extensionsdir}/session.so
1265 %defattr(644,root,root,755)
1266 %attr(755,root,root) %{extensionsdir}/gettext.so
1268 %if %{?_without_imap:0}%{!?_without_imap:1}
1270 %defattr(644,root,root,755)
1271 %attr(755,root,root) %{extensionsdir}/imap.so
1274 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1276 %defattr(644,root,root,755)
1277 %attr(755,root,root) %{extensionsdir}/snmp.so
1280 %if %{?_with_java:1}%{!?_with_java:0}
1282 %defattr(644,root,root,755)
1283 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1286 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1288 %defattr(644,root,root,755)
1289 %attr(755,root,root) %{extensionsdir}/ldap.*
1293 %defattr(644,root,root,755)
1294 %attr(755,root,root) %{extensionsdir}/sockets.so
1297 %defattr(644,root,root,755)
1298 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1301 %defattr(644,root,root,755)
1302 %attr(755,root,root) %{extensionsdir}/mhash.so
1304 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1306 %defattr(644,root,root,755)
1307 %attr(755,root,root) %{extensionsdir}/odbc.so
1311 %defattr(644,root,root,755)