summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-02-23 08:22:30 +0100
committerRemi Collet <fedora@famillecollet.com>2016-02-23 08:22:30 +0100
commit1894d64e7a1ac0039ebc0d50028deb53f9967d56 (patch)
tree82b76ed49a82d8e8188b8964b806f817ec45f16e
parent4df1ecf69c30484bfa2f009f9dce364e607e206b (diff)
php-udan11-sql-parser: cleanup for EPEL
-rw-r--r--php-udan11-sql-parser.spec7
1 files changed, 5 insertions, 2 deletions
diff --git a/php-udan11-sql-parser.spec b/php-udan11-sql-parser.spec
index f28ac66..3d93c5b 100644
--- a/php-udan11-sql-parser.spec
+++ b/php-udan11-sql-parser.spec
@@ -31,7 +31,7 @@ BuildRequires: php(language) >= 5.3.0
# For tests, from composer.json "require-dev": {
# "phpunit/php-code-coverage": "~2.0",
# "phpunit/phpunit": "~4.0|~5.0"
-BuildRequires: php-composer(phpunit/phpunit) >= 4
+BuildRequires: php-composer(phpunit/phpunit)
%endif
# For autoloader
BuildRequires: php-composer(theseer/autoload)
@@ -89,7 +89,9 @@ cat << 'EOF' | tee vendor/autoload.php
require '%{buildroot}%{_datadir}/php/%{psr0}/autoload.php';
EOF
-%{_bindir}/phpunit --verbose
+if %{_bindir}/phpunit --atleast-version 4.8; then
+ %{_bindir}/phpunit --verbose
+fi
if which php70; then
php70 %{_bindir}/phpunit --verbose
@@ -115,6 +117,7 @@ rm -rf %{buildroot}
%changelog
* Tue Feb 23 2016 Remi Collet <remi@fedoraproject.org> - 3.3.1-1
- update to 3.3.1 (for phpMyAdmin 4.5.5)
+- don't run test with old PHPUnit (EPEL-6)
* Sat Dec 26 2015 Remi Collet <remi@fedoraproject.org> - 3.0.8-1
- update to 3.0.8 (for phpMyAdmin 4.5.3)