diff options
Diffstat (limited to 'php-guzzle-Guzzle.spec')
-rw-r--r-- | php-guzzle-Guzzle.spec | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/php-guzzle-Guzzle.spec b/php-guzzle-Guzzle.spec index e4dce93..8903818 100644 --- a/php-guzzle-Guzzle.spec +++ b/php-guzzle-Guzzle.spec @@ -89,10 +89,8 @@ BuildRequires: php-composer(monolog/monolog) >= %{monolog_min_ver} BuildRequires: php-composer(monolog/monolog) < %{monolog_max_ver} BuildRequires: php-composer(psr/log) >= %{psr_log_min_ver} BuildRequires: php-composer(psr/log) < %{psr_log_max_ver} -BuildRequires: php-composer(symfony/class-loader) >= %{symfony_min_ver} -BuildRequires: php-composer(symfony/class-loader) < %{symfony_max_ver} -BuildRequires: php-composer(symfony/event-dispatcher) >= %{symfony_min_ver} -BuildRequires: php-composer(symfony/event-dispatcher) < %{symfony_max_ver} +BuildRequires: php-symfony-class-loader >= %{symfony_min_ver} +BuildRequires: php-symfony-event-dispatcher >= %{symfony_min_ver} BuildRequires: php-composer(zendframework/zend-cache) >= %{zend_min_ver} BuildRequires: php-composer(zendframework/zend-cache) < %{zend_max_ver} BuildRequires: php-composer(zendframework/zend-log) >= %{zend_min_ver} @@ -122,8 +120,7 @@ Requires: php(language) >= %{php_min_ver} %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 Requires: (php-composer(symfony/event-dispatcher) >= %{symfony_min_ver} with php-composer(symfony/event-dispatcher) < %{symfony_max_ver}) %else -Requires: php-composer(symfony/event-dispatcher) >= %{symfony_min_ver} -Requires: php-composer(symfony/event-dispatcher) < %{symfony_max_ver} +Requires: php-symfony-event-dispatcher >= %{symfony_min_ver} %endif Requires: php-curl # phpcompatinfo (computed from version 3.9.3) @@ -246,7 +243,7 @@ cat <<'AUTOLOAD' | tee src/Guzzle/autoload.php require_once '%{phpdir}/Fedora/Autoloader/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('Guzzle\\', __DIR__); -%if 0%{?el6} +%if 0 \Fedora\Autoloader\Autoload::addPsr4('Zend\\', '%{phpdir}/Zend'); %endif @@ -257,13 +254,14 @@ require_once '%{phpdir}/Fedora/Autoloader/autoload.php'; \Fedora\Autoloader\Dependencies::optional(array( '%{phpdir}/Doctrine/Common/Cache/autoload.php', '%{phpdir}/Monolog/autoload.php', - %if !0%{?el6} - %if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 - '%{phpdir}/Zend/Cache/autoload.php', - '%{phpdir}/Zend/Log/autoload.php', - %else - '%{phpdir}/Zend/autoload.php', - %endif + %if 1 + [ + '%{phpdir}/Zend/Cache/autoload.php', + '%{phpdir}/Zend/autoload.php', + ], [ + '%{phpdir}/Zend/Log/autoload.php', + '%{phpdir}/Zend/autoload.php', + ], %endif )); AUTOLOAD @@ -338,7 +336,7 @@ sed 's/function testMustReturnRequest/function SKIP_testMustReturnRequest/' \ : Upstream tests RETURN_CODE=0 PHPUNIT=$(which phpunit) -for PHP_EXEC in "" %{?rhel:php54 php55} php56 php70 php71 php72; do +for PHP_EXEC in "" %{?rhel:php54 php55 php56} php70 php71 php72; do if [ -z "$PHP_EXEC" ] || which $PHP_EXEC; then $PHP_EXEC $PHPUNIT --verbose || RETURN_CODE=1 fi |