diff options
-rw-r--r-- | composer.json | 12 | ||||
-rw-r--r-- | php-sebastian-code-unit-reverse-lookup4.spec | 36 |
2 files changed, 30 insertions, 18 deletions
diff --git a/composer.json b/composer.json index 37cc1cc..bf05a9e 100644 --- a/composer.json +++ b/composer.json @@ -9,19 +9,23 @@ "email": "sebastian@phpunit.de" } ], + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "security": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/security/policy" + }, "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" }, "autoload": { "classmap": [ @@ -30,7 +34,7 @@ }, "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "4.0-dev" } } } diff --git a/php-sebastian-code-unit-reverse-lookup4.spec b/php-sebastian-code-unit-reverse-lookup4.spec index 2384c84..8bbf564 100644 --- a/php-sebastian-code-unit-reverse-lookup4.spec +++ b/php-sebastian-code-unit-reverse-lookup4.spec @@ -1,30 +1,32 @@ -# remirepo/fedora spec file for php-sebastian-code-unit-reverse-lookup3 +# remirepo/fedora spec file for php-sebastian-code-unit-reverse-lookup4 # -# Copyright (c) 2016-2023 Remi Collet +# Copyright (c) 2016-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 5e3a687f7d8ae33fb362c5c0743794bbb2420a1d +%global gh_commit df80c875d3e459b45c6039e4d9b71d4fbccae25d %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project code-unit-reverse-lookup +%global gh_date 2024-02-02 # Packagist %global pk_vendor sebastian %global pk_project %{gh_project} # Namespace %global ns_vendor SebastianBergmann %global ns_project CodeUnitReverseLookup -%global major 3 +%global major 4 %global php_home %{_datadir}/php Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 3.0.0 -Release: 3%{?dist} +Version: 4.0.0 +Release: 1%{?dist} Summary: Looks up which function or method a line of code belongs to, version %{major} License: BSD-3-Clause @@ -33,18 +35,18 @@ Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh BuildArch: noarch -BuildRequires: php(language) >= 8.1 +BuildRequires: php(language) >= 8.2 BuildRequires: php-reflection 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 version 3.0.0 Requires: php-reflection # Autoloader @@ -82,10 +84,10 @@ touch vendor/autoload.php : 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 @@ -105,6 +107,12 @@ exit $ret %changelog +* Mon Feb 5 2024 Remi Collet <remi@remirepo.net> - 4.0.0-1 +- update to 4.0.0 +- raise dependency on PHP 8.2 +- rename to php-sebastian-code-unit-reverse-lookup4 +- move to /usr/share/php/SebastianBergmann/CodeUnitReverseLookup4 + * Wed Aug 23 2023 Remi Collet <remi@remirepo.net> - 3.0.0-3 - Enable test suite |