|
|
@ -13,7 +13,7 @@
|
|
|
|
%global pear_name PHP_CodeSniffer
|
|
|
|
%global pear_name PHP_CodeSniffer
|
|
|
|
|
|
|
|
|
|
|
|
Name: php-pear-PHP-CodeSniffer
|
|
|
|
Name: php-pear-PHP-CodeSniffer
|
|
|
|
Version: 3.3.2
|
|
|
|
Version: 3.4.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: PHP coding standards enforcement tool
|
|
|
|
Summary: PHP coding standards enforcement tool
|
|
|
|
|
|
|
|
|
|
|
@ -25,11 +25,7 @@ BuildArch: noarch
|
|
|
|
BuildRequires: php(language) >= 5.4
|
|
|
|
BuildRequires: php(language) >= 5.4
|
|
|
|
BuildRequires: php-pear
|
|
|
|
BuildRequires: php-pear
|
|
|
|
# to run test suite
|
|
|
|
# to run test suite
|
|
|
|
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
|
|
|
|
|
|
|
|
%global phpunit %{_bindir}/phpunit7
|
|
|
|
%global phpunit %{_bindir}/phpunit7
|
|
|
|
%else
|
|
|
|
|
|
|
|
%global phpunit %{_bindir}/phpunit6
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: %{phpunit}
|
|
|
|
BuildRequires: %{phpunit}
|
|
|
|
|
|
|
|
|
|
|
|
Requires(post): %{__pear}
|
|
|
|
Requires(post): %{__pear}
|
|
|
@ -90,7 +86,7 @@ install -pm 644 %{pear_name}.xml %{buildroot}%{pear_xmldir}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
cd %{pear_name}-%{version}
|
|
|
|
cd %{pear_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
# Version 3.3.2: Tests: 354, Assertions: 410, 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}" "php70 %{_bindir}/phpunit6" php71 php72 php73; do
|
|
|
|
if which $cmdarg; then
|
|
|
|
if which $cmdarg; then
|
|
|
@ -123,6 +119,9 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Dec 20 2018 Remi Collet <remi@remirepo.net> - 3.4.0-1
|
|
|
|
|
|
|
|
- update to 3.4.0
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 24 2018 Remi Collet <remi@remirepo.net> - 3.3.2-1
|
|
|
|
* Mon Sep 24 2018 Remi Collet <remi@remirepo.net> - 3.3.2-1
|
|
|
|
- update to 3.3.2
|
|
|
|
- update to 3.3.2
|
|
|
|
|
|
|
|
|
|
|
|