diff --git a/.gitignore b/.gitignore index 9ef9454..d3d6059 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /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 067b511..8cc07dd 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-2023 Remi Collet -# License: CC-BY-SA-4.0 +# Copyright (c) 2020 Remi Collet +# License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries @@ -9,7 +9,7 @@ %bcond_without tests # github -%global gh_commit 25f207c40d62b8b7aa32f5ab026c53561964053a +%global gh_commit 739b35e53379900cc9ac327b2147867b8b6efd88 %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.3 -Release: 7%{?dist} -Summary: Calculating the complexity of PHP code units, version 2 +Version: 2.0.2 +Release: 1%{?dist} +Summary: Calculating the complexity of PHP code units -License: BSD-3-Clause +License: BSD 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.18 with php-composer(nikic/php-parser) < 6) +BuildRequires: (php-composer(nikic/php-parser) >= 4.7 with php-composer(nikic/php-parser) < 5) 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.18 || ^5.0" +# "nikic/php-parser": "^4.7" Requires: php(language) >= 7.3 -Requires: (php-composer(nikic/php-parser) >= 4.18 with php-composer(nikic/php-parser) < 6) +Requires: (php-composer(nikic/php-parser) >= 4.7 with php-composer(nikic/php-parser) < 5) # from phpcompatinfo report for version 2.0.0 Requires: php-spl # Autoloader @@ -61,10 +61,6 @@ 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} @@ -76,10 +72,7 @@ phpab --template fedora --output src/autoload.php src cat < - 2.0.3-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Sat Jan 18 2025 Fedora Release Engineering - 2.0.3-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Fri Jul 19 2024 Fedora Release Engineering - 2.0.3-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Mon Jan 29 2024 Fedora Release Engineering - 2.0.3-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Thu Jan 25 2024 Fedora Release Engineering - 2.0.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sun Jan 21 2024 Fedora Release Engineering - 2.0.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Dec 22 2023 Remi Collet - 2.0.3-1 -- update to 2.0.3 -- raise dependency on nikic/php-parser 4.18 and allow 5.0 - -* Fri Jul 21 2023 Fedora Release Engineering - 2.0.2-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Fri Apr 21 2023 Remi Collet - 2.0.2-7 -- 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 - -* Fri Jul 22 2022 Fedora Release Engineering - 2.0.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Fri Jan 21 2022 Fedora Release Engineering - 2.0.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering - 2.0.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Wed Jan 27 2021 Fedora Release Engineering - 2.0.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - * Tue Oct 27 2020 Remi Collet - 2.0.2-1 - update to 2.0.2 -* Mon Sep 28 2020 Remi Collet - 2.0.1-1 -- update to 2.0.1 (no change) - * Mon Aug 10 2020 Remi Collet - 2.0.0-1 - initial package diff --git a/sources b/sources index 33aeadc..cd003af 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-sebastian-complexity-2.0.3-25f207c.tgz) = 9905a84ed6d45092533d3ebf0eb51b8deb5d7174c61ef45a6efa4ea690a042716a46a58c8c7c3b90b321b873d713dc3224a49677b2298c40caa2feb771a21418 +SHA512 (php-sebastian-complexity-2.0.2-739b35e.tgz) = e023347d3d562db234ed3f1d51acaa616d525d7d9f2cf498e52458843870dac6b572bdf57605e40ddef5c4f690a8c6d7903c11ecffffc9cf1b9793a5414d095f