3 # bcond_on_oracle - with oracle support
4 # bcond_on_oci8 - with oci8 support
5 # bcond_on_java - with Java support
6 # bcond_on_openssl - with OpenSSL support
7 # bcond_off_imap - without IMAP support
8 # bcond_off_ldap - without LDAP support
9 # bcond_off_odbc - without ODBC support
10 # bcond_off_snmp - without SNMP support
12 Summary: The PHP HTML-embedded scripting language for use with Apache
13 Summary(fr): Le langage de script embarque-HTML PHP pour Apache
14 Summary(pl): Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache
21 Group(es): Bibliotecas
24 License: The PHP license (see "LICENSE" file included in distribution)
25 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.gz
29 Source4: http://www.php.net/distributions/manual.tar.gz
30 Source5: php-module-install
31 Patch0: %{name}-imap.patch
32 Patch1: %{name}-mysql-socket.patch
33 Patch2: %{name}-mail.patch
34 Patch5: %{name}-no_libnsl.patch
35 Patch6: %{name}-DESTDIR.patch
36 Patch7: %{name}-gd-shared.patch
37 Patch8: %{name}-session-path.patch
38 Patch9: %{name}-libtool_version_check_fix.patch
40 URL: http://www.php.net/
41 BuildRequires: apache(EAPI)-devel
45 BuildRequires: db3-devel >= 3.1.17
46 BuildRequires: freetype1-devel
47 BuildRequires: gd-devel >= 1.8.3
48 BuildRequires: gdbm-devel
49 %{!?bcond_off_imap:BuildRequires: imap-devel >= 4.7b-1}
50 # I think jdk is better for java
52 %{?bcond_on_java:BuildRequires: kaffe-devel}
53 BuildRequires: libjpeg-devel
54 BuildRequires: libltdl-devel >= 1.4
55 BuildRequires: libpng >= 1.0.8
56 BuildRequires: libtiff-devel
57 BuildRequires: libtool
58 BuildRequires: mm-devel >= 1.1.3
59 BuildRequires: mysql-devel >= 3.23.32
60 %{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
61 BuildRequires: pam-devel
62 BuildRequires: pdflib-devel >= 3.03-3
63 #BuildRequires: libxml-devel >= 2.0.0
64 BuildRequires: postgresql-devel
65 BuildRequires: recode-devel >= 3.5d-3
66 BuildRequires: t1lib-devel
67 %{!?bcond_off_odbc:BuildRequires: unixODBC-devel}
68 BuildRequires: zlib-devel >= 1.0.9
69 %{!?bcond_off_snmp:BuildRequires: ucd-snmp-devel >= 4.2.1-8}
70 BuildRequires: libmcrypt-devel >= 2.4.4
71 BuildRequires: mhash-devel
72 BuildRequires: bzip2-devel
73 BuildRequires: gmp-devel
74 BuildRequires: curl-devel
75 %if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
76 BuildRequires: openssl-devel >= 0.9.6
78 Requires: apache(EAPI) >= 1.3.9
80 Prereq: /usr/sbin/apxs
81 PreReq: %{name}-common = %{version}
82 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-20001222
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
141 PHP jako program CGI.
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 needed 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}
538 Requires: recode >= 3.5d-3
541 This is a dynamic shared object (DSO) for Apache that will add recode
544 #%description recode -l pl
547 Summary: sessionextension module for PHP
548 Summary(pl): Modu³ session dla PHP
551 Group(es): Bibliotecas
552 Group(fr): Librairies
553 Group(pl): Biblioteki
554 PreReq: %{name}-common = %{version}
557 This is a dynamic shared object (DSO) for Apache that will add session
560 #%description session -l pl
563 Summary: gettextextension module for PHP
564 Summary(pl): Modu³ gettext dla PHP
567 Group(es): Bibliotecas
568 Group(fr): Librairies
569 Group(pl): Biblioteki
570 PreReq: %{name}-common = %{version}
573 This is a dynamic shared object (DSO) for Apache that will add gettext
576 #%description gettext -l pl
579 Summary: snmpextension module for PHP
580 Summary(pl): Modu³ snmp dla PHP
583 Group(es): Bibliotecas
584 Group(fr): Librairies
585 Group(pl): Biblioteki
586 PreReq: %{name}-common = %{version}
589 This is a dynamic shared object (DSO) for Apache that will add snmp
592 #%description snmp -l pl
595 Summary: imapextension module for PHP
596 Summary(pl): Modu³ imap dla PHP
599 Group(es): Bibliotecas
600 Group(fr): Librairies
601 Group(pl): Biblioteki
602 PreReq: %{name}-common = %{version}
605 This is a dynamic shared object (DSO) for Apache that will add imap
608 #%description imap -l pl
611 Summary: LDAP extension module for PHP
612 Summary(pl): Modu³ LDAP dla PHP
615 Group(es): Bibliotecas
616 Group(fr): Librairies
617 Group(pl): Biblioteki
618 PreReq: %{name}-common = %{version}
621 This is a dynamic shared object (DSO) for Apache that will add LDAP
624 #%description ldap -l pl
627 Summary: sockets extension module for PHP
628 Summary(pl): Modu³ socket dla PHP
631 Group(es): Bibliotecas
632 Group(fr): Librairies
633 Group(pl): Biblioteki
634 PreReq: %{name}-common = %{version}
637 This is a dynamic shared object (DSO) for Apache that will add sockets
640 #%description sockets -l pl
643 Summary: mcrypt extension module for PHP
644 Summary(pl): Modu³ mcrypt dla PHP
647 Group(es): Bibliotecas
648 Group(fr): Librairies
649 Group(pl): Biblioteki
650 PreReq: %{name}-common = %{version}
653 This is a dynamic shared object (DSO) for Apache that will add mcrypt
656 #%description mcrypt -l pl
659 Summary: mhash extension module for PHP
660 Summary(pl): Modu³ mhash dla PHP
663 Group(es): Bibliotecas
664 Group(fr): Librairies
665 Group(pl): Biblioteki
666 PreReq: %{name}-common = %{version}
669 This is a dynamic shared object (DSO) for Apache that will add mhash
672 #%description mhash -l pl
675 Summary: Online manual for PHP
676 Summary(pl): Dokumentacja dla PHP
677 Group: Networking/Daemons
678 Group(de): Netzwerkwesen/Server
679 Group(pl): Sieciowe/Serwery
682 Comprehensive documentation for PHP, viewable through your web server,
685 %description doc -l pl
686 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
691 Group: Development/Languages/PHP
697 Summary: Files for PHP modules development
698 Summary(pl): Pliki do kompilacji modu³ów PHP
699 Group: Development/Languages/PHP
700 Requires: %{name}-common = %{version}
703 Files for PHP modules development.
705 %description devel -l pl
706 Pliki potrzebne do kompilacji modu³ów PHP.
720 libtoolize --copy --force
721 CFLAGS="%{rpmcflags} -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/icons \
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/icons
878 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
881 tar zxf %{SOURCE4} -C manual
882 ln -s manual.html manual/index.html
885 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
886 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
887 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
890 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
891 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
892 /etc/httpd/httpd.conf
893 if [ -f /var/lock/subsys/httpd ]; then
894 /etc/rc.d/init.d/httpd restart 1>&2
898 if [ "$1" = "0" ]; then
899 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
901 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
902 /etc/httpd/httpd.conf
903 if [ -f /var/lock/subsys/httpd ]; then
904 /etc/rc.d/init.d/httpd restart 1>&2
909 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
912 if [ "$1" = "0" ]; then
913 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
917 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
920 if [ "$1" = "0" ]; then
921 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
925 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
928 if [ "$1" = "0" ]; then
929 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
933 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
936 if [ "$1" = "0" ]; then
937 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
941 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
944 if [ "$1" = "0" ]; then
945 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
949 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
952 if [ "$1" = "0" ]; then
953 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
957 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
960 if [ "$1" = "0" ]; then
961 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
965 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
968 if [ "$1" = "0" ]; then
969 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
973 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
976 if [ "$1" = "0" ]; then
977 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
980 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
982 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
985 if [ "$1" = "0" ]; then
986 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
990 %if %{?bond_on_java:1}%{!?bond_on_java:0}
992 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
995 if [ "$1" = "0" ]; then
996 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
1000 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1002 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1005 if [ "$1" = "0" ]; then
1006 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1011 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1014 if [ "$1" = "0" ]; then
1015 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1019 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1022 if [ "$1" = "0" ]; then
1023 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1027 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1030 if [ "$1" = "0" ]; then
1031 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1034 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1036 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1039 if [ "$1" = "0" ]; then
1040 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1044 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1046 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1049 if [ "$1" = "0" ]; then
1050 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1054 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1056 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1059 if [ "$1" = "0" ]; then
1060 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1065 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1068 if [ "$1" = "0" ]; then
1069 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1073 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1076 if [ "$1" = "0" ]; then
1077 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1081 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1084 if [ "$1" = "0" ]; then
1085 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1089 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1092 if [ "$1" = "0" ]; then
1093 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1097 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1100 if [ "$1" = "0" ]; then
1101 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1104 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1106 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1109 if [ "$1" = "0" ]; then
1110 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1115 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1118 if [ "$1" = "0" ]; then
1119 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1123 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1126 if [ "$1" = "0" ]; then
1127 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1131 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1134 if [ "$1" = "0" ]; then
1135 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1139 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1142 if [ "$1" = "0" ]; then
1143 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1147 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1150 if [ "$1" = "0" ]; then
1151 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1155 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1158 if [ "$1" = "0" ]; then
1159 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1163 rm -rf $RPM_BUILD_ROOT
1166 %defattr(644,root,root,755)
1167 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1170 %defattr(644,root,root,755)
1171 %attr(755,root,root) %{_bindir}/php
1174 %defattr(644,root,root,755)
1175 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1176 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1177 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1181 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1185 %attr(755,root,root) %{_sbindir}/*
1188 %dir %{_libdir}/php/extensions
1189 %dir %{extensionsdir}
1192 %defattr(644,root,root,755)
1195 %attr(755,root,root) %{_bindir}/phpextdist
1196 %attr(755,root,root) %{_bindir}/phpize
1197 %attr(755,root,root) %{_bindir}/php-config
1200 %defattr(644,root,root,755)
1201 %attr(755,root,root) %{_bindir}/pear
1202 %{_libdir}/php/Benchmark
1203 %{_libdir}/php/Crypt
1211 %{_libdir}/php/Payment
1214 %{_libdir}/php/*.php
1217 %defattr(644,root,root,755)
1218 %attr(755,root,root) %{extensionsdir}/mysql.*
1221 %defattr(644,root,root,755)
1222 %attr(755,root,root) %{extensionsdir}/pgsql.so
1224 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1226 %defattr(644,root,root,755)
1227 %attr(755,root,root) %{extensionsdir}/oracle.so
1230 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1232 %defattr(644,root,root,755)
1233 %attr(755,root,root) %{extensionsdir}/oci8.so
1237 %defattr(644,root,root,755)
1238 %attr(755,root,root) %{extensionsdir}/gd.so
1241 %defattr(644,root,root,755)
1242 %attr(755,root,root) %{extensionsdir}/xml.so
1245 %defattr(644,root,root,755)
1246 %attr(755,root,root) %{extensionsdir}/dba.so
1249 %defattr(644,root,root,755)
1250 %attr(755,root,root) %{extensionsdir}/dbase.so
1253 %defattr(644,root,root,755)
1254 %attr(755,root,root) %{extensionsdir}/filepro.so
1257 %defattr(644,root,root,755)
1258 %attr(755,root,root) %{extensionsdir}/pcre.so
1261 %defattr(644,root,root,755)
1262 %attr(755,root,root) %{extensionsdir}/posix.so
1265 %defattr(644,root,root,755)
1266 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1269 %defattr(644,root,root,755)
1270 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1273 %defattr(644,root,root,755)
1274 %attr(755,root,root) %{extensionsdir}/yp.so
1277 %defattr(644,root,root,755)
1278 %attr(755,root,root) %{extensionsdir}/calendar.so
1281 %defattr(644,root,root,755)
1282 %attr(755,root,root) %{extensionsdir}/bcmath.so
1285 %defattr(644,root,root,755)
1286 %attr(755,root,root) %{extensionsdir}/ftp.so
1289 %defattr(644,root,root,755)
1290 %attr(755,root,root) %{extensionsdir}/zlib.so
1293 %defattr(644,root,root,755)
1294 %attr(755,root,root) %{extensionsdir}/exif.so
1297 %defattr(644,root,root,755)
1298 %attr(755,root,root) %{extensionsdir}/recode.so
1301 #%defattr(644,root,root,755)
1302 #%attr(755,root,root) %{extensionsdir}/session.so
1305 %defattr(644,root,root,755)
1306 %attr(755,root,root) %{extensionsdir}/gettext.so
1308 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
1310 %defattr(644,root,root,755)
1311 %attr(755,root,root) %{extensionsdir}/imap.so
1314 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1316 %defattr(644,root,root,755)
1317 %attr(755,root,root) %{extensionsdir}/snmp.so
1320 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1322 %defattr(644,root,root,755)
1323 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1326 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1328 %defattr(644,root,root,755)
1329 %attr(755,root,root) %{extensionsdir}/ldap.*
1333 %defattr(644,root,root,755)
1334 %attr(755,root,root) %{extensionsdir}/sockets.so
1337 %defattr(644,root,root,755)
1338 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1341 %defattr(644,root,root,755)
1342 %attr(755,root,root) %{extensionsdir}/mhash.so
1344 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1346 %defattr(644,root,root,755)
1347 %attr(755,root,root) %{extensionsdir}/odbc.so
1351 %defattr(644,root,root,755)