summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json9
-rw-r--r--php-sebastian-environment5.spec31
2 files changed, 26 insertions, 14 deletions
diff --git a/composer.json b/composer.json
index 584d360..e20ebeb 100644
--- a/composer.json
+++ b/composer.json
@@ -11,15 +11,18 @@
}
],
"config": {
+ "platform": {
+ "php": "7.3.0"
+ },
"optimize-autoloader": true,
"sort-packages": true
},
"prefer-stable": true,
"require": {
- "php": "^7.1"
+ "php": "^7.3"
},
"require-dev": {
- "phpunit/phpunit": "^7.5"
+ "phpunit/phpunit": "^9.0"
},
"suggest": {
"ext-posix": "*"
@@ -31,7 +34,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "4.2-dev"
+ "dev-master": "5.0-dev"
}
}
}
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 <remi@remirepo.net> - 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 <remi@remirepo.net> - 4.2.3-1
- update to 4.2.3