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
41 Patch12: %{name}-libtool_version_check_fix.patch
43 URL: http://www.php.net/
44 BuildRequires: apache(EAPI)-devel
48 BuildRequires: db3-devel >= 3.1.17
49 BuildRequires: freetype1-devel
50 BuildRequires: gd-devel >= 1.8.3
51 BuildRequires: gdbm-devel
52 %{!?bcond_off_imap:BuildRequires: imap-devel >= 4.7b-1}
53 # I think jdk is better for java
55 %{?bcond_on_java:BuildRequires: kaffe-devel}
56 BuildRequires: libjpeg-devel
57 BuildRequires: libltdl-devel >= 1.4
58 BuildRequires: libpng >= 1.0.8
59 BuildRequires: libtiff-devel
60 BuildRequires: libtool
61 BuildRequires: mm-devel >= 1.1.3
62 BuildRequires: mysql-devel >= 3.23.32
63 %{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
64 BuildRequires: pam-devel
65 BuildRequires: pdflib-devel >= 3.0
66 #BuildRequires: libxml-devel >= 2.0.0
67 BuildRequires: postgresql-devel
68 BuildRequires: recode-devel >= 3.5d-3
69 BuildRequires: t1lib-devel
70 %{!?bcond_off_odbc:BuildRequires: unixODBC-devel}
71 BuildRequires: zlib-devel >= 1.0.9
72 %{!?bcond_off_snmp:BuildRequires: ucd-snmp-devel >= 4.2.1}
73 BuildRequires: libmcrypt-devel >= 2.4.4
74 BuildRequires: mhash-devel
75 BuildRequires: bzip2-devel
76 BuildRequires: gmp-devel
77 BuildRequires: curl-devel
78 %if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
79 BuildRequires: openssl-devel >= 0.9.6
81 Requires: apache(EAPI) >= 1.3.9
83 Prereq: /usr/sbin/apxs
84 PreReq: %{name}-common = %{version}
85 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
88 %define _sysconfdir /etc/php
89 # check ZEND_MODULE_API_NO in Zend/modules.h
90 %define extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-20001214
93 PHP is an HTML-embedded scripting language. PHP attempts to make it
94 easy for developers to write dynamically generated web pages. PHP also
95 offers built-in database integration for several commercial and
96 non-commercial database management systems, so writing a
97 database-enabled web page with PHP is fairly simple. The most common
98 use of PHP coding is probably as a replacement for CGI scripts. The
99 mod_php module enables the Apache web server to understand and process
100 the embedded PHP language in web pages. This package contains PHP
101 version %{version}. If you use applications which specifically rely on
102 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
103 module contained in the phpfi package. If you're just starting with
104 PHP, you should install this package. You'll also need to install the
108 PHP est un langage de script embarque dans le HTM. PHP essaye de
109 rendre simple aux developpeurs d'ecrire des pages web generees
110 dynamiquement. PHP incorpore egalement une integration avec plusieurs
111 systemes de gestion de bases de donnees commerciaux et
112 non-connerciaux, qui rent facile la creation de pages web liees avec
113 des bases de donnees. L'utilisation la plus commune de PHP est
114 probablement en remplacement de scripts CGI. Le module mod_php permet
115 au serveur web apache de comprendre et de traiter le langage PHP
116 integre dans des pages web. Ce package contient PHP version
117 %{version}. Si vous utilisez des applications qui utilisent
118 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
119 dans le package mod_php. Si vous debutez avec PHP, vous devriez
120 installer ce package. Vous aurez egalement besoin d'installer le
124 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
125 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
126 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
127 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
128 zosta³a z jêzyków: C, Java i Perl.
131 Summary: PHP as CGI program
132 Summary(pl): PHP jako program CGI
135 Group(es): Bibliotecas
136 Group(fr): Librairies
137 Group(pl): Biblioteki
138 PreReq: %{name}-common = %{version}
143 %description cgi -l pl
144 PHP jako program CGI.
147 Summary: Common files nneded by both apache module and CGI
148 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
151 Group(es): Bibliotecas
152 Group(fr): Librairies
153 Group(pl): Biblioteki
156 Common files needed by both apache module and CGI.
158 %description common -l pl
159 Wspólne pliki dla modu³u apacha i programu CGI.
162 Summary: MySQL database module for PHP
163 Summary(pl): Modu³ bazy danych MySQL dla PHP
166 Group(es): Bibliotecas
167 Group(fr): Librairies
168 Group(pl): Biblioteki
169 PreReq: %{name}-common = %{version}
172 This is a dynamic shared object (DSO) for Apache that will add MySQL
173 database support to PHP. If you need back-end support for MySQL, you
174 should install this package in addition to the main %{name} package.
176 %description mysql -l pl
177 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
180 Summary: PostgreSQL database module for PHP
181 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
184 Group(es): Bibliotecas
185 Group(fr): Librairies
186 Group(pl): Biblioteki
187 PreReq: %{name}-common = %{version}
190 This is a dynamic shared object (DSO) for Apache that will add
191 PostgreSQL database support to PHP. If you need back-end support for
192 PostgreSQL, you should install this package in addition to the main
195 %description pgsql -l pl
196 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
199 Summary: Oracle 8 database module for PHP
200 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
203 Group(es): Bibliotecas
204 Group(fr): Librairies
205 Group(pl): Biblioteki
206 PreReq: %{name}-common = %{version}
210 This is a dynamic shared object (DSO) for Apache that will add Oracle
211 8 database support to PHP. If you need back-end support for Oracle 8,
212 you should install this package in addition to the main %{name}
215 %description oci8 -l pl
216 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
219 Summary: Oracle 7 database module for PHP
220 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
223 Group(es): Bibliotecas
224 Group(fr): Librairies
225 Group(pl): Biblioteki
226 PreReq: %{name}-common = %{version}
230 This is a dynamic shared object (DSO) for Apache that will add Oracle
231 7 database support to PHP. If you need back-end support for Oracle 7,
232 you should install this package in addition to the main %{name}
235 %description oracle -l pl
236 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
239 Summary: GD extension module for PHP
240 Summary: Modu³ GD dla PHP
243 Group(es): Bibliotecas
244 Group(fr): Librairies
245 Group(pl): Biblioteki
246 PreReq: %{name}-common = %{version}
249 This is a dynamic shared object (DSO) for Apache that will add GD
250 support to PHP. You should install this package in addition to the
251 main %{name} package if you want to create and manipulate images with
254 %description gd -l pl
255 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
256 obrazków z poziomu PHP.
259 Summary: Java extension module for PHP
260 Summary(pl): Modu³ Javy dla PHP
263 Group(es): Bibliotecas
264 Group(fr): Librairies
265 Group(pl): Biblioteki
266 PreReq: %{name}-common = %{version}
269 This is a dynamic shared object (DSO) for Apache that will add JAVA
270 support to PHP. This extension provides a simple and effective means
271 for creating and invoking methods on Java objects from PHP.
273 %description java -l pl
274 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
275 obiektów Javy z poziomu PHP.
278 Summary: XML extension module for PHP
279 Summary(pl): Modu³ XML dla PHP
282 Group(es): Bibliotecas
283 Group(fr): Librairies
284 Group(pl): Biblioteki
285 PreReq: %{name}-common = %{version}
288 This is a dynamic shared object (DSO) for Apache that will add XML
289 support to PHP. This extension lets you create XML parsers and then
290 define handlers for different XML events. If you want to be able to
291 parse XML documents you should install this package in addition to the
292 main %{name} package.
294 %description xml -l pl
295 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
296 zwi±zanych z tymi plikami.
299 Summary: DBA extension module for PHP
300 Summary(pl): Modu³ DBA dla PHP
303 Group(es): Bibliotecas
304 Group(fr): Librairies
305 Group(pl): Biblioteki
306 PreReq: %{name}-common = %{version}
309 This is a dynamic shared object (DSO) for Apache that will add
310 flat-file databases (DBA) support to PHP.
312 #%description dba -l pl
315 Summary: ODBC extension module for PHP
316 Summary(pl): Modu³ ODBC dla PHP
319 Group(es): Bibliotecas
320 Group(fr): Librairies
321 Group(pl): Biblioteki
322 PreReq: %{name}-common = %{version}
325 This is a dynamic shared object (DSO) for Apache that will add ODBC
328 %description odbc -l pl
329 Modu³ PHP ze wsparciem dla ODBC.
332 Summary: Calendar extension module for PHP
333 Summary(pl): Modu³ funkcji kalendarza dla PHP
336 Group(es): Bibliotecas
337 Group(fr): Librairies
338 Group(pl): Biblioteki
339 PreReq: %{name}-common = %{version}
341 %description calendar
342 This is a dynamic shared object (DSO) for Apache that will add
343 calendar support to PHP.
345 #%description calendar -l pl
348 Summary: DBase extension module for PHP
349 Summary(pl): Modu³ DBase dla PHP
352 Group(es): Bibliotecas
353 Group(fr): Librairies
354 Group(pl): Biblioteki
355 PreReq: %{name}-common = %{version}
358 This is a dynamic shared object (DSO) for Apache that will add DBase
361 %description dbase -l pl
362 Modu³ PHP ze wsparciem dla DBase.
365 Summary: FilePro extension module for PHP
366 Summary(pl): Modu³ FilePro dla PHP
369 Group(es): Bibliotecas
370 Group(fr): Librairies
371 Group(pl): Biblioteki
372 PreReq: %{name}-common = %{version}
375 This is a dynamic shared object (DSO) for Apache that will add FilePro
378 #%description filepro -l pl
381 Summary: POSIX extension module for PHP
382 Summary(pl): Modu³ POSIX dla PHP
385 Group(es): Bibliotecas
386 Group(fr): Librairies
387 Group(pl): Biblioteki
388 PreReq: %{name}-common = %{version}
391 This is a dynamic shared object (DSO) for Apache that will add POSIX
392 functions support to PHP.
394 %description posix -l pl
395 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
398 Summary: PCRE extension module for PHP
399 Summary(pl): Modu³ PCRE dla PHP
402 Group(es): Bibliotecas
403 Group(fr): Librairies
404 Group(pl): Biblioteki
405 PreReq: %{name}-common = %{version}
408 This is a dynamic shared object (DSO) for Apache that will add Perl
409 Compatible Regular Expression support to PHP.
411 %description pcre -l pl
412 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
413 (Perl Compatible Regular Expressions)
416 Summary: SysV sem extension module for PHP
417 Summary(pl): Modu³ SysV sem dla PHP
420 Group(es): Bibliotecas
421 Group(fr): Librairies
422 Group(pl): Biblioteki
423 PreReq: %{name}-common = %{version}
426 This is a dynamic shared object (DSO) for Apache that will add SysV
427 semafores support to PHP.
429 %description sysvsem -l pl
430 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
433 Summary: SysV shm extension module for PHP
434 Summary(pl): Modu³ SysV shm dla PHP
437 Group(es): Bibliotecas
438 Group(fr): Librairies
439 Group(pl): Biblioteki
440 PreReq: %{name}-common = %{version}
443 This is a dynamic shared object (DSO) for Apache that will add SysV
444 Shared Memory support to PHP.
446 %description sysvshm -l pl
447 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
450 Summary: NIS (yp) extension module for PHP
451 Summary(pl): Modu³ NIS (yp) dla PHP
454 Group(es): Bibliotecas
455 Group(fr): Librairies
456 Group(pl): Biblioteki
457 PreReq: %{name}-common = %{version}
460 This is a dynamic shared object (DSO) for Apache that will add NIS
461 (Yellow Pages) support to PHP.
463 #%description yp -l pl
466 Summary: bcmath extension module for PHP
467 Summary(pl): Modu³ bcmath dla PHP
470 Group(es): Bibliotecas
471 Group(fr): Librairies
472 Group(pl): Biblioteki
473 PreReq: %{name}-common = %{version}
476 This is a dynamic shared object (DSO) for Apache that will add bc
477 style precision math functions support to PHP.
479 %description bcmath -l pl
480 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
481 matematycznych takich jak w programie bc.
484 Summary: FTP extension module for PHP
485 Summary(pl): Modu³ FTP dla PHP
488 Group(es): Bibliotecas
489 Group(fr): Librairies
490 Group(pl): Biblioteki
491 PreReq: %{name}-common = %{version}
494 This is a dynamic shared object (DSO) for Apache that will add FTP
497 #%description ftp -l pl
500 Summary: Zlib extension module for PHP
501 Summary(pl): Modu³ zlib dla PHP
504 Group(es): Bibliotecas
505 Group(fr): Librairies
506 Group(pl): Biblioteki
507 PreReq: %{name}-common = %{version}
510 This is a dynamic shared object (DSO) for Apache that will add
511 compression (zlib) support to PHP.
513 %description zlib -l pl
514 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
517 Summary: exifextension module for PHP
518 Summary(pl): Modu³ exif dla PHP
521 Group(es): Bibliotecas
522 Group(fr): Librairies
523 Group(pl): Biblioteki
524 PreReq: %{name}-common = %{version}
527 This is a dynamic shared object (DSO) for Apache that will add exif
530 #%description exif -l pl
533 Summary: recodeextension module for PHP
534 Summary(pl): Modu³ recode dla PHP
537 Group(es): Bibliotecas
538 Group(fr): Librairies
539 Group(pl): Biblioteki
540 PreReq: %{name}-common = %{version}
541 Requires: recode >= 3.5d-3
544 This is a dynamic shared object (DSO) for Apache that will add recode
547 #%description recode -l pl
550 Summary: sessionextension module for PHP
551 Summary(pl): Modu³ session dla PHP
554 Group(es): Bibliotecas
555 Group(fr): Librairies
556 Group(pl): Biblioteki
557 PreReq: %{name}-common = %{version}
560 This is a dynamic shared object (DSO) for Apache that will add session
563 #%description session -l pl
566 Summary: gettextextension module for PHP
567 Summary(pl): Modu³ gettext dla PHP
570 Group(es): Bibliotecas
571 Group(fr): Librairies
572 Group(pl): Biblioteki
573 PreReq: %{name}-common = %{version}
576 This is a dynamic shared object (DSO) for Apache that will add gettext
579 #%description gettext -l pl
582 Summary: snmpextension module for PHP
583 Summary(pl): Modu³ snmp dla PHP
586 Group(es): Bibliotecas
587 Group(fr): Librairies
588 Group(pl): Biblioteki
589 PreReq: %{name}-common = %{version}
592 This is a dynamic shared object (DSO) for Apache that will add snmp
595 #%description snmp -l pl
598 Summary: imapextension module for PHP
599 Summary(pl): Modu³ imap dla PHP
602 Group(es): Bibliotecas
603 Group(fr): Librairies
604 Group(pl): Biblioteki
605 PreReq: %{name}-common = %{version}
608 This is a dynamic shared object (DSO) for Apache that will add imap
611 #%description imap -l pl
614 Summary: LDAP extension module for PHP
615 Summary(pl): Modu³ LDAP dla PHP
618 Group(es): Bibliotecas
619 Group(fr): Librairies
620 Group(pl): Biblioteki
621 PreReq: %{name}-common = %{version}
624 This is a dynamic shared object (DSO) for Apache that will add LDAP
627 #%description ldap -l pl
630 Summary: sockets extension module for PHP
631 Summary(pl): Modu³ socket dla PHP
634 Group(es): Bibliotecas
635 Group(fr): Librairies
636 Group(pl): Biblioteki
637 PreReq: %{name}-common = %{version}
640 This is a dynamic shared object (DSO) for Apache that will add sockets
643 #%description sockets -l pl
646 Summary: mcrypt extension module for PHP
647 Summary(pl): Modu³ mcrypt dla PHP
650 Group(es): Bibliotecas
651 Group(fr): Librairies
652 Group(pl): Biblioteki
653 PreReq: %{name}-common = %{version}
656 This is a dynamic shared object (DSO) for Apache that will add mcrypt
659 #%description mcrypt -l pl
662 Summary: mhash extension module for PHP
663 Summary(pl): Modu³ mhash dla PHP
666 Group(es): Bibliotecas
667 Group(fr): Librairies
668 Group(pl): Biblioteki
669 PreReq: %{name}-common = %{version}
672 This is a dynamic shared object (DSO) for Apache that will add mhash
675 #%description mhash -l pl
678 Summary: Online manual for PHP
679 Summary(pl): Dokumentacja dla PHP
680 Group: Networking/Daemons
681 Group(de): Netzwerkwesen/Server
682 Group(pl): Sieciowe/Serwery
685 Comprehensive documentation for PHP, viewable through your web server,
688 %description doc -l pl
689 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
694 Group: Development/Languages/PHP
700 Summary: Files for PHP modules development
701 Summary(pl): Pliki do kompilacji modu³ów PHP
702 Group: Development/Languages/PHP
703 Requires: %{name}-common = %{version}
706 Files for PHP modules development.
708 %description devel -l pl
709 Pliki potrzebne do kompilacji modu³ów PHP.
726 libtoolize --copy --force
727 CFLAGS="%{rpmcflags} -DEAPI -I/usr/X11R6/include"; export CFLAGS
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 \
744 --with-regex=system \
745 --with-gettext=shared \
746 %{!?bcond_off_ldap:--with-ldap=shared} \
747 --with-mysql=shared,/usr \
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,/usr \
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 \
800 --with-apxs=/usr/sbin/apxs \
801 --with-config-file-path=%{_sysconfdir} \
802 --with-exec-dir=%{_bindir} \
804 --enable-magic-quotes \
806 --enable-track-vars \
809 --enable-sysvsem=shared \
810 --enable-sysvshm=shared \
811 --enable-shmop=shared \
813 --enable-exif=shared \
814 --with-regex=system \
815 --with-gettext=shared \
816 %{!?bcond_off_ldap:--with-ldap=shared} \
817 --with-mysql=shared,/usr \
818 --with-mysql-sock=/var/lib/mysql/mysql.sock \
820 --enable-gd-imgstrttf \
821 --with-dbase=shared \
822 --with-filepro=shared \
823 --enable-ftp=shared \
825 --with-pdflib=shared \
826 --with-cpdflib=shared \
827 %{?bcond_on_java:--with-java} \
828 --with-pgsql=shared,/usr \
829 %{!?bcond_off_imap:--with-imap=shared} \
830 --enable-bcmath=shared \
831 --enable-calendar=shared \
833 --with-pcre-regex=shared \
834 --enable-posix=shared \
837 --with-recode=shared \
838 --enable-ucd-snmp-hack \
839 --enable-dba=shared \
840 %{!?bcond_off_snmp:--with-snmp=shared} \
845 --enable-xml=shared \
847 --with-mcrypt=shared \
848 --enable-sockets=shared \
850 --with-ctype=shared \
851 --with-mhash=shared \
854 %{?bcond_on_openssl:--with-openssl} \
855 %{!?bcond_off_odbc:--with-unixODBC=shared} \
856 %{?bcond_on_oracle:--with-oracle=shared} \
857 %{?bcond_on_oci8:--with-oci8=shared} \
860 # TODO --with-pspell=/usr,shared (pspell missing)
862 # --with-dom need libxml >= 2.2.7 \
867 rm -rf $RPM_BUILD_ROOT
868 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
869 $RPM_BUILD_ROOT/home/httpd/icons \
870 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
873 DESTDIR=$RPM_BUILD_ROOT \
874 INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
876 install php.cgi $RPM_BUILD_ROOT%{_bindir}/php
879 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
880 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
882 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
883 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
884 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
887 tar zxf %{SOURCE4} -C manual
888 ln -s manual.html manual/index.html
891 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
892 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
893 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
896 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
897 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
898 /etc/httpd/httpd.conf
899 if [ -f /var/lock/subsys/httpd ]; then
900 /etc/rc.d/init.d/httpd restart 1>&2
904 if [ "$1" = "0" ]; then
905 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
907 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
908 /etc/httpd/httpd.conf
909 if [ -f /var/lock/subsys/httpd ]; then
910 /etc/rc.d/init.d/httpd restart 1>&2
915 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
918 if [ "$1" = "0" ]; then
919 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
923 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
926 if [ "$1" = "0" ]; then
927 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
931 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
934 if [ "$1" = "0" ]; then
935 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
939 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
942 if [ "$1" = "0" ]; then
943 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
947 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
950 if [ "$1" = "0" ]; then
951 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
955 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
958 if [ "$1" = "0" ]; then
959 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
963 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
966 if [ "$1" = "0" ]; then
967 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
971 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
974 if [ "$1" = "0" ]; then
975 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
979 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
982 if [ "$1" = "0" ]; then
983 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
986 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
988 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
991 if [ "$1" = "0" ]; then
992 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
996 %if %{?bond_on_java:1}%{!?bond_on_java:0}
998 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
1001 if [ "$1" = "0" ]; then
1002 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
1006 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1008 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1011 if [ "$1" = "0" ]; then
1012 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1017 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1020 if [ "$1" = "0" ]; then
1021 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1025 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1028 if [ "$1" = "0" ]; then
1029 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1033 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1036 if [ "$1" = "0" ]; then
1037 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1040 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1042 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1045 if [ "$1" = "0" ]; then
1046 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1050 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1052 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1055 if [ "$1" = "0" ]; then
1056 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1060 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1062 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1065 if [ "$1" = "0" ]; then
1066 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1071 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1074 if [ "$1" = "0" ]; then
1075 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1079 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1082 if [ "$1" = "0" ]; then
1083 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1087 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1090 if [ "$1" = "0" ]; then
1091 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1095 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1098 if [ "$1" = "0" ]; then
1099 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1103 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1106 if [ "$1" = "0" ]; then
1107 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1110 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1112 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1115 if [ "$1" = "0" ]; then
1116 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1121 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1124 if [ "$1" = "0" ]; then
1125 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1129 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1132 if [ "$1" = "0" ]; then
1133 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1137 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1140 if [ "$1" = "0" ]; then
1141 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1145 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1148 if [ "$1" = "0" ]; then
1149 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1153 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1156 if [ "$1" = "0" ]; then
1157 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1161 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1164 if [ "$1" = "0" ]; then
1165 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1169 rm -rf $RPM_BUILD_ROOT
1172 %defattr(644,root,root,755)
1173 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1176 %defattr(644,root,root,755)
1177 %attr(755,root,root) %{_bindir}/php
1180 %defattr(644,root,root,755)
1181 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1182 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1183 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1187 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1191 %attr(755,root,root) %{_sbindir}/*
1194 %dir %{_libdir}/php/extensions
1195 %dir %{extensionsdir}
1198 %defattr(644,root,root,755)
1201 %attr(755,root,root) %{_bindir}/phpextdist
1202 %attr(755,root,root) %{_bindir}/phpize
1203 %attr(755,root,root) %{_bindir}/php-config
1206 %defattr(644,root,root,755)
1207 %attr(755,root,root) %{_bindir}/pear
1208 %{_libdir}/php/Benchmark
1209 %{_libdir}/php/Crypt
1217 %{_libdir}/php/Payment
1220 %{_libdir}/php/*.php
1223 %defattr(644,root,root,755)
1224 %attr(755,root,root) %{extensionsdir}/mysql.*
1227 %defattr(644,root,root,755)
1228 %attr(755,root,root) %{extensionsdir}/pgsql.so
1230 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1232 %defattr(644,root,root,755)
1233 %attr(755,root,root) %{extensionsdir}/oracle.so
1236 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1238 %defattr(644,root,root,755)
1239 %attr(755,root,root) %{extensionsdir}/oci8.so
1243 %defattr(644,root,root,755)
1244 %attr(755,root,root) %{extensionsdir}/gd.so
1247 %defattr(644,root,root,755)
1248 %attr(755,root,root) %{extensionsdir}/xml.so
1251 %defattr(644,root,root,755)
1252 %attr(755,root,root) %{extensionsdir}/dba.so
1255 %defattr(644,root,root,755)
1256 %attr(755,root,root) %{extensionsdir}/dbase.so
1259 %defattr(644,root,root,755)
1260 %attr(755,root,root) %{extensionsdir}/filepro.so
1263 %defattr(644,root,root,755)
1264 %attr(755,root,root) %{extensionsdir}/pcre.so
1267 %defattr(644,root,root,755)
1268 %attr(755,root,root) %{extensionsdir}/posix.so
1271 %defattr(644,root,root,755)
1272 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1275 %defattr(644,root,root,755)
1276 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1279 %defattr(644,root,root,755)
1280 %attr(755,root,root) %{extensionsdir}/yp.so
1283 %defattr(644,root,root,755)
1284 %attr(755,root,root) %{extensionsdir}/calendar.so
1287 %defattr(644,root,root,755)
1288 %attr(755,root,root) %{extensionsdir}/bcmath.so
1291 %defattr(644,root,root,755)
1292 %attr(755,root,root) %{extensionsdir}/ftp.so
1295 %defattr(644,root,root,755)
1296 %attr(755,root,root) %{extensionsdir}/zlib.so
1299 %defattr(644,root,root,755)
1300 %attr(755,root,root) %{extensionsdir}/exif.so
1303 %defattr(644,root,root,755)
1304 %attr(755,root,root) %{extensionsdir}/recode.so
1307 #%defattr(644,root,root,755)
1308 #%attr(755,root,root) %{extensionsdir}/session.so
1311 %defattr(644,root,root,755)
1312 %attr(755,root,root) %{extensionsdir}/gettext.so
1314 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
1316 %defattr(644,root,root,755)
1317 %attr(755,root,root) %{extensionsdir}/imap.so
1320 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1322 %defattr(644,root,root,755)
1323 %attr(755,root,root) %{extensionsdir}/snmp.so
1326 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1328 %defattr(644,root,root,755)
1329 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1332 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1334 %defattr(644,root,root,755)
1335 %attr(755,root,root) %{extensionsdir}/ldap.*
1339 %defattr(644,root,root,755)
1340 %attr(755,root,root) %{extensionsdir}/sockets.so
1343 %defattr(644,root,root,755)
1344 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1347 %defattr(644,root,root,755)
1348 %attr(755,root,root) %{extensionsdir}/mhash.so
1350 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1352 %defattr(644,root,root,755)
1353 %attr(755,root,root) %{extensionsdir}/odbc.so
1357 %defattr(644,root,root,755)