summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-06-29 16:10:59 +0200
committerRemi Collet <fedora@famillecollet.com>2016-06-29 16:10:59 +0200
commit8b995186a11dbefe40c95b4721126d89c37246e2 (patch)
treedf0f5138cbce4452c3010a8b088367d545cc3e5b
parent1e075901d297d2225f5e1159ca342274d0e3faea (diff)
php-ocramius-code-generator-utils: minor fix
-rw-r--r--php-ocramius-code-generator-utils.spec5
1 files changed, 3 insertions, 2 deletions
diff --git a/php-ocramius-code-generator-utils.spec b/php-ocramius-code-generator-utils.spec
index 05aa463..b9630a5 100644
--- a/php-ocramius-code-generator-utils.spec
+++ b/php-ocramius-code-generator-utils.spec
@@ -42,13 +42,13 @@ Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{githu
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
+BuildRequires: %{_bindir}/phpab
%if %{with_tests}
# composer.json
BuildRequires: php(language) >= %{php_min_ver}
BuildRequires: php-composer(nikic/php-parser) >= %{php_parser_min_ver}
BuildRequires: php-composer(nikic/php-parser) < %{php_parser_max_ver}
BuildRequires: php-composer(phpunit/phpunit) >= 5.0
-BuildRequires: %{_bindir}/phpab
# phpcompatinfo (computed from version 0.4.0)
BuildRequires: php-pcre
BuildRequires: php-reflection
@@ -83,6 +83,7 @@ cat << 'EOF' | tee -a src/CodeGenerationUtils/autoload.php
require_once '%{phpdir}/PhpParser2/autoload.php';
EOF
+
%install
rm -rf %{buildroot}
mkdir -pm 0755 %{buildroot}%{phpdir}
@@ -97,7 +98,7 @@ cat << 'EOF' | tee -a vendor/autoload.php
require_once '%{buildroot}%{phpdir}/CodeGenerationUtils/autoload.php';
EOF
-%{_bindir}/phpunit
+%{_bindir}/phpunit --verbose
%else
: Tests skipped
%endif