diff --git a/.gitignore b/.gitignore index d94e1f7..6172544 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ /php-sebastian-type5-5.0.0-b850278.tgz /php-sebastian-type5-5.0.1-fb6a656.tgz /php-sebastian-type5-5.1.0-461b9c5.tgz -/php-sebastian-type5-5.1.2-a8a7e30.tgz -/php-sebastian-type5-5.1.3-f77d2d4.tgz diff --git a/php-sebastian-type5.spec b/php-sebastian-type5.spec index 00a4026..60f2b59 100644 --- a/php-sebastian-type5.spec +++ b/php-sebastian-type5.spec @@ -1,21 +1,21 @@ # remirepo/fedora spec file for php-sebastian-type5 # -# SPDX-FileCopyrightText: Copyright 2019-2025 Remi Collet -# SPDX-License-Identifier: CECILL-2.1 -# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +# Copyright (c) 2019-2024 Remi Collet +# License: CC-BY-SA-4.0 +# http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # # disabled until phpunit11 available -%bcond_without tests +%bcond_with tests # github -%global gh_commit f77d2d4e78738c98d9a68d2596fe5e8fa380f449 +%global gh_commit 461b9c5da241511a2a0e8f240814fb23ce5c0aac %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project type -%global gh_date 2025-08-09 +%global gh_date 2024-09-17 # packagist %global pk_vendor sebastian %global pk_project %{gh_project} @@ -26,7 +26,7 @@ %global ns_project Type Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 5.1.3 +Version: 5.1.0 Release: 1%{?dist} Summary: Collection of value objects that represent the types of the PHP type system, v%{major} @@ -38,6 +38,7 @@ Source1: makesrc.sh BuildArch: noarch BuildRequires: php(language) >= 8.2 +BuildRequires: php-reflection # Autoloader BuildRequires: php-fedora-autoloader-devel >= 1.0.0 %if %{with tests} @@ -50,6 +51,7 @@ BuildRequires: phpunit11 >= 11.3 # "php": ">=8.2", Requires: php(language) >= 8.2 # from phpcompatinfo report for version 4.0.0 +Requires: php-reflection # Autoloader Requires: php-composer(fedora/autoloader) @@ -93,7 +95,7 @@ EOF : Run upstream test suite ret=0 -for cmd in php php82 php83 php84 php85; do +for cmd in php php82 php83 php84; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ %{_bindir}/phpunit11 --bootstrap vendor/autoload.php --no-coverage || ret=1 @@ -114,27 +116,9 @@ exit $ret %changelog -* Sun Aug 10 2025 Remi Collet - 5.1.3-1 -- update to 5.1.3 (no change) - -* Fri Jul 25 2025 Fedora Release Engineering - 5.1.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Tue Mar 18 2025 Remi Collet - 5.1.2-1 -- update to 5.1.2 - -* Tue Feb 4 2025 Remi Collet - 5.1.0-3 -- enable test suite - -* Sat Jan 18 2025 Fedora Release Engineering - 5.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - * Wed Sep 18 2024 Remi Collet - 5.1.0-1 - update to 5.1.0 -* Fri Jul 19 2024 Fedora Release Engineering - 5.0.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - * Wed Jul 3 2024 Remi Collet - 5.0.1-1 - update to 5.0.1 diff --git a/sources b/sources index 4bbdfac..7334e2d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-sebastian-type5-5.1.3-f77d2d4.tgz) = b255ec908b26d8af9533d7a42ddec3d8273e69e1f9d8feefc21e32a34ae9b8a2c708c566bc86e78d6cb0f06a76b7f48edcee209fbcee92ed8b49f017ce655004 +SHA512 (php-sebastian-type5-5.1.0-461b9c5.tgz) = 96b6f90eacd88982fcdcf0cb465e1e6025ab013f9abcfb95bd593738c6f75bd4cd4c5c1e53ee7431f8d05fa6d12a57f1d5b651cafc17753cff68bfb36a5fc835