summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-pecl-http.spec7
1 files changed, 7 insertions, 0 deletions
diff --git a/php-pecl-http.spec b/php-pecl-http.spec
index 56ccfbe..afb333d 100644
--- a/php-pecl-http.spec
+++ b/php-pecl-http.spec
@@ -148,6 +148,13 @@ Summary: Extended HTTP support developer files (header)
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{?scl_prefix}php-devel%{?_isa} >= 5.3.0
+%if "%{php_version}" > "5.6"
+# V1 don't support PHP 5.6 https://bugs.php.net/66879
+Obsoletes: %{?scl_prefix}php-pecl-http1-devel < 2
+%else
+# Can't install both versions of the same extension
+Conflicts: %{?scl_prefix}php-pecl-http1-devel
+%endif
%description devel
These are the files needed to compile programs using HTTP extension.