Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acdd2e0699 |
3 changed files with 14 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -23,3 +23,4 @@ clog
|
||||||
/PHP_CodeSniffer-3.2.0.tgz
|
/PHP_CodeSniffer-3.2.0.tgz
|
||||||
/PHP_CodeSniffer-3.2.1.tgz
|
/PHP_CodeSniffer-3.2.1.tgz
|
||||||
/PHP_CodeSniffer-3.2.2.tgz
|
/PHP_CodeSniffer-3.2.2.tgz
|
||||||
|
/PHP_CodeSniffer-3.2.3.tgz
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# spec file for php-pear-PHP-CodeSniffer
|
# spec file for php-pear-PHP-CodeSniffer
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013-2017 Remi Collet
|
# Copyright (c) 2013-2018 Remi Collet
|
||||||
# Copyright (c) 2009-2013 Christof Damian
|
# Copyright (c) 2009-2013 Christof Damian
|
||||||
# Copyright (c) 2006-2009 Konstantin Ryabitsev
|
# Copyright (c) 2006-2009 Konstantin Ryabitsev
|
||||||
#
|
#
|
||||||
|
|
@ -13,11 +13,10 @@
|
||||||
%global pear_name PHP_CodeSniffer
|
%global pear_name PHP_CodeSniffer
|
||||||
|
|
||||||
Name: php-pear-PHP-CodeSniffer
|
Name: php-pear-PHP-CodeSniffer
|
||||||
Version: 3.2.2
|
Version: 3.2.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: PHP coding standards enforcement tool
|
Summary: PHP coding standards enforcement tool
|
||||||
|
|
||||||
Group: Development/Tools
|
|
||||||
License: BSD
|
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
|
||||||
|
|
@ -26,10 +25,10 @@ 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} >= 26
|
%if 0%{?fedora} >= 28
|
||||||
%global phpunit %{_bindir}/phpunit6
|
%global phpunit %{_bindir}/phpunit7
|
||||||
%else
|
%else
|
||||||
%global phpunit %{_bindir}/phpunit
|
%global phpunit %{_bindir}/phpunit6
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: %{phpunit}
|
BuildRequires: %{phpunit}
|
||||||
|
|
||||||
|
|
@ -91,12 +90,12 @@ install -pm 644 %{pear_name}.xml %{buildroot}%{pear_xmldir}
|
||||||
%check
|
%check
|
||||||
cd %{pear_name}-%{version}
|
cd %{pear_name}-%{version}
|
||||||
|
|
||||||
# Version 3.1.0: Tests: 242, Assertions: 88, Skipped: 3.
|
# Version 3.2.3: Tests: 294, Assertions: 320, Skipped: 3.
|
||||||
ret=0
|
ret=0
|
||||||
for cmdarg in "php %{phpunit}" "php56 %{_bindir}/phpunit" php70 php71 php72; do
|
for cmdarg in "php %{phpunit}" "php70 %{_bindir}/phpunit6" php71 php72; do
|
||||||
if which $cmdarg; then
|
if which $cmdarg; then
|
||||||
set $cmdarg
|
set $cmdarg
|
||||||
$1 ${2:-%{_bindir}/phpunit6} --verbose || ret=1
|
$1 -d memory_limit=1G ${2:-%{_bindir}/phpunit7} --verbose || ret=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit $ret
|
exit $ret
|
||||||
|
|
@ -124,6 +123,10 @@ fi
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 21 2018 Remi Collet <remi@remirepo.net> - 3.2.3-1
|
||||||
|
- Update to 3.2.3
|
||||||
|
- use phpunit7 on F28+
|
||||||
|
|
||||||
* Wed Dec 20 2017 Remi Collet <remi@remirepo.net> - 3.2.2-1
|
* Wed Dec 20 2017 Remi Collet <remi@remirepo.net> - 3.2.2-1
|
||||||
- Update to 3.2.2
|
- Update to 3.2.2
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (PHP_CodeSniffer-3.2.2.tgz) = 4dcd8055e1a3208ff098bc94aa5d47cd37f36f6f47edd1e5ed7984c4ec639e964ef8e8cf4f3a890023514df70878d3aa0e896c60a364708c8062afd83bc4fd57
|
SHA512 (PHP_CodeSniffer-3.2.3.tgz) = 42589a516e68d3dad3136ac32124954d19450e4125905e162c024062d604ecc1d0d0a2283882c6365952c6d88437ec195d16d81fcc23634e3f69f90b36433c28
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue