|
|
|
@ -25,7 +25,6 @@
|
|
|
|
|
%define V_php 5.3.1 |
|
|
|
|
%define V_php_suhosin_p 5.3.1-0.9.8 |
|
|
|
|
%define V_php_suhosin_e 0.9.29 |
|
|
|
|
%define V_php_kolab 5.2.8 |
|
|
|
|
%define V_php_pecl_memcache 2.2.5 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
@ -39,7 +38,7 @@ Class: BASE
|
|
|
|
|
Group: Language |
|
|
|
|
License: PHP |
|
|
|
|
Version: %{V_php} |
|
|
|
|
Release: 20091129 |
|
|
|
|
Release: 20100110 |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%option with_suhosin no |
|
|
|
@ -59,7 +58,6 @@ Release: 20091129
|
|
|
|
|
%option with_gettext no |
|
|
|
|
%option with_iconv no |
|
|
|
|
%option with_imap no |
|
|
|
|
%option with_imap_annotate no |
|
|
|
|
%option with_json no |
|
|
|
|
%option with_tokenizer no |
|
|
|
|
%option with_mbregex no |
|
|
|
@ -105,10 +103,6 @@ Release: 20091129
|
|
|
|
|
%undefine with_gd |
|
|
|
|
%define with_gd yes |
|
|
|
|
%endif |
|
|
|
|
%if "%{with_imap_annotate}" == "yes" |
|
|
|
|
%undefine with_imap |
|
|
|
|
%define with_imap yes |
|
|
|
|
%endif |
|
|
|
|
%if "%{with_mysql}" == "yes" || "%{with_gd}" == "yes" || "%{with_dom}" == "yes" || "%{with_zip}" == "yes" || "%{with_pecl_memcache}" == "yes" |
|
|
|
|
%undefine with_zlib |
|
|
|
|
%define with_zlib yes |
|
|
|
@ -136,8 +130,7 @@ Source1: http://download.suhosin.org/suhosin-%{V_php_suhosin_e}.tgz
|
|
|
|
|
Source2: php.ini |
|
|
|
|
Source3: http://pecl.php.net/get/memcache-%{V_php_pecl_memcache}.tgz |
|
|
|
|
Patch0: http://download.suhosin.org/suhosin-patch-%{V_php_suhosin_p}.patch.gz |
|
|
|
|
Patch1: http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/php-%{V_php_kolab}/KOLAB_php-%{V_php_kolab}_Annotations.patch |
|
|
|
|
Patch2: php.patch |
|
|
|
|
Patch1: php.patch |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
Prefix: %{l_prefix} |
|
|
|
@ -211,10 +204,6 @@ PreReq: libiconv
|
|
|
|
|
%if "%{with_imap}" == "yes" |
|
|
|
|
BuildPreReq: imap, openssl |
|
|
|
|
PreReq: imap, openssl |
|
|
|
|
%if "%{with_imap_annotate}" == "yes" |
|
|
|
|
BuildPreReq: imap::with_annotate = yes |
|
|
|
|
PreReq: imap::with_annotate = yes |
|
|
|
|
%endif |
|
|
|
|
%endif |
|
|
|
|
%if "%{with_xml}" == "yes" |
|
|
|
|
BuildPreReq: libxml |
|
|
|
@ -303,11 +292,6 @@ AutoReqProv: no
|
|
|
|
|
url = http://www.hardened-php.net/suhosin/download.html |
|
|
|
|
regex = suhosin-(\d+(\.\d+)+)\.tgz |
|
|
|
|
} |
|
|
|
|
prog php:kolab = { |
|
|
|
|
version = %{V_php_kolab} |
|
|
|
|
url = http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/ |
|
|
|
|
regex = php-(\d+(\.\d+)+)/ |
|
|
|
|
} |
|
|
|
|
prog php:pecl_memcache = { |
|
|
|
|
version = %{V_php_pecl_memcache} |
|
|
|
|
url = http://pecl.php.net/package/memcache/ |
|
|
|
@ -337,10 +321,7 @@ AutoReqProv: no
|
|
|
|
|
-e 's;\(/include\)/freetype2;\1;' \ |
|
|
|
|
configure \ |
|
|
|
|
ext/gd/config.m4 |
|
|
|
|
%if "%{with_imap_annotate}" == "yes" |
|
|
|
|
sed <%{PATCH1} -e '/php-5.2.1\/ext\/imap\/php_imap.c.orig/,/^[^\+]/d' | %{l_patch} -p1 |
|
|
|
|
%endif |
|
|
|
|
%patch -p0 -P 2 |
|
|
|
|
%patch -p0 -P 1 |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
# configure package |
|
|
|
|