# - make additional headers added by mail patch configurable
# - apply -hardened patch by default ?
# - modularize session, standard (output from pure php -m)?
+# - fix reflection module to build it statically
#
# Conditional build:
%bcond_with db3 # use db3 packages instead of db (4.x) for Berkeley DB support
Summary(ru): PHP ÷ÅÒÓÉÉ 5 - ÑÚÙË ÐÒÅÐÒÏÃÅÓÓÉÒÏ×ÁÎÉÑ HTML-ÆÁÊÌÏ×, ×ÙÐÏÌÎÑÅÍÙÊ ÎÁ ÓÅÒ×ÅÒÅ
Summary(uk): PHP ÷ÅÒÓ¦§ 5 - ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
Name: php
-Version: 5.1.1
-%define _rel 6.3
+Version: 5.1.2
+%define _rel 0.1
Release: %{_rel}%{?with_hardening:hardened}
Epoch: 4
License: PHP
Group: Libraries
-Source0: http://www.php.net/distributions/%{name}-%{version}.tar.bz2
-# Source0-md5: 70a7c90de182d1a1901c390b844153c7
+# Source0: http://www.php.net/distributions/%{name}-%{version}.tar.bz2
+Source0: http://snaps.php.net/php5.1-200601031130.tar.bz2
+# Source0-md5: f47e4528c30fb9865bebdd2ebbf66c8f
Source1: FAQ.%{name}
Source2: zend.gif
Source3: %{name}-module-install
Patch30: %{name}-hardening-fix.patch
Patch31: %{name}-both-apxs.patch
Patch32: %{name}-builddir.patch
-Patch33: %{name}-libmbfl-shared.patch
Icon: php.gif
URL: http://www.php.net/
%{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji zlib.
%prep
-%setup -q
+%setup -q -n php5.1-200601031130
# this patch is broken by design, breaks --enable-versioning for example
# update: --enable-version is broken by itself, it disables dynamic modules.
%patch0 -p1
%endif
%patch31 -p1
%patch32 -p1
-%patch33 -p1
# conflict seems to be resolved by recode patches
rm -f ext/recode/config9.m4
#rm -rf ext/dba/libflatfile
#rm -rf ext/dba/libinifile
#rm -rf ext/gd/libgd
-rm -rf ext/mbstring/libmbfl
+#rm -rf ext/mbstring/libmbfl
#rm -rf ext/mbstring/oniguruma
rm -rf ext/pcre/pcrelib
rm -rf ext/pdo_sqlite/sqlite
--enable-gd-jus-conf \
--enable-libxml \
--enable-magic-quotes \
- --enable-mbstring=shared,all --with-libmbfl=%{_prefix} \
+ --enable-mbstring=shared,all \
--enable-mbregex \
--enable-pcntl=shared \
--enable-pdo=shared \
%{?with_pgsql:--with-pdo-pgsql=shared} \
%{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
--enable-posix=shared \
+ --disable-reflection \
--enable-session \
--enable-shared \
--enable-shmop=shared \
--enable-ucd-snmp-hack \
%{?with_wddx:--enable-wddx=shared} \
--enable-xml=shared \
- --with-xmlreader=shared \
+ --enable-xmlreader=shared \
--with-bz2=shared \
%{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
%{?with_db3:--with-db3}%{!?with_db3:--with-db4} \