Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e488fe1169 | ||
|
|
31ef854275 | ||
|
|
1729067956 | ||
|
|
871021bc85 |
2 changed files with 27 additions and 13 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 b942d263c641ddb5190929ff840c68f78713e937
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner myclabs
|
||||
%global gh_project php-enum
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
%global with_tests 0%{!?_without_tests:1}
|
||||
|
||||
Name: php-%{pk_vendor}-%{pk_project}
|
||||
Version: 1.7.7
|
||||
Version: 1.8.3
|
||||
Release: 1%{?dist}
|
||||
Summary: PHP Enum implementation
|
||||
|
||||
|
|
@ -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.6.2"
|
||||
%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 php81; 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,20 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Jul 5 2021 Remi Collet <remi@remirepo.net> - 1.8.3-1
|
||||
- update to 1.8.3
|
||||
|
||||
* Mon Jul 5 2021 Remi Collet <remi@remirepo.net> - 1.8.2-1
|
||||
- update to 1.8.2
|
||||
|
||||
* Tue Jun 29 2021 Remi Collet <remi@remirepo.net> - 1.8.1-1
|
||||
- update to 1.8.1
|
||||
|
||||
* 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
|
||||
|
||||
* Mon Nov 16 2020 Remi Collet <remi@remirepo.net> - 1.7.7-1
|
||||
- update to 1.7.7
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-myclabs-php-enum-1.7.7-d178027.tgz) = de2562f5e2f9d295a8f06e7fcdb0ff844192fb1e3e947c35e54be88c33f19c2f6a8a190cbda52dd47029cdbcbdd541ee0f285214ceaeca58a3ebf231f37a991c
|
||||
SHA512 (php-myclabs-php-enum-1.8.3-b942d26.tgz) = 0aa384a587f8150ec56299043968a42bc0cac2c85204976bd57d9f0650d849458ec906ffa6568ed76f369bfadc81f06f2399cf3e1ad9dfdd3e673d71527186ef
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue