summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json10
-rw-r--r--php-sebastian-exporter6.spec47
2 files changed, 33 insertions, 24 deletions
diff --git a/composer.json b/composer.json
index 292dba3..fcb0726 100644
--- a/composer.json
+++ b/composer.json
@@ -32,19 +32,19 @@
},
"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",
"ext-mbstring": "*",
- "sebastian/recursion-context": "^5.0"
+ "sebastian/recursion-context": "^6.0"
},
"require-dev": {
- "phpunit/phpunit": "^10.0"
+ "phpunit/phpunit": "^11.0"
},
"autoload": {
"classmap": [
@@ -58,7 +58,7 @@
},
"extra": {
"branch-alias": {
- "dev-main": "5.1-dev"
+ "dev-main": "6.0-dev"
}
}
}
diff --git a/php-sebastian-exporter6.spec b/php-sebastian-exporter6.spec
index 6a6b83b..f475d8d 100644
--- a/php-sebastian-exporter6.spec
+++ b/php-sebastian-exporter6.spec
@@ -1,31 +1,33 @@
-# remirepo/fedora spec file for php-sebastian-exporter5
+# remirepo/fedora spec file for php-sebastian-exporter6
#
-# Copyright (c) 2013-2023 Remi Collet
+# Copyright (c) 2013-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
-%global gh_commit 64f51654862e0f5e318db7e9dcc2292c63cdbddc
+%global gh_commit d0c0a93fc746b0c066037f1e7d09104129e868ff
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project exporter
+%global gh_date 2024-02-02
# Packagist
%global pk_vendor sebastian
%global pk_project %{gh_project}
# Namespace
%global ns_vendor SebastianBergmann
%global ns_project Exporter
-%global major 5
+%global major 6
%global php_home %{_datadir}/php
%global pear_name Exporter
%global pear_channel pear.phpunit.de
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 5.1.1
+Version: 6.0.0
Release: 1%{?dist}
Summary: Export PHP variables for visualization, version %{major}
@@ -35,36 +37,36 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
BuildArch: noarch
-BuildRequires: php(language) >= 8.1
+BuildRequires: php(language) >= 8.2
BuildRequires: php-mbstring
BuildRequires: php-pcre
BuildRequires: php-spl
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
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-BuildRequires: (php-composer(%{pk_vendor}/recursion-context) >= 5.0 with php-composer(%{pk_vendor}/recursion-context) < 6)
+BuildRequires: (php-composer(%{pk_vendor}/recursion-context) >= 6.0 with php-composer(%{pk_vendor}/recursion-context) < 7)
# remirepo:3
%else
-BuildRequires: php-sebastian-recursion-context5
+BuildRequires: php-sebastian-recursion-context6
%endif
%endif
# from composer.json
-# "php": ">=8.1",
+# "php": ">=8.2",
# "ext-mbstring": "*",
-# "sebastian/recursion-context": "^5.0"
-Requires: php(language) >= 8.1
+# "sebastian/recursion-context": "^6.0"
+Requires: php(language) >= 8.2
Requires: php-mbstring
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
-Requires: (php-composer(%{pk_vendor}/recursion-context) >= 5.0 with php-composer(%{pk_vendor}/recursion-context) < 6)
+Requires: (php-composer(%{pk_vendor}/recursion-context) >= 6.0 with php-composer(%{pk_vendor}/recursion-context) < 7)
# remirepo:3
%else
-Requires: php-sebastian-recursion-context5
+Requires: php-sebastian-recursion-context6
%endif
# from phpcompatinfo report for version 5.0.0
Requires: php-pcre
@@ -93,7 +95,7 @@ phpab --template fedora --output src/autoload.php src
cat <<EOF | tee -a src/autoload.php
// Dependency' autoloader
-require_once '%{php_home}/%{ns_vendor}/RecursionContext5/autoload.php';
+require_once '%{php_home}/%{ns_vendor}/RecursionContext6/autoload.php';
EOF
@@ -109,10 +111,10 @@ phpab --template fedora --output vendor/autoload.php tests/_fixture/
: Run upstream test suite
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 \
- %{_bindir}/phpunit10 || ret=1
+ %{_bindir}/phpunit11 || ret=1
fi
done
exit $ret
@@ -129,6 +131,13 @@ exit $ret
%changelog
+* Mon Feb 5 2024 Remi Collet <remi@remirepo.net> - 6.0.0-1
+- update to 6.0.0
+- raise dependency on PHP 8.2
+- raise dependency on sebastian/recursion-context 6
+- rename to php-sebastian-exporter6
+- move to /usr/share/php/SebastianBergmann/Exporter6
+
* Mon Sep 25 2023 Remi Collet <remi@remirepo.net> - 5.1.1-1
- update to 5.1.1