|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
# spec file for php-pear-PHP-CodeSniffer
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2013-2019 Remi Collet
|
|
|
|
|
# Copyright (c) 2013-2020 Remi Collet
|
|
|
|
|
# Copyright (c) 2009-2013 Christof Damian
|
|
|
|
|
# Copyright (c) 2006-2009 Konstantin Ryabitsev
|
|
|
|
|
#
|
|
|
|
@ -13,8 +13,8 @@
|
|
|
|
|
%global pear_name PHP_CodeSniffer
|
|
|
|
|
|
|
|
|
|
Name: php-pear-PHP-CodeSniffer
|
|
|
|
|
Version: 3.5.3
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 3.5.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: PHP coding standards enforcement tool
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
@ -86,6 +86,10 @@ install -pm 644 %{pear_name}.xml %{buildroot}%{pear_xmldir}
|
|
|
|
|
%check
|
|
|
|
|
cd %{pear_name}-%{version}
|
|
|
|
|
|
|
|
|
|
# fix broken pear detection (may use export PHP_CODESNIFFER_PEAR=1 if PR accepted)
|
|
|
|
|
# https://github.com/squizlabs/PHP_CodeSniffer/pull/2847
|
|
|
|
|
sed -e '/PHP_CODESNIFFER_PEAR/s/false/true/' -i tests/AllTests.php
|
|
|
|
|
|
|
|
|
|
# fails with js: Couldn't read source file
|
|
|
|
|
rm src/Standards/Generic/Tests/Debug/JSHintUnitTest.*
|
|
|
|
|
|
|
|
|
@ -94,7 +98,8 @@ ret=0
|
|
|
|
|
for cmdarg in "php %{phpunit}" php71 php72 php73 php74; do
|
|
|
|
|
if which $cmdarg; then
|
|
|
|
|
set $cmdarg
|
|
|
|
|
$1 -d memory_limit=1G ${2:-%{_bindir}/phpunit7} --verbose || ret=1
|
|
|
|
|
$1 -d memory_limit=1G ${2:-%{_bindir}/phpunit7} \
|
|
|
|
|
--verbose || ret=1
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
exit $ret
|
|
|
|
@ -122,6 +127,11 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jan 31 2020 Remi Collet <remi@remirepo.net> - 3.5.4-1
|
|
|
|
|
- update to 3.5.4
|
|
|
|
|
- fix test suite from
|
|
|
|
|
https://github.com/squizlabs/PHP_CodeSniffer/pull/2847
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|