summaryrefslogtreecommitdiffstats
path: root/php-pecl-http.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-03-09 11:38:45 +0100
committerRemi Collet <fedora@famillecollet.com>2014-03-09 11:38:45 +0100
commit9a497d5741eed229cae98c55215c42220a893482 (patch)
tree1cc999c2cc3c7b9b0e19f73ccb144419c0fa425d /php-pecl-http.spec
parent8c6f2cedce42116331ef347999ea0c04bb1d9e5b (diff)
php-pecl-http: add upstream patch for -Werror=format-security
Diffstat (limited to 'php-pecl-http.spec')
-rw-r--r--php-pecl-http.spec12
1 files changed, 11 insertions, 1 deletions
diff --git a/php-pecl-http.spec b/php-pecl-http.spec
index 13e4b67..ed4d6b8 100644
--- a/php-pecl-http.spec
+++ b/php-pecl-http.spec
@@ -19,7 +19,7 @@
Name: %{?scl_prefix}php-pecl-http
Version: 2.0.4
-Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
Summary: Extended HTTP support
License: BSD
@@ -27,6 +27,8 @@ Group: Development/Languages
URL: http://pecl.php.net/package/pecl_http
Source0: http://pecl.php.net/get/%{proj_name}-%{version}%{?prever}.tgz
+Patch0: %{proj_name}-build.patch
+
# From http://www.php.net/manual/en/http.configuration.php
Source1: %{proj_name}.ini
@@ -80,6 +82,9 @@ Obsoletes: php54-pecl-http
%if "%{php_version}" > "5.5"
Obsoletes: php55u-pecl-http
%endif
+%if "%{php_version}" > "5.6"
+Obsoletes: php56u-pecl-http
+%endif
%endif
%if 0%{?fedora} < 20
@@ -126,6 +131,8 @@ 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
: Error: Upstream HTTP version is now ${extver}, expecting %{version}%{?prever}.
@@ -243,6 +250,9 @@ rm -rf %{buildroot}
%changelog
+* Sun Mar 09 2014 Remi Collet <remi@fedoraproject.org> - 2.0.4-2
+- add upstream patch for -Werror=format-security
+
* Thu Jan 02 2014 Remi Collet <remi@fedoraproject.org> - 2.0.4-1
- Update to 2.0.4
- fix link to documentation