# Conditional build:
%bcond_with tests # build with tests
+# NOTE:
+# - ZendXml has it's own versioning schema, version 1.0.1 as of 2.4.8 ZF2 release
+
Summary: Zend Framework 2
Name: php-ZendFramework
Version: 2.4.8
# git clone https://github.com/zendframework/zf2.git
# cd zf2; git checkout release-2.3.9
# tar czf ../ZendFramework-tests-2.3.9.tgz tests
-#Source1: ZendFramework-tests-%{version}.tgz
+#Source1: ZendFramework-tests-%{version}.tgz
Source2: autoload.php
URL: http://framework.zend.com/
Requires: php(core) >= 5.3.23
+%if %{with tests}
+BuildRequires: phpunit >= 4.0.0
+%endif
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)