|
|
@ -13,8 +13,8 @@
|
|
|
|
%global pear_name PHP_CodeSniffer
|
|
|
|
%global pear_name PHP_CodeSniffer
|
|
|
|
|
|
|
|
|
|
|
|
Name: php-pear-PHP-CodeSniffer
|
|
|
|
Name: php-pear-PHP-CodeSniffer
|
|
|
|
Version: 3.4.2
|
|
|
|
Version: 3.5.0
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: PHP coding standards enforcement tool
|
|
|
|
Summary: PHP coding standards enforcement tool
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
@ -86,9 +86,12 @@ install -pm 644 %{pear_name}.xml %{buildroot}%{pear_xmldir}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
cd %{pear_name}-%{version}
|
|
|
|
cd %{pear_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# fails with js: Couldn't read source file
|
|
|
|
|
|
|
|
rm src/Standards/Generic/Tests/Debug/JSHintUnitTest.*
|
|
|
|
|
|
|
|
|
|
|
|
# Version 3.4.0: Tests: 364, Assertions: 419, Skipped: 3.
|
|
|
|
# Version 3.4.0: Tests: 364, Assertions: 419, Skipped: 3.
|
|
|
|
ret=0
|
|
|
|
ret=0
|
|
|
|
for cmdarg in "php %{phpunit}" "php70 %{_bindir}/phpunit6" php71 php72 php73; do
|
|
|
|
for cmdarg in "php %{phpunit}" php71 php72 php73 php74; do
|
|
|
|
if which $cmdarg; then
|
|
|
|
if which $cmdarg; then
|
|
|
|
set $cmdarg
|
|
|
|
set $cmdarg
|
|
|
|
$1 -d memory_limit=1G ${2:-%{_bindir}/phpunit7} --verbose || ret=1
|
|
|
|
$1 -d memory_limit=1G ${2:-%{_bindir}/phpunit7} --verbose || ret=1
|
|
|
@ -119,6 +122,9 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Sep 27 2019 Remi Collet <remi@remirepo.net> - 3.5.0-1
|
|
|
|
|
|
|
|
- update to 3.5.0
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-2
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|