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: freetype-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
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.5
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.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)
85 %define _sysconfdir /etc/php
86 # check ZEND_MODULE_API_NO in Zend/modules.h
87 %define extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-20001214
90 PHP is an HTML-embedded scripting language. PHP attempts to make it
91 easy for developers to write dynamically generated web pages. PHP also
92 offers built-in database integration for several commercial and
93 non-commercial database management systems, so writing a
94 database-enabled web page with PHP is fairly simple. The most common
95 use of PHP coding is probably as a replacement for CGI scripts. The
96 mod_php module enables the Apache web server to understand and process
97 the embedded PHP language in web pages. This package contains PHP
98 version %{version}. If you use applications which specifically rely on
99 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
100 module contained in the phpfi package. If you're just starting with
101 PHP, you should install this package. You'll also need to install the
105 PHP est un langage de script embarque dans le HTM. PHP essaye de
106 rendre simple aux developpeurs d'ecrire des pages web generees
107 dynamiquement. PHP incorpore egalement une integration avec plusieurs
108 systemes de gestion de bases de donnees commerciaux et
109 non-connerciaux, qui rent facile la creation de pages web liees avec
110 des bases de donnees. L'utilisation la plus commune de PHP est
111 probablement en remplacement de scripts CGI. Le module mod_php permet
112 au serveur web apache de comprendre et de traiter le langage PHP
113 integre dans des pages web. Ce package contient PHP version
114 %{version}. Si vous utilisez des applications qui utilisent
115 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
116 dans le package mod_php. Si vous debutez avec PHP, vous devriez
117 installer ce package. Vous aurez egalement besoin d'installer le
121 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
122 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
123 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
124 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
125 zosta³a z jêzyków: C, Java i Perl.
128 Summary: PHP as CGI program
129 Summary(pl): PHP jako program CGI
132 Group(es): Bibliotecas
133 Group(fr): Librairies
134 Group(pl): Biblioteki
135 PreReq: %{name}-common = %{version}
140 %description cgi -l pl
144 Summary: Common files nneded by both apache module and CGI
145 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
148 Group(es): Bibliotecas
149 Group(fr): Librairies
150 Group(pl): Biblioteki
153 Common files nneded by both apache module and CGI
155 %description common -l pl
156 Wspólne pliki dla modu³u apacha i programu CGI
159 Summary: MySQL database module for PHP
160 Summary(pl): Modu³ bazy danych MySQL dla PHP
163 Group(es): Bibliotecas
164 Group(fr): Librairies
165 Group(pl): Biblioteki
166 PreReq: %{name}-common = %{version}
169 This is a dynamic shared object (DSO) for Apache that will add MySQL
170 database support to PHP. If you need back-end support for MySQL, you
171 should install this package in addition to the main %{name} package.
173 %description mysql -l pl
174 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
177 Summary: PostgreSQL database module for PHP
178 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
181 Group(es): Bibliotecas
182 Group(fr): Librairies
183 Group(pl): Biblioteki
184 PreReq: %{name}-common = %{version}
187 This is a dynamic shared object (DSO) for Apache that will add
188 PostgreSQL database support to PHP. If you need back-end support for
189 PostgreSQL, you should install this package in addition to the main
192 %description pgsql -l pl
193 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
196 Summary: Oracle 8 database module for PHP
197 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
200 Group(es): Bibliotecas
201 Group(fr): Librairies
202 Group(pl): Biblioteki
203 PreReq: %{name}-common = %{version}
207 This is a dynamic shared object (DSO) for Apache that will add Oracle
208 8 database support to PHP. If you need back-end support for Oracle 8,
209 you should install this package in addition to the main %{name}
212 %description oci8 -l pl
213 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
216 Summary: Oracle 7 database module for PHP
217 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
220 Group(es): Bibliotecas
221 Group(fr): Librairies
222 Group(pl): Biblioteki
223 PreReq: %{name}-common = %{version}
227 This is a dynamic shared object (DSO) for Apache that will add Oracle
228 7 database support to PHP. If you need back-end support for Oracle 7,
229 you should install this package in addition to the main %{name}
232 %description oracle -l pl
233 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
236 Summary: GD extension module for PHP
237 Summary: Modu³ GD dla PHP
240 Group(es): Bibliotecas
241 Group(fr): Librairies
242 Group(pl): Biblioteki
243 PreReq: %{name}-common = %{version}
246 This is a dynamic shared object (DSO) for Apache that will add GD
247 support to PHP. You should install this package in addition to the
248 main %{name} package if you want to create and manipulate images with
251 %description gd -l pl
252 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
253 obrazków z poziomu PHP.
256 Summary: Java extension module for PHP
257 Summary(pl): Modu³ Javy dla PHP
260 Group(es): Bibliotecas
261 Group(fr): Librairies
262 Group(pl): Biblioteki
263 PreReq: %{name}-common = %{version}
266 This is a dynamic shared object (DSO) for Apache that will add JAVA
267 support to PHP. This extension provides a simple and effective means
268 for creating and invoking methods on Java objects from PHP.
270 %description java -l pl
271 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
272 obiektów Javy z poziomu PHP.
275 Summary: XML extension module for PHP
276 Summary(pl): Modu³ XML dla PHP
279 Group(es): Bibliotecas
280 Group(fr): Librairies
281 Group(pl): Biblioteki
282 PreReq: %{name}-common = %{version}
285 This is a dynamic shared object (DSO) for Apache that will add XML
286 support to PHP. This extension lets you create XML parsers and then
287 define handlers for different XML events. If you want to be able to
288 parse XML documents you should install this package in addition to the
289 main %{name} package.
291 %description xml -l pl
292 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
293 zwi±zanych z tymi plikami.
296 Summary: DBA extension module for PHP
297 Summary(pl): Modu³ DBA dla PHP
300 Group(es): Bibliotecas
301 Group(fr): Librairies
302 Group(pl): Biblioteki
303 PreReq: %{name}-common = %{version}
306 This is a dynamic shared object (DSO) for Apache that will add
307 flat-file databases (DBA) support to PHP.
309 #%description dba -l pl
312 Summary: ODBC extension module for PHP
313 Summary(pl): Modu³ ODBC dla PHP
316 Group(es): Bibliotecas
317 Group(fr): Librairies
318 Group(pl): Biblioteki
319 PreReq: %{name}-common = %{version}
322 This is a dynamic shared object (DSO) for Apache that will add ODBC
325 %description odbc -l pl
326 Modu³ PHP ze wsparciem dla ODBC.
329 Summary: Calendar extension module for PHP
330 Summary(pl): Modu³ funkcji kalendarza dla PHP
333 Group(es): Bibliotecas
334 Group(fr): Librairies
335 Group(pl): Biblioteki
336 PreReq: %{name}-common = %{version}
338 %description calendar
339 This is a dynamic shared object (DSO) for Apache that will add
340 calendar support to PHP.
342 #%description calendar -l pl
345 Summary: DBase extension module for PHP
346 Summary(pl): Modu³ DBase dla PHP
349 Group(es): Bibliotecas
350 Group(fr): Librairies
351 Group(pl): Biblioteki
352 PreReq: %{name}-common = %{version}
355 This is a dynamic shared object (DSO) for Apache that will add DBase
358 %description dbase -l pl
359 Modu³ PHP ze wsparciem dla DBase.
362 Summary: FilePro extension module for PHP
363 Summary(pl): Modu³ FilePro dla PHP
366 Group(es): Bibliotecas
367 Group(fr): Librairies
368 Group(pl): Biblioteki
369 PreReq: %{name}-common = %{version}
372 This is a dynamic shared object (DSO) for Apache that will add FilePro
375 #%description filepro -l pl
378 Summary: POSIX extension module for PHP
379 Summary(pl): Modu³ POSIX dla PHP
382 Group(es): Bibliotecas
383 Group(fr): Librairies
384 Group(pl): Biblioteki
385 PreReq: %{name}-common = %{version}
388 This is a dynamic shared object (DSO) for Apache that will add POSIX
389 functions support to PHP.
391 %description posix -l pl
392 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
395 Summary: PCRE extension module for PHP
396 Summary(pl): Modu³ PCRE dla PHP
399 Group(es): Bibliotecas
400 Group(fr): Librairies
401 Group(pl): Biblioteki
402 PreReq: %{name}-common = %{version}
405 This is a dynamic shared object (DSO) for Apache that will add Perl
406 Compatible Regular Expression support to PHP.
408 %description pcre -l pl
409 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
410 (Perl Compatible Regular Expressions)
413 Summary: SysV sem extension module for PHP
414 Summary(pl): Modu³ SysV sem dla PHP
417 Group(es): Bibliotecas
418 Group(fr): Librairies
419 Group(pl): Biblioteki
420 PreReq: %{name}-common = %{version}
423 This is a dynamic shared object (DSO) for Apache that will add SysV
424 semafores support to PHP.
426 %description sysvsem -l pl
427 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
430 Summary: SysV shm extension module for PHP
431 Summary(pl): Modu³ SysV shm dla PHP
434 Group(es): Bibliotecas
435 Group(fr): Librairies
436 Group(pl): Biblioteki
437 PreReq: %{name}-common = %{version}
440 This is a dynamic shared object (DSO) for Apache that will add SysV
441 Shared Memory support to PHP.
443 %description sysvshm -l pl
444 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
447 Summary: NIS (yp) extension module for PHP
448 Summary(pl): Modu³ NIS (yp) dla PHP
451 Group(es): Bibliotecas
452 Group(fr): Librairies
453 Group(pl): Biblioteki
454 PreReq: %{name}-common = %{version}
457 This is a dynamic shared object (DSO) for Apache that will add NIS
458 (Yellow Pages) support to PHP.
460 #%description yp -l pl
463 Summary: bcmath extension module for PHP
464 Summary(pl): Modu³ bcmath dla PHP
467 Group(es): Bibliotecas
468 Group(fr): Librairies
469 Group(pl): Biblioteki
470 PreReq: %{name}-common = %{version}
473 This is a dynamic shared object (DSO) for Apache that will add bc
474 style precision math functions support to PHP.
476 %description bcmath -l pl
477 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
478 matematycznych takich jak w programie bc.
481 Summary: FTP extension module for PHP
482 Summary(pl): Modu³ FTP dla PHP
485 Group(es): Bibliotecas
486 Group(fr): Librairies
487 Group(pl): Biblioteki
488 PreReq: %{name}-common = %{version}
491 This is a dynamic shared object (DSO) for Apache that will add FTP
494 #%description ftp -l pl
497 Summary: Zlib extension module for PHP
498 Summary(pl): Modu³ zlib dla PHP
501 Group(es): Bibliotecas
502 Group(fr): Librairies
503 Group(pl): Biblioteki
504 PreReq: %{name}-common = %{version}
507 This is a dynamic shared object (DSO) for Apache that will add
508 compression (zlib) support to PHP.
510 %description zlib -l pl
511 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
514 Summary: exifextension module for PHP
515 Summary(pl): Modu³ exif dla PHP
518 Group(es): Bibliotecas
519 Group(fr): Librairies
520 Group(pl): Biblioteki
521 PreReq: %{name}-common = %{version}
524 This is a dynamic shared object (DSO) for Apache that will add exif
527 #%description exif -l pl
530 Summary: recodeextension module for PHP
531 Summary(pl): Modu³ recode dla PHP
534 Group(es): Bibliotecas
535 Group(fr): Librairies
536 Group(pl): Biblioteki
537 PreReq: %{name}-common = %{version}
540 This is a dynamic shared object (DSO) for Apache that will add recode
543 #%description recode -l pl
546 Summary: sessionextension module for PHP
547 Summary(pl): Modu³ session dla PHP
550 Group(es): Bibliotecas
551 Group(fr): Librairies
552 Group(pl): Biblioteki
553 PreReq: %{name}-common = %{version}
556 This is a dynamic shared object (DSO) for Apache that will add session
559 #%description session -l pl
562 Summary: gettextextension module for PHP
563 Summary(pl): Modu³ gettext dla PHP
566 Group(es): Bibliotecas
567 Group(fr): Librairies
568 Group(pl): Biblioteki
569 PreReq: %{name}-common = %{version}
572 This is a dynamic shared object (DSO) for Apache that will add gettext
575 #%description gettext -l pl
578 Summary: snmpextension module for PHP
579 Summary(pl): Modu³ snmp dla PHP
582 Group(es): Bibliotecas
583 Group(fr): Librairies
584 Group(pl): Biblioteki
585 PreReq: %{name}-common = %{version}
588 This is a dynamic shared object (DSO) for Apache that will add snmp
591 #%description snmp -l pl
594 Summary: imapextension module for PHP
595 Summary(pl): Modu³ imap dla PHP
598 Group(es): Bibliotecas
599 Group(fr): Librairies
600 Group(pl): Biblioteki
601 PreReq: %{name}-common = %{version}
604 This is a dynamic shared object (DSO) for Apache that will add imap
607 #%description imap -l pl
610 Summary: LDAP extension module for PHP
611 Summary(pl): Modu³ LDAP dla PHP
614 Group(es): Bibliotecas
615 Group(fr): Librairies
616 Group(pl): Biblioteki
617 PreReq: %{name}-common = %{version}
620 This is a dynamic shared object (DSO) for Apache that will add LDAP
623 #%description ldap -l pl
626 Summary: sockets extension module for PHP
627 Summary(pl): Modu³ socket dla PHP
630 Group(es): Bibliotecas
631 Group(fr): Librairies
632 Group(pl): Biblioteki
633 PreReq: %{name}-common = %{version}
636 This is a dynamic shared object (DSO) for Apache that will add sockets
639 #%description sockets -l pl
642 Summary: mcrypt extension module for PHP
643 Summary(pl): Modu³ mcrypt dla PHP
646 Group(es): Bibliotecas
647 Group(fr): Librairies
648 Group(pl): Biblioteki
649 PreReq: %{name}-common = %{version}
652 This is a dynamic shared object (DSO) for Apache that will add mcrypt
655 #%description mcrypt -l pl
658 Summary: mhash extension module for PHP
659 Summary(pl): Modu³ mhash dla PHP
662 Group(es): Bibliotecas
663 Group(fr): Librairies
664 Group(pl): Biblioteki
665 PreReq: %{name}-common = %{version}
668 This is a dynamic shared object (DSO) for Apache that will add mhash
671 #%description mcrypt -l pl
674 Summary: Online manual for PHP
675 Summary(pl): Dokumentacja dla PHP
676 Group: Networking/Daemons
677 Group(de): Netzwerkwesen/Server
678 Group(pl): Sieciowe/Serwery
681 Comprehensive documentation for PHP, viewable through your web server,
684 %description doc -l pl
685 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
690 Group: Development/Languages/PHP
696 Summary: Files for PHP modules development
697 Summary(pl): Pliki do kompilacji modu³ów PHP
698 Group: Development/Languages/PHP
699 Requires: %{name}-common = %{version}
702 Files for PHP modules development.
704 %description devel -l pl
705 Pliki potrzebne do kompilacji modu³ów PHP.
721 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
724 --enable-discard-path \
725 --with-config-file-path=%{_sysconfdir} \
726 --with-exec-dir=%{_bindir} \
728 --enable-magic-quotes \
730 --enable-track-vars \
733 --enable-sysvsem=shared \
734 --enable-sysvshm=shared \
735 --enable-shmop=shared \
737 --enable-exif=shared \
738 --with-regex=system \
739 --with-gettext=shared \
740 %{!?bcond_off_ldap:--with-ldap=shared} \
741 --with-mysql=shared,/usr \
742 --with-mysql-sock=/var/lib/mysql/mysql.sock \
744 --enable-gd-imgstrttf \
745 --with-dbase=shared \
746 --with-filepro=shared \
747 --enable-ftp=shared \
749 --with-pdflib=shared \
750 --with-cpdflib=shared \
751 %{?bcond_on_java:--with-java} \
752 --with-pgsql=shared,/usr \
753 %{!?bcond_off_imap:--with-imap=shared} \
754 --enable-bcmath=shared \
755 --enable-calendar=shared \
757 --with-pcre-regex=shared \
758 --enable-posix=shared \
761 --with-recode=shared \
762 --enable-ucd-snmp-hack \
763 --enable-dba=shared \
764 %{!?bcond_off_snmp:--with-snmp=shared} \
769 --enable-xml=shared \
771 --with-mcrypt=shared \
772 --enable-sockets=shared \
774 --with-ctype=shared \
775 --with-mhash=shared \
778 %{?bcond_on_openssl:--with-openssl} \
779 %{!?bcond_off_odbc:--with-unixODBC=shared} \
780 %{?bcond_on_oracle:--with-oracle=shared} \
781 %{?bcond_on_oci8:--with-oci8=shared} \
784 # TODO --with-pspell=/usr,shared (pspell missing)
786 # --with-dom need libxml >= 2.2.7 \
794 --with-apxs=/usr/sbin/apxs \
795 --with-config-file-path=%{_sysconfdir} \
796 --with-exec-dir=%{_bindir} \
798 --enable-magic-quotes \
800 --enable-track-vars \
803 --enable-sysvsem=shared \
804 --enable-sysvshm=shared \
805 --enable-shmop=shared \
807 --enable-exif=shared \
808 --with-regex=system \
809 --with-gettext=shared \
810 %{!?bcond_off_ldap:--with-ldap=shared} \
811 --with-mysql=shared,/usr \
812 --with-mysql-sock=/var/lib/mysql/mysql.sock \
814 --enable-gd-imgstrttf \
815 --with-dbase=shared \
816 --with-filepro=shared \
817 --enable-ftp=shared \
819 --with-pdflib=shared \
820 --with-cpdflib=shared \
821 %{?bcond_on_java:--with-java} \
822 --with-pgsql=shared,/usr \
823 %{!?bcond_off_imap:--with-imap=shared} \
824 --enable-bcmath=shared \
825 --enable-calendar=shared \
827 --with-pcre-regex=shared \
828 --enable-posix=shared \
831 --with-recode=shared \
832 --enable-ucd-snmp-hack \
833 --enable-dba=shared \
834 %{!?bcond_off_snmp:--with-snmp=shared} \
839 --enable-xml=shared \
841 --with-mcrypt=shared \
842 --enable-sockets=shared \
844 --with-ctype=shared \
845 --with-mhash=shared \
848 %{?bcond_on_openssl:--with-openssl} \
849 %{!?bcond_off_odbc:--with-unixODBC=shared} \
850 %{?bcond_on_oracle:--with-oracle=shared} \
851 %{?bcond_on_oci8:--with-oci8=shared} \
854 # TODO --with-pspell=/usr,shared (pspell missing)
856 # --with-dom need libxml >= 2.2.7 \
861 rm -rf $RPM_BUILD_ROOT
862 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
863 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc} \
864 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
867 DESTDIR=$RPM_BUILD_ROOT \
868 INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
870 install php.cgi $RPM_BUILD_ROOT%{_bindir}/php
873 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
874 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
876 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
877 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
878 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
880 tar zxf %{SOURCE4} -C $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
881 ln -s manual.html $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc/index.html
884 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
885 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
886 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
889 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
890 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
891 /etc/httpd/httpd.conf
892 if [ -f /var/lock/subsys/httpd ]; then
893 /etc/rc.d/init.d/httpd restart 1>&2
897 if [ "$1" = "0" ]; then
898 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
900 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
901 /etc/httpd/httpd.conf
902 if [ -f /var/lock/subsys/httpd ]; then
903 /etc/rc.d/init.d/httpd restart 1>&2
908 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
911 if [ "$1" = "0" ]; then
912 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
916 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
919 if [ "$1" = "0" ]; then
920 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
924 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
927 if [ "$1" = "0" ]; then
928 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
932 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
935 if [ "$1" = "0" ]; then
936 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
940 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
943 if [ "$1" = "0" ]; then
944 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
948 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
951 if [ "$1" = "0" ]; then
952 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
956 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
959 if [ "$1" = "0" ]; then
960 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
964 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
967 if [ "$1" = "0" ]; then
968 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
972 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
975 if [ "$1" = "0" ]; then
976 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
979 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
981 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
984 if [ "$1" = "0" ]; then
985 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
989 %if %{?bond_on_java:1}%{!?bond_on_java:0}
991 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
994 if [ "$1" = "0" ]; then
995 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
999 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1001 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1004 if [ "$1" = "0" ]; then
1005 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1010 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1013 if [ "$1" = "0" ]; then
1014 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1018 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1021 if [ "$1" = "0" ]; then
1022 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1026 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1029 if [ "$1" = "0" ]; then
1030 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1033 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1035 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1038 if [ "$1" = "0" ]; then
1039 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1043 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1045 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1048 if [ "$1" = "0" ]; then
1049 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1053 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1055 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1058 if [ "$1" = "0" ]; then
1059 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1064 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1067 if [ "$1" = "0" ]; then
1068 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1072 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1075 if [ "$1" = "0" ]; then
1076 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1080 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1083 if [ "$1" = "0" ]; then
1084 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1088 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1091 if [ "$1" = "0" ]; then
1092 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1096 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1099 if [ "$1" = "0" ]; then
1100 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1103 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1105 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1108 if [ "$1" = "0" ]; then
1109 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1114 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1117 if [ "$1" = "0" ]; then
1118 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1122 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1125 if [ "$1" = "0" ]; then
1126 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1130 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1133 if [ "$1" = "0" ]; then
1134 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1138 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1141 if [ "$1" = "0" ]; then
1142 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1146 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1149 if [ "$1" = "0" ]; then
1150 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1154 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1157 if [ "$1" = "0" ]; then
1158 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1162 rm -rf $RPM_BUILD_ROOT
1165 %defattr(644,root,root,755)
1166 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1169 %defattr(644,root,root,755)
1170 %attr(755,root,root) %{_bindir}/php
1173 %defattr(644,root,root,755)
1174 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1175 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1176 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1178 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1180 /home/httpd/html/icons/*
1182 %attr(755,root,root) %{_sbindir}/*
1185 %dir %{_libdir}/php/extensions
1186 %dir %{extensionsdir}
1189 %defattr(644,root,root,755)
1192 %attr(755,root,root) %{_bindir}/phpextdist
1193 %attr(755,root,root) %{_bindir}/phpize
1194 %attr(755,root,root) %{_bindir}/php-config
1197 %defattr(644,root,root,755)
1198 %attr(755,root,root) %{_bindir}/pear
1199 %{_libdir}/php/Benchmark
1200 %{_libdir}/php/Crypt
1208 %{_libdir}/php/Payment
1211 %{_libdir}/php/*.php
1214 %defattr(644,root,root,755)
1215 %attr(755,root,root) %{extensionsdir}/mysql.*
1218 %defattr(644,root,root,755)
1219 %attr(755,root,root) %{extensionsdir}/pgsql.so
1221 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1223 %defattr(644,root,root,755)
1224 %attr(755,root,root) %{extensionsdir}/oracle.so
1227 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1229 %defattr(644,root,root,755)
1230 %attr(755,root,root) %{extensionsdir}/oci8.so
1234 %defattr(644,root,root,755)
1235 %attr(755,root,root) %{extensionsdir}/gd.so
1238 %defattr(644,root,root,755)
1239 %attr(755,root,root) %{extensionsdir}/xml.so
1242 %defattr(644,root,root,755)
1243 %attr(755,root,root) %{extensionsdir}/dba.so
1246 %defattr(644,root,root,755)
1247 %attr(755,root,root) %{extensionsdir}/dbase.so
1250 %defattr(644,root,root,755)
1251 %attr(755,root,root) %{extensionsdir}/filepro.so
1254 %defattr(644,root,root,755)
1255 %attr(755,root,root) %{extensionsdir}/pcre.so
1258 %defattr(644,root,root,755)
1259 %attr(755,root,root) %{extensionsdir}/posix.so
1262 %defattr(644,root,root,755)
1263 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1266 %defattr(644,root,root,755)
1267 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1270 %defattr(644,root,root,755)
1271 %attr(755,root,root) %{extensionsdir}/yp.so
1274 %defattr(644,root,root,755)
1275 %attr(755,root,root) %{extensionsdir}/calendar.so
1278 %defattr(644,root,root,755)
1279 %attr(755,root,root) %{extensionsdir}/bcmath.so
1282 %defattr(644,root,root,755)
1283 %attr(755,root,root) %{extensionsdir}/ftp.so
1286 %defattr(644,root,root,755)
1287 %attr(755,root,root) %{extensionsdir}/zlib.so
1290 %defattr(644,root,root,755)
1291 %attr(755,root,root) %{extensionsdir}/exif.so
1294 %defattr(644,root,root,755)
1295 %attr(755,root,root) %{extensionsdir}/recode.so
1298 #%defattr(644,root,root,755)
1299 #%attr(755,root,root) %{extensionsdir}/session.so
1302 %defattr(644,root,root,755)
1303 %attr(755,root,root) %{extensionsdir}/gettext.so
1305 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
1307 %defattr(644,root,root,755)
1308 %attr(755,root,root) %{extensionsdir}/imap.so
1311 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1313 %defattr(644,root,root,755)
1314 %attr(755,root,root) %{extensionsdir}/snmp.so
1317 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1319 %defattr(644,root,root,755)
1320 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1323 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1325 %defattr(644,root,root,755)
1326 %attr(755,root,root) %{extensionsdir}/ldap.*
1330 %defattr(644,root,root,755)
1331 %attr(755,root,root) %{extensionsdir}/sockets.so
1334 %defattr(644,root,root,755)
1335 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1338 %defattr(644,root,root,755)
1339 %attr(755,root,root) %{extensionsdir}/mhash.so
1341 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1343 %defattr(644,root,root,755)
1344 %attr(755,root,root) %{extensionsdir}/odbc.so
1348 %defattr(644,root,root,755)
1349 /home/httpd/html/docs/php4-doc