diff options
Diffstat (limited to 'php-sqlsrv.spec')
-rw-r--r-- | php-sqlsrv.spec | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/php-sqlsrv.spec b/php-sqlsrv.spec index 24e811a..9e5e53c 100644 --- a/php-sqlsrv.spec +++ b/php-sqlsrv.spec @@ -21,7 +21,7 @@ Name: %{?scl_prefix}php-sqlsrv Summary: Microsoft Drivers for PHP for SQL Server -Version: 4.0.6 +Version: 4.0.7 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: MIT Group: Development/Languages @@ -108,22 +108,14 @@ mv %{gh_project}-%{gh_commit}/LICENSE . cd NTS # Sanity check, really often broken -extmaj=$(sed -n '/#define SQLVERSION_MAJOR/{s/.*MAJOR //;s/\r//;p}' sqlsrv/version.h) -extmin=$(sed -n '/#define SQLVERSION_MINOR/{s/.*MINOR //;s/\r//p}' sqlsrv/version.h) -extrel=$(sed -n '/#define SQLVERSION_RELEASE/{s/.*ASE //;s/\r//p}' sqlsrv/version.h) +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) +extrel=$(sed -n '/#define SQLVERSION_RELEASE/{s/.*ASE //;s/\r//p}' sqlsrv/shared/version.h) extver=${extmaj}.${extmin}.${extrel} if test "x${extver}" != "x%{version}%{?prever}"; then : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever}. exit 1 fi -extmaj=$(sed -n '/#define SQLVERSION_MAJOR/{s/.*MAJOR //;s/\r//p}' pdo_sqlsrv/version.h) -extmin=$(sed -n '/#define SQLVERSION_MINOR/{s/.*MINOR //;s/\r//p}' pdo_sqlsrv/version.h) -extrel=$(sed -n '/#define SQLVERSION_RELEASE/{s/.*ASE //;s/\r//p}' pdo_sqlsrv/version.h) -extver=$extmaj.$extmin.$extrel -if test "x${extver}" != "x%{version}%{?prever}"; then - : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever}. - exit 1 -fi cd .. cat << 'EOF' | tee %{ininame} @@ -261,6 +253,9 @@ fi %changelog +* Fri Nov 18 2016 Remi Collet <remi@remirepo.net> - 4.0.7-1 +- update to 4.0.7 (devel) + * Sat Oct 22 2016 Remi Collet <remi@remirepo.net> - 4.0.6-1 - update to 4.0.6 (devel) |