diff --git a/.gitignore b/.gitignore index 42fa6e4..140e7cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -/tokenizer-1.1.0-cb2f008.tar.gz +clog +/tokenizer-1.1.1-06b6ce4.tar.gz +/tokenizer-1.1.2-1c42705.tar.gz +/tokenizer-1.1.3-11336f6.tar.gz diff --git a/php-theseer-tokenizer.spec b/php-theseer-tokenizer.spec index be9a966..7bcf850 100644 --- a/php-theseer-tokenizer.spec +++ b/php-theseer-tokenizer.spec @@ -1,12 +1,12 @@ # remirepo/fedora spec file for php-theseer-tokenizer # -# Copyright (c) 2017 Remi Collet +# Copyright (c) 2017-2019 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit cb2f008f3f05af2893a87208fe6a6c4985483f8b +%global gh_commit 11336f6f84e16a720dae9d8e6ed5019efa85a0f9 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_vendor theseer %global gh_project tokenizer @@ -14,8 +14,8 @@ %global ns_project Tokenizer Name: php-%{gh_vendor}-%{gh_project} -Version: 1.1.0 -Release: 4%{?dist} +Version: 1.1.3 +Release: 1%{?dist} Summary: Library for converting tokenized PHP source code into XML Group: Development/Libraries @@ -33,7 +33,8 @@ BuildRequires: php-spl # Autoloader BuildRequires: php-fedora-autoloader-devel >= 1.0.0 # Tests -BuildRequires: phpunit6 +%global phpunit %{_bindir}/phpunit7 +BuildRequires: %{phpunit} # From composer.json, "require": { # "php": "^7.0", @@ -65,7 +66,7 @@ Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php %build : Generate a simple classmap autoloader -%{_bindir}/phpab --template fedora2 --output src/autoload.php src +%{_bindir}/phpab --template fedora --output src/autoload.php src %install @@ -75,19 +76,18 @@ cp -pr src %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project} %check ret=0 -for cmd in php php70 php71 php72; do - if which $cmd; then - $cmd -d include_path=.:%{buildroot}%{php_home}:%{php_home} \ - %{_bindir}/phpunit6 \ - --bootstrap %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php \ - --no-coverage --verbose || ret=1 +for cmdarg in "php %{phpunit}" php71 php72 php73 php74; do + if which $cmdarg; then + set $cmdarg + $1 -d auto_prepend_file=%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php \ + ${2:-%{_bindir}/phpunit7} \ + --no-coverage --verbose || ret=1 fi done exit $ret %files -%{!?_licensedir:%global license %%doc} %license LICENSE %doc README.md composer.json %dir %{_datadir}/php/%{ns_vendor} @@ -95,6 +95,17 @@ exit $ret %changelog +* Fri Jun 14 2019 Remi Collet - 1.1.3-1 +- update to 1.1.3 + +* Thu Apr 4 2019 Remi Collet - 1.1.2-1 +- update to 1.1.2 (no change) +- switch back to phpunit 7 + +* Thu Apr 4 2019 Remi Collet - 1.1.1-1 +- update to 1.1.1 +- use phpunit8 + * Fri Jul 13 2018 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index 1e24f10..b8044b1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tokenizer-1.1.0-cb2f008.tar.gz) = ab6a8dde2296ccf7ffda86c8906b6d546309c442611f12e87b829b44635a8cd17a6cdd834d21ba33b7f346561420739dd81cf2293ba52900f121c0c4311dbed2 +SHA512 (tokenizer-1.1.3-11336f6.tar.gz) = 08f39ab9927830f8f434acef3ccb594f7aaccaa205dba239844a5acea835ec84bea4e96bf36f2940a68003ce94af1cb3d2513f59686762f7ab8f411e64554ad9