diff --git a/ant.spec b/ant.spec index 4049de2..c2ef6b6 100644 --- a/ant.spec +++ b/ant.spec @@ -29,6 +29,7 @@ # %bcond_with bootstrap +%bcond_without tests %if %with bootstrap %global build_javadoc 0 @@ -389,7 +390,7 @@ mv LICENSE.utf8 LICENSE %build %if %without bootstrap -%{ant} jars test-jar test +%{ant} jars test-jar %if %{build_javadoc} export CLASSPATH=$(build-classpath xerces-j2 antlr bcel javamail/mailapi jdepend junit log4j oro regexp bsf commons-logging commons-net jsch xalan-j2 xml-commons-resolver) %{ant} javadocs @@ -511,6 +512,11 @@ find $RPM_BUILD_ROOT%{_datadir}/ant/etc -type f -name "*.xsl" \ | xargs -t rm %endif +%if %with tests +%check +%{ant} test +%endif + %files %doc KEYS LICENSE NOTICE README WHATSNEW %config(noreplace) %{_sysconfdir}/%{name}.conf @@ -682,6 +688,7 @@ find $RPM_BUILD_ROOT%{_datadir}/ant/etc -type f -name "*.xsl" \ - Remove bcond macro definitions (provided by rpm itself) - Remove Group tags - Update to current packaging guidelines +- Run tests in %%check instead of %%build * Mon Jun 03 2013 Stanislav Ochotnicky - 0:1.9.1-2 - Enable unit tests