summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-02-07 08:08:22 +0100
committerRemi Collet <remi@php.net>2025-02-07 08:08:22 +0100
commit1332bc2aee35255f6547160e450dfa0e91ece069 (patch)
tree3cc16bfdac8ada20811e4cc64a59dc9a8171a530
parent557807ac37eb0b0072844d4c3d119d90529bf67f (diff)
update to 6.0.0
raise dependency on PHP 8.3 rename to php-sebastian-type6 move to /usr/share/php/SebastianBergmann/Type6
-rw-r--r--composer.json8
-rw-r--r--php-sebastian-type6.spec38
2 files changed, 25 insertions, 21 deletions
diff --git a/composer.json b/composer.json
index 2c3cc10..e5b966d 100644
--- a/composer.json
+++ b/composer.json
@@ -17,14 +17,14 @@
},
"prefer-stable": true,
"require": {
- "php": ">=8.2"
+ "php": ">=8.3"
},
"require-dev": {
- "phpunit/phpunit": "^11.3"
+ "phpunit/phpunit": "^12.0"
},
"config": {
"platform": {
- "php": "8.2.0"
+ "php": "8.3.0"
},
"optimize-autoloader": true,
"sort-packages": true
@@ -45,7 +45,7 @@
},
"extra": {
"branch-alias": {
- "dev-main": "5.1-dev"
+ "dev-main": "6.0-dev"
}
}
}
diff --git a/php-sebastian-type6.spec b/php-sebastian-type6.spec
index 408ac99..a3e5428 100644
--- a/php-sebastian-type6.spec
+++ b/php-sebastian-type6.spec
@@ -1,4 +1,4 @@
-# remirepo/fedora spec file for php-sebastian-type5
+# remirepo/fedora spec file for php-sebastian-type6
#
# SPDX-FileCopyrightText: Copyright 2019-2025 Remi Collet
# SPDX-License-Identifier: CECILL-2.1
@@ -7,27 +7,27 @@
# Please, preserve the changelog entries
#
-# disabled until phpunit11 available
-%bcond_without tests
+# disabled until phpunit12 available
+%bcond_with tests
# github
-%global gh_commit 461b9c5da241511a2a0e8f240814fb23ce5c0aac
+%global gh_commit 533fe082889a616f330bcba6f50965135f4f2fab
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project type
-%global gh_date 2024-09-17
+%global gh_date 2025-02-07
# packagist
%global pk_vendor sebastian
%global pk_project %{gh_project}
-%global major 5
+%global major 6
# namespace
%global php_home %{_datadir}/php
%global ns_vendor SebastianBergmann
%global ns_project Type
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 5.1.0
-Release: 2%{?dist}
+Version: 6.0.0
+Release: 1%{?dist}
Summary: Collection of value objects that represent the types of the PHP type system, v%{major}
License: BSD-3-Clause
@@ -37,21 +37,19 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
BuildArch: noarch
-BuildRequires: php(language) >= 8.2
-BuildRequires: php-reflection
+BuildRequires: php(language) >= 8.3
# Autoloader
BuildRequires: php-fedora-autoloader-devel >= 1.0.0
%if %{with tests}
# from composer.json, "require-dev": {
-# "phpunit/phpunit": "^11.3"
-BuildRequires: phpunit11 >= 11.3
+# "phpunit/phpunit": "^12.0"
+BuildRequires: phpunit12
%endif
# from composer.json, "require": {
-# "php": ">=8.2",
-Requires: php(language) >= 8.2
+# "php": ">=8.3",
+Requires: php(language) >= 8.3
# from phpcompatinfo report for version 4.0.0
-Requires: php-reflection
# Autoloader
Requires: php-composer(fedora/autoloader)
@@ -95,10 +93,10 @@ EOF
: Run upstream test suite
ret=0
-for cmd in php php82 php83 php84; do
+for cmd in php php83 php84; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
- %{_bindir}/phpunit11 --bootstrap vendor/autoload.php --no-coverage || ret=1
+ %{_bindir}/phpunit12 --bootstrap vendor/autoload.php --no-coverage || ret=1
fi
done
exit $ret
@@ -116,6 +114,12 @@ exit $ret
%changelog
+* Fri Feb 7 2025 Remi Collet <remi@remirepo.net> - 6.0.0-1
+- update to 6.0.0
+- raise dependency on PHP 8.3
+- rename to php-sebastian-type6
+- move to /usr/share/php/SebastianBergmann/Type6
+
* Tue Feb 4 2025 Remi Collet <remi@remirepo.net> - 5.1.0-2
- enable test suite