From a4d8ecc36cf09efc6c691092a33918142cfaf023 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 3 Mar 2015 12:34:32 +0100 Subject: [PATCH] add patch for online test --- pecl_http-online.patch | 12 ++++++++++++ php-pecl-http.spec | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 pecl_http-online.patch diff --git a/pecl_http-online.patch b/pecl_http-online.patch new file mode 100644 index 0000000..63bbc6b --- /dev/null +++ b/pecl_http-online.patch @@ -0,0 +1,12 @@ +diff --git a/tests/client003.phpt b/tests/client003.phpt +index a6b1a4c..bca3302 100644 +--- a/tests/client003.phpt ++++ b/tests/client003.phpt +@@ -3,6 +3,7 @@ client once & wait + --SKIPIF-- + + --FILE-- diff --git a/php-pecl-http.spec b/php-pecl-http.spec index 3a7fbd5..50f0764 100644 --- a/php-pecl-http.spec +++ b/php-pecl-http.spec @@ -37,6 +37,8 @@ Source0: http://pecl.php.net/get/%{proj_name}-%{version}%{?prever}.tgz # From http://www.php.net/manual/en/http.configuration.php Source1: %{proj_name}.ini +Patch0: %{proj_name}-online.patch + BuildRequires: php-devel >= 5.3.0 BuildRequires: php-hash BuildRequires: php-iconv @@ -130,6 +132,7 @@ These are the files needed to compile programs using HTTP extension. mv %{proj_name}-%{version}%{?prever} NTS cd NTS +%patch0 -p1 extver=$(sed -n '/#define PHP_PECL_HTTP_VERSION/{s/.* "//;s/".*$//;p}' php_http.h) if test "x${extver}" != "x%{version}%{?prever}"; then