#
# 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.4
+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
-Patch10: %{name}-pdflib.patch
-Patch11: %{name}-am_ac_lt.patch
-Patch12: %{name}-fastcgi.patch
-Patch13: %{name}-shared.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 >= 4.0.0
-#BuildRequires: libxml-devel >= 2.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
#BuildRequires: fastcgi-devkit
-%if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
+%if %(expr %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_ldap:0})
BuildRequires: openssl-devel >= 0.9.6a
%endif
+%{?_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: %{_sbindir}/apxs
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
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description cgi
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.
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description mysql
%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
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description pgsql
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
Autoreq: false
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
Autoreq: false
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description gd
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description java
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description xml
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description dba
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description odbc
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description calendar
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description dbase
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description filepro
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description posix
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description pcre
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description sysvsem
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description sysvshm
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description yp
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description bcmath
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description ftp
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description zlib
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description exif
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
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description session
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description gettext
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description snmp
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description imap
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description ldap
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description sockets
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description mcrypt
Group(es): Bibliotecas
Group(fr): Librairies
Group(pl): Biblioteki
+Group(pt_BR): Bibliotecas
+Group(ru): âÉÂÌÉÏÔÅËÉ
+Group(uk): â¦Â̦ÏÔÅËÉ
PreReq: %{name}-common = %{version}
%description mhash
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,
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
%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
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 fastcgi apxs ; do
+for i in cgi apxs ; do
%configure \
`[ $i = cgi ] && echo --enable-discard-path` \
`[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=/usr` \
--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 \
--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}
%{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
$RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
+ 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 .libs/php $RPM_BUILD_ROOT%{_bindir}/php
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
%{_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
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
%{_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
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
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
%{_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
%{_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
%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
%attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
-%dir %{_libdir}/php
-%dir %{_libdir}/php/extensions
%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
%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)
%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.*
%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
%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