From 9a03d2fa2a5c1dc527b34f368093fb045fa020d1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 16 Nov 2021 08:06:12 +0100 Subject: update to 2.19.3 --- php-cs-fixer.spec | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/php-cs-fixer.spec b/php-cs-fixer.spec index 5842624..146e29d 100644 --- a/php-cs-fixer.spec +++ b/php-cs-fixer.spec @@ -10,13 +10,17 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit d5c737c2e18ba502b75b44832b31fe627f82e307 +%global gh_commit 75ac86f33fab4714ea5a39a396784d83ae3b5ed8 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20150717 %global gh_owner FriendsOfPHP %global gh_project PHP-CS-Fixer %global php_home %{_datadir}/php -%global with_tests 0%{!?_without_tests:1} +%if 0%{?fedora} >= 36 +%bcond_with tests +%else +%bcond_without tests +%endif # Bundled this fork which is not designed for use outside of php-cs-fixer # https://github.com/PHP-CS-Fixer/diff/releases @@ -26,7 +30,7 @@ %global gh_diff_short %(c=%{gh_diff_commit}; echo ${c:0:7}) Name: php-cs-fixer -Version: 2.19.2 +Version: 2.19.3 Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist} Summary: A tool to automatically fix PHP code style @@ -41,7 +45,7 @@ Source2: makesrc.sh Patch0: %{name}-autoload.patch BuildArch: noarch -%if %{with_tests} +%if %{with tests} # For tests # as we use phpunit9 BuildRequires: php(language) >= 7.3 @@ -284,7 +288,7 @@ install -Dpm755 %{name} %{buildroot}%{_bindir}/%{name} %check -%if %{with_tests} +%if %{with tests} mkdir vendor cat << 'EOF' | tee vendor/autoload.php - 2.19.3-1 +- update to 2.19.3 + * Thu Sep 2 2021 Remi Collet - 2.19.2-1 - update to 2.19.2 -- cgit