summaryrefslogtreecommitdiffstats
path: root/php-cs-fixer.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-cs-fixer.spec')
-rw-r--r--php-cs-fixer.spec19
1 files 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
<?php
@@ -343,7 +347,7 @@ for cmdarg in "php %{phpunit}" php73 php74 php80; do
if which $cmdarg; then
set $cmdarg
$1 -d memory_limit=2G ${2:-%{_bindir}/phpunit9} \
- --filter '^((?!(testFixerContainsAllPhpunitStaticMethodsInItsList|testFix74Deprecated|testFixersPriorityPairsHaveIntegrationTest|testThereAreNoExtraFiles|testFixersDocumentationIndexFileIsUpToDate|testInheritance|testFixerDefinitions)).)*$' \
+ --filter '^((?!(testFixerContainsAllPhpunitStaticMethodsInItsList|testFix74Deprecated|testFixersPriorityPairsHaveIntegrationTest|testThereAreNoExtraFiles|testFixersDocumentationIndexFileIsUpToDate|testInheritance|testFixerDefinitions|testPatternValidation)).)*$' \
|| ret=1
fi
done
@@ -364,6 +368,9 @@ exit $ret
%changelog
+* Tue Nov 16 2021 Remi Collet <remi@remirepo.net> - 2.19.3-1
+- update to 2.19.3
+
* Thu Sep 2 2021 Remi Collet <remi@remirepo.net> - 2.19.2-1
- update to 2.19.2