From d34c3e0a1293bc72dfef18eba0d43d99b819deaa Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 28 Sep 2015 07:01:05 +0200 Subject: php-pecl-solr2: fix build with jsonc < 1.3.9 --- php-pecl-solr2.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/php-pecl-solr2.spec b/php-pecl-solr2.spec index e570fd6..513e503 100644 --- a/php-pecl-solr2.spec +++ b/php-pecl-solr2.spec @@ -42,7 +42,7 @@ Summary: Object oriented API to Apache Solr Summary(fr): API orientée objet pour Apache Solr Name: %{?sub_prefix}php-pecl-solr2 Version: 2.2.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: PHP Group: Development/Languages URL: http://pecl.php.net/package/solr @@ -210,6 +210,12 @@ fi %check +: Ignore test with jsonc before 1.3.9 +%{__php} -r ' + $v=phpversion("json"); + exit(version_compare($v,"1.3.0",">=") && version_compare($v,"1.3.9","<") ? 0 : 1); +' && rm ?TS/tests/bug_67394.phpt + %if %{with_tests} sed -e '/SOLR_SERVER_CONFIGURED/s/false/true/' \ -e '/SOLR_SERVER_HOSTNAME/s/solr5/localhost/' \ @@ -274,6 +280,9 @@ rm -rf %{buildroot} %changelog +* Sun Sep 27 2015 Remi Collet - 2.2.1-2 +- ignore test with jsonc < 1.3.9 + * Sun Sep 27 2015 Remi Collet - 2.2.1-1 - update to 2.2.1 (stable) -- cgit