update to 1.8.0
raise dependency on PHP 7.3 switch to phpunit9
This commit is contained in:
parent
aec48456aa
commit
9c47e02cb8
2 changed files with 19 additions and 14 deletions
|
|
@ -1,12 +1,12 @@
|
|||
# remirepo/fedora spec file for php-myclabs-php-enum
|
||||
#
|
||||
# Copyright (c) 2017-2020 Remi Collet
|
||||
# Copyright (c) 2017-2021 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
%global gh_commit d178027d1e679832db9f38248fcc7200647dc2b7
|
||||
%global gh_commit 46cf3d8498b095bd33727b13fd5707263af99421
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner myclabs
|
||||
%global gh_project php-enum
|
||||
|
|
@ -20,8 +20,8 @@
|
|||
%global with_tests 0%{!?_without_tests:1}
|
||||
|
||||
Name: php-%{pk_vendor}-%{pk_project}
|
||||
Version: 1.7.7
|
||||
Release: 2%{?dist}
|
||||
Version: 1.8.0
|
||||
Release: 1%{?dist}
|
||||
Summary: PHP Enum implementation
|
||||
|
||||
License: MIT
|
||||
|
|
@ -33,24 +33,24 @@ Source1: makesrc.sh
|
|||
BuildArch: noarch
|
||||
%if %{with_tests}
|
||||
# For tests
|
||||
BuildRequires: php(language) >= 7.1
|
||||
BuildRequires: php(language) >= 7.3
|
||||
BuildRequires: php-reflection
|
||||
BuildRequires: php-json
|
||||
BuildRequires: php-spl
|
||||
# From composer.json, "require-dev": {
|
||||
# "phpunit/phpunit": "^7",
|
||||
# "phpunit/phpunit": "^9.5",
|
||||
# "squizlabs/php_codesniffer": "1.*"
|
||||
# "vimeo/psalm": "^3.8"
|
||||
%global phpunit %{_bindir}/phpunit7
|
||||
BuildRequires: %{phpunit}
|
||||
# "vimeo/psalm": "^4.5.1"
|
||||
%global phpunit %{_bindir}/phpunit9
|
||||
BuildRequires: phpunit9 >= 9.5
|
||||
# Required by autoloader
|
||||
BuildRequires: php-composer(fedora/autoloader)
|
||||
%endif
|
||||
|
||||
# From composer.json, "require": {
|
||||
# "php": ">=7.1",
|
||||
# "php": "^7.3 || ^8.0",
|
||||
# "ext-json": "*"
|
||||
Requires: php(language) >= 7.1
|
||||
Requires: php(language) >= 7.3
|
||||
Requires: php-json
|
||||
# From phpcompatinfo report for version 1.6.1
|
||||
Requires: php-reflection
|
||||
|
|
@ -99,10 +99,10 @@ require __DIR__ . '/bootstrap.php';
|
|||
EOF
|
||||
|
||||
ret=0
|
||||
for cmd in "php %{phpunit}" php72 php73 php74 php80; do
|
||||
for cmd in "php %{phpunit}" php73 php74 php80; do
|
||||
if which $cmd; then
|
||||
set $cmd
|
||||
$1 ${2:-%{_bindir}/phpunit6} --verbose --bootstrap tests/autoload.php || ret=1
|
||||
$1 ${2:-%{_bindir}/phpunit9} --verbose --bootstrap tests/autoload.php || ret=1
|
||||
fi
|
||||
done
|
||||
exit $ret
|
||||
|
|
@ -121,6 +121,11 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Feb 16 2021 Remi Collet <remi@remirepo.net> - 1.8.0-1
|
||||
- update to 1.8.0
|
||||
- raise dependency on PHP 7.3
|
||||
- switch to phpunit9
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-myclabs-php-enum-1.7.7-d178027.tgz) = de2562f5e2f9d295a8f06e7fcdb0ff844192fb1e3e947c35e54be88c33f19c2f6a8a190cbda52dd47029cdbcbdd541ee0f285214ceaeca58a3ebf231f37a991c
|
||||
SHA512 (php-myclabs-php-enum-1.8.0-46cf3d8.tgz) = aad18b76a99f30c0dc5e669040740f55bdd8475d2a175264ceb5974ea6e037e802a7c0723400e623e7070df58e2c34c6a1c2ae9743c12dcb0038d44e21c99517
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue