summaryrefslogtreecommitdiffstats
path: root/php-pecl-http.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-03-18 08:26:33 +0100
committerRemi Collet <fedora@famillecollet.com>2015-03-18 08:26:33 +0100
commitbe4a95486d5babe112bcb7da200c05dc40d1456c (patch)
tree6fdf5856a6911b5f58d645a0520412136adc52b4 /php-pecl-http.spec
parent6d4c46a87e6e3162e966b092e3d0f430077c8549 (diff)
php-pecl-http: 2.4.0
Diffstat (limited to 'php-pecl-http.spec')
-rw-r--r--php-pecl-http.spec22
1 files changed, 15 insertions, 7 deletions
diff --git a/php-pecl-http.spec b/php-pecl-http.spec
index 352e4b8..2282f70 100644
--- a/php-pecl-http.spec
+++ b/php-pecl-http.spec
@@ -18,10 +18,10 @@
%global pecl_name http
%global with_zts 0%{?__ztsphp:1}
%if "%{php_version}" < "5.6"
-# after json hash iconv propro raphf
+# after hash iconv propro raphf
%global ini_name z-%{pecl_name}.ini
%else
-# after 40-json 20-iconv 40-propro 40-raphf
+# after 20-iconv 40-propro 40-raphf
%global ini_name 50-%{pecl_name}.ini
%endif
%ifarch %{arm}
@@ -33,7 +33,7 @@
#global prever RC1
Name: %{?scl_prefix}php-pecl-http
-Version: 2.3.2
+Version: 2.4.1
Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
Summary: Extended HTTP support
@@ -49,7 +49,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{?scl_prefix}php-devel >= 5.3.0
BuildRequires: %{?scl_prefix}php-hash
BuildRequires: %{?scl_prefix}php-iconv
-BuildRequires: %{?scl_prefix}php-json
BuildRequires: %{?scl_prefix}php-spl
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: pcre-devel
@@ -88,7 +87,6 @@ Requires: %{?scl_prefix}php-common%{?_isa}
%else
Requires: %{?scl_prefix}php-hash%{?_isa}
Requires: %{?scl_prefix}php-iconv%{?_isa}
-Requires: %{?scl_prefix}php-json%{?_isa}
Requires: %{?scl_prefix}php-spl%{?_isa}
%endif
Requires: %{?scl_prefix}php-pecl(propro)%{?_isa}
@@ -100,6 +98,11 @@ Obsoletes: %{?scl_prefix}php-pecl-http1 < 2
# Can't install both versions of the same extension
Conflicts: %{?scl_prefix}php-pecl-http1
%endif
+%if 0%{?fedora} < 22
+# new extensions split off this one.
+Requires: %{?scl_prefix}php-pecl(json_post)%{?_isa}
+Requires: %{?scl_prefix}php-pecl(apfd)%{?_isa}
+%endif
%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
Provides: %{?scl_prefix}php-pecl(%{proj_name}) = %{version}%{?prever}
@@ -226,7 +229,7 @@ make -C NTS install INSTALL_ROOT=%{buildroot}
# Install XML package description
install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
-# install config file (z-http.ini to be loaded after json)
+# install config file
install -Dpm644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
%if %{with_zts}
@@ -260,7 +263,7 @@ export REPORT_EXIT_STATUS=1
# Shared needed extensions
modules=""
-for mod in json hash iconv propro raphf; do
+for mod in hash iconv propro raphf; do
if [ -f %{php_extdir}/${mod}.so ]; then
modules="$modules -d extension=${mod}.so"
fi
@@ -347,6 +350,11 @@ rm -rf %{buildroot}
%changelog
+* Wed Mar 18 2015 Remi Collet <remi@fedoraproject.org> - 2.4.1-1
+- Update to 2.4.1
+- add dependencies on pecl/json_post and pecl/apfd
+- drop dependency on json
+
* Thu Mar 12 2015 Remi Collet <remi@fedoraproject.org> - 2.3.2-1
- Update to 2.3.2
- disable test suite on slow ARM builder