Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-License: The PHP license (see "LICENSE" file included in distribution)
+License: The PHP license (see "LICENSE" file included in distribution)
Source0: http://www.php.net/version4/downloads/%{name}-%{version}.tar.gz
Source1: FAQ.php
Source2: php.ini
BuildRequires: gdbm-devel
BuildRequires: imap-devel >= 4.7b-1
# I think jdk is better for java
-# BuildRequires: jdk
+# BuildRequires: jdk
BuildRequires: kaffe-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
%define _pkglibdir %{_libdir}/apache
%description
-PHP is an HTML-embedded scripting language. PHP attempts to make it easy
-for developers to write dynamically generated web pages. PHP also offers
-built-in database integration for several commercial and non-commercial
-database management systems, so writing a database-enabled web page with
-PHP is fairly simple. The most common use of PHP coding is probably as a
-replacement for CGI scripts. The mod_php module enables the Apache web
-server to understand and process the embedded PHP language in web pages.
-This package contains PHP version %{version}. If you use applications which
-specifically rely on PHP/FI (PHP v2 and earlier), you should instead install
-the PHP/FI module contained in the phpfi package. If you're just starting
-with PHP, you should install this package. You'll also need to install
-the Apache web server.
+PHP is an HTML-embedded scripting language. PHP attempts to make it
+easy for developers to write dynamically generated web pages. PHP also
+offers built-in database integration for several commercial and
+non-commercial database management systems, so writing a
+database-enabled web page with PHP is fairly simple. The most common
+use of PHP coding is probably as a replacement for CGI scripts. The
+mod_php module enables the Apache web server to understand and process
+the embedded PHP language in web pages. This package contains PHP
+version %{version}. If you use applications which specifically rely on
+PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
+module contained in the phpfi package. If you're just starting with
+PHP, you should install this package. You'll also need to install the
+Apache web server.
%description -l fr
-PHP est un langage de script embarque dans le HTM. PHP essaye de rendre
-simple aux developpeurs d'ecrire des pages web generees dynamiquement.
-PHP incorpore egalement une integration avec plusieurs systemes de gestion
-de bases de donnees commerciaux et non-connerciaux, qui rent facile
-la creation de pages web liees avec des bases de donnees. L'utilisation la
-plus commune de PHP est probablement en remplacement de scripts CGI. Le
-module mod_php permet au serveur web apache de comprendre et de traiter le
-langage PHP integre dans des pages web.
-Ce package contient PHP version %{version}. Si vous utilisez des
-applications qui utilisent specifiquement PHP/FI, vous devrez installer le
-module PHP/FI inclus dans le package mod_php. Si vous debutez avec PHP, vous
-devriez installer ce package. Vous aurez egalement besoin d'installer le
+PHP est un langage de script embarque dans le HTM. PHP essaye de
+rendre simple aux developpeurs d'ecrire des pages web generees
+dynamiquement. PHP incorpore egalement une integration avec plusieurs
+systemes de gestion de bases de donnees commerciaux et
+non-connerciaux, qui rent facile la creation de pages web liees avec
+des bases de donnees. L'utilisation la plus commune de PHP est
+probablement en remplacement de scripts CGI. Le module mod_php permet
+au serveur web apache de comprendre et de traiter le langage PHP
+integre dans des pages web. Ce package contient PHP version
+%{version}. Si vous utilisez des applications qui utilisent
+specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
+dans le package mod_php. Si vous debutez avec PHP, vous devriez
+installer ce package. Vous aurez egalement besoin d'installer le
serveur web Apache.
%description -l pl
-PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w plikach
-HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP (jak np.
-Apache), który interpretuje te polecenia. Umo¿liwia to tworzenie
-dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona zosta³a
-z jêzyków: C, Java i Perl.
+PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
+plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
+(jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
+tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
+zosta³a z jêzyków: C, Java i Perl.
%package mysql
Summary: MySQL database module for PHP4
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description mysql
This is a dynamic shared object (DSO) for Apache that will add MySQL
-database support to PHP4. If you need back-end support for MySQL,
-you should install this package in addition to the main %{name} package.
+database support to PHP4. If you need back-end support for MySQL, you
+should install this package in addition to the main %{name} package.
%description mysql -l pl
Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych MySQL.
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description pgsql
-This is a dynamic shared object (DSO) for Apache that will add PostgreSQL
-database support to PHP4. If you need back-end support for PostgreSQL,
-you should install this package in addition to the main %{name} package.
+This is a dynamic shared object (DSO) for Apache that will add
+PostgreSQL database support to PHP4. If you need back-end support for
+PostgreSQL, you should install this package in addition to the main
+%{name} package.
%description pgsql -l pl
Modu³ PHP4 umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description gd
This is a dynamic shared object (DSO) for Apache that will add GD
-support to PHP4. You should install this package in addition to the main
-%{name} package if you want to create and manipulate images with PHP.
+support to PHP4. You should install this package in addition to the
+main %{name} package if you want to create and manipulate images with
+PHP.
%description gd -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description java
This is a dynamic shared object (DSO) for Apache that will add JAVA
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description xml
This is a dynamic shared object (DSO) for Apache that will add XML
support to PHP4. This extension lets you create XML parsers and then
-define handlers for different XML events. If you want to be able to parse
-XML documents you should install this package in addition to the main
-%{name} package.
+define handlers for different XML events. If you want to be able to
+parse XML documents you should install this package in addition to the
+main %{name} package.
#%description xml -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description dba
-This is a dynamic shared object (DSO) for Apache that will add flat-file databases (DBA)
-support to PHP4.
+This is a dynamic shared object (DSO) for Apache that will add
+flat-file databases (DBA) support to PHP4.
#%description dba -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description calendar
-This is a dynamic shared object (DSO) for Apache that will add calendar
-support to PHP4.
+This is a dynamic shared object (DSO) for Apache that will add
+calendar support to PHP4.
#%description calendar -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description dbase
This is a dynamic shared object (DSO) for Apache that will add DBase
-support to PHP4.
+support to PHP4.
#%description dbase -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description filepro
This is a dynamic shared object (DSO) for Apache that will add FilePro
-support to PHP4.
+support to PHP4.
#%description filepro -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description posix
-This is a dynamic shared object (DSO) for Apache that will add POSIX functions
-support to PHP4.
+This is a dynamic shared object (DSO) for Apache that will add POSIX
+functions support to PHP4.
#%description posix -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description pcre
-This is a dynamic shared object (DSO) for Apache that will add Perl Compatible Regular Expression
-support to PHP4.
+This is a dynamic shared object (DSO) for Apache that will add Perl
+Compatible Regular Expression support to PHP4.
#%description pcre -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description sysvsem
-This is a dynamic shared object (DSO) for Apache that will add SysV semafores
-support to PHP4.
+This is a dynamic shared object (DSO) for Apache that will add SysV
+semafores support to PHP4.
#%description sysvsem -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description sysvshm
-This is a dynamic shared object (DSO) for Apache that will add SysV Shared Memory
-support to PHP4.
+This is a dynamic shared object (DSO) for Apache that will add SysV
+Shared Memory support to PHP4.
#%description sysvshm -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description yp
-This is a dynamic shared object (DSO) for Apache that will add NIS (Yellow Pages)
-support to PHP4.
+This is a dynamic shared object (DSO) for Apache that will add NIS
+(Yellow Pages) support to PHP4.
#%description yp -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description bcmath
-This is a dynamic shared object (DSO) for Apache that will add bc style precision math functions
-support to PHP4.
+This is a dynamic shared object (DSO) for Apache that will add bc
+style precision math functions support to PHP4.
#%description bcmath -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description ftp
This is a dynamic shared object (DSO) for Apache that will add FTP
-support to PHP4.
+support to PHP4.
#%description ftp -l pl
Group: Libraries
Group(fr): Librairies
Group(pl): Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}
%description zlib
-This is a dynamic shared object (DSO) for Apache that will add commpresion (zlib)
-support to PHP4.
+This is a dynamic shared object (DSO) for Apache that will add
+commpresion (zlib) support to PHP4.
#%description zlib -l pl
%package doc
-Summary: Online manual for PHP4
-Summary(pl): Dokumentacja dla PHP4
-Group: Networking/Daemons
+Summary: Online manual for PHP4
+Summary(pl): Dokumentacja dla PHP4
+Group: Networking/Daemons
%description doc
-Comprehensive documentation for PHP4, viewable through your web server, too!
+Comprehensive documentation for PHP4, viewable through your web
+server, too!
%description doc -l pl
-Dokumentacja dla pakietu PHP4. Mo¿na j± równie¿ ogl±daæ poprzez serwer WWW.
+Dokumentacja dla pakietu PHP4. Mo¿na j± równie¿ ogl±daæ poprzez serwer
+WWW.
+
%prep
%setup -q -a 5
%patch0 -p1
%build
LDFLAGS="-s"; export LDFLAGS
-CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
+CFLAGS="$RPM_OPT_FLAGS -DEAPI -I%{_prefix}/X11R6/include"; export CFLAGS
./buildconf
%configure \
- --with-apxs=/usr/sbin/apxs \
+ --with-apxs=%{_sbindir}/apxs \
--with-config-file-path=%{_sysconfdir}/httpd \
--with-exec-dir=%{_bindir} \
--disable-debug \
# --with-snmp=shared \
# --with-openssl \
-#Syntax error on line 228 of /etc/httpd/httpd.conf: Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: undefined symbol: phpi_get_le_gd
+#Syntax error on line 228 of %{_sysconfdir}/httpd/httpd.conf: Cannot load %{_libdir}/apache/libphp4.so into server: %{_libdir}/apache/libphp4.so: undefined symbol: phpi_get_le_gd
# Solution: make pdf and cpdf shared
# --with-gd=shared \
# To old/new libmcrypt ?
# --with-mcrypt=shared \
-# --with-dom=/usr/X11R6 \
+# --with-dom=%{_prefix}/X11R6 \
make
%attr(755,root,root) %{_pkglibdir}/php/libphp_java.so
%files doc
+%defattr(644,root,root,755)
/home/httpd/html/docs/php4-doc