summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-09-28 06:54:28 +0200
committerRemi Collet <fedora@famillecollet.com>2016-09-28 06:54:28 +0200
commit089518d762ff7c248d7e5d6a381ec8e692376991 (patch)
treea1de27070219af3cc229568bb62547feb209fba7
parentfa26968e833c84552279b011297a918e22aa9cc2 (diff)
php-sqlsrv: more provides / obsoletes
-rw-r--r--php-sqlsrv.spec14
1 files changed, 12 insertions, 2 deletions
diff --git a/php-sqlsrv.spec b/php-sqlsrv.spec
index 0d699ce..34a0854 100644
--- a/php-sqlsrv.spec
+++ b/php-sqlsrv.spec
@@ -51,12 +51,22 @@ Requires: %{?scl_prefix}php(pdo-abi) = %{php_pdo_api}
Requires: %{?scl_prefix}php-pdo%{?_isa}
%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
-Provides: %{?scl_prefix}php-pdo_%{extname} = %{version}
-Provides: %{?scl_prefix}php-pdo_%{extname}%{_isa} = %{version}
+Provides: %{?scl_prefix}php-pdo_%{extname} = %{version}
+Provides: %{?scl_prefix}php-pdo_%{extname}%{_isa} = %{version}
+# Also available as pecl packages
+Provides: %{?scl_prefix}php-pecl(%{extname}) = %{version}
+Provides: %{?scl_prefix}php-pecl(%{extname})%{_isa} = %{version}
+Provides: %{?scl_prefix}php-pecl(pdo_%{extname}) = %{version}
+Provides: %{?scl_prefix}php-pecl(pdo_%{extname})%{_isa} = %{version}
+
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1}
Obsoletes: php70u-sqlsrv <= %{version}
Obsoletes: php70w-sqlsrv <= %{version}
+%if "%{php_version}" > "7.1"
+Obsoletes: php71u-sqlsrv <= %{version}
+Obsoletes: php71w-sqlsrv <= %{version}
+%endif
%endif
%if 0%{?fedora} < 20 && 0%{?rhel} < 7