update to 1.7.1

lower dependency on PHP 7.1
This commit is contained in:
Remi Collet 2019-05-06 09:20:07 +02:00
commit b5e43345eb
2 changed files with 14 additions and 9 deletions

View file

@ -6,7 +6,7 @@
#
# Please, preserve the changelog entries
#
%global gh_commit e00b7b3d8d2ef0da908ea9d3df627271b93a9253
%global gh_commit f46847626b8739de22e4ebc6b56010f317d4448d
%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.0
Version: 1.7.1
Release: 1%{?dist}
Summary: PHP Enum implementation
@ -33,7 +33,7 @@ Source1: makesrc.sh
BuildArch: noarch
%if %{with_tests}
# For tests
BuildRequires: php(language) >= 7.2
BuildRequires: php(language) >= 7.1
BuildRequires: php-reflection
BuildRequires: php-json
BuildRequires: php-spl
@ -47,9 +47,9 @@ BuildRequires: php-composer(fedora/autoloader)
%endif
# From composer.json, "require": {
# "php": ">=7.2",
# "php": ">=7.1",
# "ext-json": "*"
Requires: php(language) >= 7.2
Requires: php(language) >= 7.1
Requires: php-json
# From phpcompatinfo report for version 1.6.1
Requires: php-reflection
@ -90,17 +90,18 @@ cp -pr src %{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}
%check
%if %{with_tests}
mkdir vendor
cat << 'EOF' | tee vendor/autoload.php
cat << 'EOF' | tee tests/autoload.php
<?php
require '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('%{ns_vendor}\\Tests\\%{ns_project}\\', __DIR__ . '/../tests');
require __DIR__ . '/bootstrap.php';
EOF
ret=0
for cmd in "php %{phpunit}" php72 php73; do
for cmd in "php %{phpunit}" php71 php72 php73; do
if which $cmd; then
set $cmd
$1 ${2:-%{_bindir}/phpunit6} --verbose || ret=1
$1 ${2:-%{_bindir}/phpunit6} --verbose --bootstrap tests/autoload.php || ret=1
fi
done
exit $ret
@ -119,6 +120,10 @@ exit $ret
%changelog
* Mon May 6 2019 Remi Collet <remi@remirepo.net> - 1.7.1-1
- update to 1.7.1
- lower dependency on PHP 7.1
* Wed Apr 24 2019 Remi Collet <remi@remirepo.net> - 1.7.0-1
- update to 1.7.0
- raise dependency on PHP 7.2

View file

@ -1 +1 @@
SHA512 (php-myclabs-php-enum-1.7.0-e00b7b3.tgz) = bba7d873100126baf2ec1046d748e7e5c390fdf187ed27658f7d907d11534276010949baa3b58d52c3fa57028969e82a332dd63bbe59a861776b557f58b39bd7
SHA512 (php-myclabs-php-enum-1.7.1-f468476.tgz) = 0bde392fc9ac903d6d2f13bf2f54e824ce9a137df64ec4e86eb5b1d42a30b6733682e3511f7dc7f9fbf90e836af81c5b9ac1c9e02b4ac5b8dc14c8da77ecc71b