1 Summary: The PHP HTML-embedded scripting language for use with Apache.
2 Summary(fr): Le langage de script embarque-HTML PHP pour Apache.
3 Summary(pl): Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache.
11 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.gz
16 URL: http://www.php.net/
17 BuildRequires: apache(EAPI)-devel
18 BuildRequires: zlib-devel
19 BuildRequires: mysql-devel >= 3.22.30-2
20 BuildRequires: kaffe-devel
21 BuildRequires: libxml-devel >= 1.0.0
22 BuildRequires: gd-devel
23 Requires: apache(EAPI) >= 1.3.9
24 Prereq: /usr/sbin/apxs
25 BuildRoot: /tmp/%{name}-%{version}-root
27 %define _pkglibdir %{_libdir}/apache
30 PHP is an HTML-embedded scripting language. PHP attempts to make it easy
31 for developers to write dynamically generated web pages. PHP also offers
32 built-in database integration for several commercial and non-commercial
33 database management systems, so writing a database-enabled web page with
34 PHP is fairly simple. The most common use of PHP coding is probably as a
35 replacement for CGI scripts. The mod_php module enables the Apache web
36 server to understand and process the embedded PHP language in web pages.
37 This package contains PHP version %{version}. If you use applications which
38 specifically rely on PHP/FI (PHP v2 and earlier), you should instead install
39 the PHP/FI module contained in the phpfi package. If you're just starting
40 with PHP, you should install this package. You'll also need to install
41 the Apache web server.
44 PHP est un langage de script embarque dans le HTM. PHP essaye de rendre
45 simple aux developpeurs d'ecrire des pages web generees dynamiquement.
46 PHP incorpore egalement une integration avec plusieurs systemes de gestion
47 de bases de donnees commerciaux et non-connerciaux, qui rent facile
48 la creation de pages web liees avec des bases de donnees. L'utilisation la
49 plus commune de PHP est probablement en remplacement de scripts CGI. Le
50 module mod_php permet au serveur web apache de comprendre et de traiter le
51 langage PHP integre dans des pages web.
52 Ce package contient PHP version %{version}. Si vous utilisez des
53 applications qui utilisent specifiquement PHP/FI, vous devrez installer le
54 module PHP/FI inclus dans le package mod_php. Si vous debutez avec PHP, vous
55 devriez installer ce package. Vous aurez egalement besoin d'installer le
59 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w plikach
60 HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP (jak np.
61 Apache), który interpretuje te polecenia. Umo¿liwia to tworzenie
62 dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona zosta³a
63 z jêzyków: C, Java i Perl.
66 Summary: MySQL database module for PHP4
67 Summary(pl): Modu³ bazy danych MySQL dla PHP4
71 Requires: %{name} = %{version}
74 This is a dynamic shared object (DSO) for Apache that will add MySQL
75 database support to PHP4. If you need back-end support for MySQL,
76 you should install this package in addition to the main %{name} package.
78 %description mysql -l pl
81 Summary: GD extension module for PHP4
82 Summary: Modu³ GD dla PHP4
86 Requires: %{name} = %{version}
89 This is a dynamic shared object (DSO) for Apache that will add GD
90 support to PHP4. You should install this package in addition to the main
91 %{name} package if you want to create and manipulate images with PHP.
96 Summary: Java extension module for PHP4
97 Summary(pl): Modu³ Javy dla PHP4
100 Group(pl): Biblioteki
101 Requires: %{name} = %{version}
104 This is a dynamic shared object (DSO) for Apache that will add JAVA
105 support to PHP4. This extension provides a simple and effective means
106 for creating and invoking methods on Java objects from PHP.
108 %description java -l pl
111 Summary: XML extension module for PHP4
112 Summary(pl): Modu³ XML dla PHP4
114 Group(fr): Librairies
115 Group(pl): Biblioteki
116 Requires: %{name} = %{version}
119 This is a dynamic shared object (DSO) for Apache that will add XML
120 support to PHP4. This extension lets you create XML parsers and then
121 define handlers for different XML events. If you want to be able to parse
122 XML documents you should install this package in addition to the main
125 %description xml -l pl
131 LDFLAGS=""; export LDFLAGS
132 CFLAGS="$RPM_OPT_FLAGS -DEAPI"; export CFLAGS
135 --with-apxs=%{_sbindir}/apxs \
136 --with-config-file-path=%{_sysconfdir}/httpd \
137 --with-exec-dir=%{_bindir} \
139 --enable-magic-quotes \
141 --enable-track-vars \
146 --enable-xml=shared \
148 --with-regex=system \
150 --with-mysql=shared \
157 # --with-pgsql=shared
164 rm -rf $RPM_BUILD_ROOT
165 install -d $RPM_BUILD_ROOT{%{_pkglibdir}/php,%{_sysconfdir}/httpd} \
166 $RPM_BUILD_ROOT/home/httpd/html/icons
169 install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
170 install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
172 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/php.ini
173 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/html/icons
175 strip --strip-unneeded \
176 $RPM_BUILD_ROOT%{_pkglibdir}/*.so \
177 $RPM_BUILD_ROOT%{_pkglibdir}/php/*.so
180 gzip -9nf CODING_STANDARDS CREDITS FAQ* ChangeLog FUNCTION_LIST.txt \
181 MAINTAINERS MODULES_STATUS NEWS TODO*
184 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
185 if [ -f /var/lock/subsys/httpd ]; then
186 /etc/rc.d/init.d/httpd restart 1>&2
191 if [ "$1" = "0" ]; then
192 /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
193 if [ -f /var/lock/subsys/httpd ]; then
194 /etc/rc.d/init.d/httpd restart 1>&2
199 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
200 echo "activating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
201 perl -pi -e 's|^;extension=mysql.so|extension=mysql.so|g' \
202 %{_sysconfdir}/httpd/php.ini
204 if [ -f /var/lock/subsys/httpd ]; then
205 /etc/rc.d/init.d/httpd restart 1>&2
209 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
210 echo "deactivating module 'mysql.so' in /etc/httpd/php.ini" 1>&2
211 perl -pi -e 's|^extension=mysql.so|;extension=mysql.so|g' \
212 %{_sysconfdir}/httpd/php.ini
214 if [ -f /var/lock/subsys/httpd ]; then
215 /etc/rc.d/init.d/httpd restart 1>&2
219 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
220 echo "activating module 'gd.so' in /etc/httpd/php.ini" 1>&2
221 perl -pi -e 's|^;extension=gd.so|extension=gd.so|g' \
222 %{_sysconfdir}/httpd/php.ini
224 if [ -f /var/lock/subsys/httpd ]; then
225 /etc/rc.d/init.d/httpd restart 1>&2
229 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
230 echo "deactivating module 'gd.so' in /etc/httpd/php.ini" 1>&2
231 perl -pi -e 's|^extension=gd.so|;extension=gd.so|g' \
232 %{_sysconfdir}/httpd/php.ini
234 if [ -f /var/lock/subsys/httpd ]; then
235 /etc/rc.d/init.d/httpd restart 1>&2
239 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
240 echo "activating module 'xml.so' in /etc/httpd/php.ini" 1>&2
241 perl -pi -e 's|^;extension=xml.so|extension=xml.so|g' \
242 %{_sysconfdir}/httpd/php.ini
244 if [ -f /var/lock/subsys/httpd ]; then
245 /etc/rc.d/init.d/httpd restart 1>&2
249 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
250 echo "deactivating module 'xml.so' in /etc/httpd/php.ini" 1>&2
251 perl -pi -e 's|^extension=xml.so|;extension=xml.so|g' \
252 %{_sysconfdir}/httpd/php.ini
254 if [ -f /var/lock/subsys/httpd ]; then
255 /etc/rc.d/init.d/httpd restart 1>&2
259 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
260 echo "activating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
261 perl -pi -e 's|^;extension=libphp_java.so|extension=libphp_java.so|g' \
262 %{_sysconfdir}/httpd/php.ini
264 if [ -f /var/lock/subsys/httpd ]; then
265 /etc/rc.d/init.d/httpd restart 1>&2
269 if [ -f %{_sysconfdir}/httpd/php.ini ]; then
270 echo "deactivating module 'libphp_java.so' in /etc/httpd/php.ini" 1>&2
271 perl -pi -e 's|^extension=libphp_java.so|;extension=libphp_java.so|g' \
272 %{_sysconfdir}/httpd/php.ini
274 if [ -f /var/lock/subsys/httpd ]; then
275 /etc/rc.d/init.d/httpd restart 1>&2
279 rm -rf $RPM_BUILD_ROOT
282 %defattr(644,root,root,755)
283 %doc {CODING_STANDARDS,CREDITS,FAQ*,ChangeLog,FUNCTION_LIST.txt}.gz
284 %doc {MAINTAINERS,MODULES_STATUS,NEWS,TODO*}.gz
286 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/*
287 %dir %{_pkglibdir}/php
289 #%attr(755,root,root) %{_libdir}/apache/php/*.so
291 /home/httpd/html/icons/*
293 %attr(755,root,root) %{_pkglibdir}/libphp4.so
296 %defattr(644,root,root,755)
297 %attr(755,root,root) %{_pkglibdir}/php/mysql.so
300 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_pkglibdir}/php/gd.so
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_pkglibdir}/php/xml.so
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_pkglibdir}/php/libphp_java.so