[php-pecl-http/f20] update to 2.1.1
Remi Collet
remi at fedoraproject.org
Tue Sep 9 10:13:21 UTC 2014
commit 90fbabb5a5424e5a910cf2c7c9fe91afc34326fe
Author: Remi Collet <remi at fedoraproject.org>
Date: Tue Sep 9 12:13:12 2014 +0200
update to 2.1.1
.gitignore | 2 ++
php-pecl-http.spec | 42 ++++++++++++++++++++++++++++++++++++++----
sources | 2 +-
3 files changed, 41 insertions(+), 5 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index dcdc477..56fcdc7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,5 @@ php-pecl-http.spec~
/pecl_http-2.0.5.tgz
/pecl_http-2.0.6.tgz
/pecl_http-2.0.7.tgz
+/pecl_http-2.1.0.tgz
+/pecl_http-2.1.1.tgz
diff --git a/php-pecl-http.spec b/php-pecl-http.spec
index 6a9c15b..e35663f 100644
--- a/php-pecl-http.spec
+++ b/php-pecl-http.spec
@@ -22,9 +22,10 @@
# after 40-json 20-iconv 40-propro 40-raphf
%global ini_name 50-%{pecl_name}.ini
%endif
+%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
Name: php-pecl-http
-Version: 2.0.7
+Version: 2.1.1
Release: 1%{?dist}
Summary: Extended HTTP support
@@ -128,6 +129,7 @@ These are the files needed to compile programs using HTTP extension.
mv %{proj_name}-%{version}%{?prever} NTS
cd NTS
+
extver=$(sed -n '/#define PHP_PECL_HTTP_VERSION/{s/.* "//;s/".*$//;p}' php_http.h)
if test "x${extver}" != "x%{version}%{?prever}"; then
: Error: Upstream HTTP version is now ${extver}, expecting %{version}%{?prever}.
@@ -192,26 +194,53 @@ done
%check
+%if "%{php_version}" < "5.4"
+# Known failed test with 5.3.3 (need investigations)
+export REPORT_EXIT_STATUS=0
+%else
+export REPORT_EXIT_STATUS=1
+%endif
+
# Shared needed extensions
modules=""
for mod in json hash iconv propro raphf; do
if [ -f %{php_extdir}/${mod}.so ]; then
- modules="$modules --define extension=${mod}.so"
+ modules="$modules -d extension=${mod}.so"
fi
done
: Minimal load test for NTS extension
%{__php} --no-php-ini \
$modules \
- --define extension=$PWD/NTS/modules/%{pecl_name}.so \
+ --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
--modules | grep %{pecl_name}
+%if %{with_tests}
+: Upstream test suite NTS extension
+cd NTS
+SKIP_ONLINE_TESTS=1 \
+TEST_PHP_EXECUTABLE=%{__php} \
+TEST_PHP_ARGS="-n $modules -d extension=$PWD/modules/%{pecl_name}.so" \
+NO_INTERACTION=1 \
+%{__php} -n run-tests.php --show-diff
+%endif
+
%if %{with_zts}
: Minimal load test for ZTS extension
%{__ztsphp} --no-php-ini \
$modules \
- --define extension=$PWD/ZTS/modules/%{pecl_name}.so \
+ --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
--modules | grep %{pecl_name}
+
+%if %{with_tests}
+: Upstream test suite ZTS extension
+cd ../ZTS
+SKIP_ONLINE_TESTS=1 \
+TEST_PHP_EXECUTABLE=%{__ztsphp} \
+TEST_PHP_ARGS="-n $modules -d extension=$PWD/modules/%{pecl_name}.so" \
+NO_INTERACTION=1 \
+%{__ztsphp} -n run-tests.php --show-diff
+%endif
%endif
@@ -246,6 +275,11 @@ fi
%changelog
+* Tue Sep 9 2014 Remi Collet <remi at fedoraproject.org> - 2.1.1-1
+- Update to 2.1.1
+- run test suite during build
+- ignore known failed tests with PHP 5.3.3
+
* Fri Jul 11 2014 Remi Collet <remi at fedoraproject.org> - 2.0.7-1
- Update to 2.0.7
diff --git a/sources b/sources
index 4df8dab..a097596 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-49482e5fc049bea682d65314c65ae8ea pecl_http-2.0.7.tgz
+9a4f85de4238930f492aedf6f857d143 pecl_http-2.1.1.tgz
More information about the scm-commits
mailing list