From 631ae348d7f13bdd20acbe8bcc1cfbdf58049e10 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 26 Sep 2015 19:07:56 +0200 Subject: php-pecl-solr2: improve again (use docker) --- php-pecl-solr2.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/php-pecl-solr2.spec b/php-pecl-solr2.spec index 426d350..adc244b 100644 --- a/php-pecl-solr2.spec +++ b/php-pecl-solr2.spec @@ -33,8 +33,9 @@ # After 20-curl, 40-json %global ini_name 50-%{pecl_name}.ini %endif -# For full test (with online server) use --with tests -# solr5 must be resolved, or use --define "server " +# For full test (using localhost server) use --with tests +# create: docker run -d -p 8983:8983 --name solr5 -t omars/solr53 +# cleanup: docker stop solr5 && docker rm solr5 %global with_tests 0%{?_with_tests:1} Summary: Object oriented API to Apache Solr @@ -211,7 +212,7 @@ fi %check %if %{with_tests} sed -e '/SOLR_SERVER_CONFIGURED/s/false/true/' \ - %{?server: -e '/SOLR_SERVER_HOSTNAME/s/solr5/%{server}/'} \ + -e '/SOLR_SERVER_HOSTNAME/s/solr5/localhost/' \ -i ?TS/tests/test.config.inc %else sed -e '/SOLR_SERVER_CONFIGURED/s/true/false/' \ -- cgit