diff options
Diffstat (limited to 'php-pear-PHP-CodeSniffer.spec')
-rw-r--r-- | php-pear-PHP-CodeSniffer.spec | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/php-pear-PHP-CodeSniffer.spec b/php-pear-PHP-CodeSniffer.spec index 1763208..df3a308 100644 --- a/php-pear-PHP-CodeSniffer.spec +++ b/php-pear-PHP-CodeSniffer.spec @@ -13,7 +13,7 @@ %global pear_name PHP_CodeSniffer Name: php-pear-PHP-CodeSniffer -Version: 2.8.1 +Version: 3.0.0 Release: 1%{?dist} Summary: PHP coding standards enforcement tool @@ -22,29 +22,31 @@ License: BSD URL: http://pear.php.net/package/PHP_CodeSniffer Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz -Patch0: %{pear_name}-role.patch - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +BuildRequires: php(language) >= 5.4 BuildRequires: php-pear # to run test suite -BuildRequires: php-phpunit-PHPUnit >= 3.5.0 +BuildRequires: php-phpunit-PHPUnit Requires(post): %{__pear} Requires(postun): %{__pear} # From package.xml 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-date Requires: php-dom +Requires: php-json Requires: php-iconv +Requires: php-pcntl Requires: php-pcre -Requires: php-reflection Requires: php-soap Requires: php-spl -Requires: php-tokenizer -Requires: php-xmlwriter Provides: php-pear(%{pear_name}) = %{version} Provides: php-composer(squizlabs/php_codesniffer) = %{version} @@ -60,9 +62,6 @@ certain standards, such as PEAR, or user-defined. %prep %setup -q -c -# install scripts/phpcs-svn-pre-commit properly -%patch0 -p0 -b .old - cd %{pear_name}-%{version} mv ../package.xml %{pear_name}.xml @@ -72,7 +71,6 @@ mv ../package.xml %{pear_name}.xml %install -rm -rf %{buildroot} cd %{pear_name}-%{version} %{__pear} install --nodeps --packagingroot %{buildroot} %{pear_name}.xml @@ -90,7 +88,7 @@ cd %{pear_name}-%{version}/tests # Version 2.8.0: Tests: 238, Assertions: 92, Skipped: 3. ret=0 -for cmd in php php56 php70 php71; do +for cmd in php php56 php70 php71 php72; do if which $cmd; then $cmd %{_bindir}/phpunit AllTests.php || ret=1 fi @@ -98,10 +96,6 @@ done exit $ret -%clean -rm -rf %{buildroot} - - %post %{__pear} install --nodeps --soft --force --register-only \ %{pear_xmldir}/%{pear_name}.xml >/dev/null || : @@ -114,7 +108,6 @@ fi %files -%defattr(-,root,root,-) %doc %{pear_docdir}/%{pear_name} %{pear_xmldir}/%{pear_name}.xml %{pear_testdir}/%{pear_name} @@ -122,10 +115,14 @@ fi %{pear_phpdir}/PHP %{_bindir}/phpcbf %{_bindir}/phpcs -%{_bindir}/phpcs-svn-pre-commit %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 - Update to 2.8.1 |