summaryrefslogtreecommitdiffstats
path: root/php-pecl-http.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-04-08 13:16:57 +0200
committerRemi Collet <fedora@famillecollet.com>2015-04-08 13:16:57 +0200
commit04cf9060785835e27da422a4e9a7620ea0b379a6 (patch)
treea26df79d93c2ea9141ca3ec67ed3f383db39e089 /php-pecl-http.spec
parentfd625bd2f9aaf79be4f0e5a4be6d492d52751564 (diff)
php-pecl-http: 2.4.3
Diffstat (limited to 'php-pecl-http.spec')
-rw-r--r--php-pecl-http.spec20
1 files changed, 19 insertions, 1 deletions
diff --git a/php-pecl-http.spec b/php-pecl-http.spec
index 94c3a2a..02d9032 100644
--- a/php-pecl-http.spec
+++ b/php-pecl-http.spec
@@ -33,7 +33,7 @@
#global prever RC1
Name: %{?scl_prefix}php-pecl-http
-Version: 2.4.2
+Version: 2.4.3
Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
Summary: Extended HTTP support
@@ -45,6 +45,14 @@ 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
+# http://git.php.net/?p=pecl/http/pecl_http.git;a=blob_plain;f=tests/helper/upload.inc;hb=HEAD
+# See http://git.php.net/?p=pecl/http/pecl_http.git;a=commit;h=5c5ee386409f5b6d697c483edc788d09f8c8aeb3
+Source2: upload.inc
+# http://git.php.net/?p=pecl/http/pecl_http.git;a=blob_plain;f=tests/querystring003.phpt;hb=HEAD
+Source3: querystring003.phpt
+# http://git.php.net/?p=pecl/http/pecl_http.git;a=blob_plain;f=tests/bug69313.phpt;hb=HEAD
+Source4: bug69313.phpt
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{?scl_prefix}php-devel >= 5.3.0
BuildRequires: %{?scl_prefix}php-hash
@@ -126,6 +134,10 @@ Obsoletes: php55w-pecl-http <= %{version}
Obsoletes: php56u-pecl-http <= %{version}
Obsoletes: php56w-pecl-http <= %{version}
%endif
+%if "%{php_version}" > "7.0"
+Obsoletes: php70u-pecl-http <= %{version}
+Obsoletes: php70w-pecl-http <= %{version}
+%endif
%endif
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
@@ -181,6 +193,9 @@ These are the files needed to compile programs using HTTP extension.
mv %{proj_name}-%{version}%{?prever} NTS
cd NTS
+cp %{SOURCE2} tests/helper/
+cp %{SOURCE3} %{SOURCE4} tests/
+
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}.
@@ -350,6 +365,9 @@ rm -rf %{buildroot}
%changelog
+* Wed Apr 08 2015 Remi Collet <remi@fedoraproject.org> - 2.4.3-1
+- Update to 2.4.3
+
* Fri Apr 03 2015 Remi Collet <remi@fedoraproject.org> - 2.4.2-1
- Update to 2.4.2