diff options
Diffstat (limited to 'php-ocramius-code-generator-utils.spec')
-rw-r--r-- | php-ocramius-code-generator-utils.spec | 5 |
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 |