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}-apache-fixes.patch
38 #Patch9: %{name}-system-expat.patch
39 Patch10: %{name}-quotes.patch
40 Patch11: %{name}-session-path.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: mm-devel >= 1.1.3
60 BuildRequires: mysql-devel >= 3.23.32
61 %{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
62 BuildRequires: pam-devel
63 BuildRequires: pdflib-devel >= 3.0
64 #BuildRequires: libxml-devel >= 2.0.0
65 BuildRequires: postgresql-devel
66 BuildRequires: recode-devel >= 3.5d-3
67 BuildRequires: t1lib-devel
68 %{!?bcond_off_odbc:BuildRequires: unixODBC-devel}
69 BuildRequires: zlib-devel >= 1.0.9
70 %{!?bcond_off_snmp:BuildRequires: ucd-snmp-devel >= 4.2.1}
71 BuildRequires: libmcrypt-devel >= 2.4.4
72 BuildRequires: mhash-devel
73 BuildRequires: bzip2-devel
74 BuildRequires: gmp-devel
75 BuildRequires: curl-devel
76 %if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
77 BuildRequires: openssl-devel >= 0.9.6
79 Requires: apache(EAPI) >= 1.3.9
81 Prereq: /usr/sbin/apxs
82 PreReq: %{name}-common = %{version}
83 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
86 %define _sysconfdir /etc/php
87 # check ZEND_MODULE_API_NO in Zend/modules.h
88 %define extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-20001214
91 PHP is an HTML-embedded scripting language. PHP attempts to make it
92 easy for developers to write dynamically generated web pages. PHP also
93 offers built-in database integration for several commercial and
94 non-commercial database management systems, so writing a
95 database-enabled web page with PHP is fairly simple. The most common
96 use of PHP coding is probably as a replacement for CGI scripts. The
97 mod_php module enables the Apache web server to understand and process
98 the embedded PHP language in web pages. This package contains PHP
99 version %{version}. If you use applications which specifically rely on
100 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
101 module contained in the phpfi package. If you're just starting with
102 PHP, you should install this package. You'll also need to install the
106 PHP est un langage de script embarque dans le HTM. PHP essaye de
107 rendre simple aux developpeurs d'ecrire des pages web generees
108 dynamiquement. PHP incorpore egalement une integration avec plusieurs
109 systemes de gestion de bases de donnees commerciaux et
110 non-connerciaux, qui rent facile la creation de pages web liees avec
111 des bases de donnees. L'utilisation la plus commune de PHP est
112 probablement en remplacement de scripts CGI. Le module mod_php permet
113 au serveur web apache de comprendre et de traiter le langage PHP
114 integre dans des pages web. Ce package contient PHP version
115 %{version}. Si vous utilisez des applications qui utilisent
116 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
117 dans le package mod_php. Si vous debutez avec PHP, vous devriez
118 installer ce package. Vous aurez egalement besoin d'installer le
122 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
123 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
124 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
125 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
126 zosta³a z jêzyków: C, Java i Perl.
129 Summary: PHP as CGI program
130 Summary(pl): PHP jako program CGI
133 Group(es): Bibliotecas
134 Group(fr): Librairies
135 Group(pl): Biblioteki
136 PreReq: %{name}-common = %{version}
141 %description cgi -l pl
142 PHP jako program CGI.
145 Summary: Common files nneded by both apache module and CGI
146 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
149 Group(es): Bibliotecas
150 Group(fr): Librairies
151 Group(pl): Biblioteki
154 Common files needed by both apache module and CGI.
156 %description common -l pl
157 Wspólne pliki dla modu³u apacha i programu CGI.
160 Summary: MySQL database module for PHP
161 Summary(pl): Modu³ bazy danych MySQL dla PHP
164 Group(es): Bibliotecas
165 Group(fr): Librairies
166 Group(pl): Biblioteki
167 PreReq: %{name}-common = %{version}
170 This is a dynamic shared object (DSO) for Apache that will add MySQL
171 database support to PHP. If you need back-end support for MySQL, you
172 should install this package in addition to the main %{name} package.
174 %description mysql -l pl
175 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
178 Summary: PostgreSQL database module for PHP
179 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
182 Group(es): Bibliotecas
183 Group(fr): Librairies
184 Group(pl): Biblioteki
185 PreReq: %{name}-common = %{version}
188 This is a dynamic shared object (DSO) for Apache that will add
189 PostgreSQL database support to PHP. If you need back-end support for
190 PostgreSQL, you should install this package in addition to the main
193 %description pgsql -l pl
194 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
197 Summary: Oracle 8 database module for PHP
198 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
201 Group(es): Bibliotecas
202 Group(fr): Librairies
203 Group(pl): Biblioteki
204 PreReq: %{name}-common = %{version}
208 This is a dynamic shared object (DSO) for Apache that will add Oracle
209 8 database support to PHP. If you need back-end support for Oracle 8,
210 you should install this package in addition to the main %{name}
213 %description oci8 -l pl
214 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
217 Summary: Oracle 7 database module for PHP
218 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
221 Group(es): Bibliotecas
222 Group(fr): Librairies
223 Group(pl): Biblioteki
224 PreReq: %{name}-common = %{version}
228 This is a dynamic shared object (DSO) for Apache that will add Oracle
229 7 database support to PHP. If you need back-end support for Oracle 7,
230 you should install this package in addition to the main %{name}
233 %description oracle -l pl
234 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
237 Summary: GD extension module for PHP
238 Summary: Modu³ GD dla PHP
241 Group(es): Bibliotecas
242 Group(fr): Librairies
243 Group(pl): Biblioteki
244 PreReq: %{name}-common = %{version}
247 This is a dynamic shared object (DSO) for Apache that will add GD
248 support to PHP. You should install this package in addition to the
249 main %{name} package if you want to create and manipulate images with
252 %description gd -l pl
253 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
254 obrazków z poziomu PHP.
257 Summary: Java extension module for PHP
258 Summary(pl): Modu³ Javy dla PHP
261 Group(es): Bibliotecas
262 Group(fr): Librairies
263 Group(pl): Biblioteki
264 PreReq: %{name}-common = %{version}
267 This is a dynamic shared object (DSO) for Apache that will add JAVA
268 support to PHP. This extension provides a simple and effective means
269 for creating and invoking methods on Java objects from PHP.
271 %description java -l pl
272 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
273 obiektów Javy z poziomu PHP.
276 Summary: XML extension module for PHP
277 Summary(pl): Modu³ XML dla PHP
280 Group(es): Bibliotecas
281 Group(fr): Librairies
282 Group(pl): Biblioteki
283 PreReq: %{name}-common = %{version}
286 This is a dynamic shared object (DSO) for Apache that will add XML
287 support to PHP. This extension lets you create XML parsers and then
288 define handlers for different XML events. If you want to be able to
289 parse XML documents you should install this package in addition to the
290 main %{name} package.
292 %description xml -l pl
293 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
294 zwi±zanych z tymi plikami.
297 Summary: DBA extension module for PHP
298 Summary(pl): Modu³ DBA dla PHP
301 Group(es): Bibliotecas
302 Group(fr): Librairies
303 Group(pl): Biblioteki
304 PreReq: %{name}-common = %{version}
307 This is a dynamic shared object (DSO) for Apache that will add
308 flat-file databases (DBA) support to PHP.
310 #%description dba -l pl
313 Summary: ODBC extension module for PHP
314 Summary(pl): Modu³ ODBC dla PHP
317 Group(es): Bibliotecas
318 Group(fr): Librairies
319 Group(pl): Biblioteki
320 PreReq: %{name}-common = %{version}
323 This is a dynamic shared object (DSO) for Apache that will add ODBC
326 %description odbc -l pl
327 Modu³ PHP ze wsparciem dla ODBC.
330 Summary: Calendar extension module for PHP
331 Summary(pl): Modu³ funkcji kalendarza dla PHP
334 Group(es): Bibliotecas
335 Group(fr): Librairies
336 Group(pl): Biblioteki
337 PreReq: %{name}-common = %{version}
339 %description calendar
340 This is a dynamic shared object (DSO) for Apache that will add
341 calendar support to PHP.
343 #%description calendar -l pl
346 Summary: DBase extension module for PHP
347 Summary(pl): Modu³ DBase dla PHP
350 Group(es): Bibliotecas
351 Group(fr): Librairies
352 Group(pl): Biblioteki
353 PreReq: %{name}-common = %{version}
356 This is a dynamic shared object (DSO) for Apache that will add DBase
359 %description dbase -l pl
360 Modu³ PHP ze wsparciem dla DBase.
363 Summary: FilePro extension module for PHP
364 Summary(pl): Modu³ FilePro dla PHP
367 Group(es): Bibliotecas
368 Group(fr): Librairies
369 Group(pl): Biblioteki
370 PreReq: %{name}-common = %{version}
373 This is a dynamic shared object (DSO) for Apache that will add FilePro
376 #%description filepro -l pl
379 Summary: POSIX extension module for PHP
380 Summary(pl): Modu³ POSIX dla PHP
383 Group(es): Bibliotecas
384 Group(fr): Librairies
385 Group(pl): Biblioteki
386 PreReq: %{name}-common = %{version}
389 This is a dynamic shared object (DSO) for Apache that will add POSIX
390 functions support to PHP.
392 %description posix -l pl
393 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
396 Summary: PCRE extension module for PHP
397 Summary(pl): Modu³ PCRE dla PHP
400 Group(es): Bibliotecas
401 Group(fr): Librairies
402 Group(pl): Biblioteki
403 PreReq: %{name}-common = %{version}
406 This is a dynamic shared object (DSO) for Apache that will add Perl
407 Compatible Regular Expression support to PHP.
409 %description pcre -l pl
410 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
411 (Perl Compatible Regular Expressions)
414 Summary: SysV sem extension module for PHP
415 Summary(pl): Modu³ SysV sem dla PHP
418 Group(es): Bibliotecas
419 Group(fr): Librairies
420 Group(pl): Biblioteki
421 PreReq: %{name}-common = %{version}
424 This is a dynamic shared object (DSO) for Apache that will add SysV
425 semafores support to PHP.
427 %description sysvsem -l pl
428 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
431 Summary: SysV shm extension module for PHP
432 Summary(pl): Modu³ SysV shm dla PHP
435 Group(es): Bibliotecas
436 Group(fr): Librairies
437 Group(pl): Biblioteki
438 PreReq: %{name}-common = %{version}
441 This is a dynamic shared object (DSO) for Apache that will add SysV
442 Shared Memory support to PHP.
444 %description sysvshm -l pl
445 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
448 Summary: NIS (yp) extension module for PHP
449 Summary(pl): Modu³ NIS (yp) dla PHP
452 Group(es): Bibliotecas
453 Group(fr): Librairies
454 Group(pl): Biblioteki
455 PreReq: %{name}-common = %{version}
458 This is a dynamic shared object (DSO) for Apache that will add NIS
459 (Yellow Pages) support to PHP.
461 #%description yp -l pl
464 Summary: bcmath extension module for PHP
465 Summary(pl): Modu³ bcmath dla PHP
468 Group(es): Bibliotecas
469 Group(fr): Librairies
470 Group(pl): Biblioteki
471 PreReq: %{name}-common = %{version}
474 This is a dynamic shared object (DSO) for Apache that will add bc
475 style precision math functions support to PHP.
477 %description bcmath -l pl
478 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
479 matematycznych takich jak w programie bc.
482 Summary: FTP extension module for PHP
483 Summary(pl): Modu³ FTP dla PHP
486 Group(es): Bibliotecas
487 Group(fr): Librairies
488 Group(pl): Biblioteki
489 PreReq: %{name}-common = %{version}
492 This is a dynamic shared object (DSO) for Apache that will add FTP
495 #%description ftp -l pl
498 Summary: Zlib extension module for PHP
499 Summary(pl): Modu³ zlib dla PHP
502 Group(es): Bibliotecas
503 Group(fr): Librairies
504 Group(pl): Biblioteki
505 PreReq: %{name}-common = %{version}
508 This is a dynamic shared object (DSO) for Apache that will add
509 compression (zlib) support to PHP.
511 %description zlib -l pl
512 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
515 Summary: exifextension module for PHP
516 Summary(pl): Modu³ exif dla PHP
519 Group(es): Bibliotecas
520 Group(fr): Librairies
521 Group(pl): Biblioteki
522 PreReq: %{name}-common = %{version}
525 This is a dynamic shared object (DSO) for Apache that will add exif
528 #%description exif -l pl
531 Summary: recodeextension module for PHP
532 Summary(pl): Modu³ recode dla PHP
535 Group(es): Bibliotecas
536 Group(fr): Librairies
537 Group(pl): Biblioteki
538 PreReq: %{name}-common = %{version}
539 Requires: recode >= 3.5d-3
542 This is a dynamic shared object (DSO) for Apache that will add recode
545 #%description recode -l pl
548 Summary: sessionextension module for PHP
549 Summary(pl): Modu³ session dla PHP
552 Group(es): Bibliotecas
553 Group(fr): Librairies
554 Group(pl): Biblioteki
555 PreReq: %{name}-common = %{version}
558 This is a dynamic shared object (DSO) for Apache that will add session
561 #%description session -l pl
564 Summary: gettextextension module for PHP
565 Summary(pl): Modu³ gettext dla PHP
568 Group(es): Bibliotecas
569 Group(fr): Librairies
570 Group(pl): Biblioteki
571 PreReq: %{name}-common = %{version}
574 This is a dynamic shared object (DSO) for Apache that will add gettext
577 #%description gettext -l pl
580 Summary: snmpextension module for PHP
581 Summary(pl): Modu³ snmp dla PHP
584 Group(es): Bibliotecas
585 Group(fr): Librairies
586 Group(pl): Biblioteki
587 PreReq: %{name}-common = %{version}
590 This is a dynamic shared object (DSO) for Apache that will add snmp
593 #%description snmp -l pl
596 Summary: imapextension module for PHP
597 Summary(pl): Modu³ imap dla PHP
600 Group(es): Bibliotecas
601 Group(fr): Librairies
602 Group(pl): Biblioteki
603 PreReq: %{name}-common = %{version}
606 This is a dynamic shared object (DSO) for Apache that will add imap
609 #%description imap -l pl
612 Summary: LDAP extension module for PHP
613 Summary(pl): Modu³ LDAP dla PHP
616 Group(es): Bibliotecas
617 Group(fr): Librairies
618 Group(pl): Biblioteki
619 PreReq: %{name}-common = %{version}
622 This is a dynamic shared object (DSO) for Apache that will add LDAP
625 #%description ldap -l pl
628 Summary: sockets extension module for PHP
629 Summary(pl): Modu³ socket dla PHP
632 Group(es): Bibliotecas
633 Group(fr): Librairies
634 Group(pl): Biblioteki
635 PreReq: %{name}-common = %{version}
638 This is a dynamic shared object (DSO) for Apache that will add sockets
641 #%description sockets -l pl
644 Summary: mcrypt extension module for PHP
645 Summary(pl): Modu³ mcrypt dla PHP
648 Group(es): Bibliotecas
649 Group(fr): Librairies
650 Group(pl): Biblioteki
651 PreReq: %{name}-common = %{version}
654 This is a dynamic shared object (DSO) for Apache that will add mcrypt
657 #%description mcrypt -l pl
660 Summary: mhash extension module for PHP
661 Summary(pl): Modu³ mhash dla PHP
664 Group(es): Bibliotecas
665 Group(fr): Librairies
666 Group(pl): Biblioteki
667 PreReq: %{name}-common = %{version}
670 This is a dynamic shared object (DSO) for Apache that will add mhash
673 #%description mhash -l pl
676 Summary: Online manual for PHP
677 Summary(pl): Dokumentacja dla PHP
678 Group: Networking/Daemons
679 Group(de): Netzwerkwesen/Server
680 Group(pl): Sieciowe/Serwery
683 Comprehensive documentation for PHP, viewable through your web server,
686 %description doc -l pl
687 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
692 Group: Development/Languages/PHP
698 Summary: Files for PHP modules development
699 Summary(pl): Pliki do kompilacji modu³ów PHP
700 Group: Development/Languages/PHP
701 Requires: %{name}-common = %{version}
704 Files for PHP modules development.
706 %description devel -l pl
707 Pliki potrzebne do kompilacji modu³ów PHP.
723 CFLAGS="%{rpmcflags} -DEAPI -I/usr/X11R6/include"; export CFLAGS
726 --enable-discard-path \
727 --with-config-file-path=%{_sysconfdir} \
728 --with-exec-dir=%{_bindir} \
730 --enable-magic-quotes \
732 --enable-track-vars \
735 --enable-sysvsem=shared \
736 --enable-sysvshm=shared \
737 --enable-shmop=shared \
739 --enable-exif=shared \
740 --with-regex=system \
741 --with-gettext=shared \
742 %{!?bcond_off_ldap:--with-ldap=shared} \
743 --with-mysql=shared,/usr \
744 --with-mysql-sock=/var/lib/mysql/mysql.sock \
746 --enable-gd-imgstrttf \
747 --with-dbase=shared \
748 --with-filepro=shared \
749 --enable-ftp=shared \
751 --with-pdflib=shared \
752 --with-cpdflib=shared \
753 %{?bcond_on_java:--with-java} \
754 --with-pgsql=shared,/usr \
755 %{!?bcond_off_imap:--with-imap=shared} \
756 --enable-bcmath=shared \
757 --enable-calendar=shared \
759 --with-pcre-regex=shared \
760 --enable-posix=shared \
763 --with-recode=shared \
764 --enable-ucd-snmp-hack \
765 --enable-dba=shared \
766 %{!?bcond_off_snmp:--with-snmp=shared} \
771 --enable-xml=shared \
773 --with-mcrypt=shared \
774 --enable-sockets=shared \
776 --with-ctype=shared \
777 --with-mhash=shared \
780 %{?bcond_on_openssl:--with-openssl} \
781 %{!?bcond_off_odbc:--with-unixODBC=shared} \
782 %{?bcond_on_oracle:--with-oracle=shared} \
783 %{?bcond_on_oci8:--with-oci8=shared} \
786 # TODO --with-pspell=/usr,shared (pspell missing)
788 # --with-dom need libxml >= 2.2.7 \
796 --with-apxs=/usr/sbin/apxs \
797 --with-config-file-path=%{_sysconfdir} \
798 --with-exec-dir=%{_bindir} \
800 --enable-magic-quotes \
802 --enable-track-vars \
805 --enable-sysvsem=shared \
806 --enable-sysvshm=shared \
807 --enable-shmop=shared \
809 --enable-exif=shared \
810 --with-regex=system \
811 --with-gettext=shared \
812 %{!?bcond_off_ldap:--with-ldap=shared} \
813 --with-mysql=shared,/usr \
814 --with-mysql-sock=/var/lib/mysql/mysql.sock \
816 --enable-gd-imgstrttf \
817 --with-dbase=shared \
818 --with-filepro=shared \
819 --enable-ftp=shared \
821 --with-pdflib=shared \
822 --with-cpdflib=shared \
823 %{?bcond_on_java:--with-java} \
824 --with-pgsql=shared,/usr \
825 %{!?bcond_off_imap:--with-imap=shared} \
826 --enable-bcmath=shared \
827 --enable-calendar=shared \
829 --with-pcre-regex=shared \
830 --enable-posix=shared \
833 --with-recode=shared \
834 --enable-ucd-snmp-hack \
835 --enable-dba=shared \
836 %{!?bcond_off_snmp:--with-snmp=shared} \
841 --enable-xml=shared \
843 --with-mcrypt=shared \
844 --enable-sockets=shared \
846 --with-ctype=shared \
847 --with-mhash=shared \
850 %{?bcond_on_openssl:--with-openssl} \
851 %{!?bcond_off_odbc:--with-unixODBC=shared} \
852 %{?bcond_on_oracle:--with-oracle=shared} \
853 %{?bcond_on_oci8:--with-oci8=shared} \
856 # TODO --with-pspell=/usr,shared (pspell missing)
858 # --with-dom need libxml >= 2.2.7 \
863 rm -rf $RPM_BUILD_ROOT
864 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
865 $RPM_BUILD_ROOT/home/httpd/icons \
866 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
869 DESTDIR=$RPM_BUILD_ROOT \
870 INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
872 install php.cgi $RPM_BUILD_ROOT%{_bindir}/php
875 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
876 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
878 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
879 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
880 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
883 tar zxf %{SOURCE4} -C manual
884 ln -s manual.html manual/index.html
887 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
888 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
889 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
892 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
893 perl -pi -e '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 if [ "$1" = "0" ]; then
901 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
903 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
904 /etc/httpd/httpd.conf
905 if [ -f /var/lock/subsys/httpd ]; then
906 /etc/rc.d/init.d/httpd restart 1>&2
911 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
914 if [ "$1" = "0" ]; then
915 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
919 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
922 if [ "$1" = "0" ]; then
923 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
927 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
930 if [ "$1" = "0" ]; then
931 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
935 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
938 if [ "$1" = "0" ]; then
939 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
943 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
946 if [ "$1" = "0" ]; then
947 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
951 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
954 if [ "$1" = "0" ]; then
955 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
959 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
962 if [ "$1" = "0" ]; then
963 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
967 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
970 if [ "$1" = "0" ]; then
971 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
975 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
978 if [ "$1" = "0" ]; then
979 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
982 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
984 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
987 if [ "$1" = "0" ]; then
988 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
992 %if %{?bond_on_java:1}%{!?bond_on_java:0}
994 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
997 if [ "$1" = "0" ]; then
998 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
1002 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1004 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1007 if [ "$1" = "0" ]; then
1008 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1013 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1016 if [ "$1" = "0" ]; then
1017 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1021 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1024 if [ "$1" = "0" ]; then
1025 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1029 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1032 if [ "$1" = "0" ]; then
1033 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1036 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1038 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1041 if [ "$1" = "0" ]; then
1042 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1046 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1048 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1051 if [ "$1" = "0" ]; then
1052 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1056 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1058 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1061 if [ "$1" = "0" ]; then
1062 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1067 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1070 if [ "$1" = "0" ]; then
1071 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1075 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1078 if [ "$1" = "0" ]; then
1079 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1083 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1086 if [ "$1" = "0" ]; then
1087 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1091 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1094 if [ "$1" = "0" ]; then
1095 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1099 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1102 if [ "$1" = "0" ]; then
1103 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1106 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1108 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1111 if [ "$1" = "0" ]; then
1112 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1117 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1120 if [ "$1" = "0" ]; then
1121 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1125 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1128 if [ "$1" = "0" ]; then
1129 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1133 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1136 if [ "$1" = "0" ]; then
1137 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1141 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1144 if [ "$1" = "0" ]; then
1145 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1149 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1152 if [ "$1" = "0" ]; then
1153 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1157 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1160 if [ "$1" = "0" ]; then
1161 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1165 rm -rf $RPM_BUILD_ROOT
1168 %defattr(644,root,root,755)
1169 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1172 %defattr(644,root,root,755)
1173 %attr(755,root,root) %{_bindir}/php
1176 %defattr(644,root,root,755)
1177 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1178 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1179 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1183 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1187 %attr(755,root,root) %{_sbindir}/*
1190 %dir %{_libdir}/php/extensions
1191 %dir %{extensionsdir}
1194 %defattr(644,root,root,755)
1197 %attr(755,root,root) %{_bindir}/phpextdist
1198 %attr(755,root,root) %{_bindir}/phpize
1199 %attr(755,root,root) %{_bindir}/php-config
1202 %defattr(644,root,root,755)
1203 %attr(755,root,root) %{_bindir}/pear
1204 %{_libdir}/php/Benchmark
1205 %{_libdir}/php/Crypt
1213 %{_libdir}/php/Payment
1216 %{_libdir}/php/*.php
1219 %defattr(644,root,root,755)
1220 %attr(755,root,root) %{extensionsdir}/mysql.*
1223 %defattr(644,root,root,755)
1224 %attr(755,root,root) %{extensionsdir}/pgsql.so
1226 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1228 %defattr(644,root,root,755)
1229 %attr(755,root,root) %{extensionsdir}/oracle.so
1232 %if %{?bcond_on_oci8:1}%{!?bcond_on_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
1243 %defattr(644,root,root,755)
1244 %attr(755,root,root) %{extensionsdir}/xml.so
1247 %defattr(644,root,root,755)
1248 %attr(755,root,root) %{extensionsdir}/dba.so
1251 %defattr(644,root,root,755)
1252 %attr(755,root,root) %{extensionsdir}/dbase.so
1255 %defattr(644,root,root,755)
1256 %attr(755,root,root) %{extensionsdir}/filepro.so
1259 %defattr(644,root,root,755)
1260 %attr(755,root,root) %{extensionsdir}/pcre.so
1263 %defattr(644,root,root,755)
1264 %attr(755,root,root) %{extensionsdir}/posix.so
1267 %defattr(644,root,root,755)
1268 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1271 %defattr(644,root,root,755)
1272 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1275 %defattr(644,root,root,755)
1276 %attr(755,root,root) %{extensionsdir}/yp.so
1279 %defattr(644,root,root,755)
1280 %attr(755,root,root) %{extensionsdir}/calendar.so
1283 %defattr(644,root,root,755)
1284 %attr(755,root,root) %{extensionsdir}/bcmath.so
1287 %defattr(644,root,root,755)
1288 %attr(755,root,root) %{extensionsdir}/ftp.so
1291 %defattr(644,root,root,755)
1292 %attr(755,root,root) %{extensionsdir}/zlib.so
1295 %defattr(644,root,root,755)
1296 %attr(755,root,root) %{extensionsdir}/exif.so
1299 %defattr(644,root,root,755)
1300 %attr(755,root,root) %{extensionsdir}/recode.so
1303 #%defattr(644,root,root,755)
1304 #%attr(755,root,root) %{extensionsdir}/session.so
1307 %defattr(644,root,root,755)
1308 %attr(755,root,root) %{extensionsdir}/gettext.so
1310 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
1312 %defattr(644,root,root,755)
1313 %attr(755,root,root) %{extensionsdir}/imap.so
1316 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1318 %defattr(644,root,root,755)
1319 %attr(755,root,root) %{extensionsdir}/snmp.so
1322 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1324 %defattr(644,root,root,755)
1325 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1328 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1330 %defattr(644,root,root,755)
1331 %attr(755,root,root) %{extensionsdir}/ldap.*
1335 %defattr(644,root,root,755)
1336 %attr(755,root,root) %{extensionsdir}/sockets.so
1339 %defattr(644,root,root,755)
1340 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1343 %defattr(644,root,root,755)
1344 %attr(755,root,root) %{extensionsdir}/mhash.so
1346 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1348 %defattr(644,root,root,755)
1349 %attr(755,root,root) %{extensionsdir}/odbc.so
1353 %defattr(644,root,root,755)