]> git.pld-linux.org Git - packages/php.git/blobdiff - php.spec
- it's no longer use with apache only
[packages/php.git] / php.spec
index 81289ced5e2b88d58ece6a06c697a047223c40ed..5002837b60f8014268ece0a1a861472cf7bcd333 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -1,18 +1,18 @@
 # TODO:
-# - php-shared is SERIOUSLY broken. Try compiling with --enable-versioning.
 # - think of including support for:
 #    - mcve,
 #    - ovrimos,
 #    - pfpro,
-#    - ircg,
 #   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
 # - mime_magic can't handle new "string/*" entries in magic.mime
 # - make additional headers added by mail patch configurable
 # - apply -hardened patch by default ?
-# - modularize libxml, session, SimpleXML, SPL, standard (output from pure php -m)?
+# - modularize session, standard (output from pure php -m)?
 #
 # Conditional build:
 %bcond_with    db3             # use db3 packages instead of db (4.x) for Berkeley DB support
 %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_with    oracle          # with oracle extension module          (BR: proprietary libs)
-%bcond_without mysqli          # with mysqli support (Requires mysql > 4.1)
-%bcond_without cpdf            # without cpdf extension module
 %bcond_without curl            # without CURL 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 interbase       # with InterBase extension module
 %bcond_without ldap            # without LDAP extension module
 %bcond_without mhash           # without mhash extension module
 %bcond_without ming            # without ming extension module
 %bcond_without mm              # without mm support for session storage
-%bcond_without mnogosearch     # without mnogosearch extension module
 %bcond_without msession        # without msession extension module
 %bcond_without mssql           # without MS SQL extension module
-%bcond_without mime_magic              # without mime-magic module
+%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
@@ -53,6 +48,7 @@
 %bcond_without apache2         # disable building apache 2.x module
 %bcond_without fcgi            # disable building FCGI SAPI
 %bcond_without zts             # disable experimental-zts
+%bcond_without mysqli          # with mysqli support (Requires mysql > 4.1)
 
 %define apxs1          /usr/sbin/apxs1
 %define        apxs2           /usr/sbin/apxs
@@ -75,23 +71,21 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
 %undefine      with_msession
 %endif
 
-Summary:       The PHP HTML-embedded scripting language for use with Apache
+Summary:       PHP: Hypertext Preprocessor
 Summary(fr):   Le langage de script embarque-HTML PHP pour Apache
 Summary(pl):   Jêzyk skryptowy PHP - u¿ywany wraz z serwerem Apache
 Summary(pt_BR):        A linguagem de script PHP
 Summary(ru):   PHP ÷ÅÒÓÉÉ 5 - ÑÚÙË ÐÒÅÐÒÏÃÅÓÓÉÒÏ×ÁÎÉÑ HTML-ÆÁÊÌÏ×, ×ÙÐÏÌÎÑÅÍÙÊ ÎÁ ÓÅÒ×ÅÒÅ
 Summary(uk):   PHP ÷ÅÒÓ¦§ 5 - ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
 Name:          php
-Version:       5.0.5
-#define        _snap 200510281645
-%define        _rel 13
-Release:       %{?_snap:12.11.%{_snap}.}%{_rel}%{?with_hardening:hardened}
+Version:       5.1.2
+%define        _rel 5
+Release:       %{_rel}%{?with_hardening:hardened}
 Epoch:         4
-Group:         Libraries
 License:       PHP
-#Source0:      http://snaps.php.net/%{name}5-STABLE-%{_snap}.tar.bz2
+Group:         Libraries
 Source0:       http://www.php.net/distributions/%{name}-%{version}.tar.bz2
-# Source0-md5: b5d4ca75bbb11ee5b830fa67213d9f7f
+# Source0-md5: 79cee17e9db85be878000a2a4198378e
 Source1:       FAQ.%{name}
 Source2:       zend.gif
 Source3:       %{name}-module-install
@@ -100,8 +94,8 @@ Source5:     %{name}-cgi-fcgi.ini
 Source6:       %{name}-cgi.ini
 Source7:       %{name}-apache.ini
 Source8:       %{name}-cli.ini
-Source9:       http://www.hardened-php.net/hardening-patch-%{version}-0.4.3.patch.gz
-# Source9-md5: 6af27b59251bb9ce4741b17e2e5358f7
+Source9:       http://www.hardened-php.net/hardening-patch-5.0.4-0.3.0.patch.gz
+# Source9-md5: 47a742fa9fab2826ad10c13a2376111a
 Patch0:                %{name}-shared.patch
 Patch1:                %{name}-pldlogo.patch
 Patch2:                %{name}-mail.patch
@@ -111,32 +105,26 @@ Patch5:           %{name}-msession-shared-lib.patch
 Patch6:                %{name}-build_modules.patch
 Patch7:                %{name}-sapi-ini-file.patch
 Patch8:                %{name}-no-metaccld.patch
-Patch9:                %{name}-session-unregister.patch
+Patch9:                %{name}-reflection.patch
 Patch10:       %{name}-ini.patch
 Patch11:       %{name}-acam.patch
-Patch12:       %{name}-xmlrpc-fix.patch
-Patch13:       %{name}-libtool.patch
 Patch14:       %{name}-allow-db31.patch
 Patch15:       %{name}-threads-acfix.patch
 Patch16:       %{name}-tsrmlsfetchgcc2.patch
 Patch17:       %{name}-no_pear_install.patch
 Patch18:       %{name}-zlib.patch
 Patch19:       %{name}-sybase-fix.patch
-Patch20:       %{name}-mnogosearch-fix.patch
+Patch20:       %{name}-readline.patch
 Patch21:       %{name}-nohttpd.patch
-Patch22:       %{name}-lib64.patch
 Patch23:       %{name}-gd_imagerotate_enable.patch
 Patch24:       %{name}-uint32_t.patch
 Patch25:       %{name}-hwapi-link.patch
 Patch26:       %{name}-dba-link.patch
-Patch27:       %{name}-install_gd_headers.patch
-Patch28:       %{name}-cpdf-fix.patch
-Patch29:       %{name}-gcc4.patch
-Patch30:       %{name}-both-apxs.patch
-Patch31:       %{name}-builddir.patch
-Patch32:       %{name}_bug34435.patch
-Patch33:       %{name}-ftp-ssllibs.patch
-Icon:          php.gif
+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
 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}
@@ -146,15 +134,14 @@ BuildRequires:    bison
 BuildRequires: bzip2-devel
 %{?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}
+%{?with_db3:BuildRequires:     db3-devel >= 3.1}
 BuildRequires: elfutils-devel
 %if %{with xmlrpc}
 BuildRequires: expat-devel
 %endif
-%{?with_fam:BuildRequires:     fam-devel}
-%{?with_fdf:BuildRequires:     fdftk-devel}
 %{?with_fcgi:BuildRequires:    fcgi-devel}
+%{?with_fdf:BuildRequires:     fdftk-devel}
 BuildRequires: flex
 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
 BuildRequires: freetds-devel
@@ -164,40 +151,40 @@ 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_cpdf:BuildRequires:    libcpdf-devel >= 2.02r1-2}
 BuildRequires: libjpeg-devel
 BuildRequires: libltdl-devel >= 1.4
 BuildRequires: libmcrypt-devel >= 2.4.4
 BuildRequires: libpng-devel >= 1.0.8
 BuildRequires: libtiff-devel
 BuildRequires: libtool >= 1.4.3
+BuildRequires: libwrap-devel
 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}
 BuildRequires: mysql-devel >= 4.0.0
 %{?with_mysqli:BuildRequires:  mysql-devel >= 4.1.0}
 BuildRequires: ncurses-ext-devel
-%{?with_ldap:BuildRequires:    openldap-devel >= 2.0}
+%{?with_ldap:BuildRequires:    openldap-devel >= 2.3.0}
 %if %{with openssl} || %{with ldap}
 BuildRequires: openssl-devel >= 0.9.7d
 %endif
+BuildRequires: %{__perl}
+%{?with_snmp:BuildRequires:    net-snmp-devel >= 5.0.7}
 BuildRequires: pam-devel
 %{?with_pcre:BuildRequires:    pcre-devel}
-BuildRequires: %{__perl}
 %{?with_msession:BuildRequires:        phoenix-devel}
-%{?with_pgsql:BuildRequires:   postgresql-devel}
 %{?with_pgsql:BuildRequires:   postgresql-backend-devel >= 7.2}
+%{?with_pgsql:BuildRequires:   postgresql-devel}
 BuildRequires: readline-devel
 %{?with_recode:BuildRequires:  recode-devel >= 3.5d-3}
 BuildRequires: rpm-build >= 4.4.0
 BuildRequires: rpmbuild(macros) >= 1.238
 %{?with_sqlite:BuildRequires:  sqlite-devel}
+%{?with_sqlite:BuildRequires:  sqlite3-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}
 BuildRequires: zlib-devel >= 1.0.9
@@ -216,9 +203,9 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                extensionsdir   %{_libdir}/php
 
 # must be in sync with source. extra check ensuring that it is so is done in %%build
-%define                php_api_version         20031224
-%define                zend_module_api         20041030
-%define                zend_extension_api      220040412
+%define                php_api_version         20041225
+%define                zend_module_api         20050922
+%define                zend_extension_api      220051025
 %define                zend_zts                        %{!?with_zts:0}%{?with_zts:1}
 %define                php_debug                       %{!?debug:0}%{?debug:1}
 
@@ -292,17 +279,13 @@ PHP - 
 Summary:       PHP DSO module for apache 1.3.x
 Summary(pl):   Modu³ DSO (Dynamic Shared Object) php dla apache 1.3.x
 Group:         Development/Languages/PHP
+Requires(triggerpostun):       sed >= 4.0
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-Requires(post,preun):  %{apxs1}
-Requires(post,preun):  %{__perl}
 Requires:      apache1(EAPI) >= 1.3.33-2
 Requires:      apache1-mod_mime
-Provides:      %{name} = %{epoch}:%{version}-%{release}
 Provides:      php = %{epoch}:%{version}-%{release}
-Obsoletes:     phpfi
 Obsoletes:     apache-mod_php < 1:4.1.1
-# Obsolete all php5 packages, this is not to obsolete php4 companion
-Obsoletes:     php >= 4:5.0.0
+Obsoletes:     phpfi
 
 %description -n apache1-mod_php
 PHP as DSO module for apache 1.3.x.
@@ -315,14 +298,10 @@ Summary:  PHP DSO module for apache 2.x
 Summary(pl):   Modu³ DSO (Dynamic Shared Object) php dla apache 2.x
 Group:         Development/Languages/PHP
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      apache >= 2.0.52-2
 Requires:      apache(modules-api) = %{apache_modules_api}
-Provides:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      apache-mod_mime
 Provides:      php = %{epoch}:%{version}-%{release}
 Obsoletes:     phpfi
-Obsoletes:     apache-mod_php < 1:4.1.1
-# Obsolete all php5 packages, this is not to obsolete php4 companion
-Obsoletes:     php >= 4:5.0.0
 
 %description -n apache-mod_php
 PHP as DSO module for apache 2.x.
@@ -335,7 +314,7 @@ Summary:    php as FastCGI program
 Summary(pl):   php jako program FastCGI
 Group:         Development/Languages/PHP
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-Provides:      php-program = %{epoch}:%{version}-%{release}
+Provides:      php = %{epoch}:%{version}-%{release}
 
 %description fcgi
 php as FastCGI program.
@@ -348,7 +327,6 @@ Summary:    php as CGI program
 Summary(pl):   php jako program CGI
 Group:         Development/Languages/PHP
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-Provides:      php-program = %{epoch}:%{version}-%{release}
 
 %description cgi
 php as CGI program.
@@ -361,7 +339,6 @@ Summary:    php as CLI interpreter
 Summary(pl):   php jako interpreter dzia³aj±cy z linii poleceñ
 Group:         Development/Languages/PHP
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-Provides:      php-program = %{epoch}:%{version}-%{release}
 
 %description cli
 php as CLI interpreter.
@@ -369,6 +346,20 @@ php as CLI interpreter.
 %description cli -l pl
 php jako interpreter dzia³aj±cy z linii poleceñ.
 
+%package program
+Summary:       /usr/bin/php symlink
+Summary(pl):   Dowi±zanie symboliczne /usr/bin/php
+Group:         Development/Languages/PHP
+Requires:      %{name}-cli = %{epoch}:%{version}-%{release}
+Provides:      php(program)
+Obsoletes:     php(program)
+
+%description program
+Package providing /usr/bin/php symlink to PHP CLI.
+
+%description program -l pl
+Pakiet dostarczaj±cy dowi±zanie symboliczne /usr/bin/php do PHP CLI.
+
 %package common
 Summary:       Common files needed by both apache module and CGI
 Summary(pl):   Wspólne pliki dla modu³u apache'a i programu CGI
@@ -383,13 +374,12 @@ Provides: %{name}-session = %{epoch}:%{version}-%{release}
 Provides:      %{name}-simplexml = %{epoch}:%{version}-%{release}
 Provides:      %{name}-spl = %{epoch}:%{version}-%{release}
 Provides:      %{name}-standard = %{epoch}:%{version}-%{release}
-# FIXME: apache2 specific Provides
-Provides:      php-common(apache-modules-api) = %{apache_modules_api}
 Provides:      php(modules_api) = %{php_api_version}
-Provides:      php(zend_module_api) = %{zend_module_api}
 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-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:     rpm < 4.4.2-0.2
@@ -415,9 +405,11 @@ Summary(pt_BR):    Arquivos de desenvolvimento para PHP
 Summary(ru):   ðÁËÅÔ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÒÁÓÛÉÒÅÎÉÊ PHP
 Summary(uk):   ðÁËÅÔ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÏÂÕÄÏ×É ÒÏÚÛÉÒÅÎØ PHP
 Group:         Development/Languages/PHP
+Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      autoconf
 Requires:      automake
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Requires:      libtool
+Requires:      shtool
 Obsoletes:     php-pear-devel
 Obsoletes:     php4-devel
 
@@ -427,28 +419,32 @@ Included here is the source for the PHP extensions. Instead of
 recompiling the whole php binary to add support for, say, oracle,
 install this package and use the new self-contained extensions
 support. For more information, read the file
-SELF-CONTAINED-EXTENSIONS.
+README.SELF-CONTAINED-EXTENSIONS.
 
 %description devel -l pl
-Pliki potrzebne do kompilacji modu³ów PHP.
+Ten pakiet zawiera pliki potrzebne do kompilacji modu³ów PHP. Zamiast
+rekompilowaæ ca³e php aby dodaæ obs³ugê np. oracle, mo¿na przy u¿yciu
+tego pakietu skompilowaæ samodzielne rozszerzenie. Wiêcej informacji o
+samodzielnych rozszerzeniach mo¿na znale¼æ w pliku
+README.SELF-CONTAINED-EXTENSIONS.
 
 %description devel -l pt_BR
 Este pacote contém arquivos usados no desenvolvimento de programas ou
 módulos PHP.
 
-%description devel -l uk
-ðÁËÅÔ php-devel ÄÁ¤ ÍÏÖÌÉצÓÔØ ËÏÍЦÌÀ×ÁÔÉ ÄÉÎÁͦÞΦ ÒÏÚÛÉÒÅÎÎÑ PHP.
-äÏ ÐÁËÅÔÕ ×ËÌÀÞÅÎÏ ×ÉȦÄÎÉÊ ËÏÄ ÄÌÑ ÒÏÚÛÉÒÅÎØ. úÁͦÓÔØ ÐÏ×ÔÏÒÎϧ
-ËÏÍЦÌÑ槠¦ÎÁÒÎÏÇÏ ÆÁÊÌÕ php ÄÌÑ ÄÏÄÁÎÎÑ, ÎÁÐÒÉËÌÁÄ, Ð¦ÄÔÒÉÍËÉ
-oracle, ×ÓÔÁÎÏצÔØ ÃÅÊ ÐÁËÅÔ ÄÌÑ ËÏÍЦÌÑ槠ÏËÒÅÍÉÈ ÒÏÚÛÉÒÅÎØ.
-äÅÔÁÌØΦÛÁ ¦ÎÆÏÒÍÁæѠ- × ÆÁÊ̦ SELF-CONTAINED-EXTENSIONS.
-
 %description devel -l ru
 ðÁËÅÔ php-devel ÄÁÅÔ ×ÏÚÍÏÖÎÏÓÔØ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÄÉÎÁÍÉÞÅÓËÉÅ ÒÁÓÛÉÒÅÎÉÑ
 PHP. ðÁËÅÔ ×ËÌÀÞÁÅÔ ÉÓÈÏÄÎÙÊ ËÏÄ ÜÔÉÈ ÒÁÓÛÉÒÅÎÉÊ. ÷ÍÅÓÔÏ ÐÏ×ÔÏÒÎÏÊ
 ËÏÍÐÉÌÑÃÉÉ ÂÉÎÁÒÎÏÇÏ ÆÁÊÌÁ php ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ, ÎÁÐÒÉÍÅÒ, ÐÏÄÄÅÒÖËÉ
 oracle, ÕÓÔÁÎÏ×ÉÔÅ ÜÔÏÔ ÐÁËÅÔ ÄÌÑ ËÏÍÐÉÌÉÒÏ×ÁÎÉÑ ÏÔÄÅÌØÎÙÈ ÒÁÓÛÉÒÅÎÉÊ.
-ðÏÄÒÏÂÎÏÓÔÉ - × ÆÁÊÌÅ SELF-CONTAINED-EXTENSIONS.
+ðÏÄÒÏÂÎÏÓÔÉ - × ÆÁÊÌÅ README.SELF-CONTAINED-EXTENSIONS.
+
+%description devel -l uk
+ðÁËÅÔ php-devel ÄÁ¤ ÍÏÖÌÉצÓÔØ ËÏÍЦÌÀ×ÁÔÉ ÄÉÎÁͦÞΦ ÒÏÚÛÉÒÅÎÎÑ PHP.
+äÏ ÐÁËÅÔÕ ×ËÌÀÞÅÎÏ ×ÉȦÄÎÉÊ ËÏÄ ÄÌÑ ÒÏÚÛÉÒÅÎØ. úÁͦÓÔØ ÐÏ×ÔÏÒÎϧ
+ËÏÍЦÌÑ槠¦ÎÁÒÎÏÇÏ ÆÁÊÌÕ php ÄÌÑ ÄÏÄÁÎÎÑ, ÎÁÐÒÉËÌÁÄ, Ð¦ÄÔÒÉÍËÉ
+oracle, ×ÓÔÁÎÏצÔØ ÃÅÊ ÐÁËÅÔ ÄÌÑ ËÏÍЦÌÑ槠ÏËÒÅÍÉÈ ÒÏÚÛÉÒÅÎØ.
+äÅÔÁÌØΦÛÁ ¦ÎÆÏÒÍÁæѠ- × ÆÁÊ̦ README.SELF-CONTAINED-EXTENSIONS.
 
 %package bcmath
 Summary:       bcmath extension module for PHP
@@ -493,20 +489,6 @@ support.
 %description calendar -l pl
 Modu³ PHP dodaj±cy wsparcie dla kalendarza.
 
-%package cpdf
-Summary:       cpdf extension module for PHP
-Summary(pl):   Modu³ cpdf dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-
-%description cpdf
-This is a dynamic shared object (DSO) for PHP that will add PDF
-support through libcpdf library.
-
-%description cpdf -l pl
-Modu³ PHP dodaj±cy obs³ugê plików PDF poprzez bibliotekê libcpdf.
-
 %package ctype
 Summary:       ctype extension module for PHP
 Summary(pl):   Modu³ ctype dla PHP
@@ -564,36 +546,6 @@ support.
 %description dbase -l pl
 Modu³ PHP ze wsparciem dla DBase.
 
-%package dbx
-Summary:       DBX extension module for PHP
-Summary(pl):   Modu³ DBX dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-
-%description dbx
-This is a dynamic shared object (DSO) for PHP that will add DB
-abstraction layer. DBX supports odbc, mysql, pgsql, mssql, fbsql and
-more.
-
-%description dbx -l pl
-Modu³ PHP dodaj±cy warstwê abstrakcji do obs³ugi baz danych. DBX
-obs³uguje bazy odbc, mysql, pgsql, mssql, fbsql i inne.
-
-%package dio
-Summary:       Direct I/O extension module for PHP
-Summary(pl):   Modu³ Direct I/O dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-
-%description dio
-This is a dynamic shared object (DSO) for PHP that will add direct
-file I/O support.
-
-%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
@@ -625,23 +577,6 @@ support in image files.
 %description exif -l pl
 Modu³ PHP dodaj±cy obs³ugê znaczników EXIF w plikach obrazków.
 
-%package fam
-Summary:       FAM (File Alteration Monitor) module for PHP
-Summary(pl):   Modu³ FAM (File Alteration Monitor) dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-
-%description fam
-This PHP module adds support for FAM (File Alteration Monitor). FAM
-monitors files and directories, notifying interested applications of
-changes.
-
-%description fam -l pl
-Modu³ PHP dodaj±cy obs³ugê dla FAM (File Alteration Monitor). FAM
-monitoruje pliki oraz katalogi, informuj±c zainteresowane aplikacje o
-zmianach.
-
 %package fdf
 Summary:       FDF extension module for PHP
 Summary(pl):   Modu³ FDF dla PHP
@@ -884,21 +819,6 @@ This is a dynamic shared object (DSO) for PHP that will add ming
 Modu³ PHP dodaj±cy obs³ugê plików Flash (.swf) poprzez bibliotekê
 ming.
 
-%package mnogosearch
-Summary:       mnoGoSearch extension module for PHP
-Summary(pl):   Modu³ mnoGoSearch dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-
-%description mnogosearch
-This is a dynamic shared object (DSO) for PHP that will allow you to
-access mnoGoSearch free search engine.
-
-%description mnogosearch -l pl
-Modu³ PHP dodaj±cy pozwalaj±cy na dostêp do wolnodostêpnego silnika
-wyszukiwarki mnoGoSearch.
-
 %package msession
 Summary:       msession extension module for PHP
 Summary(pl):   Modu³ msession dla PHP
@@ -953,6 +873,7 @@ Um m
 
 %package mysqli
 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}
@@ -966,7 +887,7 @@ is that it provides access to functionality of MySQL 4.1 and above.
 %description mysqli -l pl
 Modu³ PHP umo¿liwiaj±cy udoskonalony dostêp do bazy danych MySQL.
 Ró¿nic± miêdzy nim a modu³em mysql jest dostêp do funkcjonalno¶ci
-MySQL 4.1 i wy¿ej.
+MySQL w wersji 4.1 i nowszych.
 
 %package ncurses
 Summary:       ncurses module for PHP
@@ -983,19 +904,19 @@ cgi SAPIs).
 Modu³ PHP dodaj±cy obs³ugê funkcji ncurses (tylko do SAPI cli i cgi).
 
 %package oci8
-Summary:       Oracle 8 database module for PHP
-Summary(pl):   Modu³ bazy danych Oracle 8 dla PHP
+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}
 Autoreq:       false
 
 %description oci8
-This is a dynamic shared object (DSO) for PHP that will add Oracle 7
-and Oracle 8 database support through Oracle8 Call-Interface (OCI8).
+This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
+8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
 
 %description oci8 -l pl
-Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7 i Oracle 8
+Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7, 8, 9 i 10
 poprzez interfejs Oracle8 Call-Interface (OCI8).
 
 %package odbc
@@ -1035,21 +956,6 @@ Modu
 
 Uwaga: to jest modu³ eksperymentalny.
 
-%package oracle
-Summary:       Oracle 7 database module for PHP
-Summary(pl):   Modu³ bazy danych Oracle 7 dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-Autoreq:       false
-
-%description oracle
-This is a dynamic shared object (DSO) for PHP that will add Oracle 7
-database support.
-
-%description oracle -l pl
-Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
-
 %package pcntl
 Summary:       Process Control extension module for PHP
 Summary(pl):   Modu³ Process Control dla PHP
@@ -1087,6 +993,132 @@ Compatible Regular Expression support.
 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}
+
+%description pdo
+This is a dynamic shared object (DSO) for PHP that will add PDO
+support.
+
+%description pdo -l pl
+Modu³ PHP dodaj±cy obs³ugê PDO (PHP Data Objects).
+
+%package pdo-dblib
+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}
+
+%description pdo-dblib
+This is a dynamic shared object (DSO) for PHP that will add PDO
+FreeTDS support.
+
+%description pdo-dblib -l pl
+Modu³ dla PHP dodaj±cy obs³ugê baz danych FreeTDS za po¶rednictwem
+interfejsu PDO.
+
+%package pdo-firebird
+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}
+
+%description pdo-firebird
+This is a dynamic shared object (DSO) for PHP that will add PDO
+Firebird support.
+
+%description pdo-firebird -l pl
+Modu³ dla PHP dodaj±cy obs³ugê baz danych Firebird za po¶rednictwem
+interfejsu PDO.
+
+%package pdo-mysql
+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}
+
+%description pdo-mysql
+This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
+support.
+
+%description pdo-mysql -l pl
+Modu³ dla PHP dodaj±cy obs³ugê baz danych MySQL za po¶rednictwem
+interfejsu PDO.
+
+%package pdo-oci
+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}
+
+%description pdo-oci
+This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
+support.
+
+%description pdo-oci -l pl
+Modu³ dla PHP dodaj±cy obs³ugê baz danych Oracle za po¶rednictwem
+interfejsu PDO.
+
+%package pdo-odbc
+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}
+
+%description pdo-odbc
+This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
+support.
+
+%description pdo-odbc -l pl
+Modu³ dla PHP dodaj±cy obs³ugê baz danych ODBC za po¶rednictwem
+interfejsu PDO.
+
+%package pdo-pgsql
+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}
+
+%description pdo-pgsql
+This is a dynamic shared object (DSO) for PHP that will add PDO
+PostgreSQL support.
+
+%description pdo-pgsql -l pl
+Modu³ dla PHP dodaj±cy obs³ugê baz danych PostgreSQL za po¶rednictwem
+interfejsu PDO.
+
+%package pdo-sqlite
+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}
+
+%description pdo-sqlite
+This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
+support.
+
+%description pdo-sqlite -l pl
+Modu³ dla PHP dodaj±cy obs³ugê baz danych SQLite za po¶rednictwem
+interfejsu PDO.
+
 %package pgsql
 Summary:       PostgreSQL database module for PHP
 Summary(pl):   Modu³ bazy danych PostgreSQL dla PHP
@@ -1196,6 +1228,20 @@ Modu
 
 Uwaga: to jest modu³ eksperymentalny.
 
+%package simplexml
+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}
+
+%description simplexml
+This is a dynamic shared object (DSO) for PHP that will add Simple XML
+support.
+
+%description simplexml -l pl
+Modu³ PHP dodaj±cy obs³ugê prostego XML-a.
+
 %package snmp
 Summary:       SNMP extension module for PHP
 Summary(pl):   Modu³ SNMP dla PHP
@@ -1249,6 +1295,7 @@ Summary(pl):      Modu
 Group:         Libraries
 Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Requires:      %{name}-pdo = %{epoch}:%{version}-%{release}
 
 %description sqlite
 SQLite is a C library that implements an embeddable SQL database
@@ -1381,9 +1428,9 @@ 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}-xml = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 
 %description wddx
 This is a dynamic shared object (DSO) for PHP that will add wddx
@@ -1409,6 +1456,24 @@ Modu
 zwi±zanych z tymi plikami. Pozwala on tworzyæ analizatory XML-a i
 nastêpnie definiowaæ procedury obs³ugi dla ró¿nych zdarzeñ XML.
 
+%package xmlreader
+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}
+
+%description xmlreader
+This is a dynamic shared object (DSO) for PHP that will add XML Reader
+support. The XMLReader extension is an XML Pull parser. The reader
+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
+dzia³a jako kursor przechodz±cy przez strumieñ dokumentu i
+zatrzymuj±cy siê naka¿dym wê¼le po drodze.
+
 %package xmlrpc
 Summary:       xmlrpc extension module for PHP
 Summary(pl):   Modu³ xmlrpc dla PHP
@@ -1434,8 +1499,6 @@ Group:            Libraries
 Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      libxslt >= 1.0.18
-# Maybe it would be nice to add it here?
-#Provides:     php-xslt
 # actually not true, functionality is similar, but API differs
 Obsoletes:     php-xslt <= 3:4.3.8-1
 
@@ -1446,20 +1509,6 @@ support (using libxslt).
 %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
-Summary(pl):   Modu³ NIS (yp) dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-
-%description yp
-This is a dynamic shared object (DSO) for PHP that will add NIS
-(Yellow Pages) support.
-
-%description yp -l pl
-Modu³ PHP dodaj±cy wsparcie dla NIS (Yellow Pages).
-
 %package zlib
 Summary:       Zlib extension module for PHP
 Summary(pl):   Modu³ zlib dla PHP
@@ -1475,7 +1524,7 @@ compression support to PHP.
 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji zlib.
 
 %prep
-%setup -q %{?_snap:-n php5-STABLE-%{_snap}}
+%setup -q
 # this patch is broken by design, breaks --enable-versioning for example
 # update: --enable-version is broken by itself, it disables dynamic modules.
 %patch0 -p1
@@ -1493,8 +1542,6 @@ cp php.ini-dist php.ini
 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
 # conditionally...
 %patch11 -p1
-%patch12 -p1
-%patch13 -p1
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
@@ -1503,24 +1550,19 @@ cp php.ini-dist php.ini
 %patch19 -p1
 %patch20 -p1
 %patch21 -p1
-%patch28 -p1
-%if "%{_lib}" == "lib64"
-%patch22 -p1
-%endif
 %patch23 -p1
 %patch24 -p1
 %patch25 -p1
 %patch26 -p1
-%patch27 -p1
-%patch29 -p1
 
 %if %{with hardening}
-zcat %{SOURCE9} | patch -p1
+zcat %{SOURCE9} | patch -p1 || exit 1
+patch -p1 < %{PATCH30} || exit 1
 %endif
-%patch30 -p1
 %patch31 -p1
-%{!?_snap:%patch32 -p0}
+%patch32 -p1
 %patch33 -p1
+%patch34 -p1
 
 # conflict seems to be resolved by recode patches
 rm -f ext/recode/config9.m4
@@ -1528,6 +1570,21 @@ rm -f ext/recode/config9.m4
 # new apr
 sed -i -e 's#apr-config#apr-1-config#g' sapi/apache*/*.m4
 
+# remove all bundled libraries not to link with them accidentally
+#rm -rf ext/sqlite/libsqlite
+#rm -rf ext/bcmath/libbcmath
+#rm -rf ext/date/lib
+#rm -rf ext/dba/libcdb
+#rm -rf ext/dba/libflatfile
+#rm -rf ext/dba/libinifile
+#rm -rf ext/gd/libgd
+#rm -rf ext/mbstring/libmbfl
+#rm -rf ext/mbstring/oniguruma
+rm -rf ext/pcre/pcrelib
+rm -rf ext/pdo_sqlite/sqlite
+#rm -rf ext/soap/interop
+rm -rf ext/xmlrpc/libxmlrpc
+
 %build
 if API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h) && [ $API != %{php_api_version} ]; then
        echo "Set %%define php_api_version to $API and rerun."
@@ -1540,7 +1597,7 @@ if API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h) && [
 fi
 
 if API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h) && [ $API != %{zend_extension_api} ]; then
-       echo "Set %%define zend_module_api to $API and rerun."
+       echo "Set %%define zend_extension_api to $API and rerun."
        exit 1
 fi
 
@@ -1553,10 +1610,9 @@ CFLAGS="$CFLAGS $(%{_bindir}/apr-1-config --includes) $(%{_bindir}/apu-1-config
 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
        rm -f Makefile.{fcgi,cgi,cli,apxs{1,2}} # now remove Makefile copies
-       ./buildconf --force
        %{__libtoolize}
        %{__aclocal}
-       %{__autoconf}
+       ./buildconf --force
        touch _built-conf
 fi
 PROG_SENDMAIL="/usr/lib/sendmail"; export PROG_SENDMAIL
@@ -1599,32 +1655,49 @@ for sapi in $sapis; do
        esac
        ` \
        --cache-file=config.cache \
+       --with-libdir=%{_lib} \
        --with-config-file-path=%{_sysconfdir} \
        --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
        --with-exec-dir=%{_bindir} \
        --%{!?debug:dis}%{?debug:en}able-debug \
        %{?with_zts:--enable-maintainer-zts} \
+       --enable-inline-optimization \
        --enable-memory-limit \
        --enable-bcmath=shared \
        --enable-calendar=shared \
        --enable-ctype=shared \
        --enable-dba=shared \
-       --enable-dbx=shared \
-       --enable-dio=shared \
+       --with-inifile \
+       --with-flatfile \
        --enable-dom=shared \
        --enable-exif=shared \
        --enable-filepro=shared \
        --enable-ftp=shared \
        --enable-gd-native-ttf \
        --enable-gd-jus-conf \
+       --enable-libxml \
        --enable-magic-quotes \
        --enable-mbstring=shared,all \
        --enable-mbregex \
        --enable-pcntl=shared \
+       --enable-pdo=shared \
+%if %{with mssql} || %{with sybase} || %{with sybase_ct}
+       --with-pdo-dblib=shared \
+%endif
+%if %{with interbase} && %{without interbase_inst}
+       --with-pdo-firebird=shared \
+%endif
+       --with-pdo-mysql=shared \
+       %{?with_oci8:--with-pdo-oci=shared} \
+       %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
+       %{?with_pgsql:--with-pdo-pgsql=shared} \
+       %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
        --enable-posix=shared \
+       --enable-reflection \
        --enable-session \
        --enable-shared \
        --enable-shmop=shared \
+       --enable-simplexml \
        --enable-sysvmsg=shared \
        --enable-sysvsem=shared \
        --enable-sysvshm=shared \
@@ -1637,12 +1710,11 @@ for sapi in $sapis; do
        --enable-ucd-snmp-hack \
        %{?with_wddx:--enable-wddx=shared} \
        --enable-xml=shared \
-       --enable-yp=shared \
+       --enable-xmlreader=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 \
+       --enable-dbase=shared \
 %if %{with xmlrpc}
        --with-expat-dir=shared,/usr \
 %else
@@ -1650,7 +1722,6 @@ for sapi in $sapis; do
 %endif
        %{?with_fdf:--with-fdftk=shared} \
        --with-iconv=shared \
-       %{?with_fam:--with-fam=shared} \
        --with-filepro=shared \
        --with-freetype-dir=shared \
        --with-gettext=shared \
@@ -1661,13 +1732,12 @@ for sapi in $sapis; do
        %{?with_imap:--with-imap=shared --with-imap-ssl} \
        %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
        --with-jpeg-dir=/usr \
-       %{?with_ldap:--with-ldap=shared} \
+       %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
        --with-mcrypt=shared \
        %{?with_mhash:--with-mhash=shared} \
        %{?with_mime_magic:--with-mime-magic=shared,/usr/share/file/magic.mime}%{!?with_mime_magic:--disable-mime-magic} \
        %{?with_ming:--with-ming=shared} \
        %{?with_mm:--with-mm} \
-       %{!?with_mnogosearch:--without-mnogosearch}%{?with_mnogosearch:--with-mnogosearch=shared,/usr} \
        %{?with_msession:--with-msession=shared}%{!?with_msession:--without-msession} \
        %{?with_mssql:--with-mssql=shared} \
        --with-mysql=shared,/usr \
@@ -1676,7 +1746,7 @@ for sapi in $sapis; do
        --with-ncurses=shared \
        %{?with_oci8:--with-oci8=shared} \
        %{?with_openssl:--with-openssl=shared} \
-       %{?with_oracle:--with-oracle=shared} \
+       --with-kerberos \
        %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
        --with-pear=%{php_pear_dir} \
        %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
@@ -1689,19 +1759,17 @@ for sapi in $sapis; do
        %{?with_snmp:--with-snmp=shared} \
        %{?with_sybase:--with-sybase=shared,/usr} \
        %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
-       %{!?with_sqlite:--without-sqlite}%{?with_sqlite:--with-sqlite=shared,/usr} \
+       %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
        --with-t1lib=shared \
        %{?with_tidy:--with-tidy=shared} \
        --with-tiff-dir=/usr \
-       %{?with_odbc:--with-unixODBC=shared} \
+       %{?with_odbc:--with-unixODBC=shared,/usr} \
        %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared,/usr} \
        --with-xsl=shared \
        --with-zlib=shared \
        --with-zlib-dir=shared,/usr
 
        cp -f Makefile Makefile.$sapi
-
-       # left for debugging purposes
        cp -f main/php_config.h php_config.h.$sapi
 done
 
@@ -1756,7 +1824,6 @@ install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cg
 
 # install apache1 DSO module
 %if %{with apache1}
-# TODO: use libtool here
 libtool --silent --mode=install install sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1/
 %endif
 
@@ -1785,6 +1852,7 @@ libtool --silent --mode=install install sapi/fcgi/php $RPM_BUILD_ROOT%{_bindir}/
 # install CLI
 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php.cli
 install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php.1
+echo ".so php.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.cli.1
 
 # TODO:
 # Why make install doesn't install libphp5.so ?
@@ -1792,7 +1860,7 @@ install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php.1
 
 ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
 
-install php.ini        $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
+sed -e 's#%{_prefix}/lib/php#%{_libdir}/php#g' php.ini > $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
 %if %{with fcgi}
 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
 %endif
@@ -1821,7 +1889,10 @@ cp -f Zend/LICENSE{,.Zend}
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
 for so in modules/*.so; do
        mod=$(basename $so .so)
-       cat > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/${mod}.ini <<EOF
+       conf="%{_sysconfdir}/conf.d/${mod}.ini"
+       # xml needs to be loaded before wddx
+       [ "$mod" = "wddx" ] && conf="%{_sysconfdir}/conf.d/xml_${mod}.ini"
+       cat > $RPM_BUILD_ROOT${conf} <<EOF
 ; Enable ${mod} extension module
 extension=${mod}.so
 EOF
@@ -1830,18 +1901,15 @@ done
 # Not in all SAPI, so don't need the .ini fragments.
 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/{ncurses,pcntl,readline}.ini
 
+# use system automake and {lib,sh}tool
+ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
+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
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with apache1}
-%triggerpostun -- %{name} < 4:5.0.4-9.11
-%{apxs1} -e -A -n php5 %{_pkglibdir}/libphp5.so 1>&2
-%{__perl} -pi -e \
-       's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
-       /etc/apache/apache.conf
-%service -q apache restart
-%endif
-
 %post
 if [ "$1" = "1" ]; then
 %if %{with apache1}
@@ -1914,16 +1982,17 @@ fi
 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
 [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
 
-%if %{with apache2}
-%triggerpostun -- php < 4:5.0.4-7.1
-# for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
-if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
-       cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
-       mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/php-apache2handler.ini
-fi
+%if %{with apache1}
+%triggerpostun -n apache1-mod_php -- php < 4:5.0.4-9.11
+sed -i -e '
+       /^AddType application\/x-httpd-php \.php/s,^,#,
+       /^\(Add\|Load\)Module.*php5\.\(so\|c\)/d
+' /etc/apache/apache.conf
+%service -q apache restart
+%endif
 
-# extra trigger, if they did not upgrade to 4:5.0.4-7 but still had old php-apache.ini
-%triggerpostun -n apache-mod_php -- php < 4:5.0.4-7.1
+%if %{with apache2}
+%triggerpostun -n apache-mod_php -- php < 4:5.0.4-7.1, php < 4:5.0.4-7.1
 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
        cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
@@ -1949,12 +2018,6 @@ fi
 %postun calendar
 %extension_postun
 
-%post cpdf
-%extension_post
-
-%postun cpdf
-%extension_postun
-
 %post ctype
 %extension_post
 
@@ -1979,18 +2042,6 @@ fi
 %postun dbase
 %extension_postun
 
-%post dbx
-%extension_post
-
-%postun dbx
-%extension_postun
-
-%post dio
-%extension_post
-
-%postun dio
-%extension_postun
-
 %post dom
 %extension_post
 
@@ -2003,12 +2054,6 @@ fi
 %postun exif
 %extension_postun
 
-%post fam
-%extension_post
-
-%postun fam
-%extension_postun
-
 %post fdf
 %extension_post
 
@@ -2105,12 +2150,6 @@ fi
 %postun ming
 %extension_postun
 
-%post mnogosearch
-%extension_post
-
-%postun mnogosearch
-%extension_postun
-
 %post msession
 %extension_post
 
@@ -2171,12 +2210,6 @@ fi
 %postun openssl
 %extension_postun
 
-%post oracle
-%extension_post
-
-%postun oracle
-%extension_postun
-
 %post pcntl
 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
        %{_sbindir}/php-module-install install pcntl %{_sysconfdir}/php-cgi.ini
@@ -2201,6 +2234,42 @@ fi
 %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
 
@@ -2336,22 +2405,22 @@ fi
 %postun xml
 %extension_postun
 
-%post xmlrpc
+%post xmlreader
 %extension_post
 
-%postun xmlrpc
+%postun xmlreader
 %extension_postun
 
-%post xsl
+%post xmlrpc
 %extension_post
 
-%postun xsl
+%postun xmlrpc
 %extension_postun
 
-%post yp
+%post xsl
 %extension_post
 
-%postun yp
+%postun xsl
 %extension_postun
 
 %post zlib
@@ -2369,9 +2438,6 @@ fi
 %triggerun calendar -- %{name}-calendar < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
 
-%triggerun cpdf -- %{name}-cpdf < 4:5.0.4-9.1
-[ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove cpdf %{_sysconfdir}/php.ini
-
 %triggerun ctype -- %{name}-ctype < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove ctype %{_sysconfdir}/php.ini
 
@@ -2384,21 +2450,12 @@ fi
 %triggerun dbase -- %{name}-dbase < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
 
-%triggerun dbx -- %{name}-dbx < 4:5.0.4-9.1
-[ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove dbx %{_sysconfdir}/php.ini
-
-%triggerun dio -- %{name}-dio < 4:5.0.4-9.1
-[ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove dio %{_sysconfdir}/php.ini
-
 %triggerun dom -- %{name}-dom < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove dom %{_sysconfdir}/php.ini
 
 %triggerun exif -- %{name}-exif < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
 
-%triggerun fam -- %{name}-fam < 4:5.0.4-9.1
-[ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove fam %{_sysconfdir}/php.ini
-
 %triggerun fdf -- %{name}-fdf < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove fdf %{_sysconfdir}/php.ini
 
@@ -2447,9 +2504,6 @@ fi
 %triggerun ming -- %{name}-ming < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove ming %{_sysconfdir}/php.ini
 
-%triggerun mnogosearch -- %{name}-mnogosearch < 4:5.0.4-9.1
-[ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove mnogosearch %{_sysconfdir}/php.ini
-
 %triggerun msession -- %{name}-msession < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove msession %{_sysconfdir}/php.ini
 
@@ -2471,9 +2525,6 @@ fi
 %triggerun openssl -- %{name}-openssl < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove openssl %{_sysconfdir}/php.ini
 
-%triggerun oracle -- %{name}-oracle < 4:5.0.4-9.1
-[ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
-
 %triggerun pcre -- %{name}-pcre < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
 
@@ -2537,9 +2588,6 @@ fi
 %triggerun xsl -- %{name}-xsl < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove xsl %{_sysconfdir}/php.ini
 
-%triggerun yp -- %{name}-yp < 4:5.0.4-9.1
-[ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
-
 %triggerun zlib -- %{name}-zlib < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
 
@@ -2577,9 +2625,13 @@ fi
 %files cli
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/php.cli
-%attr(755,root,root) %{_bindir}/php
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
 %{_mandir}/man1/php.1*
+%{_mandir}/man1/php.cli.1*
+
+%files program
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/php
 
 %files common
 %defattr(644,root,root,755)
@@ -2596,6 +2648,12 @@ fi
 %dir %{extensionsdir}
 %dir %{_phpsharedir}
 
+# 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
 %defattr(644,root,root,755)
 %doc README.UNIX-BUILD-SYSTEM
@@ -2625,13 +2683,6 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
 %attr(755,root,root) %{extensionsdir}/calendar.so
 
-%if %{with cpdf}
-%files cpdf
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/cpdf.ini
-%attr(755,root,root) %{extensionsdir}/cpdf.so
-%endif
-
 %files ctype
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
@@ -2654,28 +2705,11 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
 %attr(755,root,root) %{extensionsdir}/dbase.so
 
-%files dbx
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbx.ini
-%attr(755,root,root) %{extensionsdir}/dbx.so
-
-%files dio
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dio.ini
-%attr(755,root,root) %{extensionsdir}/dio.so
-
 %files dom
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
 %attr(755,root,root) %{extensionsdir}/dom.so
 
-%if %{with fam}
-%files fam
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fam.ini
-%attr(755,root,root) %{extensionsdir}/fam.so
-%endif
-
 %if %{with fdf}
 %files fdf
 %defattr(644,root,root,755)
@@ -2777,13 +2811,6 @@ fi
 %attr(755,root,root) %{extensionsdir}/ming.so
 %endif
 
-%if %{with mnogosearch}
-%files mnogosearch
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mnogosearch.ini
-%attr(755,root,root) %{extensionsdir}/mnogosearch.so
-%endif
-
 %if %{with msession}
 %files msession
 %defattr(644,root,root,755)
@@ -2835,13 +2862,6 @@ fi
 %attr(755,root,root) %{extensionsdir}/openssl.so
 %endif
 
-%if %{with oracle}
-%files oracle
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oracle.ini
-%attr(755,root,root) %{extensionsdir}/oracle.so
-%endif
-
 %files pcntl
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/pcntl.so
@@ -2853,6 +2873,58 @@ fi
 %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
+%attr(755,root,root) %{extensionsdir}/pdo.so
+
+%if %{with mssql} || %{with sybase} || %{with sybase_ct}
+%files pdo-dblib
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
+%attr(755,root,root) %{extensionsdir}/pdo_dblib.so
+%endif
+
+%if %{with interbase} && %{without interbase_inst}
+%files pdo-firebird
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
+%attr(755,root,root) %{extensionsdir}/pdo_firebird.so
+%endif
+
+%files pdo-mysql
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
+%attr(755,root,root) %{extensionsdir}/pdo_mysql.so
+
+%if %{with oci8}
+%files pdo-oci
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
+%attr(755,root,root) %{extensionsdir}/pdo_oci.so
+%endif
+
+%if %{with odbc}
+%files pdo-odbc
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
+%attr(755,root,root) %{extensionsdir}/pdo_odbc.so
+%endif
+
+%if %{with pgsql}
+%files pdo-pgsql
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
+%attr(755,root,root) %{extensionsdir}/pdo_pgsql.so
+%endif
+
+%if %{with sqlite}
+%files pdo-sqlite
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
+%attr(755,root,root) %{extensionsdir}/pdo_sqlite.so
+%endif
+
 %if %{with pgsql}
 %files pgsql
 %defattr(644,root,root,755)
@@ -2883,10 +2955,13 @@ fi
 %attr(755,root,root) %{extensionsdir}/recode.so
 %endif
 
-# session_mm doesn't work with shared session
-#%files session
-#%defattr(644,root,root,755)
-#%attr(755,root,root) %{extensionsdir}/session.so
+%if 0
+# simplexml is needed by spl, and spl can't be built shared as of now (5.1.0RC3)
+%files simplexml
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
+%attr(755,root,root) %{extensionsdir}/simplexml.so
+%endif
 
 %files shmop
 %defattr(644,root,root,755)
@@ -2961,7 +3036,7 @@ fi
 %if %{with wddx}
 %files wddx
 %defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/wddx.ini
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
 %attr(755,root,root) %{extensionsdir}/wddx.so
 %endif
 
@@ -2970,6 +3045,11 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
 %attr(755,root,root) %{extensionsdir}/xml.so
 
+%files xmlreader
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
+%attr(755,root,root) %{extensionsdir}/xmlreader.so
+
 %if %{with xmlrpc}
 %files xmlrpc
 %defattr(644,root,root,755)
@@ -2982,11 +3062,6 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
 %attr(755,root,root) %{extensionsdir}/xsl.so
 
-%files yp
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/yp.ini
-%attr(755,root,root) %{extensionsdir}/yp.so
-
 %files zlib
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
This page took 0.10761 seconds and 4 git commands to generate.