Skip to content

Commit

Permalink
[php-react] Add missing php-cli BuildRequires
Browse files Browse the repository at this point in the history
  • Loading branch information
siwinski committed Jan 25, 2017
1 parent 06bce6c commit 6761f41
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions php-react/php-react.spec
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

Name: php-%{composer_vendor}
Version: %{github_version}
Release: 1%{?github_release}%{?dist}
Release: 2%{?github_release}%{?dist}
Summary: Event-driven, non-blocking I/O with PHP

Group: Development/Libraries
Expand All @@ -68,6 +68,7 @@ Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{githu
BuildArch: noarch
# Tests
%if %{with_tests}
BuildRequires: php-cli
## Minimal autoloader test
BuildRequires: php(language) >= %{php_min_ver}
BuildRequires: php-composer(react/cache) < %{react_cache_max_ver}
Expand Down Expand Up @@ -174,7 +175,7 @@ cp -p autoload.php %{buildroot}%{phpdir}/React/
%check
%if %{with_tests}
: Minimal autoloader test
php -r 'require "%{buildroot}%{phpdir}/React/autoload.php";'
%{_bindir}/php -r 'require "%{buildroot}%{phpdir}/React/autoload.php";'
%else
: Tests skipped
%endif
Expand All @@ -190,5 +191,8 @@ php -r 'require "%{buildroot}%{phpdir}/React/autoload.php";'


%changelog
* Wed Jan 25 2017 Shawn Iwinski <shawn@iwin.ski> - 0.4.2-2
- Add missing php-cli BuildRequires

* Tue Jan 17 2017 Shawn Iwinski <shawn@iwin.ski> - 0.4.2-1
- Initial package

0 comments on commit 6761f41

Please sign in to comment.