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
42 URL: http://www.php.net/
43 BuildRequires: apache(EAPI)-devel
47 BuildRequires: db3-devel >= 3.1.17
48 BuildRequires: freetype1-devel
49 BuildRequires: gd-devel >= 1.8.3
50 BuildRequires: gdbm-devel
51 %{!?bcond_off_imap:BuildRequires: imap-devel >= 4.7b-1}
52 # I think jdk is better for java
54 %{?bcond_on_java:BuildRequires: kaffe-devel}
55 BuildRequires: libjpeg-devel
56 BuildRequires: libltdl-devel >= 1.4
57 BuildRequires: libpng >= 1.0.8
58 BuildRequires: libtiff-devel
59 BuildRequires: libtool
60 BuildRequires: mm-devel >= 1.1.3
61 BuildRequires: mysql-devel >= 3.23.32
62 %{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
63 BuildRequires: pam-devel
64 BuildRequires: pdflib-devel >= 4.0.0
65 #BuildRequires: libxml-devel >= 2.0.0
66 BuildRequires: postgresql-devel
67 BuildRequires: recode-devel >= 3.5d-3
68 BuildRequires: t1lib-devel
69 %{!?bcond_off_odbc:BuildRequires: unixODBC-devel}
70 BuildRequires: zlib-devel >= 1.0.9
71 %{!?bcond_off_snmp:BuildRequires: ucd-snmp-devel >= 4.2.1-8}
72 BuildRequires: libmcrypt-devel >= 2.4.4
73 BuildRequires: mhash-devel
74 BuildRequires: bzip2-devel
75 BuildRequires: gmp-devel
76 BuildRequires: curl-devel
77 %if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
78 BuildRequires: openssl-devel >= 0.9.6a
80 Requires: apache(EAPI) >= 1.3.9
82 Prereq: %{_sbindir}/apxs
83 PreReq: %{name}-common = %{version}
84 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
87 %define _sysconfdir /etc/php
88 # check ZEND_MODULE_API_NO in Zend/modules.h
89 %define extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-20001222
92 PHP is an HTML-embedded scripting language. PHP attempts to make it
93 easy for developers to write dynamically generated web pages. PHP also
94 offers built-in database integration for several commercial and
95 non-commercial database management systems, so writing a
96 database-enabled web page with PHP is fairly simple. The most common
97 use of PHP coding is probably as a replacement for CGI scripts. The
98 mod_php module enables the Apache web server to understand and process
99 the embedded PHP language in web pages. This package contains PHP
100 version %{version}. If you use applications which specifically rely on
101 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
102 module contained in the phpfi package. If you're just starting with
103 PHP, you should install this package. You'll also need to install the
107 PHP est un langage de script embarque dans le HTM. PHP essaye de
108 rendre simple aux developpeurs d'ecrire des pages web generees
109 dynamiquement. PHP incorpore egalement une integration avec plusieurs
110 systemes de gestion de bases de donnees commerciaux et
111 non-connerciaux, qui rent facile la creation de pages web liees avec
112 des bases de donnees. L'utilisation la plus commune de PHP est
113 probablement en remplacement de scripts CGI. Le module mod_php permet
114 au serveur web apache de comprendre et de traiter le langage PHP
115 integre dans des pages web. Ce package contient PHP version
116 %{version}. Si vous utilisez des applications qui utilisent
117 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
118 dans le package mod_php. Si vous debutez avec PHP, vous devriez
119 installer ce package. Vous aurez egalement besoin d'installer le
123 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
124 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
125 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
126 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
127 zosta³a z jêzyków: C, Java i Perl.
130 Summary: PHP as CGI program
131 Summary(pl): PHP jako program CGI
134 Group(es): Bibliotecas
135 Group(fr): Librairies
136 Group(pl): Biblioteki
137 PreReq: %{name}-common = %{version}
142 %description cgi -l pl
143 PHP jako program CGI.
146 Summary: Common files nneded by both apache module and CGI
147 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
150 Group(es): Bibliotecas
151 Group(fr): Librairies
152 Group(pl): Biblioteki
155 Common files needed by both apache module and CGI.
157 %description common -l pl
158 Wspólne pliki dla modu³u apacha i programu CGI.
161 Summary: MySQL database module for PHP
162 Summary(pl): Modu³ bazy danych MySQL dla PHP
165 Group(es): Bibliotecas
166 Group(fr): Librairies
167 Group(pl): Biblioteki
168 PreReq: %{name}-common = %{version}
171 This is a dynamic shared object (DSO) for Apache that will add MySQL
172 database support to PHP. If you need back-end support for MySQL, you
173 should install this package in addition to the main %{name} package.
175 %description mysql -l pl
176 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
179 Summary: PostgreSQL database module for PHP
180 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
183 Group(es): Bibliotecas
184 Group(fr): Librairies
185 Group(pl): Biblioteki
186 PreReq: %{name}-common = %{version}
189 This is a dynamic shared object (DSO) for Apache that will add
190 PostgreSQL database support to PHP. If you need back-end support for
191 PostgreSQL, you should install this package in addition to the main
194 %description pgsql -l pl
195 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
198 Summary: Oracle 8 database module for PHP
199 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
202 Group(es): Bibliotecas
203 Group(fr): Librairies
204 Group(pl): Biblioteki
205 PreReq: %{name}-common = %{version}
209 This is a dynamic shared object (DSO) for Apache that will add Oracle
210 8 database support to PHP. If you need back-end support for Oracle 8,
211 you should install this package in addition to the main %{name}
214 %description oci8 -l pl
215 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
218 Summary: Oracle 7 database module for PHP
219 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
222 Group(es): Bibliotecas
223 Group(fr): Librairies
224 Group(pl): Biblioteki
225 PreReq: %{name}-common = %{version}
229 This is a dynamic shared object (DSO) for Apache that will add Oracle
230 7 database support to PHP. If you need back-end support for Oracle 7,
231 you should install this package in addition to the main %{name}
234 %description oracle -l pl
235 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
238 Summary: GD extension module for PHP
239 Summary: Modu³ GD dla PHP
242 Group(es): Bibliotecas
243 Group(fr): Librairies
244 Group(pl): Biblioteki
245 PreReq: %{name}-common = %{version}
248 This is a dynamic shared object (DSO) for Apache that will add GD
249 support to PHP. You should install this package in addition to the
250 main %{name} package if you want to create and manipulate images with
253 %description gd -l pl
254 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
255 obrazków z poziomu PHP.
258 Summary: Java extension module for PHP
259 Summary(pl): Modu³ Javy dla PHP
262 Group(es): Bibliotecas
263 Group(fr): Librairies
264 Group(pl): Biblioteki
265 PreReq: %{name}-common = %{version}
268 This is a dynamic shared object (DSO) for Apache that will add JAVA
269 support to PHP. This extension provides a simple and effective means
270 for creating and invoking methods on Java objects from PHP.
272 %description java -l pl
273 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
274 obiektów Javy z poziomu PHP.
277 Summary: XML extension module for PHP
278 Summary(pl): Modu³ XML dla PHP
281 Group(es): Bibliotecas
282 Group(fr): Librairies
283 Group(pl): Biblioteki
284 PreReq: %{name}-common = %{version}
287 This is a dynamic shared object (DSO) for Apache that will add XML
288 support to PHP. This extension lets you create XML parsers and then
289 define handlers for different XML events. If you want to be able to
290 parse XML documents you should install this package in addition to the
291 main %{name} package.
293 %description xml -l pl
294 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
295 zwi±zanych z tymi plikami.
298 Summary: DBA extension module for PHP
299 Summary(pl): Modu³ DBA dla PHP
302 Group(es): Bibliotecas
303 Group(fr): Librairies
304 Group(pl): Biblioteki
305 PreReq: %{name}-common = %{version}
308 This is a dynamic shared object (DSO) for Apache that will add
309 flat-file databases (DBA) support to PHP.
311 #%description dba -l pl
314 Summary: ODBC extension module for PHP
315 Summary(pl): Modu³ ODBC dla PHP
318 Group(es): Bibliotecas
319 Group(fr): Librairies
320 Group(pl): Biblioteki
321 PreReq: %{name}-common = %{version}
324 This is a dynamic shared object (DSO) for Apache that will add ODBC
327 %description odbc -l pl
328 Modu³ PHP ze wsparciem dla ODBC.
331 Summary: Calendar extension module for PHP
332 Summary(pl): Modu³ funkcji kalendarza dla PHP
335 Group(es): Bibliotecas
336 Group(fr): Librairies
337 Group(pl): Biblioteki
338 PreReq: %{name}-common = %{version}
340 %description calendar
341 This is a dynamic shared object (DSO) for Apache that will add
342 calendar support to PHP.
344 #%description calendar -l pl
347 Summary: DBase extension module for PHP
348 Summary(pl): Modu³ DBase dla PHP
351 Group(es): Bibliotecas
352 Group(fr): Librairies
353 Group(pl): Biblioteki
354 PreReq: %{name}-common = %{version}
357 This is a dynamic shared object (DSO) for Apache that will add DBase
360 %description dbase -l pl
361 Modu³ PHP ze wsparciem dla DBase.
364 Summary: FilePro extension module for PHP
365 Summary(pl): Modu³ FilePro dla PHP
368 Group(es): Bibliotecas
369 Group(fr): Librairies
370 Group(pl): Biblioteki
371 PreReq: %{name}-common = %{version}
374 This is a dynamic shared object (DSO) for Apache that will add FilePro
377 #%description filepro -l pl
380 Summary: POSIX extension module for PHP
381 Summary(pl): Modu³ POSIX dla PHP
384 Group(es): Bibliotecas
385 Group(fr): Librairies
386 Group(pl): Biblioteki
387 PreReq: %{name}-common = %{version}
390 This is a dynamic shared object (DSO) for Apache that will add POSIX
391 functions support to PHP.
393 %description posix -l pl
394 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
397 Summary: PCRE extension module for PHP
398 Summary(pl): Modu³ PCRE dla PHP
401 Group(es): Bibliotecas
402 Group(fr): Librairies
403 Group(pl): Biblioteki
404 PreReq: %{name}-common = %{version}
407 This is a dynamic shared object (DSO) for Apache that will add Perl
408 Compatible Regular Expression support to PHP.
410 %description pcre -l pl
411 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
412 (Perl Compatible Regular Expressions)
415 Summary: SysV sem extension module for PHP
416 Summary(pl): Modu³ SysV sem dla PHP
419 Group(es): Bibliotecas
420 Group(fr): Librairies
421 Group(pl): Biblioteki
422 PreReq: %{name}-common = %{version}
425 This is a dynamic shared object (DSO) for Apache that will add SysV
426 semafores support to PHP.
428 %description sysvsem -l pl
429 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
432 Summary: SysV shm extension module for PHP
433 Summary(pl): Modu³ SysV shm dla PHP
436 Group(es): Bibliotecas
437 Group(fr): Librairies
438 Group(pl): Biblioteki
439 PreReq: %{name}-common = %{version}
442 This is a dynamic shared object (DSO) for Apache that will add SysV
443 Shared Memory support to PHP.
445 %description sysvshm -l pl
446 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
449 Summary: NIS (yp) extension module for PHP
450 Summary(pl): Modu³ NIS (yp) dla PHP
453 Group(es): Bibliotecas
454 Group(fr): Librairies
455 Group(pl): Biblioteki
456 PreReq: %{name}-common = %{version}
459 This is a dynamic shared object (DSO) for Apache that will add NIS
460 (Yellow Pages) support to PHP.
462 #%description yp -l pl
465 Summary: bcmath extension module for PHP
466 Summary(pl): Modu³ bcmath dla PHP
469 Group(es): Bibliotecas
470 Group(fr): Librairies
471 Group(pl): Biblioteki
472 PreReq: %{name}-common = %{version}
475 This is a dynamic shared object (DSO) for Apache that will add bc
476 style precision math functions support to PHP.
478 %description bcmath -l pl
479 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
480 matematycznych takich jak w programie bc.
483 Summary: FTP extension module for PHP
484 Summary(pl): Modu³ FTP dla PHP
487 Group(es): Bibliotecas
488 Group(fr): Librairies
489 Group(pl): Biblioteki
490 PreReq: %{name}-common = %{version}
493 This is a dynamic shared object (DSO) for Apache that will add FTP
496 #%description ftp -l pl
499 Summary: Zlib extension module for PHP
500 Summary(pl): Modu³ zlib dla PHP
503 Group(es): Bibliotecas
504 Group(fr): Librairies
505 Group(pl): Biblioteki
506 PreReq: %{name}-common = %{version}
509 This is a dynamic shared object (DSO) for Apache that will add
510 compression (zlib) support to PHP.
512 %description zlib -l pl
513 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
516 Summary: exifextension module for PHP
517 Summary(pl): Modu³ exif dla PHP
520 Group(es): Bibliotecas
521 Group(fr): Librairies
522 Group(pl): Biblioteki
523 PreReq: %{name}-common = %{version}
526 This is a dynamic shared object (DSO) for Apache that will add exif
529 #%description exif -l pl
532 Summary: recodeextension module for PHP
533 Summary(pl): Modu³ recode dla PHP
536 Group(es): Bibliotecas
537 Group(fr): Librairies
538 Group(pl): Biblioteki
539 PreReq: %{name}-common = %{version}
540 Requires: recode >= 3.5d-3
543 This is a dynamic shared object (DSO) for Apache that will add recode
546 #%description recode -l pl
549 Summary: sessionextension module for PHP
550 Summary(pl): Modu³ session dla PHP
553 Group(es): Bibliotecas
554 Group(fr): Librairies
555 Group(pl): Biblioteki
556 PreReq: %{name}-common = %{version}
559 This is a dynamic shared object (DSO) for Apache that will add session
562 #%description session -l pl
565 Summary: gettextextension module for PHP
566 Summary(pl): Modu³ gettext dla PHP
569 Group(es): Bibliotecas
570 Group(fr): Librairies
571 Group(pl): Biblioteki
572 PreReq: %{name}-common = %{version}
575 This is a dynamic shared object (DSO) for Apache that will add gettext
578 #%description gettext -l pl
581 Summary: snmpextension module for PHP
582 Summary(pl): Modu³ snmp dla PHP
585 Group(es): Bibliotecas
586 Group(fr): Librairies
587 Group(pl): Biblioteki
588 PreReq: %{name}-common = %{version}
591 This is a dynamic shared object (DSO) for Apache that will add snmp
594 #%description snmp -l pl
597 Summary: imapextension module for PHP
598 Summary(pl): Modu³ imap dla PHP
601 Group(es): Bibliotecas
602 Group(fr): Librairies
603 Group(pl): Biblioteki
604 PreReq: %{name}-common = %{version}
607 This is a dynamic shared object (DSO) for Apache that will add imap
610 #%description imap -l pl
613 Summary: LDAP extension module for PHP
614 Summary(pl): Modu³ LDAP dla PHP
617 Group(es): Bibliotecas
618 Group(fr): Librairies
619 Group(pl): Biblioteki
620 PreReq: %{name}-common = %{version}
623 This is a dynamic shared object (DSO) for Apache that will add LDAP
626 #%description ldap -l pl
629 Summary: sockets extension module for PHP
630 Summary(pl): Modu³ socket dla PHP
633 Group(es): Bibliotecas
634 Group(fr): Librairies
635 Group(pl): Biblioteki
636 PreReq: %{name}-common = %{version}
639 This is a dynamic shared object (DSO) for Apache that will add sockets
642 #%description sockets -l pl
645 Summary: mcrypt extension module for PHP
646 Summary(pl): Modu³ mcrypt dla PHP
649 Group(es): Bibliotecas
650 Group(fr): Librairies
651 Group(pl): Biblioteki
652 PreReq: %{name}-common = %{version}
655 This is a dynamic shared object (DSO) for Apache that will add mcrypt
658 #%description mcrypt -l pl
661 Summary: mhash extension module for PHP
662 Summary(pl): Modu³ mhash dla PHP
665 Group(es): Bibliotecas
666 Group(fr): Librairies
667 Group(pl): Biblioteki
668 PreReq: %{name}-common = %{version}
671 This is a dynamic shared object (DSO) for Apache that will add mhash
674 #%description mhash -l pl
677 Summary: Online manual for PHP
678 Summary(pl): Dokumentacja dla PHP
679 Group: Networking/Daemons
680 Group(de): Netzwerkwesen/Server
681 Group(pl): Sieciowe/Serwery
684 Comprehensive documentation for PHP, viewable through your web server,
687 %description doc -l pl
688 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
693 Group: Development/Languages/PHP
699 Summary: Files for PHP modules development
700 Summary(pl): Pliki do kompilacji modu³ów PHP
701 Group: Development/Languages/PHP
702 Requires: %{name}-common = %{version}
705 Files for PHP modules development.
707 %description devel -l pl
708 Pliki potrzebne do kompilacji modu³ów PHP.
724 CFLAGS="%{rpmcflags} -DEAPI -I/usr/X11R6/include"; export CFLAGS
726 libtoolize --copy --force
730 --enable-discard-path \
731 --with-config-file-path=%{_sysconfdir} \
732 --with-exec-dir=%{_bindir} \
734 --enable-magic-quotes \
736 --enable-track-vars \
739 --enable-sysvsem=shared \
740 --enable-sysvshm=shared \
741 --enable-shmop=shared \
743 --enable-exif=shared \
745 --with-gettext=shared \
746 %{!?bcond_off_ldap:--with-ldap=shared} \
747 --with-mysql=shared,%{_prefix} \
748 --with-mysql-sock=%{_var}/lib/mysql/mysql.sock \
750 --enable-gd-imgstrttf \
751 --with-dbase=shared \
752 --with-filepro=shared \
753 --enable-ftp=shared \
755 --with-pdflib=shared \
756 --with-cpdflib=shared \
757 %{?bcond_on_java:--with-java} \
758 --with-pgsql=shared,%{_prefix} \
759 %{!?bcond_off_imap:--with-imap=shared} \
760 --enable-bcmath=shared \
761 --enable-calendar=shared \
763 --with-pcre-regex=shared \
764 --enable-posix=shared \
767 --with-recode=shared \
768 --enable-ucd-snmp-hack \
769 --enable-dba=shared \
770 %{!?bcond_off_snmp:--with-snmp=shared} \
775 --enable-xml=shared \
777 --with-mcrypt=shared \
778 --enable-sockets=shared \
780 --with-ctype=shared \
781 --with-mhash=shared \
784 %{?bcond_on_openssl:--with-openssl} \
785 %{!?bcond_off_odbc:--with-unixODBC=shared} \
786 %{?bcond_on_oracle:--with-oracle=shared} \
787 %{?bcond_on_oci8:--with-oci8=shared} \
790 # TODO --with-pspell=/usr,shared (pspell missing)
792 # --with-dom need libxml >= 2.2.7 \
802 --with-apxs=%{_sbindir}/apxs \
803 --with-config-file-path=%{_sysconfdir} \
804 --with-exec-dir=%{_bindir} \
806 --enable-magic-quotes \
808 --enable-track-vars \
811 --enable-sysvsem=shared \
812 --enable-sysvshm=shared \
813 --enable-shmop=shared \
815 --enable-exif=shared \
816 --with-regex=system \
817 --with-gettext=shared \
818 %{!?bcond_off_ldap:--with-ldap=shared} \
819 --with-mysql=shared,/usr \
820 --with-mysql-sock=/var/lib/mysql/mysql.sock \
822 --enable-gd-imgstrttf \
823 --with-dbase=shared \
824 --with-filepro=shared \
825 --enable-ftp=shared \
827 --with-pdflib=shared \
828 --with-cpdflib=shared \
829 %{?bcond_on_java:--with-java} \
830 --with-pgsql=shared,/usr \
831 %{!?bcond_off_imap:--with-imap=shared} \
832 --enable-bcmath=shared \
833 --enable-calendar=shared \
835 --with-pcre-regex=shared \
836 --enable-posix=shared \
839 --with-recode=shared \
840 --enable-ucd-snmp-hack \
841 --enable-dba=shared \
842 %{!?bcond_off_snmp:--with-snmp=shared} \
847 --enable-xml=shared \
849 --with-mcrypt=shared \
850 --enable-sockets=shared \
852 --with-ctype=shared \
853 --with-mhash=shared \
856 %{?bcond_on_openssl:--with-openssl} \
857 %{!?bcond_off_odbc:--with-unixODBC=shared} \
858 %{?bcond_on_oracle:--with-oracle=shared} \
859 %{?bcond_on_oci8:--with-oci8=shared} \
862 # TODO --with-pspell=/usr,shared (pspell missing)
864 # --with-dom need libxml >= 2.2.7 \
869 rm -rf $RPM_BUILD_ROOT
870 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
871 $RPM_BUILD_ROOT/home/httpd/icons \
872 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
875 DESTDIR=$RPM_BUILD_ROOT \
876 INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
878 install php.cgi $RPM_BUILD_ROOT%{_bindir}/php
881 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
882 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
884 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
885 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
886 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
889 tar zxf %{SOURCE4} -C manual
890 ln -s manual.html manual/index.html
893 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
894 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
895 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
898 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
899 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
900 /etc/httpd/httpd.conf
901 if [ -f /var/lock/subsys/httpd ]; then
902 /etc/rc.d/init.d/httpd restart 1>&2
906 if [ "$1" = "0" ]; then
907 %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
909 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
910 /etc/httpd/httpd.conf
911 if [ -f /var/lock/subsys/httpd ]; then
912 /etc/rc.d/init.d/httpd restart 1>&2
917 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
920 if [ "$1" = "0" ]; then
921 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
925 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
928 if [ "$1" = "0" ]; then
929 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
933 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
936 if [ "$1" = "0" ]; then
937 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
941 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
944 if [ "$1" = "0" ]; then
945 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
949 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
952 if [ "$1" = "0" ]; then
953 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
957 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
960 if [ "$1" = "0" ]; then
961 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
965 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
968 if [ "$1" = "0" ]; then
969 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
973 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
976 if [ "$1" = "0" ]; then
977 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
981 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
984 if [ "$1" = "0" ]; then
985 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
988 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
990 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
993 if [ "$1" = "0" ]; then
994 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
998 %if %{?bond_on_java:1}%{!?bond_on_java:0}
1000 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
1003 if [ "$1" = "0" ]; then
1004 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
1008 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1010 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1013 if [ "$1" = "0" ]; then
1014 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1019 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1022 if [ "$1" = "0" ]; then
1023 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1027 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1030 if [ "$1" = "0" ]; then
1031 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1035 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1038 if [ "$1" = "0" ]; then
1039 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1042 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1044 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1047 if [ "$1" = "0" ]; then
1048 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1052 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1054 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1057 if [ "$1" = "0" ]; then
1058 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1062 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1064 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1067 if [ "$1" = "0" ]; then
1068 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1073 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1076 if [ "$1" = "0" ]; then
1077 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1081 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1084 if [ "$1" = "0" ]; then
1085 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1089 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1092 if [ "$1" = "0" ]; then
1093 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1097 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1100 if [ "$1" = "0" ]; then
1101 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1105 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1108 if [ "$1" = "0" ]; then
1109 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1112 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1114 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1117 if [ "$1" = "0" ]; then
1118 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1123 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1126 if [ "$1" = "0" ]; then
1127 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1131 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1134 if [ "$1" = "0" ]; then
1135 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1139 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1142 if [ "$1" = "0" ]; then
1143 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1147 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1150 if [ "$1" = "0" ]; then
1151 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1155 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1158 if [ "$1" = "0" ]; then
1159 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1163 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1166 if [ "$1" = "0" ]; then
1167 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1171 rm -rf $RPM_BUILD_ROOT
1174 %defattr(644,root,root,755)
1175 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1178 %defattr(644,root,root,755)
1179 %attr(755,root,root) %{_bindir}/php
1182 %defattr(644,root,root,755)
1183 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1184 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1185 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1189 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1193 %attr(755,root,root) %{_sbindir}/*
1196 %dir %{_libdir}/php/extensions
1197 %dir %{extensionsdir}
1200 %defattr(644,root,root,755)
1203 %attr(755,root,root) %{_bindir}/phpextdist
1204 %attr(755,root,root) %{_bindir}/phpize
1205 %attr(755,root,root) %{_bindir}/php-config
1208 %defattr(644,root,root,755)
1209 %attr(755,root,root) %{_bindir}/pear
1210 %{_libdir}/php/Benchmark
1211 %{_libdir}/php/Crypt
1219 %{_libdir}/php/Payment
1222 %{_libdir}/php/*.php
1225 %defattr(644,root,root,755)
1226 %attr(755,root,root) %{extensionsdir}/mysql.*
1229 %defattr(644,root,root,755)
1230 %attr(755,root,root) %{extensionsdir}/pgsql.so
1232 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1234 %defattr(644,root,root,755)
1235 %attr(755,root,root) %{extensionsdir}/oracle.so
1238 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1240 %defattr(644,root,root,755)
1241 %attr(755,root,root) %{extensionsdir}/oci8.so
1245 %defattr(644,root,root,755)
1246 %attr(755,root,root) %{extensionsdir}/gd.so
1249 %defattr(644,root,root,755)
1250 %attr(755,root,root) %{extensionsdir}/xml.so
1253 %defattr(644,root,root,755)
1254 %attr(755,root,root) %{extensionsdir}/dba.so
1257 %defattr(644,root,root,755)
1258 %attr(755,root,root) %{extensionsdir}/dbase.so
1261 %defattr(644,root,root,755)
1262 %attr(755,root,root) %{extensionsdir}/filepro.so
1265 %defattr(644,root,root,755)
1266 %attr(755,root,root) %{extensionsdir}/pcre.so
1269 %defattr(644,root,root,755)
1270 %attr(755,root,root) %{extensionsdir}/posix.so
1273 %defattr(644,root,root,755)
1274 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1277 %defattr(644,root,root,755)
1278 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1281 %defattr(644,root,root,755)
1282 %attr(755,root,root) %{extensionsdir}/yp.so
1285 %defattr(644,root,root,755)
1286 %attr(755,root,root) %{extensionsdir}/calendar.so
1289 %defattr(644,root,root,755)
1290 %attr(755,root,root) %{extensionsdir}/bcmath.so
1293 %defattr(644,root,root,755)
1294 %attr(755,root,root) %{extensionsdir}/ftp.so
1297 %defattr(644,root,root,755)
1298 %attr(755,root,root) %{extensionsdir}/zlib.so
1301 %defattr(644,root,root,755)
1302 %attr(755,root,root) %{extensionsdir}/exif.so
1305 %defattr(644,root,root,755)
1306 %attr(755,root,root) %{extensionsdir}/recode.so
1309 #%defattr(644,root,root,755)
1310 #%attr(755,root,root) %{extensionsdir}/session.so
1313 %defattr(644,root,root,755)
1314 %attr(755,root,root) %{extensionsdir}/gettext.so
1316 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
1318 %defattr(644,root,root,755)
1319 %attr(755,root,root) %{extensionsdir}/imap.so
1322 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1324 %defattr(644,root,root,755)
1325 %attr(755,root,root) %{extensionsdir}/snmp.so
1328 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1330 %defattr(644,root,root,755)
1331 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1334 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1336 %defattr(644,root,root,755)
1337 %attr(755,root,root) %{extensionsdir}/ldap.*
1341 %defattr(644,root,root,755)
1342 %attr(755,root,root) %{extensionsdir}/sockets.so
1345 %defattr(644,root,root,755)
1346 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1349 %defattr(644,root,root,755)
1350 %attr(755,root,root) %{extensionsdir}/mhash.so
1352 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1354 %defattr(644,root,root,755)
1355 %attr(755,root,root) %{extensionsdir}/odbc.so
1359 %defattr(644,root,root,755)