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
44 Patch13: %{name}-pearinstall.patch
46 URL: http://www.php.net/
47 BuildRequires: apache(EAPI)-devel
51 BuildRequires: db3-devel >= 3.1.17
52 BuildRequires: freetype1-devel
53 BuildRequires: gd-devel >= 1.8.3
54 BuildRequires: gdbm-devel
55 %{!?_without_imap:BuildRequires: imap-devel >= 1:2001-0.BETA }
56 # I think jdk is better for java
58 %{?_with_java:BuildRequires: kaffe-devel}
59 BuildRequires: libjpeg-devel
60 BuildRequires: libltdl-devel >= 1.4
61 BuildRequires: libpng >= 1.0.8
62 BuildRequires: libtiff-devel
63 BuildRequires: libtool
64 BuildRequires: mm-devel >= 1.1.3
65 BuildRequires: mysql-devel >= 3.23.32
66 %{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
67 BuildRequires: pam-devel
68 BuildRequires: pdflib-devel >= 4.0.0
69 #BuildRequires: libxml-devel >= 2.0.0
70 BuildRequires: postgresql-devel
71 BuildRequires: recode-devel >= 3.5d-3
72 BuildRequires: t1lib-devel
73 %{!?_without_odbc:BuildRequires: unixODBC-devel}
74 BuildRequires: zlib-devel >= 1.0.9
75 %{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.1-8}
76 BuildRequires: libmcrypt-devel >= 2.4.4
77 BuildRequires: mhash-devel
78 BuildRequires: bzip2-devel
79 BuildRequires: gmp-devel
80 BuildRequires: curl-devel
81 #BuildRequires: fastcgi-devkit
82 %if %(expr %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_ldap:0})
83 BuildRequires: openssl-devel >= 0.9.6a
85 Prereq: apache(EAPI) >= 1.3.9
87 Prereq: %{_sbindir}/apxs
88 PreReq: %{name}-common = %{version}
89 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
92 %define _sysconfdir /etc/php
93 %define extensionsdir %{_libdir}/php
94 %define peardir %{_datadir}/pear
97 PHP is an HTML-embedded scripting language. PHP attempts to make it
98 easy for developers to write dynamically generated web pages. PHP also
99 offers built-in database integration for several commercial and
100 non-commercial database management systems, so writing a
101 database-enabled web page with PHP is fairly simple. The most common
102 use of PHP coding is probably as a replacement for CGI scripts. The
103 mod_php module enables the Apache web server to understand and process
104 the embedded PHP language in web pages. This package contains PHP
105 version %{version}. If you use applications which specifically rely on
106 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
107 module contained in the phpfi package. If you're just starting with
108 PHP, you should install this package. You'll also need to install the
112 PHP est un langage de script embarque dans le HTM. PHP essaye de
113 rendre simple aux developpeurs d'ecrire des pages web generees
114 dynamiquement. PHP incorpore egalement une integration avec plusieurs
115 systemes de gestion de bases de donnees commerciaux et
116 non-connerciaux, qui rent facile la creation de pages web liees avec
117 des bases de donnees. L'utilisation la plus commune de PHP est
118 probablement en remplacement de scripts CGI. Le module mod_php permet
119 au serveur web apache de comprendre et de traiter le langage PHP
120 integre dans des pages web. Ce package contient PHP version
121 %{version}. Si vous utilisez des applications qui utilisent
122 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
123 dans le package mod_php. Si vous debutez avec PHP, vous devriez
124 installer ce package. Vous aurez egalement besoin d'installer le
128 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
129 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
130 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
131 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
132 zosta³a z jêzyków: C, Java i Perl.
135 Summary: PHP as CGI program
136 Summary(pl): PHP jako program CGI
139 Group(es): Bibliotecas
140 Group(fr): Librairies
141 Group(pl): Biblioteki
142 PreReq: %{name}-common = %{version}
147 %description cgi -l pl
148 PHP jako program CGI.
151 Summary: Common files nneded by both apache module and CGI
152 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
155 Group(es): Bibliotecas
156 Group(fr): Librairies
157 Group(pl): Biblioteki
160 Common files needed by both apache module and CGI.
162 %description common -l pl
163 Wspólne pliki dla modu³u apacha i programu CGI.
166 Summary: MySQL database module for PHP
167 Summary(pl): Modu³ bazy danych MySQL dla PHP
170 Group(es): Bibliotecas
171 Group(fr): Librairies
172 Group(pl): Biblioteki
173 PreReq: %{name}-common = %{version}
176 This is a dynamic shared object (DSO) for Apache that will add MySQL
177 database support to PHP. If you need back-end support for MySQL, you
178 should install this package in addition to the main %{name} package.
180 %description mysql -l pl
181 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
184 Summary: libPDF module for PHP
185 Summary(pl): Modu³ do tworzenia plików PDF dla PHP
188 Group(es): Bibliotecas
189 Group(fr): Librairies
190 Group(pl): Biblioteki
191 PreReq: %{name}-common = %{version}
195 This is a dynamic shared object (DSO) for Apache that will add PDF
198 %description pdf -l pl
199 Modu³ PHP umo¿liwiaj±cy tworzenie plików PDF. Wykorzystuje bibliotekê
203 Summary: PostgreSQL database module for PHP
204 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
207 Group(es): Bibliotecas
208 Group(fr): Librairies
209 Group(pl): Biblioteki
210 PreReq: %{name}-common = %{version}
213 This is a dynamic shared object (DSO) for Apache that will add
214 PostgreSQL database support to PHP. If you need back-end support for
215 PostgreSQL, you should install this package in addition to the main
218 %description pgsql -l pl
219 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
222 Summary: Oracle 8 database module for PHP
223 Summary(pl): Modu³ bazy danych Oracle 8 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 8 database support to PHP. If you need back-end support for Oracle 8,
235 you should install this package in addition to the main %{name}
238 %description oci8 -l pl
239 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
242 Summary: Oracle 7 database module for PHP
243 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
246 Group(es): Bibliotecas
247 Group(fr): Librairies
248 Group(pl): Biblioteki
249 PreReq: %{name}-common = %{version}
253 This is a dynamic shared object (DSO) for Apache that will add Oracle
254 7 database support to PHP. If you need back-end support for Oracle 7,
255 you should install this package in addition to the main %{name}
258 %description oracle -l pl
259 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
262 Summary: GD extension module for PHP
263 Summary: Modu³ GD 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 GD
273 support to PHP. You should install this package in addition to the
274 main %{name} package if you want to create and manipulate images with
277 %description gd -l pl
278 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
279 obrazków z poziomu PHP.
282 Summary: Java extension module for PHP
283 Summary(pl): Modu³ Javy dla PHP
286 Group(es): Bibliotecas
287 Group(fr): Librairies
288 Group(pl): Biblioteki
289 PreReq: %{name}-common = %{version}
292 This is a dynamic shared object (DSO) for Apache that will add JAVA
293 support to PHP. This extension provides a simple and effective means
294 for creating and invoking methods on Java objects from PHP.
296 %description java -l pl
297 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
298 obiektów Javy z poziomu PHP.
301 Summary: XML extension module for PHP
302 Summary(pl): Modu³ XML 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 XML
312 support to PHP. This extension lets you create XML parsers and then
313 define handlers for different XML events. If you want to be able to
314 parse XML documents you should install this package in addition to the
315 main %{name} package.
317 %description xml -l pl
318 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
319 zwi±zanych z tymi plikami.
322 Summary: DBA extension module for PHP
323 Summary(pl): Modu³ DBA dla PHP
326 Group(es): Bibliotecas
327 Group(fr): Librairies
328 Group(pl): Biblioteki
329 PreReq: %{name}-common = %{version}
332 This is a dynamic shared object (DSO) for Apache that will add
333 flat-file databases (DBA) support to PHP.
335 #%description dba -l pl
338 Summary: ODBC extension module for PHP
339 Summary(pl): Modu³ ODBC dla PHP
342 Group(es): Bibliotecas
343 Group(fr): Librairies
344 Group(pl): Biblioteki
345 PreReq: %{name}-common = %{version}
348 This is a dynamic shared object (DSO) for Apache that will add ODBC
351 %description odbc -l pl
352 Modu³ PHP ze wsparciem dla ODBC.
355 Summary: Calendar extension module for PHP
356 Summary(pl): Modu³ funkcji kalendarza dla PHP
359 Group(es): Bibliotecas
360 Group(fr): Librairies
361 Group(pl): Biblioteki
362 PreReq: %{name}-common = %{version}
364 %description calendar
365 This is a dynamic shared object (DSO) for Apache that will add
366 calendar support to PHP.
368 #%description calendar -l pl
371 Summary: DBase extension module for PHP
372 Summary(pl): Modu³ DBase dla PHP
375 Group(es): Bibliotecas
376 Group(fr): Librairies
377 Group(pl): Biblioteki
378 PreReq: %{name}-common = %{version}
381 This is a dynamic shared object (DSO) for Apache that will add DBase
384 %description dbase -l pl
385 Modu³ PHP ze wsparciem dla DBase.
388 Summary: FilePro extension module for PHP
389 Summary(pl): Modu³ FilePro dla PHP
392 Group(es): Bibliotecas
393 Group(fr): Librairies
394 Group(pl): Biblioteki
395 PreReq: %{name}-common = %{version}
398 This is a dynamic shared object (DSO) for Apache that will add FilePro
401 #%description filepro -l pl
404 Summary: POSIX extension module for PHP
405 Summary(pl): Modu³ POSIX dla PHP
408 Group(es): Bibliotecas
409 Group(fr): Librairies
410 Group(pl): Biblioteki
411 PreReq: %{name}-common = %{version}
414 This is a dynamic shared object (DSO) for Apache that will add POSIX
415 functions support to PHP.
417 %description posix -l pl
418 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
421 Summary: PCRE extension module for PHP
422 Summary(pl): Modu³ PCRE dla PHP
425 Group(es): Bibliotecas
426 Group(fr): Librairies
427 Group(pl): Biblioteki
428 PreReq: %{name}-common = %{version}
431 This is a dynamic shared object (DSO) for Apache that will add Perl
432 Compatible Regular Expression support to PHP.
434 %description pcre -l pl
435 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
436 (Perl Compatible Regular Expressions)
439 Summary: SysV sem extension module for PHP
440 Summary(pl): Modu³ SysV sem dla PHP
443 Group(es): Bibliotecas
444 Group(fr): Librairies
445 Group(pl): Biblioteki
446 PreReq: %{name}-common = %{version}
449 This is a dynamic shared object (DSO) for Apache that will add SysV
450 semafores support to PHP.
452 %description sysvsem -l pl
453 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
456 Summary: SysV shm extension module for PHP
457 Summary(pl): Modu³ SysV shm dla PHP
460 Group(es): Bibliotecas
461 Group(fr): Librairies
462 Group(pl): Biblioteki
463 PreReq: %{name}-common = %{version}
466 This is a dynamic shared object (DSO) for Apache that will add SysV
467 Shared Memory support to PHP.
469 %description sysvshm -l pl
470 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
473 Summary: NIS (yp) extension module for PHP
474 Summary(pl): Modu³ NIS (yp) dla PHP
477 Group(es): Bibliotecas
478 Group(fr): Librairies
479 Group(pl): Biblioteki
480 PreReq: %{name}-common = %{version}
483 This is a dynamic shared object (DSO) for Apache that will add NIS
484 (Yellow Pages) support to PHP.
486 #%description yp -l pl
489 Summary: bcmath extension module for PHP
490 Summary(pl): Modu³ bcmath dla PHP
493 Group(es): Bibliotecas
494 Group(fr): Librairies
495 Group(pl): Biblioteki
496 PreReq: %{name}-common = %{version}
499 This is a dynamic shared object (DSO) for Apache that will add bc
500 style precision math functions support to PHP.
502 %description bcmath -l pl
503 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
504 matematycznych takich jak w programie bc.
507 Summary: FTP extension module for PHP
508 Summary(pl): Modu³ FTP dla PHP
511 Group(es): Bibliotecas
512 Group(fr): Librairies
513 Group(pl): Biblioteki
514 PreReq: %{name}-common = %{version}
517 This is a dynamic shared object (DSO) for Apache that will add FTP
520 #%description ftp -l pl
523 Summary: Zlib extension module for PHP
524 Summary(pl): Modu³ zlib dla PHP
527 Group(es): Bibliotecas
528 Group(fr): Librairies
529 Group(pl): Biblioteki
530 PreReq: %{name}-common = %{version}
533 This is a dynamic shared object (DSO) for Apache that will add
534 compression (zlib) support to PHP.
536 %description zlib -l pl
537 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
540 Summary: exifextension module for PHP
541 Summary(pl): Modu³ exif dla PHP
544 Group(es): Bibliotecas
545 Group(fr): Librairies
546 Group(pl): Biblioteki
547 PreReq: %{name}-common = %{version}
550 This is a dynamic shared object (DSO) for Apache that will add exif
553 #%description exif -l pl
556 Summary: recodeextension module for PHP
557 Summary(pl): Modu³ recode dla PHP
560 Group(es): Bibliotecas
561 Group(fr): Librairies
562 Group(pl): Biblioteki
563 PreReq: %{name}-common = %{version}
564 Requires: recode >= 3.5d-3
567 This is a dynamic shared object (DSO) for Apache that will add recode
570 #%description recode -l pl
573 Summary: sessionextension module for PHP
574 Summary(pl): Modu³ session dla PHP
577 Group(es): Bibliotecas
578 Group(fr): Librairies
579 Group(pl): Biblioteki
580 PreReq: %{name}-common = %{version}
583 This is a dynamic shared object (DSO) for Apache that will add session
586 #%description session -l pl
589 Summary: gettextextension module for PHP
590 Summary(pl): Modu³ gettext dla PHP
593 Group(es): Bibliotecas
594 Group(fr): Librairies
595 Group(pl): Biblioteki
596 PreReq: %{name}-common = %{version}
599 This is a dynamic shared object (DSO) for Apache that will add gettext
602 #%description gettext -l pl
605 Summary: snmpextension module for PHP
606 Summary(pl): Modu³ snmp dla PHP
609 Group(es): Bibliotecas
610 Group(fr): Librairies
611 Group(pl): Biblioteki
612 PreReq: %{name}-common = %{version}
615 This is a dynamic shared object (DSO) for Apache that will add snmp
618 #%description snmp -l pl
621 Summary: imapextension module for PHP
622 Summary(pl): Modu³ imap dla PHP
625 Group(es): Bibliotecas
626 Group(fr): Librairies
627 Group(pl): Biblioteki
628 PreReq: %{name}-common = %{version}
631 This is a dynamic shared object (DSO) for Apache that will add imap
634 #%description imap -l pl
637 Summary: LDAP extension module for PHP
638 Summary(pl): Modu³ LDAP dla PHP
641 Group(es): Bibliotecas
642 Group(fr): Librairies
643 Group(pl): Biblioteki
644 PreReq: %{name}-common = %{version}
647 This is a dynamic shared object (DSO) for Apache that will add LDAP
650 #%description ldap -l pl
653 Summary: sockets extension module for PHP
654 Summary(pl): Modu³ socket dla PHP
657 Group(es): Bibliotecas
658 Group(fr): Librairies
659 Group(pl): Biblioteki
660 PreReq: %{name}-common = %{version}
663 This is a dynamic shared object (DSO) for Apache that will add sockets
666 #%description sockets -l pl
669 Summary: mcrypt extension module for PHP
670 Summary(pl): Modu³ mcrypt dla PHP
673 Group(es): Bibliotecas
674 Group(fr): Librairies
675 Group(pl): Biblioteki
676 PreReq: %{name}-common = %{version}
679 This is a dynamic shared object (DSO) for Apache that will add mcrypt
682 #%description mcrypt -l pl
685 Summary: mhash extension module for PHP
686 Summary(pl): Modu³ mhash dla PHP
689 Group(es): Bibliotecas
690 Group(fr): Librairies
691 Group(pl): Biblioteki
692 PreReq: %{name}-common = %{version}
695 This is a dynamic shared object (DSO) for Apache that will add mhash
698 #%description mhash -l pl
701 Summary: Online manual for PHP
702 Summary(pl): Dokumentacja dla PHP
703 Group: Networking/Daemons
704 Group(de): Netzwerkwesen/Server
705 Group(pl): Sieciowe/Serwery
708 Comprehensive documentation for PHP, viewable through your web server,
711 %description doc -l pl
712 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
717 Group: Development/Languages/PHP
723 Summary: Files for PHP modules development
724 Summary(pl): Pliki do kompilacji modu³ów PHP
725 Group: Development/Languages/PHP
726 Requires: %{name}-common = %{version}
729 Files for PHP modules development.
731 %description devel -l pl
732 Pliki potrzebne do kompilacji modu³ów PHP.
735 Summary: curl extension module for PHP
736 Summary(pl): Modu³ curl dla PHP
739 Group(es): Bibliotecas
740 Group(fr): Librairies
741 Group(pl): Biblioteki
742 PreReq: %{name}-common = %{version}
745 This is a dynamic shared object (DSO) for Apache that will add curl
748 %description curl -l pl
749 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki curl.
764 CFLAGS="%{rpmcflags} -DEAPI -I/usr/X11R6/include"; export CFLAGS
765 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
767 libtoolize --copy --force
770 #for i in cgi fastcgi apxs ; do
771 for i in cgi apxs ; do
773 `[ $i = cgi ] && echo --enable-discard-path` \
774 `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=/usr` \
775 `[ $i = apxs ] && echo --with-apxs=%{_sbindir}/apxs` \
776 --with-config-file-path=%{_sysconfdir} \
777 --with-exec-dir=%{_bindir} \
779 --enable-magic-quotes \
781 --enable-track-vars \
784 --enable-sysvsem=shared \
785 --enable-sysvshm=shared \
786 --enable-shmop=shared \
788 --enable-exif=shared \
790 --with-gettext=shared \
791 %{!?_without_ldap:--with-ldap=shared} \
792 --with-mysql=shared,/usr \
793 --with-mysql-sock=/var/lib/mysql/mysql.sock \
795 --enable-gd-imgstrttf \
796 --with-dbase=shared \
797 --with-filepro=shared \
798 --enable-ftp=shared \
800 --with-pdflib=shared \
801 --with-cpdflib=shared \
802 %{?_with_java:--with-java} \
803 --with-pgsql=shared,/usr \
804 %{!?_without_imap:--with-imap=shared} \
805 --enable-bcmath=shared \
806 --enable-calendar=shared \
808 --with-pcre-regex=shared \
809 --enable-posix=shared \
812 --with-recode=shared \
813 --enable-ucd-snmp-hack \
814 --enable-dba=shared \
815 %{!?_without_snmp:--with-snmp=shared} \
820 --enable-xml=shared \
822 --with-mcrypt=shared \
823 --enable-sockets=shared \
825 --with-ctype=shared \
826 --with-mhash=shared \
829 %{?_with_openssl:--with-openssl} \
830 %{!?_without_odbc:--with-unixODBC=shared} \
831 %{?_with_oracle:--with-oracle=shared} \
832 %{?_with_oci8:--with-oci8=shared} \
834 --with-pear=%{peardir}
837 # TODO --with-pspell=/usr,shared (pspell missing)
839 # --with-dom need libxml >= 2.2.7 \
842 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
844 # Kill -rpath from php binary and libphp4.so
845 perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
846 perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
847 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
849 perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
850 rm libphp4.la ; %{__make} libphp4.la
853 rm -rf $RPM_BUILD_ROOT
854 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
855 $RPM_BUILD_ROOT/home/httpd/icons \
856 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
859 INSTALL_ROOT=$RPM_BUILD_ROOT \
860 INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
862 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
865 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
866 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
868 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
869 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
870 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
873 tar zxf %{SOURCE4} -C manual
874 ln -s manual.html manual/index.html
877 gzip -9nf CODING_STANDARDS CREDITS \
878 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
879 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
882 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
883 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
884 /etc/httpd/httpd.conf
885 if [ -f /var/lock/subsys/httpd ]; then
886 /etc/rc.d/init.d/httpd restart 1>&2
890 if [ "$1" = "0" ]; then
891 %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
893 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
894 /etc/httpd/httpd.conf
895 if [ -f /var/lock/subsys/httpd ]; then
896 /etc/rc.d/init.d/httpd restart 1>&2
900 %post common -p /sbin/ldconfig
901 %postun common -p /sbin/ldconfig
904 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
907 if [ "$1" = "0" ]; then
908 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
912 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
915 if [ "$1" = "0" ]; then
916 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
920 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
923 if [ "$1" = "0" ]; then
924 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
928 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
931 if [ "$1" = "0" ]; then
932 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
936 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
939 if [ "$1" = "0" ]; then
940 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
944 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
947 if [ "$1" = "0" ]; then
948 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
952 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
955 if [ "$1" = "0" ]; then
956 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
960 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
963 if [ "$1" = "0" ]; then
964 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
968 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
971 if [ "$1" = "0" ]; then
972 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
975 %if %{?_without_imap:0}%{!?_without_imap:1}
977 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
980 if [ "$1" = "0" ]; then
981 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
985 %if %{?bond_on_java:1}%{!?bond_on_java:0}
987 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
990 if [ "$1" = "0" ]; then
991 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
995 %if %{?_without_ldap:0}%{!?_without_ldap:1}
997 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1000 if [ "$1" = "0" ]; then
1001 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1006 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1009 if [ "$1" = "0" ]; then
1010 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1014 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1017 if [ "$1" = "0" ]; then
1018 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1022 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1025 if [ "$1" = "0" ]; then
1026 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1030 %{_sbindir}/php-module-install install libpdf_php %{_sysconfdir}/php.ini
1033 if [ "$1" = "0" ]; then
1034 %{_sbindir}/php-module-install remove libpdf_php %{_sysconfdir}/php.ini
1037 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1039 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1042 if [ "$1" = "0" ]; then
1043 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1047 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1049 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1052 if [ "$1" = "0" ]; then
1053 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1057 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1059 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1062 if [ "$1" = "0" ]; then
1063 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1068 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1071 if [ "$1" = "0" ]; then
1072 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1076 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1079 if [ "$1" = "0" ]; then
1080 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1084 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1087 if [ "$1" = "0" ]; then
1088 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1092 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1095 if [ "$1" = "0" ]; then
1096 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1100 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1103 if [ "$1" = "0" ]; then
1104 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1107 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1109 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1112 if [ "$1" = "0" ]; then
1113 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1118 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1121 if [ "$1" = "0" ]; then
1122 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1126 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1129 if [ "$1" = "0" ]; then
1130 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1134 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1137 if [ "$1" = "0" ]; then
1138 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1142 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1145 if [ "$1" = "0" ]; then
1146 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1150 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1153 if [ "$1" = "0" ]; then
1154 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1158 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1161 if [ "$1" = "0" ]; then
1162 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1166 %{_sbindir}/php-module-install install curl %{_sysconfdir}/php.ini
1169 if [ "$1" = "0" ]; then
1170 %{_sbindir}/php-module-install remove curl %{_sysconfdir}/php.ini
1174 rm -rf $RPM_BUILD_ROOT
1177 %defattr(644,root,root,755)
1178 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1181 %defattr(644,root,root,755)
1182 %attr(755,root,root) %{_bindir}/php
1185 %defattr(644,root,root,755)
1186 %doc {CODING_STANDARDS,CREDITS,Zend/ZEND_CHANGES}.gz
1187 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1188 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1191 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1195 %attr(755,root,root) %{_sbindir}/*
1197 %attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
1199 %dir %{extensionsdir}
1202 %defattr(644,root,root,755)
1204 %{_libdir}/php/build
1205 %attr(755,root,root) %{_bindir}/phpextdist
1206 %attr(755,root,root) %{_bindir}/phpize
1207 %attr(755,root,root) %{_bindir}/php-config
1210 %defattr(644,root,root,755)
1211 %attr(755,root,root) %{_bindir}/pear
1215 %defattr(644,root,root,755)
1216 %attr(755,root,root) %{extensionsdir}/mysql.so
1219 %defattr(644,root,root,755)
1220 %attr(755,root,root) %{extensionsdir}/libpdf_php.so
1223 %defattr(644,root,root,755)
1224 %attr(755,root,root) %{extensionsdir}/pgsql.so
1226 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1228 %defattr(644,root,root,755)
1229 %attr(755,root,root) %{extensionsdir}/oracle.so
1232 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1234 %defattr(644,root,root,755)
1235 %attr(755,root,root) %{extensionsdir}/oci8.so
1239 %defattr(644,root,root,755)
1240 %attr(755,root,root) %{extensionsdir}/gd.so
1244 #%defattr(644,root,root,755)
1245 #%attr(755,root,root) %{extensionsdir}/xml.so
1248 %defattr(644,root,root,755)
1249 %attr(755,root,root) %{extensionsdir}/dba.so
1252 %defattr(644,root,root,755)
1253 %attr(755,root,root) %{extensionsdir}/dbase.so
1256 %defattr(644,root,root,755)
1257 %attr(755,root,root) %{extensionsdir}/filepro.so
1260 %defattr(644,root,root,755)
1261 %attr(755,root,root) %{extensionsdir}/pcre.so
1264 %defattr(644,root,root,755)
1265 %attr(755,root,root) %{extensionsdir}/posix.so
1268 %defattr(644,root,root,755)
1269 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1272 %defattr(644,root,root,755)
1273 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1276 %defattr(644,root,root,755)
1277 %attr(755,root,root) %{extensionsdir}/yp.so
1280 %defattr(644,root,root,755)
1281 %attr(755,root,root) %{extensionsdir}/calendar.so
1284 %defattr(644,root,root,755)
1285 %attr(755,root,root) %{extensionsdir}/bcmath.so
1288 %defattr(644,root,root,755)
1289 %attr(755,root,root) %{extensionsdir}/ftp.so
1292 %defattr(644,root,root,755)
1293 %attr(755,root,root) %{extensionsdir}/zlib.so
1296 %defattr(644,root,root,755)
1297 %attr(755,root,root) %{extensionsdir}/exif.so
1300 %defattr(644,root,root,755)
1301 %attr(755,root,root) %{extensionsdir}/recode.so
1304 #%defattr(644,root,root,755)
1305 #%attr(755,root,root) %{extensionsdir}/session.so
1308 %defattr(644,root,root,755)
1309 %attr(755,root,root) %{extensionsdir}/gettext.so
1311 %if %{?_without_imap:0}%{!?_without_imap:1}
1313 %defattr(644,root,root,755)
1314 %attr(755,root,root) %{extensionsdir}/imap.so
1317 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1319 %defattr(644,root,root,755)
1320 %attr(755,root,root) %{extensionsdir}/snmp.so
1323 %if %{?_with_java:1}%{!?_with_java:0}
1325 %defattr(644,root,root,755)
1326 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1329 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1331 %defattr(644,root,root,755)
1332 %attr(755,root,root) %{extensionsdir}/ldap.*
1336 %defattr(644,root,root,755)
1337 %attr(755,root,root) %{extensionsdir}/sockets.so
1340 %defattr(644,root,root,755)
1341 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1344 %defattr(644,root,root,755)
1345 %attr(755,root,root) %{extensionsdir}/mhash.so
1347 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1349 %defattr(644,root,root,755)
1350 %attr(755,root,root) %{extensionsdir}/odbc.so
1354 %defattr(644,root,root,755)
1358 %defattr(644,root,root,755)
1359 %attr(755,root,root) %{extensionsdir}/curl.so