summaryrefslogtreecommitdiffstats
path: root/php-tecnickcom-tc-lib-barcode.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-03-13 15:15:11 +0100
committerRemi Collet <fedora@famillecollet.com>2017-03-13 15:15:11 +0100
commitd02ca6700c9dc8a58120e77bed8b550b698b6150 (patch)
tree848caeac82c1816272be777c409cb1628695e8b5 /php-tecnickcom-tc-lib-barcode.spec
parent48b88ee4eb54840b67d45e43c9d8d5a56eeb4f06 (diff)
wip
Diffstat (limited to 'php-tecnickcom-tc-lib-barcode.spec')
-rw-r--r--php-tecnickcom-tc-lib-barcode.spec15
1 files changed, 12 insertions, 3 deletions
diff --git a/php-tecnickcom-tc-lib-barcode.spec b/php-tecnickcom-tc-lib-barcode.spec
index 0506d85..74e8fb0 100644
--- a/php-tecnickcom-tc-lib-barcode.spec
+++ b/php-tecnickcom-tc-lib-barcode.spec
@@ -28,7 +28,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%if %{with_tests}
# For tests
-BuildRequires: php-composer(phpunit/phpunit)
+%if 0%{?fedora} >= 26
+%global phpunit %{_bindir}/phpunit6
+%else
+%global phpunit %{_bindir}/phpunit
+%endif
+BuildRequires: %{phpunit}
BuildRequires: php(language) >= 5.4
BuildRequires: php-composer(%{c_vendor}/tc-lib-color) >= 1.12.1
BuildRequires: php-bcmath
@@ -109,8 +114,11 @@ require '%{php_project}/../Color/autoload.php';
require __DIR__ . '/../test/TestStrings.php';
EOF
+%{phpunit} --no-coverage --verbose
+
+#remirepo:12
ret=0
-for cmd in php56 php; do
+for cmd in php56; do
if which $cmd; then
$cmd %{_bindir}/phpunit --verbose || ret=1
fi
@@ -140,8 +148,9 @@ rm -rf %{buildroot}
%changelog
-* Sun Feb 12 2017 Remi Collet <remi@fedoraproject.org> - 1.15.6-1
+* Sun Feb 12 2017 Remi Collet <remi@remirepo.net.org> - 1.15.6-1
- update to 1.15.6 (no change)
+- use phpunit6 on F26+
* Mon Feb 6 2017 Remi Collet <remi@fedoraproject.org> - 1.15.5-1
- update to 1.15.5 (no change)