diff --git a/.gitignore b/.gitignore index 67d9db8..9ef9454 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +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 8b4ce53..067b511 100644 --- a/php-sebastian-complexity.spec +++ b/php-sebastian-complexity.spec @@ -1,19 +1,15 @@ # 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 # -%bcond_with bootstrap -%if %{with bootstrap} -%bcond_with tests -%else %bcond_without tests -%endif + # github -%global gh_commit 33fcd6a26656c6546f70871244ecba4b4dced097 +%global gh_commit 25f207c40d62b8b7aa32f5ab026c53561964053a %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project complexity @@ -27,11 +23,11 @@ %global ns_project Complexity Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 2.0.0 -Release: 1%{?dist} -Summary: Calculating the complexity of PHP code units +Version: 2.0.3 +Release: 7%{?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 @@ -39,21 +35,21 @@ 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 %if %{with tests} # from composer.json, "require-dev": { -# "phpunit/phpunit": "^9.2" -BuildRequires: phpunit9 >= 9.2 +# "phpunit/phpunit": "^9.3" +BuildRequires: phpunit9 >= 9.3 %endif # from composer.json, "require": { -# "php": "^7.3 || ^8.0", -# "nikic/php-parser": "^4.7" +# "php": ">=7.3", +# "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 @@ -65,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} @@ -76,7 +76,10 @@ 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 03f36fc..33aeadc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-sebastian-complexity-2.0.0-33fcd6a.tgz) = 60747cde6012c33ac4cab78bb04b98f1dab3eb72f07ee1836238af842c37b450b329744ab4143848ba5076e9ed87dd09799c6c485f01b2609ee20b0716fa99a2 +SHA512 (php-sebastian-complexity-2.0.3-25f207c.tgz) = 9905a84ed6d45092533d3ebf0eb51b8deb5d7174c61ef45a6efa4ea690a042716a46a58c8c7c3b90b321b873d713dc3224a49677b2298c40caa2feb771a21418