From 09f0d5a154be9a77b3726b54f4696d8911f99f38 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 7 Feb 2020 14:21:25 +0100 Subject: update to 5.0.0 raise dependency on PHP 7.3 rename to php-sebastian-environment5 move to /usr/share/php/SebastianBergmann/Environment5 --- php-sebastian-environment5.spec | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'php-sebastian-environment5.spec') diff --git a/php-sebastian-environment5.spec b/php-sebastian-environment5.spec index 4f181ce..ecc0abc 100644 --- a/php-sebastian-environment5.spec +++ b/php-sebastian-environment5.spec @@ -1,4 +1,4 @@ -# remirepo/fedora spec file for php-sebastian-environment4 +# remirepo/fedora spec file for php-sebastian-environment5 # # Copyright (c) 2014-2019 Remi Collet # License: CC-BY-SA @@ -8,7 +8,7 @@ # %global bootstrap 0 # Sources -%global gh_commit 464c90d7bdf5ad4e8a6aea15c091fec0603d4368 +%global gh_commit fea125c3bf7cab63a909990133d425e5a0a61e40 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project environment @@ -16,7 +16,7 @@ %global pk_vendor sebastian %global pk_project %{gh_project} # Namespace -%global major 4 +%global major 5 %global php_home %{_datadir}/php %global ns_vendor SebastianBergmann %global ns_project Environment @@ -27,7 +27,7 @@ %endif Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 4.2.3 +Version: 5.0.0 Release: 1%{?dist} Summary: Handle HHVM/PHP environments @@ -36,20 +36,21 @@ URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz BuildArch: noarch -BuildRequires: php(language) >= 7.1 +BuildRequires: php(language) >= 7.3 BuildRequires: php-pcre BuildRequires: php-posix # Autoloader BuildRequires: php-fedora-autoloader-devel >= 1.0.0 %if %{with_tests} # from composer.json, "require-dev": { -# "phpunit/phpunit": "^7.5" -BuildRequires: phpunit7 >= 7.5 +# "phpunit/phpunit": "^9.0" +# TODO test suite passes with v8, switch to v9 when available +BuildRequires: phpunit8 %endif # from composer.json, "require": { -# "php": "^7.1" -Requires: php(language) >= 7.1 +# "php": "^7.3" +Requires: php(language) >= 7.3 # From phpcompatinfo report for 4.0.1 Requires: php-pcre Requires: php-posix @@ -88,10 +89,11 @@ touch vendor/autoload.php : Run tests ret=0 -for cmd in php php71 php72 php73 php74; do +for cmd in php php73 php74; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ - %{_bindir}/phpunit7 --verbose || ret=1 + -d pcov.enabled=1 \ + %{_bindir}/phpunit8 --verbose || ret=1 fi done exit $ret @@ -99,6 +101,7 @@ exit $ret %files +# remirepo:1 %{!?_licensedir:%global license %%doc} %license LICENSE %doc README.md composer.json @@ -107,6 +110,12 @@ exit $ret %changelog +* Fri Feb 7 2020 Remi Collet - 5.0.0-1 +- update to 5.0.0 +- raise dependency on PHP 7.3 +- rename to php-sebastian-environment5 +- move to /usr/share/php/SebastianBergmann/Environment5 + * Wed Nov 20 2019 Remi Collet - 4.2.3-1 - update to 4.2.3 -- cgit