diff options
Diffstat (limited to 'php-doctrine-inflector.spec')
-rw-r--r-- | php-doctrine-inflector.spec | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/php-doctrine-inflector.spec b/php-doctrine-inflector.spec index c450363..5cdbc65 100644 --- a/php-doctrine-inflector.spec +++ b/php-doctrine-inflector.spec @@ -2,7 +2,7 @@ # # Fedora spec file for php-doctrine-inflector # -# Copyright (c) 2013-2019 Shawn Iwinski <shawn.iwinski@gmail.com> +# Copyright (c) 2013-2020 Shawn Iwinski <shawn.iwinski@gmail.com> # # License: MIT # http://opensource.org/licenses/MIT @@ -12,14 +12,14 @@ %global github_owner doctrine %global github_name inflector -%global github_version 1.3.1 -%global github_commit ec3a55242203ffa6a4b27c58176da97ff0a7aec1 +%global github_version 1.4.1 +%global github_commit 4111f6853aea6f28b2b1dcfdde83d12dd3d5e6e3 %global composer_vendor doctrine %global composer_project inflector -# "php": "^7.1" -%global php_min_ver 7.1 +# "php": "^7.2" +%global php_min_ver 7.2 # Build using "--without tests" to disable tests %global with_tests 0%{!?_without_tests:1} @@ -43,12 +43,12 @@ BuildArch: noarch # Tests %if %{with_tests} ## composer.json -BuildRequires: %{_bindir}/phpunit +BuildRequires: phpunit8 BuildRequires: php(language) >= %{php_min_ver} ## phpcompatinfo (computed from version 1.3.0) BuildRequires: php-pcre # Autoloader -BuildRequires: php-composer(fedora/autoloader) +BuildRequires: php-fedora-autoloader-devel %endif # composer.json @@ -74,16 +74,7 @@ Autoloader: %{phpdir}/Doctrine/Common/Inflector/autoload.php %build : Create autoloader -cat <<'AUTOLOAD' | tee lib/Doctrine/Common/Inflector/autoload.php -<?php -/** - * Autoloader for %{name} and its' dependencies - * (created by %{name}-%{version}-%{release}). - */ -require_once '%{phpdir}/Fedora/Autoloader/autoload.php'; - -\Fedora\Autoloader\Autoload::addPsr4('Doctrine\\Common\\Inflector\\', __DIR__); -AUTOLOAD +phpab --template fedora --output lib/Doctrine/Common/Inflector/autoload.php lib %install @@ -102,10 +93,9 @@ BOOTSTRAP : Upstream tests RETURN_CODE=0 -PHPUNIT=$(which phpunit) -for PHP_EXEC in "" php71 php72 php73 php74; do +for PHP_EXEC in "" php72 php73 php74 php80; do if [ -z "$PHP_EXEC" ] || which $PHP_EXEC; then - $PHP_EXEC $PHPUNIT --verbose --bootstrap bootstrap.php \ + phpunit8 --verbose --bootstrap bootstrap.php \ || RETURN_CODE=1 fi done @@ -123,9 +113,16 @@ exit $RETURN_CODE %dir %{phpdir}/Doctrine %dir %{phpdir}/Doctrine/Common %{phpdir}/Doctrine/Common/Inflector + %{phpdir}/Doctrine/Inflector %changelog +* Mon May 11 2020 Remi Collet <remi@remirepo.net> - 1.4.1-1 +- update to 1.4.1 +- raise dependency on PHP 7.2 +- switch to phpunit8 +- switch to classmap autoloader + * Wed Nov 13 2019 Remi Collet <remi@remirepo.net> - 1.3.1-1 - update to 1.3.1 |