summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-sqlsrv.spec15
1 files changed, 10 insertions, 5 deletions
diff --git a/php-sqlsrv.spec b/php-sqlsrv.spec
index 62ec268..d4bbbd3 100644
--- a/php-sqlsrv.spec
+++ b/php-sqlsrv.spec
@@ -21,13 +21,13 @@
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
# After 20-pdo.ini
%global ininame 40-%{extname}.ini
-%global msodbcsqlver 13.1
+%global msodbcsqlver 17.3
Name: %{?scl_prefix}php-sqlsrv
Summary: Microsoft Drivers for PHP for SQL Server
%global tarversion 5.6.1
Version: 5.6.1
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: MIT
URL: https://github.com/Microsoft/msphpsql
@@ -43,10 +43,12 @@ BuildRequires: %{?dtsprefix}gcc-c++
BuildRequires: %{?scl_prefix}php-devel > 7.1
BuildRequires: %{?scl_prefix}php-pdo
BuildRequires: %{?scl_prefix}php-pear
-BuildRequires: msodbcsql >= %{msodbcsqlver}
+BuildRequires: msodbcsql17 >= %{msodbcsqlver}
BuildRequires: unixODBC-devel >= 2.3.1
-Requires: msodbcsql%{?_isa} >= 13.1
+Requires: msodbcsql17%{?_isa} >= %{msodbcsqlver}
+# msodbcsql is now 13.x but have be 17.0 sometime
+Obsoletes: msodbcsql > 17
# ABI check
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
@@ -99,7 +101,7 @@ low-level communication with SQL Server.
You can download the Microsoft ODBC Driver from
https://docs.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server
-Package built using msodbcsql version %{msodbcsqlver}.
+Package built using msodbcsql17 version %{msodbcsqlver}.
Package built for PHP %(%{__php} -n -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}.
@@ -275,6 +277,9 @@ fi
%changelog
+* Wed Apr 10 2019 Remi Collet <remi@remirepo.net> - 5.6.1-2
+- switch from msodbcsql to msodbcsql17
+
* Wed Mar 20 2019 Remi Collet <remi@remirepo.net> - 5.6.1-1
- update to 5.6.1 (stable)