summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-05-14 10:18:22 +0200
committerRemi Collet <fedora@famillecollet.com>2014-05-14 10:18:22 +0200
commiteefc9e327cb52661273f29dd35d7d36efc343d95 (patch)
tree4bb4260effc149525948f24e40d262b001188d7a
parent72e609d2b2d85439e6ebf7fc1c3fb7d2a04dab5c (diff)
php-pecl-http: also obsoletes -devel
-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.