]> git.pld-linux.org Git - packages/php.git/blobdiff - php.spec
- xmlwriter obsoletes php-pecl-xmlwriter
[packages/php.git] / php.spec
index dec866d996eac0d70609001d29757687adce335a..282e20e32220a595278e773696f77ed947925c1a 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -5,11 +5,10 @@
 #    - pfpro,
 #   These extensions BuildRequires proprietary libraries...
 # - deal with modules removed from php and not moved to PECL
-#   (existing only in php4):
-#   db, hyperwave, java, mcal, overload, qtdom
-#   and removed from php 5.1:
-#   cpdf, fam, yp, oracle
+#   removed from php 5.2:
+#   filepro, hw
 # - mime_magic can't handle new "string/*" entries in magic.mime
+#   thus doesn't work with system magic.mime database
 # - make additional headers added by mail patch configurable
 # - apply -hardened patch by default ?
 # - modularize session, standard (output from pure php -m)?
 %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 lib)
 %bcond_with    hardening       # build with hardening 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    oci8            # with Oracle oci8 extension module     (BR: proprietary libs)
 %bcond_without curl            # without CURL extension module
+%bcond_without filter          # without filter extension module
 %bcond_without imap            # without IMAP extension module
 %bcond_with    interbase       # with InterBase extension module
 %bcond_without ldap            # without LDAP extension module
 %bcond_without mhash           # without mhash extension module
+%bcond_without mime_magic      # without mime-magic module
 %bcond_without ming            # without ming extension module
 %bcond_without mm              # without mm support for session storage
 %bcond_without mssql           # without MS SQL extension module
 %bcond_without mysqli          # without mysqli support (Requires mysql > 4.1)
-%bcond_without mime_magic      # without mime-magic module
 %bcond_without odbc            # without ODBC extension module
 %bcond_without openssl         # without OpenSSL support and OpenSSL extension (module)
 %bcond_without pcre            # without PCRE extension module
 %undefine      with_interbase
 %endif
 
-%if %{without apache1} && %{without apache2}
+%if !%{with apache1} && !%{with apache2}
 ERROR: You need to select at least one Apache SAPI to build shared modules.
 %endif
 
-%define        _rel 3.2
+# filter depends on pcre
+%if %{without pcre}
+%undefine      with_filter
+%endif
+
+%define        _rel 3
 Summary:       PHP: Hypertext Preprocessor
 Summary(fr):   Le langage de script embarque-HTML PHP
 Summary(pl):   Jêzyk skryptowy PHP
@@ -74,14 +78,13 @@ Summary(pt_BR):     A linguagem de script PHP
 Summary(ru):   PHP ÷ÅÒÓÉÉ 5 - ÑÚÙË ÐÒÅÐÒÏÃÅÓÓÉÒÏ×ÁÎÉÑ HTML-ÆÁÊÌÏ×, ×ÙÐÏÌÎÑÅÍÙÊ ÎÁ ÓÅÒ×ÅÒÅ
 Summary(uk):   PHP ÷ÅÒÓ¦§ 5 - ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
 Name:          php
-Version:       5.1.4
+Version:       5.2.0
 Release:       %{_rel}%{?with_hardening:hardened}
 Epoch:         4
 License:       PHP
 Group:         Libraries
 Source0:       http://www.php.net/distributions/%{name}-%{version}.tar.bz2
-# Source0-md5: b55e633bdc80ab30da7c92f760fc4b58
-Source1:       FAQ.%{name}
+# Source0-md5: e6029fafcee029edcfa2ceed7a005333
 Source2:       zend.gif
 Source3:       %{name}-mod_%{name}.conf
 Source4:       %{name}-cgi-fcgi.ini
@@ -90,17 +93,21 @@ Source6:    %{name}-apache.ini
 Source7:       %{name}-cli.ini
 Source8:       http://www.hardened-php.net/hardening-patch-5.0.4-0.3.0.patch.gz
 # Source8-md5: 47a742fa9fab2826ad10c13a2376111a
+# Taken from: http://browsers.garykeith.com/downloads.asp
+Source9:       %{name}_browscap.ini
 Patch0:                %{name}-shared.patch
 Patch1:                %{name}-pldlogo.patch
 Patch2:                %{name}-mail.patch
 Patch3:                %{name}-link-libs.patch
 Patch4:                %{name}-libpq_fs_h_path.patch
+Patch5:                %{name}-filter-shared.patch
 Patch6:                %{name}-build_modules.patch
 Patch7:                %{name}-sapi-ini-file.patch
 Patch8:                %{name}-no-metaccld.patch
-Patch9:                %{name}-reflection.patch
+Patch9:                %{name}-sh.patch
 Patch10:       %{name}-ini.patch
 Patch11:       %{name}-acam.patch
+Patch12:       %{name}-curl.patch
 Patch14:       %{name}-allow-db31.patch
 Patch15:       %{name}-threads-acfix.patch
 Patch16:       %{name}-tsrmlsfetchgcc2.patch
@@ -111,19 +118,17 @@ Patch20:  %{name}-readline.patch
 Patch21:       %{name}-nohttpd.patch
 Patch23:       %{name}-gd_imagerotate_enable.patch
 Patch24:       %{name}-uint32_t.patch
-Patch25:       %{name}-hwapi-link.patch
 Patch26:       %{name}-dba-link.patch
 Patch30:       %{name}-hardening-fix.patch
 Patch31:       %{name}-both-apxs.patch
 Patch32:       %{name}-builddir.patch
 Patch33:       %{name}-zlib-for-getimagesize.patch
-Patch34:       %{name}-ini-search-path.patch
 Patch35:       %{name}-versioning.patch
 Patch36:       %{name}-linkflags-clean.patch
-Patch37:       %{name}-cli-segv-fixes.patch
-Patch38:       %{name}-amd64.patch
-Patch39:       %{name}-soap.patch
-Patch40:       %{name}-substr_compare.patch
+Patch38:       %{name}-memory-limit.patch
+Patch39:       %{name}-pear.patch
+Patch40:       %{name}-db4.5.patch
+Patch41:       %{name}-config-dir.patch
 URL:           http://www.php.net/
 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:       Firebird-devel >= 1.0.2.908-2}}
 %{?with_pspell:BuildRequires:  aspell-devel >= 2:0.50.0}
@@ -158,9 +163,9 @@ BuildRequires:      libtiff-devel
 BuildRequires: libtool >= 1.4.3
 BuildRequires: libwrap-devel
 BuildRequires: libxml2-devel >= 2.5.10
-BuildRequires: libxslt-devel >= 1.0.18
+BuildRequires: libxslt-devel >= 1.1.0
 %{?with_mhash:BuildRequires:   mhash-devel}
-%{?with_ming:BuildRequires:    ming-devel >= 0.1.0}
+%{?with_ming:BuildRequires:    ming-devel >= 0.2a-11}
 %{?with_mm:BuildRequires:      mm-devel >= 1.3.0}
 BuildRequires: mysql-devel >= 4.0.0
 %{?with_mysqli:BuildRequires:  mysql-devel >= 4.1.0}
@@ -171,7 +176,7 @@ BuildRequires:      openssl-devel >= 0.9.7d
 %endif
 %{?with_snmp:BuildRequires:    net-snmp-devel >= 5.0.7}
 BuildRequires: pam-devel
-%{?with_pcre:BuildRequires:    pcre-devel}
+%{?with_pcre:BuildRequires:    pcre-devel >= 6.6}
 %{?with_pgsql:BuildRequires:   postgresql-backend-devel >= 7.2}
 %{?with_pgsql:BuildRequires:   postgresql-devel}
 BuildRequires: readline-devel
@@ -200,8 +205,8 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # must be in sync with source. extra check ensuring that it is so is done in %%build
 %define                php_api_version         20041225
-%define                zend_module_api         20050922
-%define                zend_extension_api      220051025
+%define                zend_module_api         20060613
+%define                zend_extension_api      220060519
 %define                zend_zts                        %{!?with_zts:0}%{?with_zts:1}
 %define                php_debug                       %{!?debug:0}%{?debug:1}
 
@@ -214,11 +219,7 @@ 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.
+version %{version}.
 
 %description -l fr
 PHP est un langage de script embarque dans le HTM. PHP essaye de
@@ -230,18 +231,18 @@ 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.
+%{version}.
 
 %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.
+plikach HTML. Jest prób± u³atwienia programistom pisania dynamicznie
+generowanych stron WWW. Oferuje tak¿e wbudowan± integracjê z bazami
+danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
+co czyni tworzenie stron korzystaj±cych z baz danych w miarê ³atwym.
+Najczê¶ciej PHP jest u¿ywany prawdopodobnie jako zamiennik skryptów
+CGI. Modu³ mod_php pozwala serwerowi WWW Apache rozumieæ i przetwarzaæ
+jêzyk PHP osadzony w stronach. Ten pakiet zawiera php w wersji
+%{version}.
 
 %description -l pt_BR
 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
@@ -259,7 +260,7 @@ PHP - 
 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÁÍÏÄÏÓÔÁÔÏÞÎÕÀ (CGI) ×ÅÒÓÉÀ ÉÎÔÅÒÐÒÅÔÁÔÏÒÁ ÑÚÙËÁ.
 ÷Ù ÄÏÌÖÎÙ ÔÁËÖÅ ÕÓÔÁÎÏ×ÉÔØ ÐÁËÅÔ %{name}-common. åÓÌÉ ×ÁÍ ÎÕÖÅÎ
 ÉÎÔÅÒÐÒÅÔÁÔÏÒ PHP × ËÁÞÅÓÔ×Å ÍÏÄÕÌÑ apache, ÕÓÔÁÎÏ×ÉÔÅ ÐÁËÅÔ
-apache-php.
+apache-mod_php.
 
 %description -l uk
 PHP - ÃÅ ÍÏ×Á ÎÁÐÉÓÁÎÎÑ ÓËÒÉÐÔ¦×, ÝÏ ×ÂÕÄÏ×ÕÀÔØÓÑ × HTML-ËÏÄ. PHP
@@ -269,7 +270,8 @@ PHP - 
 
 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓÁÍÏÄÏÓÔÁÔÎÀ (CGI) ×ÅÒÓ¦À ¦ÎÔÅÒÐÒÅÔÁÔÏÒÁ ÍÏ×É. ÷É
 ÍÁ¤ÔÅ ÔÁËÏÖ ×ÓÔÁÎÏ×ÉÔÉ ÐÁËÅÔ %{name}-common. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÅÎ
-¦ÎÔÅÒÐÒÅÔÁÔÏÒ PHP × ÑËÏÓÔ¦ ÍÏÄÕÌÑ apache, ×ÓÔÁÎÏצÔØ ÐÁËÅÔ apache-php.
+¦ÎÔÅÒÐÒÅÔÁÔÏÒ PHP × ÑËÏÓÔ¦ ÍÏÄÕÌÑ apache, ×ÓÔÁÎÏצÔØ ÐÁËÅÔ
+apache-mod_php.
 
 %package -n apache1-mod_php
 Summary:       PHP DSO module for apache 1.3.x
@@ -279,7 +281,7 @@ Requires(triggerpostun):    sed >= 4.0
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      apache1(EAPI) >= 1.3.33-2
 Requires:      apache1-mod_mime
-Provides:      php = %{epoch}:%{version}-%{release}
+Provides:      webserver(php) = %{version}
 Obsoletes:     apache-mod_php < 1:4.1.1
 Obsoletes:     phpfi
 
@@ -296,7 +298,7 @@ Group:              Development/Languages/PHP
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      apache(modules-api) = %{apache_modules_api}
 Requires:      apache-mod_mime
-Provides:      php = %{epoch}:%{version}-%{release}
+Provides:      webserver(php) = %{version}
 Obsoletes:     phpfi
 
 %description -n apache-mod_php
@@ -310,7 +312,7 @@ Summary:    php as FastCGI program
 Summary(pl):   php jako program FastCGI
 Group:         Development/Languages/PHP
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-Provides:      php = %{epoch}:%{version}-%{release}
+Provides:      webserver(php) = %{version}
 
 %description fcgi
 php as FastCGI program.
@@ -364,19 +366,24 @@ Group:            Libraries
 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
 Requires:      glibc >= 6:2.3.5
 Requires:      php-dirs
-Provides:      %{name}-libxml = %{epoch}:%{version}-%{release}
-Provides:      %{name}-session = %{epoch}:%{version}-%{release}
-Provides:      %{name}-simplexml = %{epoch}:%{version}-%{release}
-Provides:      %{name}-spl = %{epoch}:%{version}-%{release}
-Provides:      %{name}-standard = %{epoch}:%{version}-%{release}
+Provides:      php(date)
+Provides:      php(libxml)
 Provides:      php(modules_api) = %{php_api_version}
+Provides:      php(overload)
+%{?with_pcre:Provides: php(pcre)}
+Provides:      php(reflection)
+Provides:      php(session)
+Provides:      php(simplexml)
+Provides:      php(spl)
+Provides:      php(standard)
 Provides:      php(zend_extension_api) = %{zend_extension_api}
 Provides:      php(zend_module_api) = %{zend_module_api}
 Provides:      php5(debug) = %{php_debug}
 Provides:      php5(thread-safety) = %{zend_zts}
+Obsoletes:     php-pcre < 4:5.2.0
 Obsoletes:     php-pecl-domxml
 Obsoletes:     php-session < 3:4.2.1-2
-# for the posttrans scriptlet, conflicts because in vserver enviroinment rpm package is not installed.
+Conflicts:     php4-common < 3:4.4.4-8
 Conflicts:     rpm < 4.4.2-0.2
 
 %description common
@@ -445,8 +452,8 @@ oracle, 
 Summary:       bcmath extension module for PHP
 Summary(pl):   Modu³ bcmath dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(bcmath)
 
 %description bcmath
 This is a dynamic shared object (DSO) for PHP that will add bc style
@@ -460,8 +467,8 @@ matematycznych takich jak w programie bc.
 Summary:       Bzip2 extension module for PHP
 Summary(pl):   Modu³ bzip2 dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(bzip2)
 
 %description bzip2
 This is a dynamic shared object (DSO) for PHP that will add bzip2
@@ -474,8 +481,8 @@ Modu
 Summary:       Calendar extension module for PHP
 Summary(pl):   Modu³ funkcji kalendarza dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(calendar)
 
 %description calendar
 This is a dynamic shared object (DSO) for PHP that will add calendar
@@ -488,8 +495,8 @@ Modu
 Summary:       ctype extension module for PHP
 Summary(pl):   Modu³ ctype dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(ctype)
 
 %description ctype
 This is a dynamic shared object (DSO) for PHP that will add ctype
@@ -502,8 +509,8 @@ Modu
 Summary:       curl extension module for PHP
 Summary(pl):   Modu³ curl dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(curl)
 
 %description curl
 This is a dynamic shared object (DSO) for PHP that will add curl
@@ -516,8 +523,8 @@ Modu
 Summary:       DBA extension module for PHP
 Summary(pl):   Modu³ DBA dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(dba)
 
 %description dba
 This is a dynamic shared object (DSO) for PHP that will add flat-file
@@ -531,8 +538,8 @@ Modu
 Summary:       DBase extension module for PHP
 Summary(pl):   Modu³ DBase dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(dbase)
 
 %description dbase
 This is a dynamic shared object (DSO) for PHP that will add DBase
@@ -545,10 +552,10 @@ Modu
 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}
+Provides:      php(dom)
 # it has some compatibility functions
-Provides:      php-domxml = %{epoch}:%{version}-%{release}
+Provides:      php(domxml)
 Obsoletes:     php-domxml <= 3:4.3.8-1
 
 %description dom
@@ -562,8 +569,8 @@ Modu
 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}
+Provides:      php(exif)
 
 %description exif
 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
@@ -576,8 +583,8 @@ Modu
 Summary:       FDF extension module for PHP
 Summary(pl):   Modu³ FDF dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(fdf)
 
 %description fdf
 This PHP module adds support for PDF Forms through Adobe FDFTK
@@ -587,27 +594,34 @@ library.
 Modu³ PHP dodaj±cy obs³ugê formularzy PDF poprzez bibliotekê Adobe
 FDFTK.
 
-%package filepro
-Summary:       filePro extension module for PHP
-Summary(pl):   Modu³ filePro dla PHP
+%package filter
+Summary:       Extension for safely dealing with input parameters
+Summary(pl):   Rozszerzenie do bezpiecznej obs³ugi danych wej¶ciowych
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(filter)
+Obsoletes:     php-pecl-filter
 
-%description filepro
-This is a dynamic shared object (DSO) for PHP that will add support
-for read-only access to filePro databases.
+%description filter
+We all know that you should always check input variables, but PHP does
+not offer really good functionality for doing this in a safe way. The
+Input Filter extension is meant to address this issue by implementing
+a set of filters and mechanisms that users can use to safely access
+their input data.
 
-%description filepro -l pl
-Modu³ PHP dodaj±cy mo¿liwo¶æ dostêpu (tylko do odczytu) do baz danych
-filePro.
+%description filter -l pl
+Wiadomo, ¿e trzeba zawsze sprawdzaæ zmienne wej¶ciowe, ale PHP nie
+oferuje naprawdê dobrej funkcjonalno¶ci do robienia tego w sposób
+bezpieczny. Rozszerzenie Input Filter ma rozwi±zaæ ten problem poprzez
+zaimplementowanie zestawu filtrów i mechanizmów, których u¿ytkownicy
+mog± bezpiecznie u¿ywaæ do dostêpu do danych.
 
 %package ftp
 Summary:       FTP extension module for PHP
 Summary(pl):   Modu³ FTP dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(ftp)
 
 %description ftp
 This is a dynamic shared object (DSO) for PHP that will add FTP
@@ -620,10 +634,10 @@ Modu
 Summary:       GD extension module for PHP
 Summary(pl):   Modu³ GD dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      gd >= 2.0.28-4
-Provides:      %{name}-gd(gif) = %{epoch}:%{version}-%{release}
+Requires:      gd(gif)
+Provides:      php(gd)
 
 %description gd
 This is a dynamic shared object (DSO) for PHP that will add GD
@@ -637,8 +651,8 @@ tworzenie i obr
 Summary:       gettext extension module for PHP
 Summary(pl):   Modu³ gettext dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(gettext)
 
 %description gettext
 This is a dynamic shared object (DSO) for PHP that will add gettext
@@ -651,8 +665,8 @@ Modu
 Summary:       gmp extension module for PHP
 Summary(pl):   Modu³ gmp dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(gmp)
 
 %description gmp
 This is a dynamic shared object (DSO) for PHP that will add arbitrary
@@ -662,26 +676,27 @@ length number support with GNU MP library.
 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki gmp do obliczeñ na
 liczbach o dowolnej d³ugo¶ci.
 
-%package hwapi
-Summary:       Hyperwave API extension module for PHP
-Summary(pl):   Modu³ API Hyperwave dla PHP
+%package hash
+Summary:       HASH Message Digest Framework
+Summary(pl):   Szkielet do obliczania skrótów wiadomo¶ci
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(hash)
 
-%description hwapi
-This is a dynamic shared object (DSO) for PHP that will add official
-Hyperwave API support.
+%description hash
+Native implementations of common message digest algorithms using a
+generic factory method.
 
-%description hwapi -l pl
-Modu³ PHP dodaj±cy obs³ugê Hyperwave.
+%description hash -l pl
+Natywne implementacje popularnych algorytmów obliczania skrótów
+wiadomo¶ci przy u¿yciu wspólnego interfejsu.
 
 %package iconv
 Summary:       iconv extension module for PHP
 Summary(pl):   Modu³ iconv dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(iconv)
 
 %description iconv
 This is a dynamic shared object (DSO) for PHP that will add iconv
@@ -695,8 +710,8 @@ Summary:    IMAP extension module for PHP
 Summary(pl):   Modu³ IMAP dla PHP
 Summary(pt_BR):        Um módulo para aplicações PHP que usam IMAP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(imap)
 
 %description imap
 This is a dynamic shared object (DSO) for PHP that will add IMAP
@@ -712,8 +727,8 @@ Um m
 Summary:       InterBase/Firebird database module for PHP
 Summary(pl):   Modu³ bazy danych InterBase/Firebird dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(interbase)
 %{?with_interbase_inst:Autoreq:        false}
 
 %description interbase
@@ -723,13 +738,29 @@ and Firebird database support.
 %description interbase -l pl
 Modu³ PHP umo¿liwiaj±cy dostêp do baz danych InterBase i Firebird.
 
+%package json
+Summary:       PHP C extension for JSON serialization
+Summary(pl):   Rozszerzenie C PHP dla serializacji JSON
+Group:         Libraries
+Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(json)
+Obsoletes:     php-pecl-json
+
+%description json
+php-json is an extremely fast PHP C extension for JSON (JavaScript
+Object Notation) serialisation.
+
+%description json -l pl
+php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
+(JavaScript Object Notation).
+
 %package ldap
 Summary:       LDAP extension module for PHP
 Summary(pl):   Modu³ LDAP dla PHP
 Summary(pt_BR):        Um módulo para aplicações PHP que usam LDAP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(ldap)
 
 %description ldap
 This is a dynamic shared object (DSO) for PHP that will add LDAP
@@ -745,8 +776,8 @@ Um m
 Summary:       mbstring extension module for PHP
 Summary(pl):   Modu³ mbstring dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(mbstring)
 
 %description mbstring
 This is a dynamic shared object (DSO) for PHP that will add multibyte
@@ -759,8 +790,8 @@ Modu
 Summary:       mcrypt extension module for PHP
 Summary(pl):   Modu³ mcrypt dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(mcrypt)
 
 %description mcrypt
 This is a dynamic shared object (DSO) for PHP that will add mcrypt
@@ -773,8 +804,8 @@ Modu
 Summary:       mhash extension module for PHP
 Summary(pl):   Modu³ mhash dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(mhash)
 
 %description mhash
 This is a dynamic shared object (DSO) for PHP that will add mhash
@@ -787,9 +818,9 @@ Modu
 Summary:       mime_magic extension module for PHP
 Summary(pl):   Modu³ mime_magic dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      /usr/share/file/magic.mime
+Provides:      php(mime_magic)
 
 %description mime_magic
 This PHP module adds support for MIME type lookup via file magic
@@ -803,8 +834,8 @@ znacznik
 Summary:       ming extension module for PHP
 Summary(pl):   Modu³ ming dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(ming)
 
 %description ming
 This is a dynamic shared object (DSO) for PHP that will add ming
@@ -818,8 +849,8 @@ ming.
 Summary:       MS SQL extension module for PHP
 Summary(pl):   Modu³ MS SQL dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(mssql)
 
 %description mssql
 This is a dynamic shared object (DSO) for PHP that will add MS SQL
@@ -834,8 +865,8 @@ Summary:    MySQL database module for PHP
 Summary(pl):   Modu³ bazy danych MySQL dla PHP
 Summary(pt_BR):        Um módulo para aplicações PHP que usam bancos de dados MySQL
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(mysql)
 
 %description mysql
 This is a dynamic shared object (DSO) for PHP that will add MySQL
@@ -851,9 +882,9 @@ Um m
 Summary:       MySQLi module for PHP
 Summary(pl):   Modu³ MySQLi dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      mysql-libs >= 4.1.0
+Provides:      php(mysqli)
 
 %description mysqli
 This is a dynamic shared object (DSO) for PHP that will add MySQLi
@@ -869,8 +900,8 @@ MySQL w wersji 4.1 i nowszych.
 Summary:       ncurses module for PHP
 Summary(pl):   Modu³ ncurses dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-cli = %{epoch}:%{version}-%{release}
 Requires:      %{name}-cli = %{epoch}:%{version}-%{release}
+Provides:      php(ncurses)
 
 %description ncurses
 This PHP module adds support for ncurses functions (only for cli and
@@ -883,8 +914,8 @@ Modu
 Summary:       Oracle 8+ database module for PHP
 Summary(pl):   Modu³ bazy danych Oracle 8+ dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(oci8)
 Autoreq:       false
 
 %description oci8
@@ -900,9 +931,9 @@ Summary:    ODBC extension module for PHP
 Summary(pl):   Modu³ ODBC dla PHP
 Summary(pt_BR):        Um módulo para aplicações PHP que usam bases de dados ODBC
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      unixODBC >= 2.1.1-3
+Provides:      php(odbc)
 
 %description odbc
 This is a dynamic shared object (DSO) for PHP that will add ODBC
@@ -918,8 +949,8 @@ Um m
 Summary:       OpenSSL extension module for PHP
 Summary(pl):   Modu³ OpenSSL dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(openssl)
 
 %description openssl
 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
@@ -936,8 +967,8 @@ Uwaga: to jest modu
 Summary:       Process Control extension module for PHP
 Summary(pl):   Modu³ Process Control dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-program = %{epoch}:%{version}-%{release}
-Requires:      %{name}-program = %{epoch}:%{version}-%{release}
+Requires:      %{name}-cli = %{epoch}:%{version}-%{release}
+Provides:      php(pcntl)
 
 %description pcntl
 This is a dynamic shared object (DSO) for PHP that will add process
@@ -954,27 +985,12 @@ Obs
 Uwaga: to jest modu³ eksperymentalny. Ponadto nie jest przeznaczony do
 u¿ywania z serwerem WWW - nie próbuj tego!
 
-%package pcre
-Summary:       PCRE extension module for PHP
-Summary(pl):   Modu³ PCRE dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-
-%description pcre
-This is a dynamic shared object (DSO) for PHP that will add Perl
-Compatible Regular Expression support.
-
-%description pcre -l pl
-Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
-(Perl Compatible Regular Expressions)
-
 %package pdo
 Summary:       PHP Data Objects (PDO)
 Summary(pl):   Obs³uga PHP Data Objects (PDO)
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(pdo)
 Obsoletes:     php-pecl-PDO
 
 %description pdo
@@ -988,9 +1004,9 @@ Modu
 Summary:       PHP Data Objects (PDO) FreeTDS support
 Summary(pl):   Modu³ PHP Data Objects (PDO) z obs³ug± FreeTDS
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-pdo = %{epoch}:%{version}-%{release}
+Provides:      php(dblib)
 
 %description pdo-dblib
 This is a dynamic shared object (DSO) for PHP that will add PDO
@@ -1004,9 +1020,9 @@ interfejsu PDO.
 Summary:       PHP Data Objects (PDO) Firebird support
 Summary(pl):   Modu³ PHP Data Objects (PDO) z obs³ug± Firebirda
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-pdo = %{epoch}:%{version}-%{release}
+Provides:      php(pdo-firebird)
 Obsoletes:     php-pecl-PDO_FIREBIRD
 
 %description pdo-firebird
@@ -1021,9 +1037,9 @@ interfejsu PDO.
 Summary:       PHP Data Objects (PDO) MySQL support
 Summary(pl):   Modu³ PHP Data Objects (PDO) z obs³ug± MySQL-a
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-pdo = %{epoch}:%{version}-%{release}
+Provides:      php(pdo-mysql)
 Obsoletes:     php-pecl-PDO_MYSQL
 
 %description pdo-mysql
@@ -1038,9 +1054,9 @@ interfejsu PDO.
 Summary:       PHP Data Objects (PDO) Oracle support
 Summary(pl):   Modu³ PHP Data Objects (PDO) z obs³ug± Oracle'a
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-pdo = %{epoch}:%{version}-%{release}
+Provides:      php(pdo-oci)
 Obsoletes:     php-pecl-PDO_OCI
 
 %description pdo-oci
@@ -1055,9 +1071,9 @@ interfejsu PDO.
 Summary:       PHP Data Objects (PDO) ODBC support
 Summary(pl):   Modu³ PHP Data Objects (PDO) z obs³ug± ODBC
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-pdo = %{epoch}:%{version}-%{release}
+Provides:      php(pdo-odbc)
 Obsoletes:     php-pecl-PDO_ODBC
 
 %description pdo-odbc
@@ -1072,9 +1088,9 @@ interfejsu PDO.
 Summary:       PHP Data Objects (PDO) PostgreSQL support
 Summary(pl):   Modu³ PHP Data Objects (PDO) z obs³ug± PostgreSQL-a
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-pdo = %{epoch}:%{version}-%{release}
+Provides:      php(pdo-pgsql)
 Obsoletes:     php-pecl-PDO_PGSQL
 
 %description pdo-pgsql
@@ -1089,9 +1105,9 @@ interfejsu PDO.
 Summary:       PHP Data Objects (PDO) SQLite support
 Summary(pl):   Modu³ PHP Data Objects (PDO) z obs³ug± SQLite
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-pdo = %{epoch}:%{version}-%{release}
+Provides:      php(pdo-sqlite)
 Obsoletes:     php-pecl-PDO_SQLITE
 
 %description pdo-sqlite
@@ -1106,8 +1122,8 @@ interfejsu PDO.
 Summary:       PostgreSQL database module for PHP
 Summary(pl):   Modu³ bazy danych PostgreSQL dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(pgsql)
 
 %description pgsql
 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
@@ -1123,8 +1139,8 @@ Um m
 Summary:       POSIX extension module for PHP
 Summary(pl):   Modu³ POSIX dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(posix)
 
 %description posix
 This is a dynamic shared object (DSO) for PHP that will add POSIX
@@ -1137,8 +1153,8 @@ Modu
 Summary:       pspell extension module for PHP
 Summary(pl):   Modu³ pspell dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(pspell)
 
 %description pspell
 This is a dynamic shared object (DSO) for PHP that will add pspell
@@ -1153,8 +1169,8 @@ sprawdzanie pisowni s
 Summary:       readline extension module for PHP
 Summary(pl):   Modu³ readline dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-cli = %{epoch}:%{version}-%{release}
 Requires:      %{name}-cli = %{epoch}:%{version}-%{release}
+Provides:      php(readline)
 
 %description readline
 This PHP module adds support for readline functions (only for cli and
@@ -1167,9 +1183,9 @@ Modu
 Summary:       recode extension module for PHP
 Summary(pl):   Modu³ recode dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      recode >= 3.5d-3
+Provides:      php(recode)
 
 %description recode
 This is a dynamic shared object (DSO) for PHP that will add recode
@@ -1179,26 +1195,12 @@ support.
 Modu³ PHP dodaj±cy mo¿liwo¶æ konwersji kodowania plików (poprzez
 bibliotekê recode).
 
-%package session
-Summary:       session extension module for PHP
-Summary(pl):   Modu³ session dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-
-%description session
-This is a dynamic shared object (DSO) for PHP that will add session
-support.
-
-%description session -l pl
-Modu³ PHP dodaj±cy obs³ugê sesji.
-
 %package shmop
 Summary:       Shared Memory Operations extension module for PHP
 Summary(pl):   Modu³ shmop dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(shmop)
 
 %description shmop
 This is a dynamic shared object (DSO) for PHP that will add Shared
@@ -1215,8 +1217,8 @@ Uwaga: to jest modu
 Summary:       Simple XML extension module for PHP
 Summary(pl):   Modu³ prostego rozszerzenia XML dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(simplexml)
 
 %description simplexml
 This is a dynamic shared object (DSO) for PHP that will add Simple XML
@@ -1229,9 +1231,9 @@ Modu
 Summary:       SNMP extension module for PHP
 Summary(pl):   Modu³ SNMP dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-sockets = %{epoch}:%{version}-%{release}
+Provides:      php(snmp)
 
 %description snmp
 This is a dynamic shared object (DSO) for PHP that will add SNMP
@@ -1244,8 +1246,8 @@ Modu
 Summary:       soap extension module for PHP
 Summary(pl):   Modu³ soap dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(soap)
 
 %description soap
 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
@@ -1258,8 +1260,8 @@ Modu
 Summary:       sockets extension module for PHP
 Summary(pl):   Modu³ socket dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(sockets)
 
 %description sockets
 This is a dynamic shared object (DSO) for PHP that will add sockets
@@ -1276,9 +1278,9 @@ Uwaga: to jest modu
 Summary:       SQLite extension module for PHP
 Summary(pl):   Modu³ SQLite dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-pdo = %{epoch}:%{version}-%{release}
+Provides:      php(sqlite)
 
 %description sqlite
 SQLite is a C library that implements an embeddable SQL database
@@ -1304,8 +1306,8 @@ dysku.
 Summary:       Sybase DB extension module for PHP
 Summary(pl):   Modu³ Sybase DB dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(sybase)
 Obsoletes:     php-sybase-ct
 
 %description sybase
@@ -1323,8 +1325,8 @@ Zaleca si
 Summary:       Sybase-CT extension module for PHP
 Summary(pl):   Modu³ Sybase-CT dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(sybase-ct)
 Obsoletes:     php-sybase
 
 %description sybase-ct
@@ -1339,8 +1341,8 @@ CT-lib.
 Summary:       SysV msg extension module for PHP
 Summary(pl):   Modu³ SysV msg dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(sysvmsg)
 
 %description sysvmsg
 This is a dynamic shared object (DSO) for PHP that will add SysV
@@ -1353,8 +1355,8 @@ Modu
 Summary:       SysV sem extension module for PHP
 Summary(pl):   Modu³ SysV sem dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(sysvsem)
 
 %description sysvsem
 This is a dynamic shared object (DSO) for PHP that will add SysV
@@ -1367,8 +1369,8 @@ Modu
 Summary:       SysV shm extension module for PHP
 Summary(pl):   Modu³ SysV shm dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(sysvshm)
 
 %description sysvshm
 This is a dynamic shared object (DSO) for PHP that will add SysV
@@ -1381,9 +1383,9 @@ Modu
 Summary:       Tidy extension module for PHP
 Summary(pl):   Modu³ Tidy dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      tidy
+Provides:      php(tidy)
 
 %description tidy
 This is a dynamic shared object (DSO) for PHP that will add Tidy
@@ -1396,8 +1398,8 @@ Modu
 Summary:       tokenizer extension module for PHP
 Summary(pl):   Modu³ rozszerzenia tokenizer dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(tokenizer)
 
 %description tokenizer
 This is a dynamic shared object (DSO) for PHP that will add tokenizer
@@ -1410,10 +1412,10 @@ Modu
 Summary:       wddx extension module for PHP
 Summary(pl):   Modu³ wddx dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-session = %{epoch}:%{version}-%{release}
+#Requires:     %{name}-session = %{epoch}:%{version}-%{release}
 Requires:      %{name}-xml = %{epoch}:%{version}-%{release}
+Provides:      php(wddx)
 
 %description wddx
 This is a dynamic shared object (DSO) for PHP that will add wddx
@@ -1426,8 +1428,8 @@ Modu
 Summary:       XML extension module for PHP
 Summary(pl):   Modu³ XML dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(xml)
 
 %description xml
 This is a dynamic shared object (DSO) for PHP that will add XML
@@ -1443,9 +1445,9 @@ nast
 Summary:       XML Reader extension module for PHP
 Summary(pl):   Modu³ XML Reader dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-dom = %{epoch}:%{version}-%{release}
+Provides:      php(xmlreader)
 
 %description xmlreader
 This is a dynamic shared object (DSO) for PHP that will add XML Reader
@@ -1454,16 +1456,16 @@ acts as a cursor going forward on the document stream and stopping at
 each node on the way.
 
 %description xmlreader -l pl
-Modu³ PHP umo¿liwiaj±cy parsowanie plików XML w trybie Pull. Czytnik
+Modu³ PHP umo¿liwiaj±cy analizê plików XML w trybie Pull. Czytnik
 dzia³a jako kursor przechodz±cy przez strumieñ dokumentu i
-zatrzymuj±cy siê naka¿dym wê¼le po drodze.
+zatrzymuj±cy siê na ka¿dym wê¼le po drodze.
 
 %package xmlrpc
 Summary:       xmlrpc extension module for PHP
 Summary(pl):   Modu³ xmlrpc dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(xmlrpc)
 
 %description xmlrpc
 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
@@ -1476,14 +1478,32 @@ Modu
 
 Uwaga: to jest modu³ eksperymentalny.
 
+%package xmlwriter
+Summary:       Fast, non-cached, forward-only means to write XML data
+Summary(pl):   Szybka, nie cachowana metoda zapisu danych w formacie XML
+Group:         Libraries
+Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(xmlwriter)
+Obsoletes:     php-pecl-xmlwriter
+
+%description xmlwriter
+This extension wraps the libxml xmlWriter API. Represents a writer
+that provides a non-cached, forward-only means of generating streams
+or files containing XML data.
+
+%description xmlwriter -l pl
+To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obs³ugê
+zapisu dostarczaj±c± nie cachowanych metod generowania strumieni lub
+plików zawieraj±cych dane XML.
+
 %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
 # actually not true, functionality is similar, but API differs
+Provides:      php(xsl)
 Obsoletes:     php-xslt <= 3:4.3.8-1
 
 %description xsl
@@ -1493,12 +1513,26 @@ support (using libxslt).
 %description xsl -l pl
 Modu³ PHP dodaj±cy now± obs³ugê XSLT (przy u¿yciu libxslt).
 
+%package zip
+Summary:       Zip management extension
+Summary(pl):   Zarz±dzanie archiwami zip
+Group:         Libraries
+Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(zip)
+
+%description zip
+Zip is an extension to create, modify and read zip files.
+
+%description zip -l pl
+Zip jest rozszerzeniem umo¿liwiaj±cym tworzenie, modyfikacjê oraz
+odczyt archiwów zip.
+
 %package zlib
 Summary:       Zlib extension module for PHP
 Summary(pl):   Modu³ zlib dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Provides:      php(zlib)
 
 %description zlib
 This is a dynamic shared object (DSO) for PHP that will add zlib
@@ -1515,16 +1549,18 @@ Modu
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
-
+%patch5 -p1
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+
 cp php.ini-dist php.ini
 %patch10 -p1
 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
 # conditionally...
 %patch11 -p1
+%patch12 -p1
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
@@ -1533,9 +1569,8 @@ cp php.ini-dist php.ini
 %patch19 -p1
 %patch20 -p1
 %patch21 -p1
-%patch23 -p1
+#%patch23 -p1 # UPDATE?
 %patch24 -p1
-%patch25 -p1
 %patch26 -p1
 
 %if %{with hardening}
@@ -1545,14 +1580,13 @@ patch -p1 < %{PATCH30} || exit 1
 %patch31 -p1
 %patch32 -p1
 %patch33 -p1
-%patch34 -p1
 %{?with_versioning:%patch35 -p1}
-%patch37 -p1
-%if "%{_lib}" == "lib64"
+%ifarch %{x8664} alpha
 %patch38 -p1
 %endif
 %patch39 -p1
 %patch40 -p1
+%patch41 -p1
 
 # conflict seems to be resolved by recode patches
 rm -f ext/recode/config9.m4
@@ -1654,7 +1688,6 @@ for sapi in $sapis; do
        --with-flatfile \
        --enable-dom=shared \
        --enable-exif=shared \
-       --enable-filepro=shared \
        --enable-ftp=shared \
        --enable-gd-native-ttf \
        --enable-gd-jus-conf \
@@ -1664,10 +1697,13 @@ for sapi in $sapis; do
        --enable-mbregex \
        --enable-pcntl=shared \
        --enable-pdo=shared \
+       --enable-json=shared \
+       --enable-hash=shared \
+       --enable-xmlwriter=shared \
 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
        --with-pdo-dblib=shared \
 %endif
-%if %{with interbase} && %{without interbase_inst}
+%if %{with interbase} && !%{with interbase_inst}
        --with-pdo-firebird=shared \
 %endif
        --with-pdo-mysql=shared \
@@ -1705,13 +1741,11 @@ for sapi in $sapis; do
 %endif
        %{?with_fdf:--with-fdftk=shared} \
        --with-iconv=shared \
-       --with-filepro=shared \
        --with-freetype-dir=shared \
        --with-gettext=shared \
        --with-gd=shared,/usr \
        --with-gdbm \
        --with-gmp=shared \
-       %{?with_hwapi:--with-hwapi=shared} \
        %{?with_imap:--with-imap=shared --with-imap-ssl} \
        %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
        --with-jpeg-dir=/usr \
@@ -1729,7 +1763,8 @@ for sapi in $sapis; do
        %{?with_oci8:--with-oci8=shared} \
        %{?with_openssl:--with-openssl=shared} \
        --with-kerberos \
-       %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
+       %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=/usr} \
+       %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
        --with-pear=%{php_pear_dir} \
        %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
        --with-png-dir=/usr \
@@ -1749,7 +1784,8 @@ for sapi in $sapis; do
        %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared,/usr} \
        --with-xsl=shared \
        --with-zlib=shared \
-       --with-zlib-dir=shared,/usr
+       --with-zlib-dir=shared,/usr \
+       --enable-zip=shared,/usr \
 
        cp -f Makefile Makefile.$sapi
        cp -f main/php_config.h php_config.h.$sapi
@@ -1757,12 +1793,8 @@ done
 
 # must make this first, so modules can link against it.
 %{__make} libphp_common.la
-
 %{__make} build-modules
 
-# fix install paths, avoid evil rpaths
-#sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" libphp_common.la
-
 %if %{with apache1}
 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
 %endif
@@ -1828,9 +1860,6 @@ libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/p
 install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php.1
 echo ".so php.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.cli.1
 
-# as of 5.0.5, phpextdist isn't installed by default
-install scripts/dev/phpextdist $RPM_BUILD_ROOT%{_bindir}
-
 ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
 
 sed -e 's#%{_prefix}/lib/php#%{_libdir}/php#g' php.ini > $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
@@ -1839,7 +1868,7 @@ install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
 %endif
 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
-install %{SOURCE1} .
+install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/browscap.ini
 
 %if %{with apache1}
 install %{SOURCE2} php.gif $RPM_BUILD_ROOT/home/services/apache/icons
@@ -1882,29 +1911,14 @@ ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
 
+# as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
+# isn't installed by install-headers make target, we do it manually here.
+# this header file is required by e.g. filter PECL extension
+install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-if [ "$1" = "1" ]; then
-%if %{with apache1}
-       %service -q apache restart
-%endif
-%if %{with apache2}
-       %service -q httpd restart
-%endif
-fi
-
-%postun
-if [ "$1" = "0" ]; then
-%if %{with apache1}
-       %service -q apache restart
-%endif
-%if %{with apache2}
-       %service -q httpd restart
-%endif
-fi
-
 %post -n apache1-mod_php
 if [ "$1" = "1" ]; then
        %service -q apache restart
@@ -1925,21 +1939,6 @@ if [ "$1" = "0" ]; then
        %service -q httpd restart
 fi
 
-# so tired of typing... so decided to create macros
-# macro called at extension post scriptlet
-%define        extension_post \
-if [ "$1" = "1" ]; then \
-       [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart \
-       [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart \
-fi
-
-# macro called at extension postun scriptlet
-%define        extension_postun \
-if [ "$1" = "0" ]; then \
-       [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart \
-       [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart \
-fi
-
 %post  common -p /sbin/ldconfig
 %postun        common -p /sbin/ldconfig
 
@@ -1975,371 +1974,90 @@ if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
 fi
 %endif
 
-%post bcmath
-%extension_post
-
-%postun bcmath
-%extension_postun
-
-%post bzip2
-%extension_post
-
-%postun bzip2
-%extension_postun
-
-%post calendar
-%extension_post
-
-%postun calendar
-%extension_postun
-
-%post ctype
-%extension_post
-
-%postun ctype
-%extension_postun
-
-%post curl
-%extension_post
-
-%postun curl
-%extension_postun
-
-%post dba
-%extension_post
-
-%postun dba
-%extension_postun
-
-%post dbase
-%extension_post
-
-%postun dbase
-%extension_postun
-
-%post dom
-%extension_post
-
-%postun dom
-%extension_postun
-
-%post exif
-%extension_post
-
-%postun exif
-%extension_postun
-
-%post fdf
-%extension_post
-
-%postun fdf
-%extension_postun
-
-%post filepro
-%extension_post
-
-%postun filepro
-%extension_postun
-
-%post ftp
-%extension_post
-
-%postun ftp
-%extension_postun
-
-%post gd
-%extension_post
-
-%postun gd
-%extension_postun
-
-%post gettext
-%extension_post
-
-%postun gettext
-%extension_postun
-
-%post gmp
-%extension_post
-
-%postun gmp
-%extension_postun
-
-%post hwapi
-%extension_post
-
-%postun hwapi
-%extension_postun
-
-%post iconv
-%extension_post
-
-%postun iconv
-%extension_postun
-
-%post imap
-%extension_post
-
-%postun imap
-%extension_postun
-
-%post interbase
-%extension_post
-
-%postun interbase
-%extension_postun
-
-%post ldap
-%extension_post
-
-%postun ldap
-%extension_postun
-
-%post mbstring
-%extension_post
-
-%postun mbstring
-%extension_postun
-
-%post mcrypt
-%extension_post
-
-%postun mcrypt
-%extension_postun
-
-%post mhash
-%extension_post
-
-%postun mhash
-%extension_postun
-
-%post mime_magic
-%extension_post
-
-%postun mime_magic
-%extension_postun
-
-%post ming
-%extension_post
-
-%postun ming
-%extension_postun
-
-%post mssql
-%extension_post
-
-%postun mssql
-%extension_postun
-
-%post mysql
-%extension_post
-
-%postun mysql
-%extension_postun
-
-%post mysqli
-%extension_post
-
-%postun mysqli
-%extension_postun
-
-%post oci8
-%extension_post
-
-%postun oci8
-%extension_postun
-
-%post odbc
-%extension_post
-
-%postun odbc
-%extension_postun
-
-%post openssl
-%extension_post
-
-%postun openssl
-%extension_postun
-
-%post pcre
-%extension_post
-
-%postun pcre
-%extension_postun
-
-%post pdo-dblib
-%extension_post
-
-%postun pdo-dblib
-%extension_postun
-
-%post pdo-firebird
-%extension_post
-
-%postun pdo-firebird
-%extension_postun
-
-%post pdo-mysql
-%extension_post
-
-%postun pdo-mysql
-%extension_postun
-
-%post pdo-odbc
-%extension_post
-
-%postun pdo-odbc
-%extension_postun
-
-%post pdo-pgsql
-%extension_post
-
-%postun pdo-pgsql
-%extension_postun
-
-%post pdo-sqlite
-%extension_post
-
-%postun pdo-sqlite
-%extension_postun
-
-%post pgsql
-%extension_post
-
-%postun pgsql
-%extension_postun
-
-%post posix
-%extension_post
-
-%postun posix
-%extension_postun
-
-%post pspell
-%extension_post
-
-%postun pspell
-%extension_postun
-
-%post recode
-%extension_post
-
-%postun recode
-%extension_postun
-
-%post session
-%extension_post
-
-%postun session
-%extension_postun
-
-%post shmop
-%extension_post
-
-%postun shmop
-%extension_postun
-
-%post snmp
-%extension_post
-
-%postun snmp
-%extension_postun
-
-%post soap
-%extension_post
-
-%postun soap
-%extension_postun
-
-%post sockets
-%extension_post
-
-%postun sockets
-%extension_postun
-
-%post sqlite
-%extension_post
-
-%postun sqlite
-%extension_postun
-
-%post sybase
-%extension_post
-
-%postun sybase
-%extension_postun
-
-%post sybase-ct
-%extension_post
-
-%postun sybase-ct
-%extension_postun
-
-%post sysvmsg
-%extension_post
-
-%postun sysvmsg
-%extension_postun
-
-%post sysvsem
-%extension_post
-
-%postun sysvsem
-%extension_postun
-
-%post sysvshm
-%extension_post
-
-%postun sysvshm
-%extension_postun
-
-%post tidy
-%extension_post
-
-%postun tidy
-%extension_postun
-
-%post tokenizer
-%extension_post
-
-%postun tokenizer
-%extension_postun
-
-%post wddx
-%extension_post
-
-%postun wddx
-%extension_postun
-
-%post xml
-%extension_post
-
-%postun xml
-%extension_postun
-
-%post xmlreader
-%extension_post
-
-%postun xmlreader
-%extension_postun
-
-%post xmlrpc
-%extension_post
-
-%postun xmlrpc
-%extension_postun
+# macro called at extension post scriptlet
+%define        extension_post \
+if [ "$1" = "1" ]; then \
+       [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart \
+       [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart \
+fi
 
-%post xsl
-%extension_post
+# macro called at extension postun scriptlet
+%define        extension_postun \
+if [ "$1" = "0" ]; then \
+       [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart \
+       [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart \
+fi
 
-%postun xsl
+%define        extension_scripts() \
+%post %1 \
+%extension_post \
+\
+%postun %1 \
 %extension_postun
 
-%post zlib
-%extension_post
-
-%postun zlib
-%extension_postun
+# extension scripts defines
+%extension_scripts bcmath
+%extension_scripts bzip2
+%extension_scripts calendar
+%extension_scripts ctype
+%extension_scripts curl
+%extension_scripts dba
+%extension_scripts dbase
+%extension_scripts dom
+%extension_scripts exif
+%extension_scripts fdf
+%extension_scripts filter
+%extension_scripts ftp
+%extension_scripts gd
+%extension_scripts gettext
+%extension_scripts gmp
+%extension_scripts hash
+%extension_scripts iconv
+%extension_scripts imap
+%extension_scripts interbase
+%extension_scripts json
+%extension_scripts ldap
+%extension_scripts mbstring
+%extension_scripts mcrypt
+%extension_scripts mhash
+%extension_scripts mime_magic
+%extension_scripts ming
+%extension_scripts mssql
+%extension_scripts mysql
+%extension_scripts mysqli
+%extension_scripts oci8
+%extension_scripts odbc
+%extension_scripts openssl
+%extension_scripts pdo-dblib
+%extension_scripts pdo-firebird
+%extension_scripts pdo-mysql
+%extension_scripts pdo-odbc
+%extension_scripts pdo-pgsql
+%extension_scripts pdo-sqlite
+%extension_scripts pgsql
+%extension_scripts posix
+%extension_scripts pspell
+%extension_scripts recode
+%extension_scripts shmop
+%extension_scripts snmp
+%extension_scripts soap
+%extension_scripts sockets
+%extension_scripts sqlite
+%extension_scripts sybase
+%extension_scripts sybase-ct
+%extension_scripts sysvmsg
+%extension_scripts sysvsem
+%extension_scripts sysvshm
+%extension_scripts tidy
+%extension_scripts tokenizer
+%extension_scripts wddx
+%extension_scripts xml
+%extension_scripts xmlreader
+%extension_scripts xmlrpc
+%extension_scripts xmlwriter
+%extension_scripts xsl
+%extension_scripts zip
+%extension_scripts zlib
 
 %triggerun bcmath -- %{name}-bcmath < 4:5.0.4-9.1
 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bcmath\.so/d' %{_sysconfdir}/php.ini
@@ -2371,9 +2089,6 @@ fi
 %triggerun fdf -- %{name}-fdf < 4:5.0.4-9.1
 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{_sysconfdir}/php.ini
 
-%triggerun filepro -- %{name}-filepro < 4:5.0.4-9.1
-%{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*filepro\.so/d' %{_sysconfdir}/php.ini
-
 %triggerun ftp -- %{name}-ftp < 4:5.0.4-9.1
 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{_sysconfdir}/php.ini
 
@@ -2386,9 +2101,6 @@ fi
 %triggerun gmp -- %{name}-gmp < 4:5.0.4-9.1
 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gmp\.so/d' %{_sysconfdir}/php.ini
 
-%triggerun hwapi -- %{name}-hwapi < 4:5.0.4-9.1
-%{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*hwapi\.so/d' %{_sysconfdir}/php.ini
-
 %triggerun iconv -- %{name}-iconv < 4:5.0.4-9.1
 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*iconv\.so/d' %{_sysconfdir}/php.ini
 
@@ -2450,9 +2162,6 @@ if [ -f %{_sysconfdir}/php-cli.ini ]; then
        %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cli.ini
 fi
 
-%triggerun pcre -- %{name}-pcre < 4:5.0.4-9.1
-%{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcre\.so/d' %{_sysconfdir}/php.ini
-
 %triggerun pgsql -- %{name}-pgsql < 4:5.0.4-9.1
 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pgsql\.so/d' %{_sysconfdir}/php.ini
 
@@ -2473,9 +2182,6 @@ fi
 %triggerun recode -- %{name}-recode < 4:5.0.4-9.1
 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*recode\.so/d' %{_sysconfdir}/php.ini
 
-%triggerun session -- %{name}-session < 4:5.0.4-9.1
-%{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*session\.so/d' %{_sysconfdir}/php.ini
-
 %triggerun shmop -- %{name}-shmop < 4:5.0.4-9.1
 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*shmop\.so/d' %{_sysconfdir}/php.ini
 
@@ -2580,13 +2286,10 @@ fi
 %dir %{_sysconfdir}
 %dir %{_sysconfdir}/conf.d
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/browscap.ini
 %attr(755,root,root) %{_libdir}/libphp_common-*.so
 %dir %{extensionsdir}
 
-# session_mm doesn't work with shared session
-#%files session
-#%defattr(644,root,root,755)
-#%attr(755,root,root) %{extensionsdir}/session.so
 %doc ext/session/mod_files.sh
 
 %files devel
@@ -2594,7 +2297,6 @@ fi
 %doc README.UNIX-BUILD-SYSTEM
 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
 %doc CODING_STANDARDS
-%attr(755,root,root) %{_bindir}/phpextdist
 %attr(755,root,root) %{_bindir}/phpize
 %attr(755,root,root) %{_bindir}/php-config
 %attr(755,root,root) %{_libdir}/libphp_common.so
@@ -2652,16 +2354,18 @@ fi
 %attr(755,root,root) %{extensionsdir}/fdf.so
 %endif
 
+%if %{with filter}
+%files filter
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
+%attr(755,root,root) %{extensionsdir}/filter.so
+%endif
+
 %files exif
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
 %attr(755,root,root) %{extensionsdir}/exif.so
 
-%files filepro
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filepro.ini
-%attr(755,root,root) %{extensionsdir}/filepro.so
-
 %files ftp
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
@@ -2682,12 +2386,10 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
 %attr(755,root,root) %{extensionsdir}/gmp.so
 
-%if %{with hwapi}
-%files hwapi
+%files hash
 %defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hwapi.ini
-%attr(755,root,root) %{extensionsdir}/hwapi.so
-%endif
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
+%attr(755,root,root) %{extensionsdir}/hash.so
 
 %files iconv
 %defattr(644,root,root,755)
@@ -2708,6 +2410,11 @@ fi
 %attr(755,root,root) %{extensionsdir}/interbase.so
 %endif
 
+%files json
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
+%attr(755,root,root) %{extensionsdir}/json.so
+
 %if %{with ldap}
 %files ldap
 %defattr(644,root,root,755)
@@ -2796,13 +2503,6 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/pcntl.ini
 %attr(755,root,root) %{extensionsdir}/pcntl.so
 
-%if %{with pcre}
-%files pcre
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcre.ini
-%attr(755,root,root) %{extensionsdir}/pcre.so
-%endif
-
 %files pdo
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
@@ -2815,7 +2515,7 @@ fi
 %attr(755,root,root) %{extensionsdir}/pdo_dblib.so
 %endif
 
-%if %{with interbase} && %{without interbase_inst}
+%if %{with interbase} && !%{with interbase_inst}
 %files pdo-firebird
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
@@ -2887,7 +2587,9 @@ fi
 %endif
 
 %if 0
-# simplexml is needed by spl, and spl can't be built shared as of now (5.1.0RC3)
+# simplexml is needed by spl, and spl can't be built shared as of now (5.2.0)
+# simplexml can be built shared, but SPL startup fails
+# we could add R: -simplexml to -common...
 %files simplexml
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
@@ -2988,11 +2690,21 @@ fi
 %attr(755,root,root) %{extensionsdir}/xmlrpc.so
 %endif
 
+%files xmlwriter
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
+%attr(755,root,root) %{extensionsdir}/xmlwriter.so
+
 %files xsl
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
 %attr(755,root,root) %{extensionsdir}/xsl.so
 
+%files zip
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
+%attr(755,root,root) %{extensionsdir}/zip.so
+
 %files zlib
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
This page took 0.125388 seconds and 4 git commands to generate.