From daa18aadded16837f06d950ca30f201dfb335431 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 10 Jan 2016 19:11:12 +0100 Subject: php-pecl-mysql: enable version check --- php-pecl-mysql.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/php-pecl-mysql.spec b/php-pecl-mysql.spec index 1d24eef..0ea2281 100644 --- a/php-pecl-mysql.spec +++ b/php-pecl-mysql.spec @@ -97,14 +97,14 @@ mv %{gh_project}-%{gh_commit} NTS # Don't install (register) the tests sed -e 's/role="test"/role="src"/' -i package.xml -#cd NTS +cd NTS # Check version as upstream often forget to update this -#extver=$(sed -n '/#define PHP_YAC_VERSION/{s/.* "//;s/".*$//;p}' php_yac.h) -#if test "x${extver}" != "x%{version}%{?prever}%{?gh_date:-dev}"; then -# : Error: Upstream YAC version is ${extver}, expecting %{version}%{?prever}%{?gh_date:-dev}. -# exit 1 -#fi -#cd .. +extver=$(sed -n '/#define PHP_MYSQL_VERSION/{s/.* "//;s/".*$//;p}' php_mysql.h) +if test "x${extver}" != "x%{version}%{?prever}%{?gh_date:-dev}"; then + : Error: Upstream YAC version is ${extver}, expecting %{version}%{?prever}%{?gh_date:-dev}. + exit 1 +fi +cd .. %if %{with_zts} -- cgit