diff options
Diffstat (limited to 'php-sqlsrv.spec')
-rw-r--r-- | php-sqlsrv.spec | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/php-sqlsrv.spec b/php-sqlsrv.spec index d4bbbd3..b23adb0 100644 --- a/php-sqlsrv.spec +++ b/php-sqlsrv.spec @@ -27,7 +27,7 @@ Name: %{?scl_prefix}php-sqlsrv Summary: Microsoft Drivers for PHP for SQL Server %global tarversion 5.6.1 Version: 5.6.1 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: MIT URL: https://github.com/Microsoft/msphpsql @@ -38,6 +38,10 @@ Source1: http://pecl.php.net/get/pdo_%{extname}-%{tarversion}.tgz Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz %endif +# workaround for 7.4.0alpha1 +# TODO remove when alpha2 +Patch0: shared.patch + BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?dtsprefix}gcc-c++ BuildRequires: %{?scl_prefix}php-devel > 7.1 @@ -125,6 +129,12 @@ mv %{gh_project}-%{gh_commit}/LICENSE . %endif cd NTS +cd %{extname} +%patch0 -p0 +cd ../pdo_%{extname} +%patch0 -p0 +cd .. + # Sanity check, really often broken extmaj=$(sed -n '/#define SQLVERSION_MAJOR/{s/.*MAJOR //;s/\r//;p}' sqlsrv/shared/version.h) extmin=$(sed -n '/#define SQLVERSION_MINOR/{s/.*MINOR //;s/\r//;p}' sqlsrv/shared/version.h) @@ -277,6 +287,9 @@ fi %changelog +* Fri Jun 14 2019 Remi Collet <remi@remirepo.net> - 5.6.1-3 +- add workaround for 7.4.0alpha1 + * Wed Apr 10 2019 Remi Collet <remi@remirepo.net> - 5.6.1-2 - switch from msodbcsql to msodbcsql17 |