diff --git a/.gitignore b/.gitignore index 9aae347..b6b5df0 100644 --- a/.gitignore +++ b/.gitignore @@ -26,8 +26,3 @@ clog /php-nikic-php-parser4-4.15.5-11e2663.tgz /php-nikic-php-parser4-4.16.0-19526a3.tgz /php-nikic-php-parser4-4.17.1-a6303e5.tgz -/php-nikic-php-parser4-4.18.0-1bcbb21.tgz -/php-nikic-php-parser4-4.19.1-4e1b88d.tgz -/php-nikic-php-parser4-4.19.2-0ed4c89.tgz -/php-nikic-php-parser4-4.19.4-715f4d2.tgz -/php-nikic-php-parser4-4.19.5-51bd93c.tgz diff --git a/php-nikic-php-parser4.spec b/php-nikic-php-parser4.spec index 5658e8c..d06a334 100644 --- a/php-nikic-php-parser4.spec +++ b/php-nikic-php-parser4.spec @@ -1,12 +1,14 @@ # remirepo/fedora spec file for php-nikic-php-parser4 # -# SPDX-FileCopyrightText: Copyright 2016-2025 Remi Collet -# SPDX-License-Identifier: CECILL-2.1 -# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +# Copyright (c) 2016-2023 Remi Collet +# License: CC-BY-SA-4.0 +# http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # +# For compatibility with SCL +%undefine __brp_mangle_shebangs %if 0%{?fedora} %bcond_without tests @@ -15,7 +17,7 @@ %bcond_with tests %endif -%global gh_commit 51bd93cc741b7fc3d63d20b6bdcd99fdaa359837 +%global gh_commit a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner nikic %global gh_project PHP-Parser @@ -25,7 +27,7 @@ %global major 4 Name: php-%{gh_owner}-%{pk_project}%{major} -Version: 4.19.5 +Version: 4.17.1 Release: 1%{?dist} Summary: A PHP parser written in PHP - version %{major} @@ -49,7 +51,7 @@ BuildRequires: php-json BuildRequires: php-pcre BuildRequires: php-spl # From composer.json, "require-dev": { -# "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", +# "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0", # "ircmaxell/php-yacc": "0.0.7" %global phpunit %{_bindir}/phpunit9 BuildRequires: phpunit9 @@ -58,9 +60,9 @@ BuildRequires: phpunit9 BuildRequires: php-fedora-autoloader-devel # From composer.json, "require": { -# "php": ">=7.1", +# "php": ">=7.0", # "ext-tokenizer": "*" -Requires: php(language) >= 7.1 +Requires: php(language) >= 7.0 Requires: php-tokenizer # From phpcompatinfo report for version 4.0.0 Requires: php-reflection @@ -126,7 +128,7 @@ AUTOLOAD FILTER="--filter '^((?!(testLexNewFeatures)).)*$'" ret=0 -for cmdarg in "php %{phpunit}" php81 php82 php83 php84 php85; do +for cmdarg in "php %{phpunit}" php80 php81 php82 php83; do if which $cmdarg; then set $cmdarg $1 -d include_path=%{php_home} \ @@ -149,44 +151,9 @@ exit $ret %changelog -* Tue Dec 9 2025 Remi Collet - 4.19.5-1 -- update to 4.19.5 -- re-license spec file to CECILL-2.1 - -* Fri Jul 25 2025 Fedora Release Engineering - 4.19.4-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Sat Jan 18 2025 Fedora Release Engineering - 4.19.4-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Mon Sep 30 2024 Remi Collet - 4.19.4-1 -- update to 4.19.4 - -* Wed Sep 18 2024 Remi Collet - 4.19.2-1 -- update to 4.19.2 - -* Fri Jul 19 2024 Fedora Release Engineering - 4.19.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Tue Mar 19 2024 Remi Collet - 4.19.1-1 -- update to 4.19.1 -- raise dependency on PHP 7.1 - -* Thu Jan 25 2024 Fedora Release Engineering - 4.18.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sun Jan 21 2024 Fedora Release Engineering - 4.18.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Mon Dec 11 2023 Remi Collet - 4.18.0-1 -- update to 4.18.0 - * Fri Aug 18 2023 Remi Collet - 4.17.1-1 - update to 4.17.1 -* Fri Jul 21 2023 Fedora Release Engineering - 4.16.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - * Mon Jun 26 2023 Remi Collet - 4.16.0-1 - update to 4.16.0 @@ -196,9 +163,6 @@ exit $ret * Mon Mar 6 2023 Remi Collet - 4.15.4-1 - update to 4.15.4 -* Fri Jan 20 2023 Fedora Release Engineering - 4.15.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - * Tue Jan 17 2023 Remi Collet - 4.15.3-1 - update to 4.15.3 diff --git a/sources b/sources index 619d1c0..777f98b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-nikic-php-parser4-4.19.5-51bd93c.tgz) = 739cb8134ca83bfaeb8189dc40ef7603e2c7c7813d28841b279306f6e2d3f77910eb5033aae0c2bad0f38d0dc6490953cc3518bf433c4f99cecf2007c10d17cc +SHA512 (php-nikic-php-parser4-4.17.1-a6303e5.tgz) = b8bfdfd482af7cafdde18105b9d577ca91ea683389471ccddca5d7fb1241ef19650f7b4508f930b4537fc7a0742ba7a75e675d749419448d2fe3c5f47d536f5d