]> git.pld-linux.org Git - packages/php.git/blobdiff - php.spec
- release 12: rebuild against ucd-snmp 4.2.3.
[packages/php.git] / php.spec
index 35755e7437ca7409ce8807429db0e4e95008f271..426b0f0a9d03799b8945b1758ed3837b811e8263 100644 (file)
--- a/php.spec
+++ b/php.spec
 #
 # Conditional build:
-# bcond_on_oracle  - with oracle support 
-# bcond_on_oci8    - with oci8 support
-# bcond_on_java    - with Java support
-# bcond_on_openssl - with OpenSSL support
-# bcond_off_imap   - without IMAP support
-# bcond_off_ldap   - without LDAP support
-# bcond_off_odbc   - without ODBC support
-# bcond_off_snmp   - without SNMP support
+# _with_oracle  - with oracle support 
+# _with_oci8    - with oci8 support
+# _with_java    - with Java support
+# _with_openssl - with OpenSSL support
+# _with_wddx    - with WDDX support
+# _with_xslt    - with XSLT support
+# _without_imap   - without IMAP support
+# _without_ldap   - without LDAP support
+# _without_odbc   - without ODBC support
+# _without_snmp   - without SNMP support
 #
 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
 Name:          php
-Version:       4.0.5
-Release:       0.2
+Version:       4.0.6
+Release:       12
 Epoch:         1
 Group:         Libraries
 Group(de):     Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 License:       The PHP license (see "LICENSE" file included in distribution)
 Source0:       http://www.php.net/distributions/%{name}-%{version}.tar.gz
 Source1:       FAQ.php
 Source2:       %{name}.ini
 Source3:       zend.gif
-Source4:       http://www.php.net/distributions/manual.tar.gz
+Source4:       http://www.php.net/distributions/manual/php_manual_en.tar.bz2
 Source5:       php-module-install
 Patch0:                %{name}-imap.patch
 Patch1:                %{name}-mysql-socket.patch
 Patch2:                %{name}-mail.patch
-Patch5:                %{name}-no_libnsl.patch
-Patch6:                %{name}-DESTDIR.patch
-Patch7:                %{name}-gd-shared.patch
-Patch8:                %{name}-session-path.patch
-Patch9:                %{name}-libtool_version_check_fix.patch
+Patch3:                %{name}-link-libs.patch
+Patch4:                %{name}-session-path.patch
+Patch5:                %{name}-am_ac_lt.patch
+Patch6:                %{name}-fastcgi.patch
+Patch7:                %{name}-shared.patch
+Patch8:                %{name}-ac250.patch
+Patch9:                %{name}-pearinstall.patch
+Patch10:       %{name}-pldlogo.patch
+Patch11:       %{name}-libxml2.patch
+Patch12:       %{name}-mailsecurity2.patch
+Patch13:       %{name}-ZVAL.patch
+Patch14:       %{name}-oracle9.patch
 Icon:          php4.gif
 URL:           http://www.php.net/
 BuildRequires: apache(EAPI)-devel
 BuildRequires: zip
 BuildRequires: bison
 BuildRequires: flex
+BuildRequires: perl
+BuildRequires: pkgconfig
 BuildRequires: db3-devel >= 3.1.17
-BuildRequires: freetype1-devel
-BuildRequires: gd-devel >= 1.8.3
+BuildRequires: freetype-devel >= 2.0
+BuildRequires: gd-devel >= 2.0.1
 BuildRequires: gdbm-devel
-%{!?bcond_off_imap:BuildRequires: imap-devel >= 4.7b-1}
+%{!?_without_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2 }
 # I think jdk is better for java
 # BuildRequires:       jdk
-%{?bcond_on_java:BuildRequires:        kaffe-devel}
+%{?_with_java:BuildRequires:   kaffe-devel}
 BuildRequires: libjpeg-devel
 BuildRequires: libltdl-devel >= 1.4
 BuildRequires: libpng >= 1.0.8
 BuildRequires: libtiff-devel
-BuildRequires: libtool
+BuildRequires: libtool >= 1.4
+BuildRequires: automake >= 1.4d
+BuildRequires: autoconf >= 1.4
 BuildRequires: mm-devel >= 1.1.3
 BuildRequires: mysql-devel >= 3.23.32
-%{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
+%{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
 BuildRequires: pam-devel
-BuildRequires: pdflib-devel >= 3.03-3
-#BuildRequires:        libxml-devel >= 2.0.0
+BuildRequires: pdflib-devel >= 4.0.0
+BuildRequires: libxml2-devel >= 2.2.7
 BuildRequires: postgresql-devel
 BuildRequires: recode-devel >= 3.5d-3
 BuildRequires: t1lib-devel
-%{!?bcond_off_odbc:BuildRequires: unixODBC-devel}
+%{!?_without_odbc:BuildRequires: unixODBC-devel}
 BuildRequires: zlib-devel >= 1.0.9
-%{!?bcond_off_snmp:BuildRequires: ucd-snmp-devel >= 4.2.1-8}
+%{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.3}
 BuildRequires: libmcrypt-devel >= 2.4.4
 BuildRequires: mhash-devel
 BuildRequires: bzip2-devel
 BuildRequires: gmp-devel
 BuildRequires: curl-devel
-%if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
-BuildRequires: openssl-devel >= 0.9.6
+#BuildRequires:        fastcgi-devkit
+%if %(expr %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_ldap:0})
+BuildRequires: openssl-devel >= 0.9.6a
 %endif
-Requires:      apache(EAPI) >= 1.3.9
+%{?_with_xslt:BuildRequires:   sablotron-devel}
+%{?_with_xslt:BuildRequires:   expat-devel}
+%{?_with_xslt:BuildRequires:   w3c-libwww-devel}
+Prereq:                apache(EAPI) >= 1.3.9
 Prereq:                perl
-Prereq:                /usr/sbin/apxs
+Prereq:                %{_sbindir}/apxs
 PreReq:                %{name}-common = %{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     phpfi
 
 %define                _sysconfdir     /etc/php
-# check ZEND_MODULE_API_NO in  Zend/modules.h
-%define        extensionsdir %{_libdir}/php/extensions/no-debug-non-zts-20001222
+%define        extensionsdir %{_libdir}/php
+%define                peardir         %{_datadir}/pear
 
 %description
 PHP is an HTML-embedded scripting language. PHP attempts to make it
@@ -132,6 +152,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description cgi
@@ -148,6 +171,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 
 %description common
 Common files needed by both apache module and CGI.
@@ -163,6 +189,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description mysql
@@ -173,6 +202,28 @@ should install this package in addition to the main %{name} package.
 %description mysql -l pl
 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
 
+%package pdf
+Summary:       libPDF module for PHP
+Summary(pl):   Modu³ do tworzenia plików PDF dla PHP
+Group:         Libraries
+Group(de):     Libraries
+Group(es):     Bibliotecas
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
+PreReq:                %{name}-common = %{version}
+PreReq:                pdflib
+
+%description pdf
+This is a dynamic shared object (DSO) for Apache that will add PDF
+support to PHP.
+
+%description pdf -l pl
+Modu³ PHP umo¿liwiaj±cy tworzenie plików PDF. Wykorzystuje bibliotekê
+pdflib.
+
 %package pgsql
 Summary:       PostgreSQL database module for PHP
 Summary(pl):   Modu³ bazy danych PostgreSQL dla PHP
@@ -181,6 +232,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description pgsql
@@ -200,6 +254,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 Autoreq:       false
 
@@ -220,6 +277,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 Autoreq:       false
 
@@ -240,6 +300,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description gd
@@ -260,6 +323,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description java
@@ -279,6 +345,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description xml
@@ -300,6 +369,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description dba
@@ -316,6 +388,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description odbc
@@ -333,6 +408,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description calendar
@@ -349,6 +427,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description dbase
@@ -366,6 +447,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description filepro
@@ -382,6 +466,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description posix
@@ -399,6 +486,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description pcre
@@ -417,6 +507,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description sysvsem
@@ -434,6 +527,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description sysvshm
@@ -451,6 +547,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description yp
@@ -467,6 +566,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description bcmath
@@ -485,6 +587,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description ftp
@@ -501,6 +606,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description zlib
@@ -518,6 +626,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description exif
@@ -534,6 +645,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 Requires:      recode >= 3.5d-3
 
@@ -551,6 +665,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description session
@@ -567,6 +684,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description gettext
@@ -583,6 +703,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description snmp
@@ -599,6 +722,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description imap
@@ -615,6 +741,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description ldap
@@ -631,6 +760,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description sockets
@@ -647,6 +779,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description mcrypt
@@ -663,6 +798,9 @@ Group(de):  Libraries
 Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
 PreReq:                %{name}-common = %{version}
 
 %description mhash
@@ -677,6 +815,7 @@ Summary(pl):        Dokumentacja dla PHP
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
 Group(pl):     Sieciowe/Serwery
+Obsoletes:     php-manual
 
 %description doc
 Comprehensive documentation for PHP, viewable through your web server,
@@ -687,16 +826,38 @@ Dokumentacja dla pakietu PHP. Mo
 WWW.
 
 %package pear
-Summary:       PEAR
+Summary:       PEAR - PHP Extension and Application Repository
+Summary(pl):   PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
 Group:         Development/Languages/PHP
+Group(de):     Entwicklung/Sprachen/PHP
+Group(pl):     Programowanie/Jêzyki/PHP
 
 %description pear
-PEAR.
+PEAR - PHP Extension and Application Repository.
+
+%description pear -l pl
+PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
+Repozytorium Aplikacji.
+
+%package domxml
+Summary:        DOM XML module
+Summary(pl):   Modu³ DOM XML
+Group:          Development/Languages/PHP
+Group(de):     Entwicklung/Sprachen/PHP
+Group(pl):     Programowanie/Jêzyki/PHP
+
+%description domxml
+DOM XML module.
+
+%description domxml -l pl
+Modu³ DOM XML.
 
 %package devel
 Summary:       Files for PHP modules development
 Summary(pl):   Pliki do kompilacji modu³ów PHP
 Group:         Development/Languages/PHP
+Group(de):     Entwicklung/Sprachen/PHP
+Group(pl):     Programowanie/Jêzyki/PHP
 Requires:      %{name}-common = %{version}
 
 %description devel
@@ -705,23 +866,100 @@ Files for PHP modules development.
 %description devel -l pl
 Pliki potrzebne do kompilacji modu³ów PHP.
 
+%package curl
+Summary:       curl extension module for PHP
+Summary(pl):   Modu³ curl dla PHP
+Group:         Libraries
+Group(de):     Libraries
+Group(es):     Bibliotecas
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
+PreReq:                %{name}-common = %{version}
+
+%description curl
+This is a dynamic shared object (DSO) for Apache that will add curl
+support to PHP.
+
+%description curl -l pl
+Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki curl.
+
+%package xslt
+Summary:       xslt extension module for PHP
+Summary(pl):   Modu³ xslt dla PHP
+Group:         Libraries
+Group(de):     Libraries
+Group(es):     Bibliotecas
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
+PreReq:                %{name}-common = %{version}
+
+%description xslt
+This is a dynamic shared object (DSO) for Apache that will add xslt
+support to PHP.
+
+%description xslt -l pl
+Modu³ PHP umo¿liwiaj±cy korzystanie z technologii xslt.
+
+%package wddx
+Summary:       wddx extension module for PHP
+Summary(pl):   Modu³ wddx dla PHP
+Group:         Libraries
+Group(de):     Libraries
+Group(es):     Bibliotecas
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
+PreReq:                %{name}-common = %{version}
+
+%description wddx
+This is a dynamic shared object (DSO) for Apache that will add wddx
+support to PHP.
+
+%description wddx -l pl
+Modu³ PHP umo¿liwiaj±cy korzystanie z wddx.
+
 %prep
 %setup  -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1 
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
-%patch8 -p1 
+%patch8 -p1
 %patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
+
+install -d manual
+bzip2 -dc %{SOURCE4} | tar -xf - -C manual
 
 %build
-libtoolize --copy --force
 CFLAGS="%{rpmcflags} -DEAPI -I/usr/X11R6/include"; export CFLAGS
+EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
 ./buildconf
+libtoolize --copy --force
+aclocal
+autoconf
+#for i in cgi fastcgi apxs ; do
+for i in cgi apxs ; do
 %configure \
-       --enable-discard-path \
+       `[ $i = cgi ] && echo --enable-discard-path` \
+       `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=/usr` \
+       `[ $i = apxs ] && echo --with-apxs=%{_sbindir}/apxs` \
        --with-config-file-path=%{_sysconfdir} \
        --with-exec-dir=%{_bindir} \
        --disable-debug \
@@ -735,33 +973,36 @@ CFLAGS="%{rpmcflags} -DEAPI -I/usr/X11R6/include"; export CFLAGS
        --enable-shmop=shared \
        --enable-session \
        --enable-exif=shared \
-       --with-regex=system \
+       --with-regex=php \
        --with-gettext=shared \
-       %{!?bcond_off_ldap:--with-ldap=shared} \
+       %{!?_without_ldap:--with-ldap=shared} \
        --with-mysql=shared,/usr \
        --with-mysql-sock=/var/lib/mysql/mysql.sock \
        --with-gd=shared \
-       --enable-gd-imgstrttf \
+       --with-jpeg-dir=shared \
+       --with-zlib-dir=shared \
+       --with-png-dir=shared \
+       --enable-gd-native-ttf \
+       --with-freetype-dir=shared \
+       --with-t1lib=shared \
        --with-dbase=shared \
        --with-filepro=shared \
        --enable-ftp=shared \
        --with-hyperwave \
        --with-pdflib=shared \
        --with-cpdflib=shared \
-       %{?bcond_on_java:--with-java} \
+       %{?_with_java:--with-java} \
        --with-pgsql=shared,/usr \
-       %{!?bcond_off_imap:--with-imap=shared} \
+       %{!?_without_imap:--with-imap=shared --with-imap-ssl} \
        --enable-bcmath=shared \
        --enable-calendar=shared \
        --with-mm \
        --with-pcre-regex=shared \
        --enable-posix=shared \
-       --with-ttf \
-       --with-t1lib \
        --with-recode=shared \
        --enable-ucd-snmp-hack \
        --enable-dba=shared \
-       %{!?bcond_off_snmp:--with-snmp=shared} \
+       %{!?_without_snmp:--with-snmp=shared} \
        --with-gdbm \
        --with-db3 \
        --enable-yp=shared \
@@ -775,87 +1016,31 @@ CFLAGS="%{rpmcflags} -DEAPI -I/usr/X11R6/include"; export CFLAGS
        --with-mhash=shared \
        --with-curl=shared \
        --with-gmp=shared \
-       %{?bcond_on_openssl:--with-openssl} \
-       %{!?bcond_off_odbc:--with-unixODBC=shared} \
-       %{?bcond_on_oracle:--with-oracle=shared} \
-       %{?bcond_on_oci8:--with-oci8=shared} \
-       --without-db2 
+       %{?_with_openssl:--with-openssl} \
+       %{!?_without_odbc:--with-unixODBC=shared} \
+       %{?_with_oracle:--with-oracle=shared} \
+       %{?_with_oci8:--with-oci8=shared} \
+       --without-db2 \
+       --with-dom=shared \
+    %{?_with_xslt:--enable-xslt=shared} \
+    %{?_with_xslt:--with-xslt-sablot=shared} \
+    %{?_with_wddx:--enable-wddx=shared} \
+       --with-pear=%{peardir}
+done
 
 # TODO --with-pspell=/usr,shared (pspell missing)
-
-# --with-dom need libxml >= 2.2.7 \
+#      --with-qtdom=shared
 
 %{__make}
-mv php php.cgi
-%{__make} clean
+%{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
 
-./buildconf
-%configure \
-       --with-apxs=/usr/sbin/apxs \
-       --with-config-file-path=%{_sysconfdir} \
-       --with-exec-dir=%{_bindir} \
-       --disable-debug \
-       --enable-magic-quotes \
-       --enable-shared \
-       --enable-track-vars \
-       --enable-safe-mode \
-       --enable-trans-sid \
-       --enable-sysvsem=shared \
-       --enable-sysvshm=shared \
-       --enable-shmop=shared \
-       --enable-session \
-       --enable-exif=shared \
-       --with-regex=system \
-       --with-gettext=shared \
-       %{!?bcond_off_ldap:--with-ldap=shared} \
-       --with-mysql=shared,/usr \
-       --with-mysql-sock=/var/lib/mysql/mysql.sock \
-       --with-gd=shared \
-       --enable-gd-imgstrttf \
-       --with-dbase=shared \
-       --with-filepro=shared \
-       --enable-ftp=shared \
-       --with-hyperwave \
-       --with-pdflib=shared \
-       --with-cpdflib=shared \
-       %{?bcond_on_java:--with-java} \
-       --with-pgsql=shared,/usr \
-       %{!?bcond_off_imap:--with-imap=shared} \
-       --enable-bcmath=shared \
-       --enable-calendar=shared \
-       --with-mm \
-       --with-pcre-regex=shared \
-       --enable-posix=shared \
-       --with-ttf \
-       --with-t1lib \
-       --with-recode=shared \
-       --enable-ucd-snmp-hack \
-       --enable-dba=shared \
-       %{!?bcond_off_snmp:--with-snmp=shared} \
-       --with-gdbm \
-       --with-db3 \
-       --enable-yp=shared \
-       --with-xml=shared \
-       --enable-xml=shared \
-       --with-zlib=shared \
-       --with-mcrypt=shared \
-       --enable-sockets=shared \
-       --with-bz2=shared \
-       --with-ctype=shared \
-       --with-mhash=shared \
-       --with-curl=shared \
-       --with-gmp=shared \
-       %{?bcond_on_openssl:--with-openssl} \
-       %{!?bcond_off_odbc:--with-unixODBC=shared} \
-       %{?bcond_on_oracle:--with-oracle=shared} \
-       %{?bcond_on_oci8:--with-oci8=shared} \
-       --without-db2 
-
-# TODO --with-pspell=/usr,shared (pspell missing)
+# Kill -rpath from php binary and libphp4.so
+perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
+%{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
 
-# --with-dom need libxml >= 2.2.7 \
-
-%{__make}
+perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
+rm libphp4.la ; %{__make} libphp4.la
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -864,10 +1049,10 @@ install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}}
                $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
-       INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
+       INSTALL_ROOT=$RPM_BUILD_ROOT \
+       INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
 
-install php.cgi $RPM_BUILD_ROOT%{_bindir}/php
+install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
 
 #exit 1
 #install .libs/*.so    $RPM_BUILD_ROOT%{_pkglibdir}
@@ -877,17 +1062,14 @@ install %{SOURCE2}               $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
 install %{SOURCE3} php4.gif    $RPM_BUILD_ROOT/home/httpd/icons
 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
 
-mkdir manual
-tar zxf %{SOURCE4} -C manual
-ln -s manual.html manual/index.html
 
 install %{SOURCE1} .
-gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
+gzip -9nf CODING_STANDARDS CREDITS \
       EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
       Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
 
 %post
-/usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
+%{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
        /etc/httpd/httpd.conf
 if [ -f /var/lock/subsys/httpd ]; then
@@ -896,7 +1078,7 @@ fi
 
 %preun
 if [ "$1" = "0" ]; then
-       /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
+       %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
        perl -pi -e \
                's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
                /etc/httpd/httpd.conf
@@ -905,6 +1087,9 @@ if [ "$1" = "0" ]; then
        fi
 fi
 
+%post common -p /sbin/ldconfig
+%postun common -p /sbin/ldconfig
+
 %post bcmath
 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
 
@@ -977,7 +1162,7 @@ if [ "$1" = "0" ]; then
         %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
 fi
 
-%if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
+%if %{?_without_imap:0}%{!?_without_imap:1}
 %post imap
 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
 
@@ -997,7 +1182,7 @@ if [ "$1" = "0" ]; then
 fi
 %endif
 
-%if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
+%if %{?_without_ldap:0}%{!?_without_ldap:1}
 %post ldap
 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
 
@@ -1031,7 +1216,23 @@ if [ "$1" = "0" ]; then
         %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
 fi
 
-%if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
+%post pdf
+%{_sbindir}/php-module-install install libpdf_php %{_sysconfdir}/php.ini
+
+%preun pdf
+if [ "$1" = "0" ]; then
+        %{_sbindir}/php-module-install remove libpdf_php %{_sysconfdir}/php.ini
+fi
+
+%preun domxml
+if [ "$1" = "0" ]; then
+       %{_sbindir}/php-module-install remove domxml %{_sysconfdir}/php.ini
+fi
+
+%post domxml
+%{_sbindir}/php-module-install install domxml %{_sysconfdir}/php.ini
+
+%if %{?_with_oci8:1}%{!?_with_oci8:0}
 %post oci8
 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
 
@@ -1041,7 +1242,7 @@ if [ "$1" = "0" ]; then
 fi
 %endif
 
-%if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
+%if %{?_without_odbc:0}%{!?_without_odbc:1}
 %post odbc
 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
 
@@ -1051,7 +1252,7 @@ if [ "$1" = "0" ]; then
 fi
 %endif
 
-%if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
+%if %{?_with_oracle:1}%{!?_with_oracle:0}
 %post oracle
 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
 
@@ -1101,7 +1302,7 @@ if [ "$1" = "0" ]; then
         %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
 fi
 
-%if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
+%if %{?_without_snmp:0}%{!?_without_snmp:1}
 %post snmp
 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
 
@@ -1159,6 +1360,30 @@ if [ "$1" = "0" ]; then
         %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
 fi
 
+%post curl
+%{_sbindir}/php-module-install install curl %{_sysconfdir}/php.ini
+
+%preun curl
+if [ "$1" = "0" ]; then
+        %{_sbindir}/php-module-install remove curl %{_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 wddx
+#%{_sbindir}/php-module-install install wddx %{_sysconfdir}/php.ini
+#
+#%preun wddx
+#if [ "$1" = "0" ]; then
+#        %{_sbindir}/php-module-install remove wddx %{_sysconfdir}/php.ini
+#fi
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -1172,10 +1397,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files common
 %defattr(644,root,root,755)
-%doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
+%doc {CODING_STANDARDS,CREDITS,Zend/ZEND_CHANGES}.gz
 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz  
 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
-%doc manual
 
 %dir %{_sysconfdir}
 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
@@ -1184,50 +1408,46 @@ rm -rf $RPM_BUILD_ROOT
 
 %attr(755,root,root) %{_sbindir}/*
 
-%dir %{_libdir}/php
-%dir %{_libdir}/php/extensions
+%attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
+
 %dir %{extensionsdir}
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/php4
-%{_libdir}/php4
+%{_includedir}/php
+%{_libdir}/php/build
 %attr(755,root,root) %{_bindir}/phpextdist
 %attr(755,root,root) %{_bindir}/phpize
 %attr(755,root,root) %{_bindir}/php-config
 
+%files domxml
+%defattr(644,root,root,755)
+%attr(755,root,root) %{extensionsdir}/domxml.so
+
 %files pear
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/pear
-%{_libdir}/php/Benchmark
-%{_libdir}/php/Crypt
-%{_libdir}/php/Date
-%{_libdir}/php/DB
-%{_libdir}/php/File
-%{_libdir}/php/HTML
-%{_libdir}/php/Mail
-%{_libdir}/php/Math
-%{_libdir}/php/Net
-%{_libdir}/php/Payment
-%{_libdir}/php/PEAR
-%{_libdir}/php/XML
-%{_libdir}/php/*.php
+%{peardir}
 
 %files mysql
 %defattr(644,root,root,755)
-%attr(755,root,root) %{extensionsdir}/mysql.*
+%attr(755,root,root) %{extensionsdir}/mysql.so
+
+%files pdf
+%defattr(644,root,root,755)
+%attr(755,root,root) %{extensionsdir}/libpdf_php.so
 
 %files pgsql
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/pgsql.so
 
-%if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
+%if %{?_with_oracle:1}%{!?_with_oracle:0}
 %files oracle
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/oracle.so
 %endif
 
-%if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
+%if %{?_with_oci8:1}%{!?_with_oci8:0}
 %files oci8
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/oci8.so
@@ -1237,9 +1457,10 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/gd.so
 
-%files xml
-%defattr(644,root,root,755)
-%attr(755,root,root) %{extensionsdir}/xml.so
+# To check
+#%files xml
+#%defattr(644,root,root,755)
+#%attr(755,root,root) %{extensionsdir}/xml.so
 
 %files dba
 %defattr(644,root,root,755)
@@ -1305,25 +1526,25 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/gettext.so
 
-%if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
+%if %{?_without_imap:0}%{!?_without_imap:1}
 %files imap
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/imap.so
 %endif
 
-%if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
+%if %{?_without_snmp:0}%{!?_without_snmp:1}
 %files snmp
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/snmp.so
 %endif
 
-%if %{?bcond_on_java:1}%{!?bcond_on_java:0}
+%if %{?_with_java:1}%{!?_with_java:0}
 %files java
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/libphp_java.so
 %endif
 
-%if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
+%if %{?_without_ldap:0}%{!?_without_ldap:1}
 %files ldap
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/ldap.*
@@ -1341,7 +1562,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/mhash.so
 
-%if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
+%if %{?_without_odbc:0}%{!?_without_odbc:1}
 %files odbc
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/odbc.so
@@ -1350,3 +1571,15 @@ rm -rf $RPM_BUILD_ROOT
 %files doc
 %defattr(644,root,root,755)
 %doc manual/*
+
+%files curl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{extensionsdir}/curl.so
+
+#%files xslt
+#%defattr(644,root,root,755)
+#%attr(755,root,root) %{extensionsdir}/xslt.so
+#
+#%files wddx
+#%defattr(644,root,root,755)
+#%attr(755,root,root) %{extensionsdir}/wddx.so
This page took 0.070684 seconds and 4 git commands to generate.