[php-pecl-solr2/f21] update to 2.1.0
Remi Collet
remi at fedoraproject.org
Mon Jan 19 10:04:06 UTC 2015
commit 1b94571d4f65b8fbdee6db6b2a9658a2942df13c
Author: Remi Collet <remi at fedoraproject.org>
Date: Mon Jan 19 11:04:28 2015 +0100
update to 2.1.0
.gitignore | 1 +
php-pecl-solr2.spec | 33 +++++++++++++++++++++++----------
sources | 2 +-
3 files changed, 25 insertions(+), 11 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d2a0cf9..4d7db82 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/solr-2.0.0.tgz
+/solr-2.1.0.tgz
diff --git a/php-pecl-solr2.spec b/php-pecl-solr2.spec
index d04d972..b403b3b 100644
--- a/php-pecl-solr2.spec
+++ b/php-pecl-solr2.spec
@@ -1,6 +1,6 @@
# spec file for php-pecl-solr2
#
-# Copyright (c) 2011-2014 Remi Collet
+# Copyright (c) 2011-2015 Remi Collet
# Copyright (c) 2010 Johan Cwiklinski
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/3.0/
@@ -24,8 +24,8 @@
Summary: Object oriented API to Apache Solr
Summary(fr): API orientée objet pour Apache Solr
Name: php-pecl-solr2
-Version: 2.0.0
-Release: 2%{?dist}
+Version: 2.1.0
+Release: 1%{?dist}
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/solr
@@ -93,6 +93,9 @@ PECL Solr 1 is available in php-pecl-solr package.
%prep
%setup -c -q
+# Don't install/register tests
+sed -e 's/role="test"/role="src"/' -i package.xml
+
mv %{pecl_name}-%{version}%{?prever} NTS
cd NTS
@@ -145,10 +148,7 @@ make -C ZTS install INSTALL_ROOT=%{buildroot}
install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif
-# Test & Documentation
-for i in $(grep 'role="test"' package.xml | sed -e 's/^.*name="//;s/".*$//')
-do install -Dpm 644 NTS/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i
-done
+# Documentation
for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//')
do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done
@@ -165,6 +165,11 @@ fi
%check
+%ifarch ppc64
+# Under investigation
+rm ?TS/tests/080.solrutils_escapequerychars.phpt
+%endif
+
cd NTS
: Minimal load test for NTS installed extension
@@ -176,11 +181,13 @@ cd NTS
-m | grep %{pecl_name}
: Upstream test suite for NTS extension
+sed -e '/SOLR_SERVER_CONFIGURED/s/true/false/' -i tests/test.config.inc
+
TEST_PHP_ARGS="-n -d extension=curl.so -d extension=json.so -d extension=$PWD/modules/%{pecl_name}.so" \
REPORT_EXIT_STATUS=1 \
NO_INTERACTION=1 \
TEST_PHP_EXECUTABLE=%{__php} \
-%{__php} -n run-tests.php
+%{__php} -n run-tests.php --show-diff
%if %{with_zts}
cd ../ZTS
@@ -194,17 +201,18 @@ cd ../ZTS
-m | grep %{pecl_name}
: Upstream test suite for ZTS extension
+sed -e '/SOLR_SERVER_CONFIGURED/s/true/false/' -i tests/test.config.inc
+
TEST_PHP_ARGS="-n -d extension=curl.so -d extension=json.so -d extension=$PWD/modules/%{pecl_name}.so" \
REPORT_EXIT_STATUS=1 \
NO_INTERACTION=1 \
TEST_PHP_EXECUTABLE=%{__ztsphp} \
-%{__ztsphp} -n run-tests.php
+%{__ztsphp} -n run-tests.php --show-diff
%endif
%files
%doc %{pecl_docdir}/%{pecl_name}
-%doc %{pecl_testdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml
%config(noreplace) %{php_inidir}/%{ini_name}
@@ -217,12 +225,17 @@ TEST_PHP_EXECUTABLE=%{__ztsphp} \
%changelog
+* Sun Jan 18 2015 Remi Collet <remi at fedoraproject.org> - 2.1.0-1
+- update to 2.1.0
+- don't install/register test suite
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Tue Jun 24 2014 Remi Collet <remi at fedoraproject.org> - 2.0.0-1
- update to 2.0.0
- cleanup for review
+- ignore 080.solrutils_escapequerychars.phpt on ppc64
* Mon Jun 23 2014 Remi Collet <remi at fedoraproject.org> - 2.0.0-0.4
- test build before 2.0.0 finale
diff --git a/sources b/sources
index 0e9eef8..b734219 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f6b9694d261da80dd9f6126b776a8646 solr-2.0.0.tgz
+258865d4517312afda6890827f18f93f solr-2.1.0.tgz
More information about the scm-commits
mailing list