[greenmail] Disable tests by default

rrati rrati at fedoraproject.org
Thu Mar 27 18:46:25 UTC 2014


commit a3830655a512efb29ad9ae7089590efe0a49178a
Author: Robert Rati <rrati at redhat.com>
Date:   Thu Mar 27 14:46:23 2014 -0400

    Disable tests by default

 greenmail.spec |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/greenmail.spec b/greenmail.spec
index 9f261c3..3646cb5 100644
--- a/greenmail.spec
+++ b/greenmail.spec
@@ -1,3 +1,6 @@
+# Disable running the test suite by default
+%bcond_with tests
+
 Name: greenmail
 Version: 1.3.1b
 Release: 1%{?dist}
@@ -53,8 +56,10 @@ install -m 0644 %{SOURCE2} %{buildroot}/%{_mavenpomdir}/JPP-%{name}.pom
 
 cp -ar build/javadocs/* %{buildroot}/%{_javadocdir}/%{name}
 
+%if %{with tests}
 %check
 ant test
+%endif
 
 %files -f .mfiles
 %doc LICENSE faq.html readme.html %{name}-license-confusion.eml


More information about the scm-commits mailing list