]> git.pld-linux.org Git - packages/php.git/blobdiff - php.spec
- proper dom configure option - now shared dom module is built
[packages/php.git] / php.spec
index 670d32f1fd1cceb5a108a3b3f79609cd91b73944..fe8249e7403ad2b65f2933993cc45fc55aa5f905 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -8,21 +8,19 @@
 #    - pfpro,
 #    - ircg,
 #   These extensions BuildRequires proprietary libraries...
-# - fix building of mono, sybase extensions
+# - fix building of sybase extensions
 # - test if php.cgi segfaults after ctrl+d when overload.so is loaded
-# - build simplexml as shared (now it's static)
 #
 # Conditional build:
 %bcond_with    db3             # use db3 packages instead of db (4.x) for Berkeley DB support
 %bcond_with    fdf             # with FDF (PDF forms) module           (BR: proprietary libs)
-%bcond_with    hyperwave       # with Hw API support                   (BR: proprietary libs)
+%bcond_with    hardened        # build with hardened patch applied (http://www.hardened-php.net/)
+%bcond_with    hwapi           # with Hw API support                   (BR: proprietary libs)
 %bcond_with    interbase_inst  # use InterBase install., not Firebird  (BR: proprietary libs)
-%bcond_with    java            # with Java extension module            (BR: jdk)
 %bcond_with    oci8            # with Oracle oci8 extension module     (BR: proprietary libs)
 %bcond_with    oracle          # with oracle extension module          (BR: proprietary libs)
 %bcond_without cpdf            # without cpdf extension module
 %bcond_without curl            # without CURL extension module
-%bcond_without domxslt         # without DOM XSLT/EXSLT support in DOM XML extension module
 %bcond_without fam             # without FAM (File Alteration Monitor) extension module
 %bcond_without imap            # without IMAP extension module
 %bcond_without interbase       # without InterBase extension module
 %bcond_without pgsql           # without PostgreSQL extension module
 %bcond_without pspell          # without pspell extension module
 %bcond_without recode          # without recode extension module
-%bcond_without simplexml       # without simplexml extension module
 %bcond_without snmp            # without SNMP extension module
 %bcond_without sqlite          # without SQLite extension module
+%bcond_without sybase          # without Sybase extension module
 %bcond_without sybase_ct       # without Sybase-CT extension module
 %bcond_without tidy            # without Tidy extension module
 %bcond_without wddx            # without WDDX extension module
 %bcond_without xmlrpc          # without XML-RPC extension module
-%bcond_without xml             # without XML and DOMXML extension modules
-%bcond_without xslt            # without XSLT extension module
-# To be verified
-# Removed from sources?
-%bcond_with    mono            # without Mono extensions module
-%bcond_with    yaz             # without YAZ extension module
-# Breaks build
-%bcond_with    sybase          # without Sybase extension module
 #
 %define        _apache2        %(rpm -q apache-devel 2> /dev/null | grep -Eq '\\-2\\.[0-9]+\\.' && echo 1 || echo 0)
 %define        apxs            /usr/sbin/apxs
@@ -61,7 +51,7 @@
 %if %{_apache2}
 %undefine      with_mm
 %endif
-%ifnarch %{ix86} amd64 sparc sparcv9 ppc
+%ifnarch %{ix86} amd64 sparc sparcv9 alpha ppc
 %undefine      with_interbase
 %endif
 # x86-only libs
 %include       /usr/lib/rpm/macros.php
 Summary:       The PHP HTML-embedded scripting language for use with Apache
 Summary(fr):   Le langage de script embarque-HTML PHP pour Apache
-Summary(pl):   Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache
+Summary(pl):   Jêzyk skryptowy PHP - u¿ywany wraz z serwerem Apache
 Summary(pt_BR):        A linguagem de script PHP
-Summary(ru):   PHP ÷ÅÒÓÉÉ 5 -- ÑÚÙË ÐÒÅÐÒÏÃÅÓÓÉÒÏ×ÁÎÉÑ HTML-ÆÁÊÌÏ×, ×ÙÐÏÌÎÑÅÍÙÊ ÎÁ ÓÅÒ×ÅÒÅ
-Summary(uk):   PHP ÷ÅÒÓ¦§ 5 -- ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
+Summary(ru):   PHP ÷ÅÒÓÉÉ 5 - ÑÚÙË ÐÒÅÐÒÏÃÅÓÓÉÒÏ×ÁÎÉÑ HTML-ÆÁÊÌÏ×, ×ÙÐÏÌÎÑÅÍÙÊ ÎÁ ÓÅÒ×ÅÒÅ
+Summary(uk):   PHP ÷ÅÒÓ¦§ 5 - ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
 Name:          php
-Version:       5.0.1
-Release:       0.2
+Version:       5.0.3
+Release:       1%{?with_hardened:hardened}
 Epoch:         3
 Group:         Libraries
 License:       PHP
-#Source0:      http://www.php.net/distributions/%{name}-%{version}%{_pre}.tar.bz2
-Source0:       http://pl2.php.net/distributions/%{name}-%{version}.tar.bz2
-# Source0-md5: b12042826ddba29fba3ae5a2eac3c391
+Source0:       http://www.php.net/distributions/%{name}-%{version}.tar.bz2
+# Source0-md5: fd26455febdddee0977ce226b9108d9c
 Source1:       FAQ.%{name}
 Source2:       zend.gif
 Source4:       %{name}-module-install
@@ -91,51 +80,52 @@ Source5:    %{name}-mod_%{name}.conf
 Source6:       %{name}-cgi.ini
 Source7:       %{name}-apache.ini
 Source8:       %{name}-cli.ini
+Source9:       http://www.hardened-php.net/hardened-php-%{version}-0.2.5.patch.gz
+# Source9-md5: cc91bb34a066135f1ef7cb1d4ba00b0d
 Patch0:                %{name}-shared.patch
 Patch1:                %{name}-pldlogo.patch
-Patch2:                %{name}-xml-expat-fix.patch
-Patch3:                %{name}-mail.patch
-Patch4:                %{name}-link-libs.patch
-Patch5:                %{name}-libpq_fs_h_path.patch
-Patch6:                %{name}-wddx-fix.patch
-Patch7:                %{name}-msession-shared-lib.patch
-Patch8:                %{name}-build_modules.patch
-Patch9:                %{name}-sapi-ini-file.patch
-Patch10:       %{name}-no-metaccld.patch
-Patch11:       %{name}-session-unregister.patch
-Patch12:       %{name}-ini.patch
-Patch13:       %{name}-acam.patch
-Patch14:       %{name}-xmlrpc-fix.patch
-Patch15:       %{name}-libtool.patch
-Patch16:       %{name}-allow-db31.patch
-Patch17:       %{name}-threads-acfix.patch
-Patch18:       %{name}-tsrmlsfetchgcc2.patch
-Patch19:       %{name}-no_pear_install.patch
-Patch20:       %{name}-zlib.patch
-Patch21:       %{name}-sybase-fix.patch
-Patch22:       %{name}-mssql-fix.patch
-Patch23:       %{name}-mnogosearch-fix.patch
-Patch24:       %{name}-nohttpd.patch
-Patch25:       %{name}-lib64.patch
-Patch26:       %{name}-phpize.patch
-Icon:          php4.gif
+Patch2:                %{name}-mail.patch
+Patch3:                %{name}-link-libs.patch
+Patch4:                %{name}-libpq_fs_h_path.patch
+Patch5:                %{name}-wddx-fix.patch
+Patch6:                %{name}-msession-shared-lib.patch
+Patch7:                %{name}-build_modules.patch
+Patch8:                %{name}-sapi-ini-file.patch
+Patch9:                %{name}-no-metaccld.patch
+Patch10:       %{name}-session-unregister.patch
+Patch11:       %{name}-ini.patch
+Patch12:       %{name}-acam.patch
+Patch13:       %{name}-xmlrpc-fix.patch
+Patch14:       %{name}-libtool.patch
+Patch15:       %{name}-allow-db31.patch
+Patch16:       %{name}-threads-acfix.patch
+Patch17:       %{name}-tsrmlsfetchgcc2.patch
+Patch18:       %{name}-no_pear_install.patch
+Patch19:       %{name}-zlib.patch
+Patch20:       %{name}-sybase-fix.patch
+Patch21:       %{name}-mnogosearch-fix.patch
+Patch22:       %{name}-nohttpd.patch
+Patch23:       %{name}-lib64.patch
+Patch24:       %{name}-phpize.patch
+Patch25:       %{name}-gd_imagerotate_enable.patch
+Patch26:       %{name}-uint32_t.patch
+Icon:          php.gif
 URL:           http://www.php.net/
 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:       Firebird-devel >= 1.0.2.908-2}}
-BuildRequires: apache-devel
 %{?with_pspell:BuildRequires:  aspell-devel}
 BuildRequires: autoconf >= 2.53
 BuildRequires: automake >= 1.4d
 BuildRequires: bison
 BuildRequires: bzip2-devel
-%{?with_curl:BuildRequires:    curl-devel >= 7.12.0 }
+%{?with_curl:BuildRequires:    curl-devel >= 7.12.0}
 BuildRequires: cyrus-sasl-devel
 %{?with_db3:BuildRequires:     db3-devel >= 3.1}
 %{!?with_db3:BuildRequires:    db-devel >= 4.0}
 BuildRequires: elfutils-devel
-%if %{with xml} || %{with xmlrpc}
+%if %{with wddx} || %{with xmlrpc}
 BuildRequires: expat-devel
-%{?with_fam:BuildRequires:     fam-devel}
 %endif
+%{?with_fam:BuildRequires:     fam-devel}
 %{?with_fdf:BuildRequires:     fdftk-devel}
 BuildRequires: fcgi-devel
 BuildRequires: flex
@@ -143,11 +133,10 @@ BuildRequires:    flex
 BuildRequires: freetds-devel
 %endif
 BuildRequires: freetype-devel >= 2.0
-BuildRequires: gd-devel >= 2.0.28
+BuildRequires: gd-devel >= 2.0.28-4
 BuildRequires: gdbm-devel
 BuildRequires: gmp-devel
-%{?with_imap:BuildRequires:    imap-devel >= 1:2001-0.BETA.200107022325.2 }
-%{?with_java:BuildRequires:    jdk >= 1.1}
+%{?with_imap:BuildRequires:    imap-devel >= 1:2001-0.BETA.200107022325.2}
 %{?with_cpdf:BuildRequires:    libcpdf-devel >= 2.02r1-2}
 BuildRequires: libidn-devel
 BuildRequires: libjpeg-devel
@@ -156,13 +145,12 @@ BuildRequires:    libmcrypt-devel >= 2.4.4
 BuildRequires: libpng-devel >= 1.0.8
 BuildRequires: libtiff-devel
 BuildRequires: libtool >= 1.4.3
-%{?with_xml:BuildRequires:     libxml2-devel >= 2.5.10}
-%{?with_domxslt:BuildRequires: libxslt-devel >= 1.0.3}
+BuildRequires: libxml2-devel >= 2.5.10
+BuildRequires: libxslt-devel >= 1.0.18
 %{?with_mhash:BuildRequires:   mhash-devel}
 %{?with_ming:BuildRequires:    ming-devel >= 0.1.0}
 %{?with_mm:BuildRequires:      mm-devel >= 1.3.0}
 %{?with_mnogosearch:BuildRequires:     mnogosearch-devel >= 3.2.6}
-%{?with_mono:BuildRequires:    mono-devel}
 BuildRequires: mysql-devel >= 4.0.0
 BuildRequires: ncurses-ext-devel
 %{?with_ldap:BuildRequires:    openldap-devel >= 2.0}
@@ -178,21 +166,22 @@ BuildRequires:    readline-devel
 %{?with_recode:BuildRequires:  recode-devel >= 3.5d-3}
 BuildRequires: rpm-php-pearprov >= 4.0.2-100
 BuildRequires: rpmbuild(macros) >= 1.120
-%{?with_xslt:BuildRequires:    sablotron-devel >= 0.96}
 %{?with_sqlite:BuildRequires:  sqlite-devel}
 BuildRequires: t1lib-devel
 %{?with_tidy:BuildRequires:    tidy-devel}
 %{?with_snmp:BuildRequires:    net-snmp-devel >= 5.0.7}
 %{?with_odbc:BuildRequires:    unixODBC-devel}
 %{?with_xmlrpc:BuildRequires:  xmlrpc-epi-devel}
-%{?with_yaz:BuildRequires:     yaz-devel >= 1.9}
 BuildRequires: zlib-devel >= 1.0.9
 # apache 1.3 vs apache 2.0
 %if %{_apache2}
-BuildRequires:  apr-devel >= 1:0.9.4-1
-PreReq:                apache >= 2.0.40
+BuildRequires: apache-devel >= 2.0.52-2
+BuildRequires: apr-devel >= 1:1.0.0
+BuildRequires: apr-util-devel >= 1:1.0.0
+PreReq:                apache >= 2.0.52-2
 Requires:      apache(modules-api) = %{apache_modules_api}
 %else
+BuildRequires: apache1-devel
 PreReq:                apache(EAPI) < 2.0.0
 PreReq:                apache(EAPI) >= 1.3.9
 Requires(post,preun):  %{apxs}
@@ -215,7 +204,7 @@ non-commercial database management systems, so writing a
 database-enabled web page with PHP is fairly simple. The most common
 use of PHP coding is probably as a replacement for CGI scripts. The
 mod_php module enables the Apache web server to understand and process
-the embedded PHP language in web pages. This package contains PHP
+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
@@ -231,7 +220,7 @@ non-connerciaux, qui rent facile la creation de pages web liees avec
 des bases de donnees. L'utilisation la plus commune de PHP est
 probablement en remplacement de scripts CGI. Le module mod_php permet
 au serveur web apache de comprendre et de traiter le langage PHP
-integre dans des pages web. Ce package contient PHP version
+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
@@ -253,7 +242,7 @@ linguagem 
 dinamicamente geradas de forma rápida.
 
 %description -l ru
-PHP4 - ÜÔÏ ÑÚÙË ÎÁÐÉÓÁÎÉÑ ÓËÒÉÐÔÏ×, ×ÓÔÒÁÉ×ÁÅÍÙÈ × HTML-ËÏÄ. PHP
+PHP - ÜÔÏ ÑÚÙË ÎÁÐÉÓÁÎÉÑ ÓËÒÉÐÔÏ×, ×ÓÔÒÁÉ×ÁÅÍÙÈ × HTML-ËÏÄ. PHP
 ÐÒÅÄÌÁÇÁÅÔ ÉÎÔÅÒÇÒÁÃÉÀ Ó ÍÎÏÖÅÓÔ×ÏÍ óõâä, ÐÏÜÔÏÍÕ ÎÁÐÉÓÁÎÉÅ ÓËÒÉÐÔÏ×
 ÄÌÑ ÒÁÂÏÔÙ Ó ÂÁÚÁÍÉ ÄÁÎÎÙÈ ÏÔÎÏÓÉÔÅÌØÎÏ ÐÒÏÓÔÏ. îÁÉÂÏÌÅÅ ÐÏÐÕÌÑÒÎÏÅ
 ÉÓÐÏÌØÚÏ×ÁÎÉÅ PHP - ÚÁÍÅÎÁ ÄÌÑ CGI ÓËÒÉÐÔÏ×.
@@ -264,7 +253,7 @@ PHP4 - 
 apache-php.
 
 %description -l uk
-PHP4 - ÃÅ ÍÏ×Á ÎÁÐÉÓÁÎÎÑ ÓËÒÉÐÔ¦×, ÝÏ ×ÂÕÄÏ×ÕÀÔØÓÑ × HTML-ËÏÄ. PHP
+PHP - ÃÅ ÍÏ×Á ÎÁÐÉÓÁÎÎÑ ÓËÒÉÐÔ¦×, ÝÏ ×ÂÕÄÏ×ÕÀÔØÓÑ × HTML-ËÏÄ. PHP
 ÐÒÏÐÏÎÕ¤ ¦ÎÔÅÇÒÁæÀ Ú ÂÁÇÁÔØÍÁ óõâä, ÔÏÍÕ ÎÁÐÉÓÁÎÎÑ ÓËÒÉÐԦנÄÌÑ
 ÒÏÂÏÔÉ Ú ÂÁÚÁÍÉ ÄÁÎÉÈ ¤ ÄÏ×Ï̦ ÐÒÏÓÔÉÍ. îÁʦÌØÛ ÐÏÐÕÌÑÒÎÅ
 ×ÉËÏÒÉÓÔÁÎÎÑ PHP - ÚÁͦÎÁ ÄÌÑ CGI ÓËÒÉÐÔ¦×.
@@ -274,43 +263,43 @@ PHP4 - 
 ¦ÎÔÅÒÐÒÅÔÁÔÏÒ PHP × ÑËÏÓÔ¦ ÍÏÄÕÌÑ apache, ×ÓÔÁÎÏצÔØ ÐÁËÅÔ apache-php.
 
 %package fcgi
-Summary:       PHP as FastCGI program
-Summary(pl):   PHP jako program FastCGI
+Summary:       php as FastCGI program
+Summary(pl):   php jako program FastCGI
 Group:         Development/Languages/PHP
 PreReq:                %{name}-common = %{epoch}:%{version}-%{release}
 Provides:      php-program = %{epoch}:%{version}-%{release}
 
 %description fcgi
-PHP as FastCGI program.
+php as FastCGI program.
 
 %description fcgi -l pl
-PHP jako program FastCGI.
+php jako program FastCGI.
 
 %package cgi
-Summary:       PHP as CGI program
-Summary(pl):   PHP jako program CGI
+Summary:       php as CGI program
+Summary(pl):   php jako program CGI
 Group:         Development/Languages/PHP
 PreReq:                %{name}-common = %{epoch}:%{version}-%{release}
 Provides:      php-program = %{epoch}:%{version}-%{release}
 
 %description cgi
-PHP as CGI program.
+php as CGI program.
 
 %description cgi -l pl
-PHP jako program CGI.
+php jako program CGI.
 
 %package cli
-Summary:       PHP as CLI interpreter
-Summary(pl):   PHP jako interpreter dzia³aj±cy z linii poleceñ
+Summary:       php as CLI interpreter
+Summary(pl):   php jako interpreter dzia³aj±cy z linii poleceñ
 Group:         Development/Languages/PHP
 PreReq:                %{name}-common = %{epoch}:%{version}-%{release}
 Provides:      php-program = %{epoch}:%{version}-%{release}
 
 %description cli
-PHP as CLI interpreter.
+php as CLI interpreter.
 
 %description cli -l pl
-PHP jako interpreter dzia³aj±cy z linii poleceñ.
+php jako interpreter dzia³aj±cy z linii poleceñ.
 
 %package common
 Summary:       Common files needed by both apache module and CGI
@@ -319,7 +308,7 @@ Summary(ru):        
 Summary(uk):   â¦Â̦ÏÔÅËÉ ÓЦÌØÎÏÇÏ ×ÉËÏÒÉÓÔÁÎÎÑ ÄÌÑ php
 Group:         Libraries
 Provides:      %{name}-session = %{epoch}:%{version}-%{release}
-Obsoletes:     php-session <= %{epoch}:%{version}-%{release}
+Obsoletes:     php-session < 3:4.2.1-2
 
 %description common
 Common files needed by both apache module and CGI.
@@ -339,17 +328,18 @@ Wsp
 Summary:       Files for PHP modules development
 Summary(pl):   Pliki do kompilacji modu³ów PHP
 Summary(pt_BR):        Arquivos de desenvolvimento para PHP
-Summary(ru):   ðÁËÅÔ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÒÁÓÛÉÒÅÎÉÊ PHP4
-Summary(uk):   ðÁËÅÔ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÏÂÕÄÏ×É ÒÏÚÛÉÒÅÎØ PHP4
+Summary(ru):   ðÁËÅÔ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÒÁÓÛÉÒÅÎÉÊ PHP
+Summary(uk):   ðÁËÅÔ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÏÂÕÄÏ×É ÒÏÚÛÉÒÅÎØ PHP
 Group:         Development/Languages/PHP
 Requires:      autoconf
 Requires:      automake
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Obsoletes:     php-pear-devel
+Obsoletes:     php4-devel
 
 %description devel
 The php-devel package lets you compile dynamic extensions to PHP.
-Included here is the source for the php extensions. Instead of
+Included here is the source for the PHP extensions. Instead of
 recompiling the whole php binary to add support for, say, oracle,
 install this package and use the new self-contained extensions
 support. For more information, read the file
@@ -520,6 +510,20 @@ 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
+Group:         Libraries
+Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
+Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+
+%description dom
+This is a dynamic shared object (DSO) for PHP that will add new DOM
+support.
+
+%description dom -l pl
+Modu³ PHP dodaj±cy now± obs³ugê DOM.
+
 %package exif
 Summary:       exif extension module for PHP
 Summary(pl):   Modu³ exif dla PHP
@@ -601,7 +605,7 @@ Summary(pl):        Modu
 Group:         Libraries
 Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      gd >= 2.0.28
+Requires:      gd >= 2.0.28-4
 Provides:      %{name}-gd(gif) = %{epoch}:%{version}-%{release}
 
 %description gd
@@ -641,18 +645,18 @@ 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 hyperwave
-Summary:       Hyperwave extension module for PHP
-Summary(pl):   Modu³ Hyperwave dla PHP
+%package hwapi
+Summary:       Hyperwave API extension module for PHP
+Summary(pl):   Modu³ API Hyperwave dla PHP
 Group:         Libraries
 Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 
-%description hyperwave
-This is a dynamic shared object (DSO) for PHP that will add Hyperwave
-support.
+%description hwapi
+This is a dynamic shared object (DSO) for PHP that will add official
+Hyperwave API support.
 
-%description hyperwave -l pl
+%description hwapi -l pl
 Modu³ PHP dodaj±cy obs³ugê Hyperwave.
 
 %package iconv
@@ -702,30 +706,6 @@ and Firebird database support.
 %description interbase -l pl
 Modu³ PHP umo¿liwiaj±cy dostêp do baz danych InterBase i Firebird.
 
-%package java
-Summary:       Java extension module for PHP
-Summary(pl):   Modu³ Javy dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-
-%description java
-This is a dynamic shared object (DSO) for PHP that will add Java
-support to PHP. This extension provides a simple and effective means
-for creating and invoking methods on Java objects from PHP.
-
-Note: it requires setting LD_LIBRARY_PATH to JRE directories
-containing JVM libraries (e.g. libjava.so, libverify.so and libjvm.so
-for Sun's JRE) before starting Apache or PHP interpreter.
-
-%description java -l pl
-Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
-obiektów Javy z poziomu PHP.
-
-Uwaga: modu³ wymaga ustawienia LD_LIBRARY_PATH na katalogi JRE
-zawieraj±ce biblioteki JVM (np. libjava.so, libverify.so i libjvm.so
-dla JRE Suna) przed uruchomieniem Apache'a lub interpretera PHP.
-
 %package ldap
 Summary:       LDAP extension module for PHP
 Summary(pl):   Modu³ LDAP dla PHP
@@ -832,21 +812,6 @@ access mnoGoSearch free search engine.
 Modu³ PHP dodaj±cy pozwalaj±cy na dostêp do wolnodostêpnego silnika
 wyszukiwarki mnoGoSearch.
 
-%package mono
-Summary:       Mono extension module for PHP
-Summary(pl):   Modu³ Mono dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-
-%description mono
-This is a dynamic shared object (DSO) for PHP that will allow you to
-access .NET assemblies via free Mono library.
-
-%description mono -l pl
-Modu³ PHP pozwalaj±cy na dostêp do wstawek .NET za pomoc± darmowej
-biblioteki Mono.
-
 %package msession
 Summary:       msession extension module for PHP
 Summary(pl):   Modu³ msession dla PHP
@@ -902,8 +867,8 @@ Um m
 Summary:       ncurses module for PHP
 Summary(pl):   Modu³ ncurses dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-program = %{epoch}:%{version}-%{release}
-Requires:      %{name}-program = %{epoch}:%{version}-%{release}
+Requires(post,preun):  %{name}-cli = %{epoch}:%{version}-%{release}
+Requires:      %{name}-cli = %{epoch}:%{version}-%{release}
 
 %description ncurses
 This PHP module adds support for ncurses functions (only for cli and
@@ -1068,8 +1033,8 @@ sprawdzanie pisowni s
 Summary:       readline extension module for PHP
 Summary(pl):   Modu³ readline dla PHP
 Group:         Libraries
-Requires(post,preun):  %{name}-program = %{epoch}:%{version}-%{release}
-Requires:      %{name}-program = %{epoch}:%{version}-%{release}
+Requires(post,preun):  %{name}-cli = %{epoch}:%{version}-%{release}
+Requires:      %{name}-cli = %{epoch}:%{version}-%{release}
 
 %description readline
 This PHP module adds support for readline functions (only for cli and
@@ -1126,20 +1091,6 @@ Modu
 
 Uwaga: to jest modu³ eksperymentalny.
 
-%package simplexml
-Summary:       SimpleXML extension module for PHP
-Summary(pl):   Modu³ SimpleXML dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-%{common} = %{epoch}:%{version}-%{release}
-
-%description simplexml
-This is a dynamic shared object (DSO) for PHP that will add SimpleXML
-support.
-
-%description simplexml -l pl
-Modu³ PHP dodaj±cy obs³ugê SimpleXML.
-
 %package snmp
 Summary:       SNMP extension module for PHP
 Summary(pl):   Modu³ SNMP dla PHP
@@ -1186,7 +1137,7 @@ without running a separate RDBMS process.
 
 SQLite is not a client library used to connect to a big database server.
 SQLite is the server. The SQLite library reads and writes directly to
-and from the database files on disk. 
+and from the database files on disk.
 
 %description sqlite -l pl
 SQLite jest napisan± w C bibliotek± implementuj±c± osadzalny silnik
@@ -1207,11 +1158,13 @@ Obsoletes:      php-sybase-ct
 
 %description sybase
 This is a dynamic shared object (DSO) for PHP that will add Sybase and
-MS SQL databases support through SYBDB library.
+MS SQL databases support through SYBDB library. Currently Sybase module
+is not maintained. Using Sybase-CT module is recommended instead.
 
 %description sybase -l pl
 Modu³ PHP dodaj±cy obs³ugê baz danych Sybase oraz MS SQL poprzez
-bibliotekê SYBDB.
+bibliotekê SYBDB. W chwili obecnej modu³ Sybase nie jest wspierany.
+Zaleca siê u¿ywanie modu³u Sybase-CT.
 
 %package sybase-ct
 Summary:       Sybase-CT extension module for PHP
@@ -1335,36 +1288,20 @@ Modu
 
 Uwaga: to jest modu³ eksperymentalny.
 
-%package xslt
-Summary:       xslt extension module for PHP
-Summary(pl):   Modu³ xslt dla PHP
+%package xsl
+Summary:       xsl extension module for PHP
+Summary(pl):   Modu³ xsl dla PHP
 Group:         Libraries
 Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
+Requires:      libxslt >= 1.0.18
 
-%description xslt
-This is a dynamic shared object (DSO) for PHP that will add xslt
-support.
-
-%description xslt -l pl
-Modu³ PHP umo¿liwiaj±cy korzystanie z technologii xslt.
-
-%package yaz
-Summary:       yaz extension module for PHP
-Summary(pl):   Modu³ yaz dla PHP
-Group:         Libraries
-Requires(post,preun):  %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      %{name}-common = %{epoch}:%{version}-%{release}
-Requires:      yaz >= 1.9
+%description xsl
+This is a dynamic shared object (DSO) for PHP that will add new XSL
+support (using libxslt).
 
-%description yaz
-This is a dynamic shared object (DSO) for PHP that will add yaz
-support. yaz toolkit implements the Z39.50 protocol for information
-retrieval.
-
-%description yaz -l pl
-Modu³ PHP umo¿liwiaj±cy korzystanie z yaz - implementacji protoko³u
-Z39.50 s³u¿±cego do pozyskiwania informacji.
+%description xsl -l pl
+Modu³ PHP dodaj±cy now± obs³ugê XSLT (przy u¿yciu libxslt).
 
 %package yp
 Summary:       NIS (yp) extension module for PHP
@@ -1396,7 +1333,7 @@ Modu
 
 %package pear
 Summary:       PEAR - PHP Extension and Application Repository
-Summary(pl):   PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
+Summary(pl):   PEAR - rozszerzenie PHP i repozytorium aplikacji
 Group:         Development/Languages/PHP
 Requires:      %{name}-pcre = %{epoch}:%{version}-%{release}
 Requires:      %{name}-xml = %{epoch}:%{version}-%{release}
@@ -1411,19 +1348,19 @@ with PHP, please install appropriate php-pear-* (php-pear-PEAR,
 php-PEAR-Archive_Tar, etc) packages.
 
 %description pear -l pl
-PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
+PEAR (PHP Extension and Application Repository) - rozszerzenie PHP i
 repozytorium aplikacji.
 
-Pamiêtaj, ¿e ten pakiet dostarcza tylko podstawow± strukturê
-katalogów. Je¶li chcesz u¿yæ podstawowych klas PEAR (PEAR.php
-PEAR/*.php), dostarczanych z PHP, zainstaluj odpowiednie pakiety
+Nale¿y pamiêtaæ, ¿e ten pakiet dostarcza tylko podstawow± strukturê
+katalogów. Aby u¿yæ podstawowych klas PEAR (PEAR.php PEAR/*.php),
+dostarczanych z PHP, nale¿y zainstalowaæ odpowiednie pakiety
 php-pear-* (php-pear-PEAR, php-pear-Archive_Tar, itp).
 
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
-#%patch2 -p1
+%patch2 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
@@ -1432,11 +1369,11 @@ php-pear-* (php-pear-PEAR, php-pear-Archive_Tar, itp).
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
-%patch11 -p1
 cp php.ini-dist php.ini
-%patch12 -p1
+%patch11 -p1
 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
 # conditionally...
+%patch12 -p1
 %patch13 -p1
 %patch14 -p1
 %patch15 -p1
@@ -1447,23 +1384,28 @@ cp php.ini-dist php.ini
 %patch20 -p1
 %patch21 -p1
 %patch22 -p1
+%ifarch amd64
 %patch23 -p1
+%endif
 %patch24 -p1
-%ifarch amd64
 %patch25 -p1
-%endif
 %patch26 -p1
 
+%{?with_hardened:zcat %{SOURCE9} | patch -p1}
+
 # conflict seems to be resolved by recode patches
 rm -f ext/recode/config9.m4
 
 # fix lib path in phpize
 cd scripts/
-sed 's,lib/php,%{_lib}/php,' phpize.in > phpize.in.tmp
-mv -f phpize.in.tmp phpize.in
+sed -i -e 's,lib/php,%{_lib}/php,' phpize.in
+cd ..
+
+# new apr
+sed -i -e 's#apr-config#apr-1-config#g' sapi/apache*/*.m4
 
 %build
-CFLAGS="%{rpmcflags} -DEAPI=1 -I/usr/X11R6/include"
+CFLAGS="%{rpmcflags} -DEAPI=1 -I/usr/X11R6/include `%{_bindir}/apr-1-config --includes` `%{_bindir}/apu-1-config --includes`"
 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
 ./buildconf --force
 %{__libtoolize}
@@ -1491,6 +1433,7 @@ for i in fcgi cgi cli apxs ; do
        --enable-dba=shared \
        --enable-dbx=shared \
        --enable-dio=shared \
+       --enable-dom=shared \
        --enable-exif=shared \
        --enable-filepro=shared \
        --enable-ftp=shared \
@@ -1504,7 +1447,6 @@ for i in fcgi cgi cli apxs ; do
        --enable-session \
        --enable-shared \
        --enable-shmop=shared \
-       %{?with_simplexml:--enable-simplexml} \
        --enable-sysvmsg=shared \
        --enable-sysvsem=shared \
        --enable-sysvshm=shared \
@@ -1514,17 +1456,14 @@ for i in fcgi cgi cli apxs ; do
        --enable-sockets=shared \
        --enable-ucd-snmp-hack \
        %{?with_wddx:--enable-wddx=shared} \
-       %{!?with_xml:--disable-xml}%{?with_xml:--enable-xml=shared} \
-       %{?with_xslt:--enable-xslt=shared} \
+       --enable-xml=shared \
        --enable-yp=shared \
        --with-bz2=shared \
        %{?with_cpdf:--with-cpdflib=shared} \
        %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
        %{?with_db3:--with-db3}%{!?with_db3:--with-db4} \
        --with-dbase=shared \
-       %{?with_xml:--with-dom=shared} \
-       %{?with_domxslt:--with-dom-xslt=shared --with-dom-exslt=shared} \
-%if %{with xml} || %{with xmlrpc}
+%if %{with wddx} || %{with xmlrpc}
        --with-expat-dir=shared,/usr \
 %else
        --without-expat-dir \
@@ -1538,10 +1477,9 @@ for i in fcgi cgi cli apxs ; do
        --with-gd=shared,/usr \
        --with-gdbm \
        --with-gmp=shared \
-       %{?with_hyperwave:--with-hwapi=shared} \
+       %{?with_hwapi:--with-hwapi=shared} \
        %{?with_imap:--with-imap=shared --with-imap-ssl} \
        %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
-       %{?with_java:--with-java=/usr/lib/java} \
        --with-jpeg-dir=/usr \
        %{?with_ldap:--with-ldap=shared} \
        --with-mcrypt=shared \
@@ -1550,7 +1488,6 @@ for i in fcgi cgi cli apxs ; do
        %{?with_ming:--with-ming=shared} \
        %{?with_mm:--with-mm} \
        %{!?with_mnogosearch:--without-mnogosearch}%{?with_mnogosearch:--with-mnogosearch=shared,/usr} \
-       %{?with_mono:--with-mono} \
        %{?with_msession:--with-msession=shared}%{!?with_msession:--without-msession} \
        %{?with_mssql:--with-mssql=shared} \
        --with-mysql=shared,/usr \
@@ -1577,14 +1514,10 @@ for i in fcgi cgi cli apxs ; do
        --with-tiff-dir=/usr \
        %{?with_odbc:--with-unixODBC=shared} \
        %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared,/usr} \
-       --with-xsl \
-       %{?with_xslt:--with-xslt-sablot=shared} \
-       %{?with_yaz:--with-yaz=shared} \
+       --with-xsl=shared \
        --with-zlib=shared \
        --with-zlib-dir=shared,/usr
 
-#      %{?with_sybase:--with-sybase-ct=shared,/usr --with-sybase=shared,/usr} \
-
 cp -f Makefile Makefile.$i
 # left for debugging purposes
 cp -f main/php_config.h php_config.h.$i
@@ -1635,9 +1568,7 @@ install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}}
 install libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}/apache
 
 # compatibility (/usr/bin/php used to be CGI SAPI)
-ln -sf php.cgi $RPM_BUILD_ROOT%{_bindir}/php
-
-%{?with_java:install ext/java/php_java.jar $RPM_BUILD_ROOT%{extensionsdir}}
+ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
 
 install php.ini        $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
 install %{SOURCE6} %{SOURCE7} %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}
@@ -1771,6 +1702,14 @@ if [ "$1" = "0" ]; then
        %{_sbindir}/php-module-install remove dio %{_sysconfdir}/php.ini
 fi
 
+%post dom
+%{_sbindir}/php-module-install install dom %{_sysconfdir}/php.ini
+
+%preun dom
+if [ "$1" = "0" ]; then
+       %{_sbindir}/php-module-install remove dom %{_sysconfdir}/php.ini
+fi
+
 %post exif
 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
 
@@ -1835,12 +1774,12 @@ if [ "$1" = "0" ]; then
        %{_sbindir}/php-module-install remove gmp %{_sysconfdir}/php.ini
 fi
 
-%post hyperwave
-%{_sbindir}/php-module-install install hyperwave %{_sysconfdir}/php.ini
+%post hwapi
+%{_sbindir}/php-module-install install hwapi %{_sysconfdir}/php.ini
 
-%preun hyperwave
+%preun hwapi
 if [ "$1" = "0" ]; then
-       %{_sbindir}/php-module-install remove hyperwave %{_sysconfdir}/php.ini
+       %{_sbindir}/php-module-install remove hwapi %{_sysconfdir}/php.ini
 fi
 
 %post iconv
@@ -1867,14 +1806,6 @@ if [ "$1" = "0" ]; then
        %{_sbindir}/php-module-install remove interbase %{_sysconfdir}/php.ini
 fi
 
-%post java
-%{_sbindir}/php-module-install install java %{_sysconfdir}/php.ini
-
-%preun java
-if [ "$1" = "0" ]; then
-       %{_sbindir}/php-module-install remove java %{_sysconfdir}/php.ini
-fi
-
 %post ldap
 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
 
@@ -1931,14 +1862,6 @@ if [ "$1" = "0" ]; then
        %{_sbindir}/php-module-install remove mnogosearch %{_sysconfdir}/php.ini
 fi
 
-%post mono
-%{_sbindir}/php-module-install install mono %{_sysconfdir}/php.ini
-
-%preun mono
-if [ "$1" = "0" ]; then
-       %{_sbindir}/php-module-install remove mono %{_sysconfdir}/php.ini
-fi
-
 %post msession
 %{_sbindir}/php-module-install install msession %{_sysconfdir}/php.ini
 
@@ -1952,7 +1875,7 @@ fi
 
 %preun mssql
 if [ "$1" = "0" ]; then
-        %{_sbindir}/php-module-install remove mssql %{_sysconfdir}/php.ini
+       %{_sbindir}/php-module-install remove mssql %{_sysconfdir}/php.ini
 fi
 
 %post mysql
@@ -2105,14 +2028,6 @@ if [ "$1" = "0" ]; then
        %{_sbindir}/php-module-install remove shmop %{_sysconfdir}/php.ini
 fi
 
-%post simplexml
-%{_sbindir}/php-module-install install simplexml %{_sysconfdir}/php.ini
-
-%preun simplexml
-if [ "$1" = "0" ]; then
-       %{_sbindir}/php-module-install remove simplexml %{_sysconfdir}/php.ini
-fi
-
 %post snmp
 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
 
@@ -2201,20 +2116,12 @@ if [ "$1" = "0" ]; then
        %{_sbindir}/php-module-install remove xmlrpc %{_sysconfdir}/php.ini
 fi
 
-%post xslt
-%{_sbindir}/php-module-install install xslt %{_sysconfdir}/php.ini
-
-%preun xslt
-if [ "$1" = "0" ]; then
-       %{_sbindir}/php-module-install remove xslt %{_sysconfdir}/php.ini
-fi
-
-%post yaz
-%{_sbindir}/php-module-install install yaz %{_sysconfdir}/php.ini
+%post xsl
+%{_sbindir}/php-module-install install xsl %{_sysconfdir}/php.ini
 
-%preun yaz
+%preun xsl
 if [ "$1" = "0" ]; then
-       %{_sbindir}/php-module-install remove yaz %{_sysconfdir}/php.ini
+       %{_sbindir}/php-module-install remove xsl %{_sysconfdir}/php.ini
 fi
 
 %post yp
@@ -2249,12 +2156,12 @@ fi
 %files cgi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/php.cgi
-%attr(755,root,root) %{_bindir}/php
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-cgi.ini
 
 %files cli
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/php.cli
+%attr(755,root,root) %{_bindir}/php
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-cli.ini
 %{_mandir}/man1/php.1*
 
@@ -2267,7 +2174,7 @@ fi
 
 %dir %{_sysconfdir}
 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
-%attr(730,root,http) %dir %verify(not group mode) /var/run/php
+%attr(770,root,http) %dir %verify(not group mode) /var/run/php
 
 %{httpdir}/icons/*
 %attr(755,root,root) %{_sbindir}/*
@@ -2328,6 +2235,10 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/dio.so
 
+%files dom
+%defattr(644,root,root,755)
+%attr(755,root,root) %{extensionsdir}/dom.so
+
 %if %{with fam}
 %files fam
 %defattr(644,root,root,755)
@@ -2364,10 +2275,10 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/gmp.so
 
-%if %{with hyperwave}
-%files hyperwave
+%if %{with hwapi}
+%files hwapi
 %defattr(644,root,root,755)
-%attr(755,root,root) %{extensionsdir}/hyperwave.so
+%attr(755,root,root) %{extensionsdir}/hwapi.so
 %endif
 
 %files iconv
@@ -2386,13 +2297,6 @@ fi
 %attr(755,root,root) %{extensionsdir}/interbase.so
 %endif
 
-%if %{with java}
-%files java
-%defattr(644,root,root,755)
-%attr(755,root,root) %{extensionsdir}/java.so
-%{extensionsdir}/php_java.jar
-%endif
-
 %if %{with ldap}
 %files ldap
 %defattr(644,root,root,755)
@@ -2429,12 +2333,6 @@ fi
 %attr(755,root,root) %{extensionsdir}/mnogosearch.so
 %endif
 
-%if %{with mono}
-%files mono
-%defattr(644,root,root,755)
-%attr(755,root,root) %{extensionsdir}/mono.so
-%endif
-
 %if %{with msession}
 %files msession
 %defattr(644,root,root,755)
@@ -2544,7 +2442,9 @@ fi
 %files sybase
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/sybase.so
+%endif
 
+%if %{with sybase_ct}
 %files sybase-ct
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/sybase_ct.so
@@ -2574,18 +2474,9 @@ fi
 %attr(755,root,root) %{extensionsdir}/wddx.so
 %endif
 
-%if %{with xml}
 %files xml
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/xml.so
-%endif
-
-# FIXME: build as shared module
-%if 0 && %{with simplexml}
-%files simplexml
-%defattr(644,root,root,755)
-%attr(755,roor,root) %{extensionsdir}/simplexml.so
-%endif
 
 %if %{with xmlrpc}
 %files xmlrpc
@@ -2593,17 +2484,9 @@ fi
 %attr(755,root,root) %{extensionsdir}/xmlrpc.so
 %endif
 
-#%if %{with xslt}
-#%files xslt
-#%defattr(644,root,root,755)
-#%attr(755,root,root) %{extensionsdir}/xslt.so
-#%endif
-
-%if %{with yaz}
-%files yaz
+%files xsl
 %defattr(644,root,root,755)
-%attr(755,root,root) %{extensionsdir}/yaz.so
-%endif
+%attr(755,root,root) %{extensionsdir}/xsl.so
 
 %files yp
 %defattr(644,root,root,755)
This page took 0.081182 seconds and 4 git commands to generate.