# _without_mm - without mm support for session storage
# _without_msession - without msession extension module
# _without_odbc - without ODBC extension module
-# _without_openssl - with OpenSSL support
+# _without_openssl - without OpenSSL support and OpenSSL extension module
+# _without_pdf - without PDF extension module
# _without_snmp - without SNMP extension module
# _without_recode - without recode extension module
# _without_wddx - without WDDX extension module
Summary(fr): Le langage de script embarque-HTML PHP pour Apache
Summary(pl): Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache
Summary(pt_BR): A linguagem de script PHP
+Summary(ru): PHP ÷ÅÒÓÉÉ 4 -- ÑÚÙË ÐÒÅÐÒÏÃÅÓÓÉÒÏ×ÁÎÉÑ HTML-ÆÁÊÌÏ×, ×ÙÐÏÌÎÑÅÍÙÊ ÎÁ ÓÅÒ×ÅÒÅ
+Summary(uk): PHP ÷ÅÒÓ¦§ 4 -- ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
Name: php
-Version: 4.2.1
-Release: 5.9
+Version: 4.2.2
+Release: 4
Epoch: 3
Group: Libraries
License: The PHP license (see "LICENSE" file included in distribution)
Source0: http://www.php.net/distributions/%{name}-%{version}.tar.bz2
Source1: FAQ.%{name}
-Source2: %{name}.ini
-Source3: zend.gif
-Source4: http://www.php.net/distributions/manual/%{name}_manual_en.tar.bz2
-Source5: %{name}-module-install
-Source6: %{name}-mod_php.conf
-Source7: %{name}-cgi.ini
-Source8: %{name}-apache.ini
+Source2: zend.gif
+Source3: http://www.php.net/distributions/manual/%{name}_manual_en.tar.bz2
+Source4: %{name}-module-install
+Source5: %{name}-mod_php.conf
+Source6: %{name}-cgi.ini
+Source7: %{name}-apache.ini
Patch0: %{name}-shared.patch
Patch1: %{name}-pldlogo.patch
Patch2: %{name}-mysql-socket.patch
Patch3: %{name}-mail.patch
Patch4: %{name}-link-libs.patch
Patch5: %{name}-fastcgi.patch
-Patch6: %{name}-no_%{name}_pcre_in_SAPI_c.patch
+Patch6: %{name}-no_php_pcre_in_SAPI_c.patch
Patch7: %{name}-libpq_fs_h_path.patch
Patch8: %{name}-wddx-fix.patch
Patch9: %{name}-cpdf-fix.patch
Patch18: %{name}-sapi-ini-file.patch
Patch19: %{name}-apache2_broken_macro.patch
Patch20: %{name}-php_iconv_string_declaration.patch
+Patch21: %{name}-pear-cosmetic.patch
+Patch22: %{name}-mnogosearch.patch
+Patch23: %{name}-ini.patch
Icon: php4.gif
URL: http://www.php.net/
BuildRequires: apache-devel
BuildRequires: libtiff-devel
BuildRequires: libtool >= 0:1.4.2-9
BuildRequires: libxml2-devel >= 2.2.7
-%{!?_without_domxslt:BuildRequires: libxslt >= 1.0.3}
+%{!?_without_domxslt:BuildRequires: libxslt-devel >= 1.0.3}
BuildRequires: mhash-devel
BuildRequires: ming-devel >= 0.1.0
%{!?_without_mm:BuildRequires: mm-devel >= 1.1.3}
-BuildRequires: mnogosearch-devel < 3.2.5
+BuildRequires: mnogosearch-devel >= 3.2.6
BuildRequires: mysql-devel >= 3.23.32
%{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
%if %(expr %{?_without_openssl:0}%{!?_without_openssl:1} + %{?_without_ldap:0}%{!?_without_ldap:1})
BuildRequires: openssl-devel >= 0.9.6a
%endif
BuildRequires: pam-devel
-BuildRequires: pdflib-devel >= 4.0.0
+%{!?_without_pdf:BuildRequires: pdflib-devel >= 4.0.0}
BuildRequires: perl
%{!?_without_msession:BuildRequires: phoenix-devel}
-BuildRequires: pkgconfig
BuildRequires: postgresql-devel
-BuildRequires: postgresql-backend-devel >= 7.2
+BuildRequires: postgresql-backend-devel >= 7.2
BuildRequires: pspell-devel
%{!?_without_recode:BuildRequires: recode-devel >= 3.5d-3}
-BuildRequires: rpm-php-pearprov
+BuildRequires: rpm-php-pearprov >= 4.0.2-80
%{!?_without_xslt:BuildRequires: sablotron-devel}
BuildRequires: t1lib-devel
%{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.3}
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 dinstaller le serveur web Apache.
+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 dinstaller le
+serveur web Apache.
%description -l pl
PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
linguagem é permitir que desenvolvedores web escrevam páginas
dinamicamente geradas de forma rápida.
+%description -l ru
+PHP4 - ÜÔÏ ÑÚÙË ÎÁÐÉÓÁÎÉÑ ÓËÒÉÐÔÏ×, ×ÓÔÒÁÉ×ÁÅÍÙÈ × HTML-ËÏÄ. PHP
+ÐÒÅÄÌÁÇÁÅÔ ÉÎÔÅÒÇÒÁÃÉÀ Ó ÍÎÏÖÅÓÔ×ÏÍ óõâä, ÐÏÜÔÏÍÕ ÎÁÐÉÓÁÎÉÅ ÓËÒÉÐÔÏ×
+ÄÌÑ ÒÁÂÏÔÙ Ó ÂÁÚÁÍÉ ÄÁÎÎÙÈ ÏÔÎÏÓÉÔÅÌØÎÏ ÐÒÏÓÔÏ. îÁÉÂÏÌÅÅ ÐÏÐÕÌÑÒÎÏÅ
+ÉÓÐÏÌØÚÏ×ÁÎÉÅ PHP - ÚÁÍÅÎÁ ÄÌÑ CGI ÓËÒÉÐÔÏ×.
+
+üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÁÍÏÄÏÓÔÁÔÏÞÎÕÀ (CGI) ×ÅÒÓÉÀ ÉÎÔÅÒÐÒÅÔÁÔÏÒÁ ÑÚÙËÁ.
+÷Ù ÄÏÌÖÎÙ ÔÁËÖÅ ÕÓÔÁÎÏ×ÉÔØ ÐÁËÅÔ %{name}-common. åÓÌÉ ×ÁÍ ÎÕÖÅÎ
+ÉÎÔÅÒÐÒÅÔÁÔÏÒ PHP × ËÁÞÅÓÔ×Å ÍÏÄÕÌÑ apache, ÕÓÔÁÎÏ×ÉÔÅ ÐÁËÅÔ
+apache-php.
+
+%description -l uk
+PHP4 - ÃÅ ÍÏ×Á ÎÁÐÉÓÁÎÎÑ ÓËÒÉÐÔ¦×, ÝÏ ×ÂÕÄÏ×ÕÀÔØÓÑ × HTML-ËÏÄ. PHP
+ÐÒÏÐÏÎÕ¤ ¦ÎÔÅÇÒÁæÀ Ú ÂÁÇÁÔØÍÁ óõâä, ÔÏÍÕ ÎÁÐÉÓÁÎÎÑ ÓËÒÉÐÔ¦× ÄÌÑ
+ÒÏÂÏÔÉ Ú ÂÁÚÁÍÉ ÄÁÎÉÈ ¤ ÄÏ×Ï̦ ÐÒÏÓÔÉÍ. îÁʦÌØÛ ÐÏÐÕÌÑÒÎÅ
+×ÉËÏÒÉÓÔÁÎÎÑ PHP - ÚÁͦÎÁ ÄÌÑ CGI ÓËÒÉÐÔ¦×.
+
+ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÁÍÏÄÏÓÔÁÔÎÀ (CGI) ×ÅÒÓ¦À ¦ÎÔÅÒÐÒÅÔÁÔÏÒÁ ÍÏ×É. ÷É
+ÍÁ¤ÔÅ ÔÁËÏÖ ×ÓÔÁÎÏ×ÉÔÉ ÐÁËÅÔ %{name}-common. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÅÎ
+¦ÎÔÅÒÐÒÅÔÁÔÏÒ PHP × ÑËÏÓÔ¦ ÍÏÄÕÌÑ apache, ×ÓÔÁÎÏצÔØ ÐÁËÅÔ apache-php.
+
%package cgi
Summary: PHP as CGI program
Summary(pl): PHP jako program CGI
%package common
Summary: Common files nneded by both apache module and CGI
Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
+Summary(ru): òÁÚÄÅÌÑÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ php
+Summary(uk): â¦Â̦ÏÔÅËÉ ÓЦÌØÎÏÇÏ ×ÉËÏÒÉÓÔÁÎÎÑ ÄÌÑ php
Group: Libraries
Provides: %{name}-session = %{version}
Obsoletes: %{name}-session <= %{epoch}:%{version}-%{release}
%description common -l pl
Wspólne pliki dla modu³u apacha i programu CGI.
+%description common -l ru
+üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÏÂÝÉÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÎÙÈ ×ÁÒÉÁÎÔÏ× ÒÅÁÌÉÚÁÃÉÉ PHP
+(ÓÁÍÏÄÏÓÔÁÔÏÞÎÏÊ É × ËÁÞÅÓÔ×Å ÍÏÄÕÌÑ apache).
+
+%description common -l uk
+ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓЦÌØΦ ÆÁÊÌÉ ÄÌÑ Ò¦ÚÎÉÈ ×ÁÒ¦ÁÎÔ¦× ÒÅÁ̦ÚÁæ§ PHP
+(ÓÁÍÏÄÏÓÔÁÔÎØϧ ÔÁ × ÑËÏÓÔ¦ ÍÏÄÕÌÑ apache).
+
%package devel
Summary: Files for PHP modules development
Summary(pl): Pliki do kompilacji modu³ów PHP
Summary(pt_BR): Arquivos de desenvolvimento para PHP
+Summary(ru): ðÁËÅÔ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÒÁÓÛÉÒÅÎÉÊ PHP4
+Summary(uk): ðÁËÅÔ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÏÂÕÄÏ×É ÒÏÚÛÉÒÅÎØ PHP4
Group: Development/Languages/PHP
Requires: %{name}-common = %{version}
%description devel
-Files for PHP modules development.
+The php-devel package lets you compile dynamic extensions to PHP.
+Included here is the source for the php extensions. Instead of
+recompiling the whole php binary to add support for, say, oracle,
+install this package and use the new self-contained extensions
+support. For more information, read the file
+SELF-CONTAINED-EXTENSIONS.
%description devel -l pl
Pliki potrzebne do kompilacji modu³ów PHP.
Este pacote contém arquivos usados no desenvolvimento de programas ou
módulos PHP.
+%description devel -l uk
+ðÁËÅÔ php-devel ÄÁ¤ ÍÏÖÌÉצÓÔØ ËÏÍЦÌÀ×ÁÔÉ ÄÉÎÁͦÞΦ ÒÏÚÛÉÒÅÎÎÑ PHP.
+äÏ ÐÁËÅÔÕ ×ËÌÀÞÅÎÏ ×ÉȦÄÎÉÊ ËÏÄ ÄÌÑ ÒÏÚÛÉÒÅÎØ. úÁͦÓÔØ ÐÏ×ÔÏÒÎϧ
+ËÏÍЦÌÑæ§ ¦ÎÁÒÎÏÇÏ ÆÁÊÌÕ php ÄÌÑ ÄÏÄÁÎÎÑ, ÎÁÐÒÉËÌÁÄ, ЦÄÔÒÉÍËÉ
+oracle, ×ÓÔÁÎÏצÔØ ÃÅÊ ÐÁËÅÔ ÄÌÑ ËÏÍЦÌÑæ§ ÏËÒÅÍÉÈ ÒÏÚÛÉÒÅÎØ.
+äÅÔÁÌØΦÛÁ ¦ÎÆÏÒÍÁÃ¦Ñ - × ÆÁÊ̦ SELF-CONTAINED-EXTENSIONS.
+
+%description devel -l ru
+ðÁËÅÔ php-devel ÄÁÅÔ ×ÏÚÍÏÖÎÏÓÔØ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÄÉÎÁÍÉÞÅÓËÉÅ ÒÁÓÛÉÒÅÎÉÑ
+PHP. ðÁËÅÔ ×ËÌÀÞÁÅÔ ÉÓÈÏÄÎÙÊ ËÏÄ ÜÔÉÈ ÒÁÓÛÉÒÅÎÉÊ. ÷ÍÅÓÔÏ ÐÏ×ÔÏÒÎÏÊ
+ËÏÍÐÉÌÑÃÉÉ ÂÉÎÁÒÎÏÇÏ ÆÁÊÌÁ php ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ, ÎÁÐÒÉÍÅÒ, ÐÏÄÄÅÒÖËÉ
+oracle, ÕÓÔÁÎÏ×ÉÔÅ ÜÔÏÔ ÐÁËÅÔ ÄÌÑ ËÏÍÐÉÌÉÒÏ×ÁÎÉÑ ÏÔÄÅÌØÎÙÈ ÒÁÓÛÉÒÅÎÉÊ.
+ðÏÄÒÏÂÎÏÓÔÉ - × ÆÁÊÌÅ SELF-CONTAINED-EXTENSIONS.
+
%package doc
Summary: Online manual for PHP
Summary(pl): Dokumentacja dla PHP
PreReq: %{name}-common = %{version}
%description ctype
-This is a dynamic shared object (DSO) for Apache that will add
-ctype support to PHP.
+This is a dynamic shared object (DSO) for Apache that will add ctype
+support to PHP.
-%description crack -l pl
+%description ctype -l pl
Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji ctype.
%package curl
PreReq: %{name}-common = %{version}
%description dbx
-This is a dynamic shared object (DSO) for Apache that will add
-DB abstraction layer to PHP. DBX supports odbc, mysql, pgsql, mssql,
+This is a dynamic shared object (DSO) for Apache that will add DB
+abstraction layer to PHP. DBX supports odbc, mysql, pgsql, mssql,
fbsql and more.
%description dbx -l pl
PreReq: %{name}-common = %{version}
%description dio
-This is a dynamic shared object (DSO) for Apache that will add
-direct file I/O support to PHP.
+This is a dynamic shared object (DSO) for Apache that will add direct
+file I/O support to PHP.
Warning: this is an experimental module.
PreReq: %{name}-common = %{version}
%description mnogosearch
-This is a dynamic shared object (DSO) for Apache that will allow
-you to access mnoGoSearch free search engine in PHP.
+This is a dynamic shared object (DSO) for Apache that will allow you
+to access mnoGoSearch free search engine in PHP.
%description mnogosearch -l pl
Modu³ PHP dodaj±cy pozwalaj±cy na dostêp do wolnodostêpnego silnika
PreReq: %{name}-common = %{version}
%description msession
-This is a dynamic shared object (DSO) for Apache that will allow
-you to use msession in PHP. msession is a high speed session daemon
-which can run either locally or remotely. It is designed to provide
+This is a dynamic shared object (DSO) for Apache that will allow you
+to use msession in PHP. msession is a high speed session daemon which
+can run either locally or remotely. It is designed to provide
consistent session management for a PHP web farm.
%description msession -l pl
Modu³ PHP umo¿liwiaj±cy tworzenie plików PDF. Wykorzystuje bibliotekê
pdflib.
-%package pear
-Summary: PEAR - PHP Extension and Application Repository
-Summary(pl): PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
-Group: Development/Languages/PHP
-Requires: %{name}-pcre = %{version}
-Requires: %{name}-xml = %{version}
-
-%description pear
-PEAR - PHP Extension and Application Repository.
-
-%description pear -l pl
-PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
-Repozytorium Aplikacji.
-
-%package pear-additional_classes
-Summary: PEAR - PHP Extension and Application Repository
-Summary(pl): PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
-Group: Development/Languages/PHP
-Requires: %{name}-pcre = %{version}
-Requires: %{name}-pear
-Requires: %{name}-xml = %{version}
-
-%description pear-additional_classes
-PEAR - PHP Extension and Application Repository.
-Additional classes which can't be found in pear packages.
-
-%description pear-additional_classes -l pl
-PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
-Repozytorium Aplikacji.
-Dodatkowe klasy, których nie ma w innych pakietach peara.
-
-%package pear-devel
-Summary: PEAR - PHP Extension and Application Repository
-Summary(pl): PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
-Group: Development/Languages/PHP
-Requires: %{name}-cgi = %{version}
-Requires: %{name}-pcre = %{version}
-Requires: %{name}-xml = %{version}
-Requires: %{name}-pear
-Requires: %{name}-pear-PEAR-Command
-
-%description pear-devel
-PEAR - PHP Extension and Application Repository.
-This package contains aplications needed to use pear from cvs.
-
-%description pear-devel -l pl
-PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
-Repozytorium Aplikacji.
-Ten pakiet zawiera aplikacje potrzebne do
-
%package pgsql
Summary: PostgreSQL database module for PHP
Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
PreReq: %{name}-common = %{version}
%description shmop
-This is a dynamic shared object (DSO) for Apache that will add
-Shared Memory Operations support to PHP.
+This is a dynamic shared object (DSO) for Apache that will add Shared
+Memory Operations support to PHP.
Warning: this is an experimental module.
PreReq: %{name}-common = %{version}
%description sybase-ct
-This is a dynamic shared object (DSO) for Apache that will add
-Sybase and MS SQL databases support through CT-lib to PHP.
+This is a dynamic shared object (DSO) for Apache that will add Sybase
+and MS SQL databases support through CT-lib to PHP.
%description sybase-ct -l pl
Modu³ PHP dodaj±cy obs³ugê baz danych Sybase oraz MS SQL poprzez
PreReq: %{name}-common = %{version}
%description zip
-This is a dynamic shared object (DSO) for Apache that will add
-ZZipLib (read-only access to ZIP archives) support to PHP.
+This is a dynamic shared object (DSO) for Apache that will add ZZipLib
+(read-only access to ZIP archives) support to PHP.
%description zip -l pl
Modu³ PHP umo¿liwiaj±cy korzystanie z bibliotekli ZZipLib
%description zlib -l pl
Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
+%package pear
+Summary: PEAR - PHP Extension and Application Repository
+Summary(pl): PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
+Group: Development/Languages/PHP
+Requires: %{name}-pcre = %{version}
+Requires: %{name}-xml = %{version}
+
+%description pear
+PEAR - PHP Extension and Application Repository.
+
+%description pear -l pl
+PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
+Repozytorium Aplikacji.
+
+%package pear-additional_classes
+Summary: PEAR - PHP Extension and Application Repository
+Summary(pl): PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
+Group: Development/Languages/PHP
+Requires: %{name}-pcre = %{version}
+Requires: %{name}-pear
+
+%description pear-additional_classes
+PEAR - PHP Extension and Application Repository. Additional classes
+which can't be found in pear packages.
+
+%description pear-additional_classes -l pl
+PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
+Repozytorium Aplikacji. Dodatkowe klasy, których nie ma w innych
+pakietach peara.
+
+%package pear-devel
+Summary: PEAR - PHP Extension and Application Repository
+Summary(pl): PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
+Group: Development/Languages/PHP
+Requires: %{name}-cgi = %{version}
+Requires: %{name}-pcre = %{version}
+Requires: %{name}-xml = %{version}
+Requires: %{name}-pear
+Requires: %{name}-pear-PEAR-Command
+
+%description pear-devel
+PEAR - PHP Extension and Application Repository. This package contains
+aplications needed to use pear from cvs.
+
+%description pear-devel -l pl
+PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
+Repozytorium Aplikacji. Ten pakiet zawiera aplikacje potrzebne do
+
%prep
%setup -q
%patch0 -p1
%patch18 -p1
%patch19 -p1
%patch20 -p1
+%patch21 -p1
+%patch22 -p1
+cp php.ini-dist php.ini
+%patch23
install -d manual
-bzip2 -dc %{SOURCE4} | tar -xf - -C manual
+bzip2 -dc %{SOURCE3} | tar -xf - -C manual
%build
CFLAGS="%{rpmcflags} -DEAPI=1 -I%{_prefix}/X11R6/include"
aclocal
autoconf
#for i in cgi fastcgi apxs ; do
+PROG_SENDMAIL="/usr/lib/sendmail"; export PROG_SENDMAIL
for i in cgi apxs ; do
%configure \
`[ $i = cgi ] && echo --enable-discard-path` \
`[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=%{_prefix}` \
-%if %{_apache2}
+%if %{_apache2}
`[ $i = apxs ] && echo --with-apxs2=%{_sbindir}/apxs` \
%else
`[ $i = apxs ] && echo --with-apxs=%{_sbindir}/apxs` \
-%endif
+%endif
--with-config-file-path=%{_sysconfdir} \
--with-exec-dir=%{_bindir} \
--%{!?debug:dis}%{?debug:en}able-debug \
--with-db3 \
--with-dbase=shared \
--with-dom=shared \
- %{!?_without_libxslt:--with-dom-xslt=shared --with-dom-exslt=shared} \
+ %{!?_without_domxslt:--with-dom-xslt=shared --with-dom-exslt=shared} \
--with-expat-dir=shared,/usr \
--with-iconv=shared \
--with-filepro=shared \
%{!?_without_openssl:--with-openssl=shared} \
%{?_with_oracle:--with-oracle=shared} \
--with-pcre-regex=shared \
- --with-pdflib=shared \
+ %{!?_without_pdf:--with-pdflib=shared} \
--with-pear=%{php_pear_dir} \
--with-pgsql=shared,/usr \
--with-png-dir=shared,/usr \
install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
-install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
-install %{SOURCE7} %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}
-install %{SOURCE3} php.gif $RPM_BUILD_ROOT/home/httpd/icons
-install %{SOURCE5} $RPM_BUILD_ROOT%{_sbindir}
-install %{SOURCE6} $RPM_BUILD_ROOT/etc/httpd/httpd.conf/70_mod_php.conf
+install php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
+install %{SOURCE6} %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}
+install %{SOURCE2} php.gif $RPM_BUILD_ROOT/home/httpd/icons
+install %{SOURCE4} $RPM_BUILD_ROOT%{_sbindir}
+install %{SOURCE5} $RPM_BUILD_ROOT/etc/httpd/httpd.conf/70_mod_php.conf
install %{SOURCE1} .
mv -f Zend/LICENSE{,.Zend}
+mkdir $RPM_BUILD_ROOT%{php_pear_dir}/{Auth,Auth_HTTP,Science}
+
%clean
rm -rf $RPM_BUILD_ROOT
if [ "$1" = "0" ]; then
%{_sbindir}/php-module-install remove interbase %{_sysconfdir}/php.ini
fi
-
+
%post java
%{_sbindir}/php-module-install install java %{_sysconfdir}/php.ini
%files common
%defattr(644,root,root,755)
+%doc php.ini-*
%doc CODING_STANDARDS CREDITS Zend/ZEND_CHANGES
%doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
%doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
%attr(755,root,root) %{extensionsdir}/odbc.so
%endif
-%if %{?_without_openssl:0}%{!?_without_odbc:1}
+%if %{?_without_openssl:0}%{!?_without_openssl:1}
%files openssl
%defattr(644,root,root,755)
%attr(755,root,root) %{extensionsdir}/openssl.so
%defattr(644,root,root,755)
%attr(755,root,root) %{extensionsdir}/pcre.so
-%files pear
-%defattr(644,root,root,755)
-%dir %{php_pear_dir}
-%dir %{php_pear_dir}/Archive
-%dir %{php_pear_dir}/Console
-%dir %{php_pear_dir}/Crypt
-%dir %{php_pear_dir}/Date
-%dir %{php_pear_dir}/DB
-%dir %{php_pear_dir}/File
-%dir %{php_pear_dir}/HTML
-%dir %{php_pear_dir}/HTTP
-%dir %{php_pear_dir}/Image
-%dir %{php_pear_dir}/Mail
-%dir %{php_pear_dir}/Net
-%dir %{php_pear_dir}/PEAR
-%dir %{php_pear_dir}/Schedule
-%dir %{php_pear_dir}/XML
-
-%files pear-additional_classes
-%defattr(644,root,root,755)
-%attr(644,root,root) %{php_pear_dir}/Crypt/HCEMD5.php
-%attr(644,root,root) %{php_pear_dir}/Date/Calc.php
-%attr(644,root,root) %{php_pear_dir}/Date/Human.php
-%attr(644,root,root) %{php_pear_dir}/HTML/Form.php
-%attr(644,root,root) %{php_pear_dir}/HTML/IT*.php
-%attr(644,root,root) %{php_pear_dir}/HTML/Page.php
-%attr(644,root,root) %{php_pear_dir}/HTML/Processor.php
-%attr(644,root,root) %{php_pear_dir}/HTML/Select.php
-%attr(644,root,root) %{php_pear_dir}/HTTP/Compress.php
-%attr(644,root,root) %{php_pear_dir}/Net/SMTP.php
-%attr(644,root,root) %{php_pear_dir}/Schedule/At.php
-
-%files pear-devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/pear
-%attr(755,root,root) %{_bindir}/pearize
-%attr(755,root,root) %{_bindir}/phptar
-
+%if %{?_without_pdf:0}%{!?_without_pdf:1}
%files pdf
%defattr(644,root,root,755)
%attr(755,root,root) %{extensionsdir}/pdf.so
+%endif
%files pgsql
%defattr(644,root,root,755)
%files zlib
%defattr(644,root,root,755)
%attr(755,root,root) %{extensionsdir}/zlib.so
+
+%files pear
+%defattr(644,root,root,755)
+%dir %{php_pear_dir}
+%dir %{php_pear_dir}/Archive
+%dir %{php_pear_dir}/Auth
+%dir %{php_pear_dir}/Auth_HTTP
+%dir %{php_pear_dir}/Console
+%dir %{php_pear_dir}/Crypt
+%dir %{php_pear_dir}/Date
+%dir %{php_pear_dir}/DB
+%dir %{php_pear_dir}/File
+%dir %{php_pear_dir}/HTML
+%dir %{php_pear_dir}/HTTP
+%dir %{php_pear_dir}/Image
+%dir %{php_pear_dir}/Mail
+%dir %{php_pear_dir}/Net
+%dir %{php_pear_dir}/PEAR
+%dir %{php_pear_dir}/Schedule
+%dir %{php_pear_dir}/Science
+%dir %{php_pear_dir}/XML
+
+%files pear-additional_classes
+%defattr(644,root,root,755)
+%attr(644,root,root) %{php_pear_dir}/Crypt/HCEMD5.php
+%attr(644,root,root) %{php_pear_dir}/Date/Calc.php
+%attr(644,root,root) %{php_pear_dir}/Date/Human.php
+%attr(644,root,root) %{php_pear_dir}/File/Passwd.php
+%attr(644,root,root) %{php_pear_dir}/HTML/Form.php
+%attr(644,root,root) %{php_pear_dir}/HTML/IT*.php
+%attr(644,root,root) %{php_pear_dir}/HTML/Page.php
+%attr(644,root,root) %{php_pear_dir}/HTML/Processor.php
+%attr(644,root,root) %{php_pear_dir}/HTML/Select.php
+%attr(644,root,root) %{php_pear_dir}/HTTP/Compress.php
+%attr(644,root,root) %{php_pear_dir}/Schedule/At.php
+
+%files pear-devel
+%defattr(644,root,root,755)
+# in proper class now
+#%attr(755,root,root) %{_bindir}/pear
+%attr(755,root,root) %{_bindir}/pearize
+%attr(755,root,root) %{_bindir}/phptar