diff options
author | Remi Collet <remi@remirepo.net> | 2019-03-07 13:12:02 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-03-07 13:12:02 +0100 |
commit | 8c259914b18c4d2d9b17e64d907606dc89fe4358 (patch) | |
tree | 4a56daa119fe48b48c3d5788cd565499f28c9bfd | |
parent | 4c78a52d63591563b565478cf3beaf19f1bbdd13 (diff) |
use php-mock2 2.1 single autoloader
-rw-r--r-- | php-mock-integration2.spec | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/php-mock-integration2.spec b/php-mock-integration2.spec index c036830..879c7f1 100644 --- a/php-mock-integration2.spec +++ b/php-mock-integration2.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-mock-integration2 # -# Copyright (c) 2016-2018 Remi Collet +# Copyright (c) 2016-2019 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -15,7 +15,7 @@ Name: php-mock-integration%{major} Version: 2.0.0 -Release: 2%{?dist} +Release: 5%{?dist} Summary: Integration package for PHP-Mock License: WTFPL @@ -29,7 +29,7 @@ BuildRequires: php(language) >= 5.6 # "phpunit/phpunit": "^4|^5" # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 -BuildRequires: (php-composer(php-mock/php-mock) >= 2 with php-composer(php-mock/php-mock) < 3) +BuildRequires: (php-composer(php-mock/php-mock) >= 2.1 with php-composer(php-mock/php-mock) < 3) BuildRequires: (php-composer(phpunit/php-text-template) >= 1 with php-composer(phpunit/php-text-template) < 2) # remirepo:4 %else @@ -87,12 +87,12 @@ mkdir vendor cat << 'EOF' | tee vendor/autoload.php <?php require_once '%{_datadir}/php/Fedora/Autoloader/autoload.php'; -require_once '%{_datadir}/tests/phpmock%{major}/autoload.php'; +require_once '%{_datadir}/php/phpmock%{major}/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('phpmock\\', '%{buildroot}%{_datadir}/php/phpmock%{major}'); EOF ret=0 -for cmd in php php70 php71 php72; do +for cmd in php php70 php71 php72 php73; do if which $cmd; then %{_bindir}/phpunit --verbose || ret=1 fi @@ -112,6 +112,9 @@ exit $ret %changelog +* Thu Mar 7 2019 Remi Collet <remi@remirepo.net> - 2.0.0-5 +- use php-mock2 2.1 single autoloader + * Fri Mar 23 2018 Remi Collet <remi@remirepo.net> - 2.0.0-2 - use range dependencies on F27+ |