diff options
| -rw-r--r-- | php-theseer-tokenizer.spec | 39 |
1 files changed, 28 insertions, 11 deletions
diff --git a/php-theseer-tokenizer.spec b/php-theseer-tokenizer.spec index 1a5e3b7..a8cd60d 100644 --- a/php-theseer-tokenizer.spec +++ b/php-theseer-tokenizer.spec @@ -1,12 +1,14 @@ # remirepo/fedora spec file for php-theseer-tokenizer # -# Copyright (c) 2017-2023 Remi Collet -# License: CC-BY-SA-4.0 -# http://creativecommons.org/licenses/by-sa/4.0/ +# SPDX-FileCopyrightText: Copyright 2017-2025 Remi Collet +# SPDX-License-Identifier: CECILL-2.1 +# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # # Please, preserve the changelog entries # -%global gh_commit 34a41e998c2183e22995f158c581e7b5e755ab9e +%bcond_without tests + +%global gh_commit b7489ce515e168639d17feec34b8847c326b0b3c %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_vendor theseer %global gh_project tokenizer @@ -14,8 +16,8 @@ %global ns_project Tokenizer Name: php-%{gh_vendor}-%{gh_project} -Version: 1.2.1 -Release: 5%{?dist} +Version: 1.3.1 +Release: 1%{?dist} Summary: Library for converting tokenized PHP source code into XML License: BSD-3-Clause @@ -30,10 +32,12 @@ BuildRequires: php-dom BuildRequires: php-tokenizer BuildRequires: php-pcre BuildRequires: php-spl -# Autoloader -BuildRequires: php-fedora-autoloader-devel >= 1.0.0 +%if %{with tests} # Tests BuildRequires: phpunit9 +%endif +# Autoloader +BuildRequires: php-fedora-autoloader-devel >= 1.0.0 # From composer.json, "require": { # "php": "^7.0 || ^8.0", @@ -73,9 +77,10 @@ mkdir -p %{buildroot}%{_datadir}/php/%{ns_vendor} cp -pr src %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project} +%if %{with tests} %check ret=0 -for cmdarg in php php80 php81 php82; do +for cmdarg in php php81 php82 php83 php84 php85; do if which $cmdarg; then $cmdarg -d auto_prepend_file=%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php \ %{_bindir}/phpunit9 \ @@ -83,11 +88,10 @@ for cmdarg in php php80 php81 php82; do fi done exit $ret +%endif %files -# remirepo:1 -%{!?_licensedir:%global license %%doc} %license LICENSE %doc README.md composer.json %dir %{_datadir}/php/%{ns_vendor} @@ -95,6 +99,19 @@ exit $ret %changelog +* Wed Nov 19 2025 Remi Collet <remi@remirepo.net> - 1.3.1-1 +- update to 1.3.1 + +* Fri Nov 14 2025 Remi Collet <remi@remirepo.net> - 1.3.0-1 +- update to 1.3.0 +- re-license spec file to CECILL-2.1 + +* Tue Mar 5 2024 Remi Collet <remi@remirepo.net> - 1.2.3-1 +- update to 1.2.3 + +* Mon Nov 20 2023 Remi Collet <remi@remirepo.net> - 1.2.2-1 +- update to 1.2.2 + * Thu Apr 20 2023 Remi Collet <remi@remirepo.net> - 1.2.1-5 - use SPDX license ID - switch to phpunit9 |
