From ae620b5e416e131cfcf371cd72747ae6b2fbcb63 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 5 Oct 2017 16:22:07 +0200 Subject: fix autoloader for Symfony 3, FTBFS from Koschei --- php-solarium.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'php-solarium.spec') diff --git a/php-solarium.spec b/php-solarium.spec index 92b94eb..0a65b0b 100644 --- a/php-solarium.spec +++ b/php-solarium.spec @@ -15,7 +15,7 @@ Name: php-%{gh_project} Summary: Solarium PHP Solr client library Version: 3.8.1 -Release: 1%{?dist} +Release: 4%{?dist} URL: http://www.solarium-project.org/ License: BSD @@ -28,6 +28,7 @@ BuildArch: noarch %if %{with_tests} # For tests BuildRequires: php(language) >= 5.3.2 +BuildRequires: php-composer(symfony/event-dispatcher) < 4 BuildRequires: php-composer(symfony/event-dispatcher) > 2.3 BuildRequires: php-composer(fedora/autoloader) # From composer.json, "require-dev": { @@ -48,8 +49,8 @@ BuildRequires: php-guzzle-Guzzle >= 3.8 # "php": ">=5.3.2", # "symfony/event-dispatcher": "~2.3|~3.0" Requires: php(language) >= 5.3.2 -Requires: php-composer(symfony/event-dispatcher) > 2.3 Requires: php-composer(symfony/event-dispatcher) < 4 +Requires: php-composer(symfony/event-dispatcher) > 2.3 # From composer.json, "suggest": { # "minimalcode/search": "Query builder compatible with Solarium, allows simplified solr-query handling" %if 0%{?fedora}> 21 @@ -114,7 +115,7 @@ EOF : Run upstream test suite against installed library ret=0 -for cmd in php56 php70 php71 php; do +for cmd in php php56 php70 php71 php72; do if which $cmd; then $cmd %{_bindir}/phpunit || ret=1 fi @@ -134,6 +135,9 @@ exit $ret %changelog +* Thu Oct 5 2017 Remi Collet - 3.8.1-4 +- fix autoloader for Symfony 3, FTBFS from Koschei + * Thu Feb 2 2017 Remi Collet - 3.8.1-1 - update to 3.8.1 -- cgit