diff options
author | Remi Collet <remi@remirepo.net> | 2023-02-03 15:59:25 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-02-03 15:59:25 +0100 |
commit | 1ba1f6e9e10377bbdab3fde9854806b17455827d (patch) | |
tree | efc87f2a1141ed82e4bf0a43cc9f7aa4decbc270 | |
parent | e027f4ecbba0c1a19b036cdb854cb2926d706ae9 (diff) |
update to 3.0.0
raise dependency on PHP 8.1
rename to php-sebastian-code-unit-reverse-lookup3
move to /usr/share/php/SebastianBergmann/CodeUnitReverseLookup3
-rw-r--r-- | composer.json | 10 | ||||
-rw-r--r-- | php-sebastian-code-unit-reverse-lookup3.spec | 43 |
2 files changed, 29 insertions, 24 deletions
diff --git a/composer.json b/composer.json index cff9616..37cc1cc 100644 --- a/composer.json +++ b/composer.json @@ -9,19 +9,19 @@ "email": "sebastian@phpunit.de" } ], - "prefer-stable": true, "config": { "platform": { - "php": "7.3.0" + "php": "8.1.0" }, "optimize-autoloader": true, "sort-packages": true }, + "prefer-stable": true, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "autoload": { "classmap": [ @@ -30,7 +30,7 @@ }, "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.0-dev" } } } diff --git a/php-sebastian-code-unit-reverse-lookup3.spec b/php-sebastian-code-unit-reverse-lookup3.spec index 862d1c8..cb3040d 100644 --- a/php-sebastian-code-unit-reverse-lookup3.spec +++ b/php-sebastian-code-unit-reverse-lookup3.spec @@ -1,13 +1,16 @@ -# remirepo/fedora spec file for php-sebastian-code-unit-reverse-lookup2 +# remirepo/fedora spec file for php-sebastian-code-unit-reverse-lookup3 # -# Copyright (c) 2016-2020 Remi Collet +# Copyright (c) 2016-2023 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global bootstrap 0 -%global gh_commit ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5 + +# disabled until phpunit10 available +%bcond_with tests + +%global gh_commit 5e3a687f7d8ae33fb362c5c0743794bbb2420a1d %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project code-unit-reverse-lookup @@ -17,16 +20,11 @@ # Namespace %global ns_vendor SebastianBergmann %global ns_project CodeUnitReverseLookup -%global major 2 +%global major 3 %global php_home %{_datadir}/php -%if %{bootstrap} -%bcond_with tests -%else -%bcond_without tests -%endif Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 2.0.3 +Version: 3.0.0 Release: 1%{?dist} Summary: Looks up which function or method a line of code belongs to, version %{major} @@ -36,18 +34,19 @@ Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh BuildArch: noarch -BuildRequires: php(language) >= 7.3 +BuildRequires: php(language) >= 8.1 +BuildRequires: php-reflection BuildRequires: php-fedora-autoloader-devel %if %{with tests} # from composer.json, "require-dev": { -# "phpunit/phpunit": "^9.3" -BuildRequires: phpunit9 >= 9.3 +# "phpunit/phpunit": "^10.0" +BuildRequires: phpunit10 %endif # from composer.json, "require": { -# "php": ">=7.3" -Requires: php(language) >= 7.3 -# From phpcompatinfo report for version 2.0.0 +# "php": ">=8.1" +Requires: php(language) >= 8.1 +# From phpcompatinfo report for version 3.0.0 Requires: php-reflection # Autoloader Requires: php-composer(fedora/autoloader) @@ -82,10 +81,10 @@ touch vendor/autoload.php : Run upstream test suite ret=0 -for cmd in php php73 php74 php80; do +for cmd in php php81 php82; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ - %{_bindir}/phpunit9 --verbose || ret=1 + %{_bindir}/phpunit10 --verbose || ret=1 fi done exit $ret @@ -105,6 +104,12 @@ exit $ret %changelog +* Fri Feb 3 2023 Remi Collet <remi@remirepo.net> - 3.0.0-1 +- update to 3.0.0 +- raise dependency on PHP 8.1 +- rename to php-sebastian-code-unit-reverse-lookup3 +- move to /usr/share/php/SebastianBergmann/CodeUnitReverseLookup3 + * Mon Sep 28 2020 Remi Collet <remi@remirepo.net> - 2.0.3-1 - update to 2.0.3 (no change) |