From 81f63eff2f65326a635ddc6c4209a0615fb1a167 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 26 Sep 2015 18:19:06 +0200 Subject: php-pecl-solr2: improve previous --- php-pecl-solr2.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/php-pecl-solr2.spec b/php-pecl-solr2.spec index 5b984c5..426d350 100644 --- a/php-pecl-solr2.spec +++ b/php-pecl-solr2.spec @@ -33,7 +33,8 @@ # After 20-curl, 40-json %global ini_name 50-%{pecl_name}.ini %endif -# For full test, with online server (solr5 must resolve) +# For full test (with online server) use --with tests +# solr5 must be resolved, or use --define "server " %global with_tests 0%{?_with_tests:1} Summary: Object oriented API to Apache Solr @@ -209,9 +210,12 @@ fi %check %if %{with_tests} -sed -e '/SOLR_SERVER_CONFIGURED/s/false/true/' -i ?TS/tests/test.config.inc +sed -e '/SOLR_SERVER_CONFIGURED/s/false/true/' \ + %{?server: -e '/SOLR_SERVER_HOSTNAME/s/solr5/%{server}/'} \ + -i ?TS/tests/test.config.inc %else -sed -e '/SOLR_SERVER_CONFIGURED/s/true/false/' -i ?TS/tests/test.config.inc +sed -e '/SOLR_SERVER_CONFIGURED/s/true/false/' \ + -i ?TS/tests/test.config.inc %endif : Minimal load test for NTS installed extension -- cgit