# - pfpro,
# - ircg,
# These extensions BuildRequires proprietary libraries...
-# - fix building of mono, sybase extensions
+# - fix building of sybase extensions
# - test if php.cgi segfaults after ctrl+d when overload.so is loaded
-# - build simplexml as shared (now it's static)
-# - SECURITY: http://securitytracker.com/alerts/2004/Sep/1011307.html
-# - SECURITY: http://securitytracker.com/alerts/2004/Sep/1011279.html
#
# Conditional build:
%bcond_with db3 # use db3 packages instead of db (4.x) for Berkeley DB support
%bcond_with fdf # with FDF (PDF forms) module (BR: proprietary libs)
-%bcond_with hyperwave # with Hw API support (BR: proprietary libs)
+%bcond_with hardened # build with hardened patch applied (http://www.hardened-php.net/)
+%bcond_with hwapi # with Hw API support (BR: proprietary libs)
%bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
-%bcond_with java # with Java extension module (BR: jdk)
%bcond_with oci8 # with Oracle oci8 extension module (BR: proprietary libs)
%bcond_with oracle # with oracle extension module (BR: proprietary libs)
%bcond_without cpdf # without cpdf extension module
%bcond_without curl # without CURL extension module
-%bcond_without domxslt # without DOM XSLT/EXSLT support in DOM XML extension module
%bcond_without fam # without FAM (File Alteration Monitor) extension module
%bcond_without imap # without IMAP extension module
%bcond_without interbase # without InterBase extension module
%bcond_without pgsql # without PostgreSQL extension module
%bcond_without pspell # without pspell extension module
%bcond_without recode # without recode extension module
-%bcond_without simplexml # without simplexml extension module
%bcond_without snmp # without SNMP extension module
%bcond_without sqlite # without SQLite extension module
+%bcond_without sybase # without Sybase extension module
%bcond_without sybase_ct # without Sybase-CT extension module
%bcond_without tidy # without Tidy extension module
%bcond_without wddx # without WDDX extension module
%bcond_without xmlrpc # without XML-RPC extension module
-%bcond_without xml # without XML and DOMXML extension modules
-%bcond_without xslt # without XSLT extension module
-# To be verified
-# Removed from sources?
-%bcond_with mono # without Mono extensions module
-%bcond_with yaz # without YAZ extension module
-# Breaks build
-%bcond_with sybase # without Sybase extension module
#
%define _apache2 %(rpm -q apache-devel 2> /dev/null | grep -Eq '\\-2\\.[0-9]+\\.' && echo 1 || echo 0)
%define apxs /usr/sbin/apxs
%if %{_apache2}
%undefine with_mm
%endif
-%ifnarch %{ix86} amd64 sparc sparcv9 ppc
+%ifnarch %{ix86} amd64 sparc sparcv9 alpha ppc
%undefine with_interbase
%endif
# x86-only libs
%include /usr/lib/rpm/macros.php
Summary: The PHP HTML-embedded scripting language for use with Apache
Summary(fr): Le langage de script embarque-HTML PHP pour Apache
-Summary(pl): Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache
+Summary(pl): Jêzyk skryptowy PHP - u¿ywany wraz z serwerem Apache
Summary(pt_BR): A linguagem de script PHP
-Summary(ru): PHP ÷ÅÒÓÉÉ 5 -- ÑÚÙË ÐÒÅÐÒÏÃÅÓÓÉÒÏ×ÁÎÉÑ HTML-ÆÁÊÌÏ×, ×ÙÐÏÌÎÑÅÍÙÊ ÎÁ ÓÅÒ×ÅÒÅ
-Summary(uk): PHP ÷ÅÒÓ¦§ 5 -- ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
+Summary(ru): PHP ÷ÅÒÓÉÉ 5 - ÑÚÙË ÐÒÅÐÒÏÃÅÓÓÉÒÏ×ÁÎÉÑ HTML-ÆÁÊÌÏ×, ×ÙÐÏÌÎÑÅÍÙÊ ÎÁ ÓÅÒ×ÅÒÅ
+Summary(uk): PHP ÷ÅÒÓ¦§ 5 - ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
Name: php
-Version: 5.0.1
-Release: 0.2
+Version: 5.0.3
+Release: 1%{?with_hardened:hardened}
Epoch: 3
Group: Libraries
License: PHP
-#Source0: http://www.php.net/distributions/%{name}-%{version}%{_pre}.tar.bz2
-Source0: http://pl2.php.net/distributions/%{name}-%{version}.tar.bz2
-# Source0-md5: b12042826ddba29fba3ae5a2eac3c391
+Source0: http://www.php.net/distributions/%{name}-%{version}.tar.bz2
+# Source0-md5: fd26455febdddee0977ce226b9108d9c
Source1: FAQ.%{name}
Source2: zend.gif
Source4: %{name}-module-install
Source6: %{name}-cgi.ini
Source7: %{name}-apache.ini
Source8: %{name}-cli.ini
+Source9: http://www.hardened-php.net/hardened-php-%{version}-0.2.5.patch.gz
+# Source9-md5: cc91bb34a066135f1ef7cb1d4ba00b0d
Patch0: %{name}-shared.patch
Patch1: %{name}-pldlogo.patch
-Patch2: %{name}-xml-expat-fix.patch
-Patch3: %{name}-mail.patch
-Patch4: %{name}-link-libs.patch
-Patch5: %{name}-libpq_fs_h_path.patch
-Patch6: %{name}-wddx-fix.patch
-Patch7: %{name}-msession-shared-lib.patch
-Patch8: %{name}-build_modules.patch
-Patch9: %{name}-sapi-ini-file.patch
-Patch10: %{name}-no-metaccld.patch
-Patch11: %{name}-session-unregister.patch
-Patch12: %{name}-ini.patch
-Patch13: %{name}-acam.patch
-Patch14: %{name}-xmlrpc-fix.patch
-Patch15: %{name}-libtool.patch
-Patch16: %{name}-allow-db31.patch
-Patch17: %{name}-threads-acfix.patch
-Patch18: %{name}-tsrmlsfetchgcc2.patch
-Patch19: %{name}-no_pear_install.patch
-Patch20: %{name}-zlib.patch
-Patch21: %{name}-sybase-fix.patch
-Patch22: %{name}-mssql-fix.patch
-Patch23: %{name}-mnogosearch-fix.patch
-Patch24: %{name}-nohttpd.patch
-Patch25: %{name}-lib64.patch
-Patch26: %{name}-phpize.patch
+Patch2: %{name}-mail.patch
+Patch3: %{name}-link-libs.patch
+Patch4: %{name}-libpq_fs_h_path.patch
+Patch5: %{name}-wddx-fix.patch
+Patch6: %{name}-msession-shared-lib.patch
+Patch7: %{name}-build_modules.patch
+Patch8: %{name}-sapi-ini-file.patch
+Patch9: %{name}-no-metaccld.patch
+Patch10: %{name}-session-unregister.patch
+Patch11: %{name}-ini.patch
+Patch12: %{name}-acam.patch
+Patch13: %{name}-xmlrpc-fix.patch
+Patch14: %{name}-libtool.patch
+Patch15: %{name}-allow-db31.patch
+Patch16: %{name}-threads-acfix.patch
+Patch17: %{name}-tsrmlsfetchgcc2.patch
+Patch18: %{name}-no_pear_install.patch
+Patch19: %{name}-zlib.patch
+Patch20: %{name}-sybase-fix.patch
+Patch21: %{name}-mnogosearch-fix.patch
+Patch22: %{name}-nohttpd.patch
+Patch23: %{name}-lib64.patch
+Patch24: %{name}-phpize.patch
+Patch25: %{name}-gd_imagerotate_enable.patch
+Patch26: %{name}-uint32_t.patch
Icon: php.gif
URL: http://www.php.net/
%{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
-BuildRequires: apache-devel
%{?with_pspell:BuildRequires: aspell-devel}
BuildRequires: autoconf >= 2.53
BuildRequires: automake >= 1.4d
BuildRequires: bison
BuildRequires: bzip2-devel
-%{?with_curl:BuildRequires: curl-devel >= 7.12.0 }
+%{?with_curl:BuildRequires: curl-devel >= 7.12.0}
BuildRequires: cyrus-sasl-devel
%{?with_db3:BuildRequires: db3-devel >= 3.1}
%{!?with_db3:BuildRequires: db-devel >= 4.0}
BuildRequires: elfutils-devel
-%if %{with xml} || %{with xmlrpc}
+%if %{with wddx} || %{with xmlrpc}
BuildRequires: expat-devel
-%{?with_fam:BuildRequires: fam-devel}
%endif
+%{?with_fam:BuildRequires: fam-devel}
%{?with_fdf:BuildRequires: fdftk-devel}
BuildRequires: fcgi-devel
BuildRequires: flex
BuildRequires: freetds-devel
%endif
BuildRequires: freetype-devel >= 2.0
-BuildRequires: gd-devel >= 2.0.28
+BuildRequires: gd-devel >= 2.0.28-4
BuildRequires: gdbm-devel
BuildRequires: gmp-devel
-%{?with_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2 }
-%{?with_java:BuildRequires: jdk >= 1.1}
+%{?with_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2}
%{?with_cpdf:BuildRequires: libcpdf-devel >= 2.02r1-2}
-BuildRequires: libgcrypt-devel
BuildRequires: libidn-devel
BuildRequires: libjpeg-devel
BuildRequires: libltdl-devel >= 1.4
BuildRequires: libpng-devel >= 1.0.8
BuildRequires: libtiff-devel
BuildRequires: libtool >= 1.4.3
-%{?with_xml:BuildRequires: libxml2-devel >= 2.5.10}
-%{?with_domxslt:BuildRequires: libxslt-devel >= 1.0.3}
+BuildRequires: libxml2-devel >= 2.5.10
+BuildRequires: libxslt-devel >= 1.0.18
%{?with_mhash:BuildRequires: mhash-devel}
%{?with_ming:BuildRequires: ming-devel >= 0.1.0}
%{?with_mm:BuildRequires: mm-devel >= 1.3.0}
%{?with_mnogosearch:BuildRequires: mnogosearch-devel >= 3.2.6}
-%{?with_mono:BuildRequires: mono-devel}
BuildRequires: mysql-devel >= 4.0.0
BuildRequires: ncurses-ext-devel
%{?with_ldap:BuildRequires: openldap-devel >= 2.0}
%{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
BuildRequires: rpm-php-pearprov >= 4.0.2-100
BuildRequires: rpmbuild(macros) >= 1.120
-%{?with_xslt:BuildRequires: sablotron-devel >= 0.96}
%{?with_sqlite:BuildRequires: sqlite-devel}
BuildRequires: t1lib-devel
%{?with_tidy:BuildRequires: tidy-devel}
%{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
%{?with_odbc:BuildRequires: unixODBC-devel}
%{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel}
-%{?with_yaz:BuildRequires: yaz-devel >= 1.9}
BuildRequires: zlib-devel >= 1.0.9
# apache 1.3 vs apache 2.0
%if %{_apache2}
-BuildRequires: apr-devel >= 1:0.9.4-1
-PreReq: apache >= 2.0.40
+BuildRequires: apache-devel >= 2.0.52-2
+BuildRequires: apr-devel >= 1:1.0.0
+BuildRequires: apr-util-devel >= 1:1.0.0
+PreReq: apache >= 2.0.52-2
Requires: apache(modules-api) = %{apache_modules_api}
%else
+BuildRequires: apache1-devel
PreReq: apache(EAPI) < 2.0.0
PreReq: apache(EAPI) >= 1.3.9
Requires(post,preun): %{apxs}
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
+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
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
+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
dinamicamente geradas de forma rápida.
%description -l ru
-PHP4 - ÜÔÏ ÑÚÙË ÎÁÐÉÓÁÎÉÑ ÓËÒÉÐÔÏ×, ×ÓÔÒÁÉ×ÁÅÍÙÈ × HTML-ËÏÄ. PHP
+PHP - ÜÔÏ ÑÚÙË ÎÁÐÉÓÁÎÉÑ ÓËÒÉÐÔÏ×, ×ÓÔÒÁÉ×ÁÅÍÙÈ × HTML-ËÏÄ. PHP
ÐÒÅÄÌÁÇÁÅÔ ÉÎÔÅÒÇÒÁÃÉÀ Ó ÍÎÏÖÅÓÔ×ÏÍ óõâä, ÐÏÜÔÏÍÕ ÎÁÐÉÓÁÎÉÅ ÓËÒÉÐÔÏ×
ÄÌÑ ÒÁÂÏÔÙ Ó ÂÁÚÁÍÉ ÄÁÎÎÙÈ ÏÔÎÏÓÉÔÅÌØÎÏ ÐÒÏÓÔÏ. îÁÉÂÏÌÅÅ ÐÏÐÕÌÑÒÎÏÅ
ÉÓÐÏÌØÚÏ×ÁÎÉÅ PHP - ÚÁÍÅÎÁ ÄÌÑ CGI ÓËÒÉÐÔÏ×.
apache-php.
%description -l uk
-PHP4 - ÃÅ ÍÏ×Á ÎÁÐÉÓÁÎÎÑ ÓËÒÉÐÔ¦×, ÝÏ ×ÂÕÄÏ×ÕÀÔØÓÑ × HTML-ËÏÄ. PHP
+PHP - ÃÅ ÍÏ×Á ÎÁÐÉÓÁÎÎÑ ÓËÒÉÐÔ¦×, ÝÏ ×ÂÕÄÏ×ÕÀÔØÓÑ × HTML-ËÏÄ. PHP
ÐÒÏÐÏÎÕ¤ ¦ÎÔÅÇÒÁæÀ Ú ÂÁÇÁÔØÍÁ óõâä, ÔÏÍÕ ÎÁÐÉÓÁÎÎÑ ÓËÒÉÐÔ¦× ÄÌÑ
ÒÏÂÏÔÉ Ú ÂÁÚÁÍÉ ÄÁÎÉÈ ¤ ÄÏ×Ï̦ ÐÒÏÓÔÉÍ. îÁʦÌØÛ ÐÏÐÕÌÑÒÎÅ
×ÉËÏÒÉÓÔÁÎÎÑ PHP - ÚÁͦÎÁ ÄÌÑ CGI ÓËÒÉÐÔ¦×.
¦ÎÔÅÒÐÒÅÔÁÔÏÒ PHP × ÑËÏÓÔ¦ ÍÏÄÕÌÑ apache, ×ÓÔÁÎÏצÔØ ÐÁËÅÔ apache-php.
%package fcgi
-Summary: PHP as FastCGI program
-Summary(pl): PHP jako program FastCGI
+Summary: php as FastCGI program
+Summary(pl): php jako program FastCGI
Group: Development/Languages/PHP
PreReq: %{name}-common = %{epoch}:%{version}-%{release}
Provides: php-program = %{epoch}:%{version}-%{release}
%description fcgi
-PHP as FastCGI program.
+php as FastCGI program.
%description fcgi -l pl
-PHP jako program FastCGI.
+php jako program FastCGI.
%package cgi
-Summary: PHP as CGI program
-Summary(pl): PHP jako program CGI
+Summary: php as CGI program
+Summary(pl): php jako program CGI
Group: Development/Languages/PHP
PreReq: %{name}-common = %{epoch}:%{version}-%{release}
Provides: php-program = %{epoch}:%{version}-%{release}
%description cgi
-PHP as CGI program.
+php as CGI program.
%description cgi -l pl
-PHP jako program CGI.
+php jako program CGI.
%package cli
-Summary: PHP as CLI interpreter
-Summary(pl): PHP jako interpreter dzia³aj±cy z linii poleceñ
+Summary: php as CLI interpreter
+Summary(pl): php jako interpreter dzia³aj±cy z linii poleceñ
Group: Development/Languages/PHP
PreReq: %{name}-common = %{epoch}:%{version}-%{release}
Provides: php-program = %{epoch}:%{version}-%{release}
%description cli
-PHP as CLI interpreter.
+php as CLI interpreter.
%description cli -l pl
-PHP jako interpreter dzia³aj±cy z linii poleceñ.
+php jako interpreter dzia³aj±cy z linii poleceñ.
%package common
Summary: Common files needed by both apache module and CGI
Summary(uk): â¦Â̦ÏÔÅËÉ ÓЦÌØÎÏÇÏ ×ÉËÏÒÉÓÔÁÎÎÑ ÄÌÑ php
Group: Libraries
Provides: %{name}-session = %{epoch}:%{version}-%{release}
-Obsoletes: php-session <= %{epoch}:%{version}-%{release}
+Obsoletes: php-session < 3:4.2.1-2
%description common
Common files needed by both apache module and CGI.
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
+Summary(ru): ðÁËÅÔ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÒÁÓÛÉÒÅÎÉÊ PHP
+Summary(uk): ðÁËÅÔ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÏÂÕÄÏ×É ÒÏÚÛÉÒÅÎØ PHP
Group: Development/Languages/PHP
Requires: autoconf
Requires: automake
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Obsoletes: php-pear-devel
+Obsoletes: php4-devel
%description devel
The php-devel package lets you compile dynamic extensions to PHP.
-Included here is the source for the php extensions. Instead of
+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
%description dio -l pl
Modu³ PHP dodaj±cy obs³ugê bezpo¶rednich operacji I/O na plikach.
+%package dom
+Summary: DOM extension module for PHP
+Summary(pl): Modu³ DOM dla PHP
+Group: Libraries
+Requires(post,preun): %{name}-common = %{epoch}:%{version}-%{release}
+Requires: %{name}-common = %{epoch}:%{version}-%{release}
+
+%description dom
+This is a dynamic shared object (DSO) for PHP that will add new DOM
+support.
+
+%description dom -l pl
+Modu³ PHP dodaj±cy now± obs³ugê DOM.
+
%package exif
Summary: exif extension module for PHP
Summary(pl): Modu³ exif dla PHP
Group: Libraries
Requires(post,preun): %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
-Requires: gd >= 2.0.28
+Requires: gd >= 2.0.28-4
Provides: %{name}-gd(gif) = %{epoch}:%{version}-%{release}
%description gd
Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki gmp do obliczeñ na
liczbach o dowolnej d³ugo¶ci.
-%package hyperwave
-Summary: Hyperwave extension module for PHP
-Summary(pl): Modu³ Hyperwave dla PHP
+%package hwapi
+Summary: Hyperwave API extension module for PHP
+Summary(pl): Modu³ API Hyperwave dla PHP
Group: Libraries
Requires(post,preun): %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
-%description hyperwave
-This is a dynamic shared object (DSO) for PHP that will add Hyperwave
-support.
+%description hwapi
+This is a dynamic shared object (DSO) for PHP that will add official
+Hyperwave API support.
-%description hyperwave -l pl
+%description hwapi -l pl
Modu³ PHP dodaj±cy obs³ugê Hyperwave.
%package iconv
%description interbase -l pl
Modu³ PHP umo¿liwiaj±cy dostêp do baz danych InterBase i Firebird.
-%package java
-Summary: Java extension module for PHP
-Summary(pl): Modu³ Javy dla PHP
-Group: Libraries
-Requires(post,preun): %{name}-common = %{epoch}:%{version}-%{release}
-Requires: %{name}-common = %{epoch}:%{version}-%{release}
-
-%description java
-This is a dynamic shared object (DSO) for PHP that will add Java
-support to PHP. This extension provides a simple and effective means
-for creating and invoking methods on Java objects from PHP.
-
-Note: it requires setting LD_LIBRARY_PATH to JRE directories
-containing JVM libraries (e.g. libjava.so, libverify.so and libjvm.so
-for Sun's JRE) before starting Apache or PHP interpreter.
-
-%description java -l pl
-Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
-obiektów Javy z poziomu PHP.
-
-Uwaga: modu³ wymaga ustawienia LD_LIBRARY_PATH na katalogi JRE
-zawieraj±ce biblioteki JVM (np. libjava.so, libverify.so i libjvm.so
-dla JRE Suna) przed uruchomieniem Apache'a lub interpretera PHP.
-
%package ldap
Summary: LDAP extension module for PHP
Summary(pl): Modu³ LDAP dla PHP
Modu³ PHP dodaj±cy pozwalaj±cy na dostêp do wolnodostêpnego silnika
wyszukiwarki mnoGoSearch.
-%package mono
-Summary: Mono extension module for PHP
-Summary(pl): Modu³ Mono dla PHP
-Group: Libraries
-Requires(post,preun): %{name}-common = %{epoch}:%{version}-%{release}
-Requires: %{name}-common = %{epoch}:%{version}-%{release}
-
-%description mono
-This is a dynamic shared object (DSO) for PHP that will allow you to
-access .NET assemblies via free Mono library.
-
-%description mono -l pl
-Modu³ PHP pozwalaj±cy na dostêp do wstawek .NET za pomoc± darmowej
-biblioteki Mono.
-
%package msession
Summary: msession extension module for PHP
Summary(pl): Modu³ msession dla PHP
Summary: ncurses module for PHP
Summary(pl): Modu³ ncurses dla PHP
Group: Libraries
-Requires(post,preun): %{name}-program = %{epoch}:%{version}-%{release}
-Requires: %{name}-program = %{epoch}:%{version}-%{release}
+Requires(post,preun): %{name}-cli = %{epoch}:%{version}-%{release}
+Requires: %{name}-cli = %{epoch}:%{version}-%{release}
%description ncurses
This PHP module adds support for ncurses functions (only for cli and
Summary: readline extension module for PHP
Summary(pl): Modu³ readline dla PHP
Group: Libraries
-Requires(post,preun): %{name}-program = %{epoch}:%{version}-%{release}
-Requires: %{name}-program = %{epoch}:%{version}-%{release}
+Requires(post,preun): %{name}-cli = %{epoch}:%{version}-%{release}
+Requires: %{name}-cli = %{epoch}:%{version}-%{release}
%description readline
This PHP module adds support for readline functions (only for cli and
Uwaga: to jest modu³ eksperymentalny.
-%package simplexml
-Summary: SimpleXML extension module for PHP
-Summary(pl): Modu³ SimpleXML dla PHP
-Group: Libraries
-Requires(post,preun): %{name}-common = %{epoch}:%{version}-%{release}
-Requires: %{name}-%{common} = %{epoch}:%{version}-%{release}
-
-%description simplexml
-This is a dynamic shared object (DSO) for PHP that will add SimpleXML
-support.
-
-%description simplexml -l pl
-Modu³ PHP dodaj±cy obs³ugê SimpleXML.
-
%package snmp
Summary: SNMP extension module for PHP
Summary(pl): Modu³ SNMP dla PHP
%description sybase
This is a dynamic shared object (DSO) for PHP that will add Sybase and
-MS SQL databases support through SYBDB library.
+MS SQL databases support through SYBDB library. Currently Sybase module
+is not maintained. Using Sybase-CT module is recommended instead.
%description sybase -l pl
Modu³ PHP dodaj±cy obs³ugê baz danych Sybase oraz MS SQL poprzez
-bibliotekê SYBDB.
+bibliotekê SYBDB. W chwili obecnej modu³ Sybase nie jest wspierany.
+Zaleca siê u¿ywanie modu³u Sybase-CT.
%package sybase-ct
Summary: Sybase-CT extension module for PHP
Uwaga: to jest modu³ eksperymentalny.
-%package xslt
-Summary: xslt extension module for PHP
-Summary(pl): Modu³ xslt dla PHP
+%package xsl
+Summary: xsl extension module for PHP
+Summary(pl): Modu³ xsl dla PHP
Group: Libraries
Requires(post,preun): %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
+Requires: libxslt >= 1.0.18
-%description xslt
-This is a dynamic shared object (DSO) for PHP that will add xslt
-support.
-
-%description xslt -l pl
-Modu³ PHP umo¿liwiaj±cy korzystanie z technologii xslt.
-
-%package yaz
-Summary: yaz extension module for PHP
-Summary(pl): Modu³ yaz dla PHP
-Group: Libraries
-Requires(post,preun): %{name}-common = %{epoch}:%{version}-%{release}
-Requires: %{name}-common = %{epoch}:%{version}-%{release}
-Requires: yaz >= 1.9
+%description xsl
+This is a dynamic shared object (DSO) for PHP that will add new XSL
+support (using libxslt).
-%description yaz
-This is a dynamic shared object (DSO) for PHP that will add yaz
-support. yaz toolkit implements the Z39.50 protocol for information
-retrieval.
-
-%description yaz -l pl
-Modu³ PHP umo¿liwiaj±cy korzystanie z yaz - implementacji protoko³u
-Z39.50 s³u¿±cego do pozyskiwania informacji.
+%description xsl -l pl
+Modu³ PHP dodaj±cy now± obs³ugê XSLT (przy u¿yciu libxslt).
%package yp
Summary: NIS (yp) extension module for PHP
%package pear
Summary: PEAR - PHP Extension and Application Repository
-Summary(pl): PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
+Summary(pl): PEAR - rozszerzenie PHP i repozytorium aplikacji
Group: Development/Languages/PHP
Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
Requires: %{name}-xml = %{epoch}:%{version}-%{release}
php-PEAR-Archive_Tar, etc) packages.
%description pear -l pl
-PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
+PEAR (PHP Extension and Application Repository) - rozszerzenie PHP i
repozytorium aplikacji.
-Pamiêtaj, ¿e ten pakiet dostarcza tylko podstawow± strukturê
-katalogów. Je¶li chcesz u¿yæ podstawowych klas PEAR (PEAR.php
-PEAR/*.php), dostarczanych z PHP, zainstaluj odpowiednie pakiety
+Nale¿y pamiêtaæ, ¿e ten pakiet dostarcza tylko podstawow± strukturê
+katalogów. Aby u¿yæ podstawowych klas PEAR (PEAR.php PEAR/*.php),
+dostarczanych z PHP, nale¿y zainstalowaæ odpowiednie pakiety
php-pear-* (php-pear-PEAR, php-pear-Archive_Tar, itp).
%prep
%setup -q
%patch0 -p1
%patch1 -p1
-#%patch2 -p1
+%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
-%patch11 -p1
cp php.ini-dist php.ini
-%patch12 -p1
+%patch11 -p1
# for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
# conditionally...
+%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch20 -p1
%patch21 -p1
%patch22 -p1
+%ifarch amd64
%patch23 -p1
+%endif
%patch24 -p1
-%ifarch amd64
%patch25 -p1
-%endif
%patch26 -p1
+%{?with_hardened:zcat %{SOURCE9} | patch -p1}
+
# conflict seems to be resolved by recode patches
rm -f ext/recode/config9.m4
# fix lib path in phpize
cd scripts/
-sed 's,lib/php,%{_lib}/php,' phpize.in > phpize.in.tmp
-mv -f phpize.in.tmp phpize.in
+sed -i -e 's,lib/php,%{_lib}/php,' phpize.in
+cd ..
+
+# new apr
+sed -i -e 's#apr-config#apr-1-config#g' sapi/apache*/*.m4
%build
-CFLAGS="%{rpmcflags} -DEAPI=1 -I/usr/X11R6/include"
+CFLAGS="%{rpmcflags} -DEAPI=1 -I/usr/X11R6/include `%{_bindir}/apr-1-config --includes` `%{_bindir}/apu-1-config --includes`"
EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
./buildconf --force
%{__libtoolize}
--enable-dba=shared \
--enable-dbx=shared \
--enable-dio=shared \
+ --enable-dom=shared \
--enable-exif=shared \
--enable-filepro=shared \
--enable-ftp=shared \
--enable-session \
--enable-shared \
--enable-shmop=shared \
- %{?with_simplexml:--enable-simplexml} \
--enable-sysvmsg=shared \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--enable-sockets=shared \
--enable-ucd-snmp-hack \
%{?with_wddx:--enable-wddx=shared} \
- %{!?with_xml:--disable-xml}%{?with_xml:--enable-xml=shared} \
- %{?with_xslt:--enable-xslt=shared} \
+ --enable-xml=shared \
--enable-yp=shared \
--with-bz2=shared \
%{?with_cpdf:--with-cpdflib=shared} \
%{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
%{?with_db3:--with-db3}%{!?with_db3:--with-db4} \
--with-dbase=shared \
- %{?with_xml:--with-dom=shared} \
- %{?with_domxslt:--with-dom-xslt=shared --with-dom-exslt=shared} \
-%if %{with xml} || %{with xmlrpc}
+%if %{with wddx} || %{with xmlrpc}
--with-expat-dir=shared,/usr \
%else
--without-expat-dir \
--with-gd=shared,/usr \
--with-gdbm \
--with-gmp=shared \
- %{?with_hyperwave:--with-hwapi=shared} \
+ %{?with_hwapi:--with-hwapi=shared} \
%{?with_imap:--with-imap=shared --with-imap-ssl} \
%{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
- %{?with_java:--with-java=/usr/lib/java} \
--with-jpeg-dir=/usr \
%{?with_ldap:--with-ldap=shared} \
--with-mcrypt=shared \
%{?with_ming:--with-ming=shared} \
%{?with_mm:--with-mm} \
%{!?with_mnogosearch:--without-mnogosearch}%{?with_mnogosearch:--with-mnogosearch=shared,/usr} \
- %{?with_mono:--with-mono} \
%{?with_msession:--with-msession=shared}%{!?with_msession:--without-msession} \
%{?with_mssql:--with-mssql=shared} \
--with-mysql=shared,/usr \
--with-tiff-dir=/usr \
%{?with_odbc:--with-unixODBC=shared} \
%{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared,/usr} \
- --with-xsl \
- %{?with_xslt:--with-xslt-sablot=shared} \
- %{?with_yaz:--with-yaz=shared} \
+ --with-xsl=shared \
--with-zlib=shared \
--with-zlib-dir=shared,/usr
-# %{?with_sybase:--with-sybase-ct=shared,/usr --with-sybase=shared,/usr} \
-
cp -f Makefile Makefile.$i
# left for debugging purposes
cp -f main/php_config.h php_config.h.$i
install libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}/apache
# compatibility (/usr/bin/php used to be CGI SAPI)
-ln -sf php.cgi $RPM_BUILD_ROOT%{_bindir}/php
-
-%{?with_java:install ext/java/php_java.jar $RPM_BUILD_ROOT%{extensionsdir}}
+ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
install php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
install %{SOURCE6} %{SOURCE7} %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}
%{_sbindir}/php-module-install remove dio %{_sysconfdir}/php.ini
fi
+%post dom
+%{_sbindir}/php-module-install install dom %{_sysconfdir}/php.ini
+
+%preun dom
+if [ "$1" = "0" ]; then
+ %{_sbindir}/php-module-install remove dom %{_sysconfdir}/php.ini
+fi
+
%post exif
%{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
%{_sbindir}/php-module-install remove gmp %{_sysconfdir}/php.ini
fi
-%post hyperwave
-%{_sbindir}/php-module-install install hyperwave %{_sysconfdir}/php.ini
+%post hwapi
+%{_sbindir}/php-module-install install hwapi %{_sysconfdir}/php.ini
-%preun hyperwave
+%preun hwapi
if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove hyperwave %{_sysconfdir}/php.ini
+ %{_sbindir}/php-module-install remove hwapi %{_sysconfdir}/php.ini
fi
%post iconv
%{_sbindir}/php-module-install remove interbase %{_sysconfdir}/php.ini
fi
-%post java
-%{_sbindir}/php-module-install install java %{_sysconfdir}/php.ini
-
-%preun java
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove java %{_sysconfdir}/php.ini
-fi
-
%post ldap
%{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
%{_sbindir}/php-module-install remove mnogosearch %{_sysconfdir}/php.ini
fi
-%post mono
-%{_sbindir}/php-module-install install mono %{_sysconfdir}/php.ini
-
-%preun mono
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove mono %{_sysconfdir}/php.ini
-fi
-
%post msession
%{_sbindir}/php-module-install install msession %{_sysconfdir}/php.ini
%{_sbindir}/php-module-install remove shmop %{_sysconfdir}/php.ini
fi
-%post simplexml
-%{_sbindir}/php-module-install install simplexml %{_sysconfdir}/php.ini
-
-%preun simplexml
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove simplexml %{_sysconfdir}/php.ini
-fi
-
%post snmp
%{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
%{_sbindir}/php-module-install remove xmlrpc %{_sysconfdir}/php.ini
fi
-%post xslt
-%{_sbindir}/php-module-install install xslt %{_sysconfdir}/php.ini
-
-%preun xslt
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove xslt %{_sysconfdir}/php.ini
-fi
-
-%post yaz
-%{_sbindir}/php-module-install install yaz %{_sysconfdir}/php.ini
+%post xsl
+%{_sbindir}/php-module-install install xsl %{_sysconfdir}/php.ini
-%preun yaz
+%preun xsl
if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove yaz %{_sysconfdir}/php.ini
+ %{_sbindir}/php-module-install remove xsl %{_sysconfdir}/php.ini
fi
%post yp
%files cgi
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/php.cgi
-%attr(755,root,root) %{_bindir}/php
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-cgi.ini
%files cli
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/php.cli
+%attr(755,root,root) %{_bindir}/php
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-cli.ini
%{_mandir}/man1/php.1*
%dir %{_sysconfdir}
%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
-%attr(730,root,http) %dir %verify(not group mode) /var/run/php
+%attr(770,root,http) %dir %verify(not group mode) /var/run/php
%{httpdir}/icons/*
%attr(755,root,root) %{_sbindir}/*
%defattr(644,root,root,755)
%attr(755,root,root) %{extensionsdir}/dio.so
+%files dom
+%defattr(644,root,root,755)
+%attr(755,root,root) %{extensionsdir}/dom.so
+
%if %{with fam}
%files fam
%defattr(644,root,root,755)
%defattr(644,root,root,755)
%attr(755,root,root) %{extensionsdir}/gmp.so
-%if %{with hyperwave}
-%files hyperwave
+%if %{with hwapi}
+%files hwapi
%defattr(644,root,root,755)
-%attr(755,root,root) %{extensionsdir}/hyperwave.so
+%attr(755,root,root) %{extensionsdir}/hwapi.so
%endif
%files iconv
%attr(755,root,root) %{extensionsdir}/interbase.so
%endif
-%if %{with java}
-%files java
-%defattr(644,root,root,755)
-%attr(755,root,root) %{extensionsdir}/java.so
-%{extensionsdir}/php_java.jar
-%endif
-
%if %{with ldap}
%files ldap
%defattr(644,root,root,755)
%attr(755,root,root) %{extensionsdir}/mnogosearch.so
%endif
-%if %{with mono}
-%files mono
-%defattr(644,root,root,755)
-%attr(755,root,root) %{extensionsdir}/mono.so
-%endif
-
%if %{with msession}
%files msession
%defattr(644,root,root,755)
%files sybase
%defattr(644,root,root,755)
%attr(755,root,root) %{extensionsdir}/sybase.so
+%endif
+%if %{with sybase_ct}
%files sybase-ct
%defattr(644,root,root,755)
%attr(755,root,root) %{extensionsdir}/sybase_ct.so
%attr(755,root,root) %{extensionsdir}/wddx.so
%endif
-%if %{with xml}
%files xml
%defattr(644,root,root,755)
%attr(755,root,root) %{extensionsdir}/xml.so
-%endif
-
-# FIXME: build as shared module
-%if 0 && %{with simplexml}
-%files simplexml
-%defattr(644,root,root,755)
-%attr(755,roor,root) %{extensionsdir}/simplexml.so
-%endif
%if %{with xmlrpc}
%files xmlrpc
%attr(755,root,root) %{extensionsdir}/xmlrpc.so
%endif
-#%if %{with xslt}
-#%files xslt
-#%defattr(644,root,root,755)
-#%attr(755,root,root) %{extensionsdir}/xslt.so
-#%endif
-
-%if %{with yaz}
-%files yaz
+%files xsl
%defattr(644,root,root,755)
-%attr(755,root,root) %{extensionsdir}/yaz.so
-%endif
+%attr(755,root,root) %{extensionsdir}/xsl.so
%files yp
%defattr(644,root,root,755)