diff --git a/.gitignore b/.gitignore index d3d6059..9ef9454 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /php-sebastian-complexity-2.0.0-33fcd6a.tgz /php-sebastian-complexity-2.0.1-ba8cc2d.tgz /php-sebastian-complexity-2.0.2-739b35e.tgz +/php-sebastian-complexity-2.0.3-25f207c.tgz diff --git a/php-sebastian-complexity.spec b/php-sebastian-complexity.spec index 0701757..8df7746 100644 --- a/php-sebastian-complexity.spec +++ b/php-sebastian-complexity.spec @@ -1,7 +1,7 @@ # remirepo/fedora spec file for php-sebastian-complexity # -# Copyright (c) 2020 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2020-2023 Remi Collet +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries @@ -9,7 +9,7 @@ %bcond_without tests # github -%global gh_commit 739b35e53379900cc9ac327b2147867b8b6efd88 +%global gh_commit 25f207c40d62b8b7aa32f5ab026c53561964053a %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project complexity @@ -23,11 +23,11 @@ %global ns_project Complexity Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 2.0.2 -Release: 6%{?dist} -Summary: Calculating the complexity of PHP code units +Version: 2.0.3 +Release: 1%{?dist} +Summary: Calculating the complexity of PHP code units, version 2 -License: BSD +License: BSD-3-Clause URL: https://github.com/%{gh_owner}/%{gh_project} # git snapshot to retrieve test suite Source0: %{name}-%{version}-%{gh_short}.tgz @@ -35,7 +35,7 @@ Source1: makesrc.sh BuildArch: noarch BuildRequires: php(language) >= 7.3 -BuildRequires: (php-composer(nikic/php-parser) >= 4.7 with php-composer(nikic/php-parser) < 5) +BuildRequires: (php-composer(nikic/php-parser) >= 4.18 with php-composer(nikic/php-parser) < 6) BuildRequires: php-spl # Autoloader BuildRequires: php-fedora-autoloader-devel >= 1.0.0 @@ -47,9 +47,9 @@ BuildRequires: phpunit9 >= 9.3 # from composer.json, "require": { # "php": ">=7.3", -# "nikic/php-parser": "^4.7" +# "nikic/php-parser": "^4.18 || ^5.0" Requires: php(language) >= 7.3 -Requires: (php-composer(nikic/php-parser) >= 4.7 with php-composer(nikic/php-parser) < 5) +Requires: (php-composer(nikic/php-parser) >= 4.18 with php-composer(nikic/php-parser) < 6) # from phpcompatinfo report for version 2.0.0 Requires: php-spl # Autoloader @@ -61,6 +61,10 @@ Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version} %description Library for calculating the complexity of PHP code units. +This package provides version 2 of %{pk_vendor}/%{pk_project} library. + +Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php + %prep %setup -q -n %{gh_project}-%{gh_commit} @@ -72,7 +76,10 @@ phpab --template fedora --output src/autoload.php src cat < - 2.0.3-1 +- update to 2.0.3 +- raise dependency on nikic/php-parser 4.18 and allow 5.0 +- use SPDX License id + * Fri Jan 20 2023 Fedora Release Engineering - 2.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index cd003af..33aeadc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-sebastian-complexity-2.0.2-739b35e.tgz) = e023347d3d562db234ed3f1d51acaa616d525d7d9f2cf498e52458843870dac6b572bdf57605e40ddef5c4f690a8c6d7903c11ecffffc9cf1b9793a5414d095f +SHA512 (php-sebastian-complexity-2.0.3-25f207c.tgz) = 9905a84ed6d45092533d3ebf0eb51b8deb5d7174c61ef45a6efa4ea690a042716a46a58c8c7c3b90b321b873d713dc3224a49677b2298c40caa2feb771a21418