summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-02-05 10:49:56 +0100
committerRemi Collet <remi@php.net>2024-02-05 10:49:56 +0100
commitf1d902690f2ae808eef0be0972942b0185640b27 (patch)
tree843a2305f0e35eed4af1aa7c76d46209bd6ea674
parente295d841bf99332d1fdeb3c75fbce197743ff7a9 (diff)
update to 7.0.0
raise dependency on PHP 8.2 rename to php-sebastian-environment7 move to /usr/share/php/SebastianBergmann/Environment7
-rw-r--r--composer.json8
-rw-r--r--php-sebastian-environment7.spec36
2 files changed, 26 insertions, 18 deletions
diff --git a/composer.json b/composer.json
index 0459582..9bc9289 100644
--- a/composer.json
+++ b/composer.json
@@ -16,17 +16,17 @@
},
"config": {
"platform": {
- "php": "8.1.0"
+ "php": "8.2.0"
},
"optimize-autoloader": true,
"sort-packages": true
},
"prefer-stable": true,
"require": {
- "php": ">=8.1"
+ "php": ">=8.2"
},
"require-dev": {
- "phpunit/phpunit": "^10.0"
+ "phpunit/phpunit": "^11.0"
},
"suggest": {
"ext-posix": "*"
@@ -38,7 +38,7 @@
},
"extra": {
"branch-alias": {
- "dev-main": "6.0-dev"
+ "dev-main": "7.0-dev"
}
}
}
diff --git a/php-sebastian-environment7.spec b/php-sebastian-environment7.spec
index 2ee3fbc..aaf06ce 100644
--- a/php-sebastian-environment7.spec
+++ b/php-sebastian-environment7.spec
@@ -1,31 +1,33 @@
-# remirepo/fedora spec file for php-sebastian-environment6
+# remirepo/fedora spec file for php-sebastian-environment7
#
-# Copyright (c) 2014-2023 Remi Collet
+# Copyright (c) 2014-2024 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
-%bcond_without tests
+# disabled until phpunit11 available
+%bcond_with tests
# Sources
-%global gh_commit 43c751b41d74f96cbbd4e07b7aec9675651e2951
+%global gh_commit 100d8b855d7180f79f9a9a5c483f2d960581c3ea
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project environment
+%global gh_date 2024-02-02
# Packagist
%global pk_vendor sebastian
%global pk_project %{gh_project}
# Namespace
-%global major 6
+%global major 7
%global php_home %{_datadir}/php
%global ns_vendor SebastianBergmann
%global ns_project Environment
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 6.0.1
-Release: 3%{?dist}
+Version: 7.0.0
+Release: 1%{?dist}
Summary: Handle HHVM/PHP environments, version %{major}
License: BSD-3-Clause
@@ -35,20 +37,20 @@ Source1: makesrc.sh
BuildArch: noarch
-BuildRequires: php(language) >= 8.1
+BuildRequires: php(language) >= 8.2
BuildRequires: php-pcre
BuildRequires: php-posix
# Autoloader
BuildRequires: php-fedora-autoloader-devel
%if %{with tests}
# from composer.json, "require-dev": {
-# "phpunit/phpunit": "^10.0"
-BuildRequires: phpunit10
+# "phpunit/phpunit": "^11.0"
+BuildRequires: phpunit11
%endif
# from composer.json, "require": {
-# "php": ">=8.1"
-Requires: php(language) >= 8.1
+# "php": ">=8.2"
+Requires: php(language) >= 8.2
# From phpcompatinfo report for 6.0.0
Requires: php-pcre
Requires: php-posix
@@ -91,11 +93,11 @@ touch vendor/autoload.php
: Run tests
ret=0
-for cmd in php php81 php82 php83; do
+for cmd in php php82 php83; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
-d pcov.enabled=1 \
- %{_bindir}/phpunit10 || ret=1
+ %{_bindir}/phpunit11 || ret=1
fi
done
exit $ret
@@ -112,6 +114,12 @@ exit $ret
%changelog
+* Mon Feb 5 2024 Remi Collet <remi@remirepo.net> - 7.0.0-1
+- update to 7.0.0
+- raise dependency on PHP 8.2
+- rename to php-sebastian-environment7
+- move to /usr/share/php/SebastianBergmann/Environment7
+
* Wed Aug 23 2023 Remi Collet <remi@remirepo.net> - 6.0.1-3
- Enable test suite