|
|
@ -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: 2.8.1
|
|
|
|
Version: 3.0.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: PHP coding standards enforcement tool
|
|
|
|
Summary: PHP coding standards enforcement tool
|
|
|
|
|
|
|
|
|
|
|
@ -22,28 +22,31 @@ License: BSD
|
|
|
|
URL: http://pear.php.net/package/PHP_CodeSniffer
|
|
|
|
URL: http://pear.php.net/package/PHP_CodeSniffer
|
|
|
|
Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
|
|
|
|
Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: %{pear_name}-role.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: php(language) >= 5.4
|
|
|
|
BuildRequires: php-pear
|
|
|
|
BuildRequires: php-pear
|
|
|
|
# to run test suite
|
|
|
|
# to run test suite
|
|
|
|
BuildRequires: php-phpunit-PHPUnit >= 3.5.0
|
|
|
|
BuildRequires: php-phpunit-PHPUnit
|
|
|
|
|
|
|
|
|
|
|
|
Requires(post): %{__pear}
|
|
|
|
Requires(post): %{__pear}
|
|
|
|
Requires(postun): %{__pear}
|
|
|
|
Requires(postun): %{__pear}
|
|
|
|
# From package.xml
|
|
|
|
# From package.xml
|
|
|
|
Requires: php-pear(PEAR)
|
|
|
|
Requires: php-pear(PEAR)
|
|
|
|
# From phpcompatinfo report for version 2.8.0
|
|
|
|
Requires: php(language) >= 5.4
|
|
|
|
|
|
|
|
Requires: php-tokenizer
|
|
|
|
|
|
|
|
Requires: php-xmlwriter
|
|
|
|
|
|
|
|
Requires: php-simplexml
|
|
|
|
|
|
|
|
# From phpcompatinfo report for version 3.0.0
|
|
|
|
|
|
|
|
Requires: php-reflection
|
|
|
|
Requires: php-ctype
|
|
|
|
Requires: php-ctype
|
|
|
|
Requires: php-date
|
|
|
|
Requires: php-date
|
|
|
|
Requires: php-dom
|
|
|
|
Requires: php-dom
|
|
|
|
|
|
|
|
Requires: php-json
|
|
|
|
Requires: php-iconv
|
|
|
|
Requires: php-iconv
|
|
|
|
|
|
|
|
Requires: php-pcntl
|
|
|
|
Requires: php-pcre
|
|
|
|
Requires: php-pcre
|
|
|
|
Requires: php-reflection
|
|
|
|
|
|
|
|
Requires: php-soap
|
|
|
|
Requires: php-soap
|
|
|
|
Requires: php-spl
|
|
|
|
Requires: php-spl
|
|
|
|
Requires: php-tokenizer
|
|
|
|
|
|
|
|
Requires: php-xmlwriter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Provides: php-pear(%{pear_name}) = %{version}
|
|
|
|
Provides: php-pear(%{pear_name}) = %{version}
|
|
|
|
Provides: php-composer(squizlabs/php_codesniffer) = %{version}
|
|
|
|
Provides: php-composer(squizlabs/php_codesniffer) = %{version}
|
|
|
@ -59,9 +62,6 @@ certain standards, such as PEAR, or user-defined.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -c
|
|
|
|
%setup -q -c
|
|
|
|
|
|
|
|
|
|
|
|
# install scripts/phpcs-svn-pre-commit properly
|
|
|
|
|
|
|
|
%patch0 -p0 -b .old
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd %{pear_name}-%{version}
|
|
|
|
cd %{pear_name}-%{version}
|
|
|
|
mv ../package.xml %{pear_name}.xml
|
|
|
|
mv ../package.xml %{pear_name}.xml
|
|
|
|
|
|
|
|
|
|
|
@ -88,7 +88,7 @@ cd %{pear_name}-%{version}/tests
|
|
|
|
|
|
|
|
|
|
|
|
# Version 2.8.0: Tests: 238, Assertions: 92, Skipped: 3.
|
|
|
|
# Version 2.8.0: Tests: 238, Assertions: 92, Skipped: 3.
|
|
|
|
ret=0
|
|
|
|
ret=0
|
|
|
|
for cmd in php php56 php70 php71; do
|
|
|
|
for cmd in php php56 php70 php71 php72; do
|
|
|
|
if which $cmd; then
|
|
|
|
if which $cmd; then
|
|
|
|
$cmd %{_bindir}/phpunit AllTests.php || ret=1
|
|
|
|
$cmd %{_bindir}/phpunit AllTests.php || ret=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -115,10 +115,14 @@ fi
|
|
|
|
%{pear_phpdir}/PHP
|
|
|
|
%{pear_phpdir}/PHP
|
|
|
|
%{_bindir}/phpcbf
|
|
|
|
%{_bindir}/phpcbf
|
|
|
|
%{_bindir}/phpcs
|
|
|
|
%{_bindir}/phpcs
|
|
|
|
%{_bindir}/phpcs-svn-pre-commit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu May 4 2017 Remi Collet <remi@remirepo.net> - 3.0.0-1
|
|
|
|
|
|
|
|
- Update to 3.0.0
|
|
|
|
|
|
|
|
- raise dependency on PHP >= 5.4
|
|
|
|
|
|
|
|
- drop phpcs-svn-pre-commit command
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Mar 02 2017 Remi Collet <remi@remirepo.net> - 2.8.1-1
|
|
|
|
* Thu Mar 02 2017 Remi Collet <remi@remirepo.net> - 2.8.1-1
|
|
|
|
- Update to 2.8.1
|
|
|
|
- Update to 2.8.1
|
|
|
|
|
|
|
|
|
|
|
|