[telepathy-idle] Make tests conditional. (#831344)

Brian Pepple bpepple at fedoraproject.org
Tue Jun 12 20:33:05 UTC 2012


commit db4508b6340a1d45c8cc52d24e6cd63570eb6064
Author: Brian Pepple <bpepple at fedoraproject.org>
Date:   Tue Jun 12 16:32:51 2012 -0400

    Make tests conditional. (#831344)

 telepathy-idle.spec |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/telepathy-idle.spec b/telepathy-idle.spec
index 5ea9b3f..6e68276 100644
--- a/telepathy-idle.spec
+++ b/telepathy-idle.spec
@@ -1,6 +1,12 @@
+%if 0%{?rhel}
+%global run_tests 0
+%else
+%global run_tests 1
+%endif
+
 Name:           telepathy-idle
 Version:        0.1.11
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        IRC connection manager for Telepathy
 
 Group:          Applications/Communications
@@ -13,11 +19,13 @@ BuildRequires:	dbus-glib-devel
 BuildRequires:	openssl-devel >= 0.9.7
 BuildRequires:	telepathy-glib-devel >= 0.13.10
 BuildRequires:  libxslt
+%if %{run_tests}
 # Build Requires needed for tests.
 BuildRequires:	python
 BuildRequires:	python-twisted
 BuildRequires:	dbus-python
 BuildRequires:	pygobject2
+%endif
 
 Requires:	telepathy-filesystem
    
@@ -29,10 +37,10 @@ A full-featured IRC connection manager for the Telepathy project.
 %prep
 %setup -q
 
-
+%if %{run_tests}
 %check
-#make check
-
+make check
+%endif
 
 %build
 %configure
@@ -54,6 +62,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
 
 
 %changelog
+* Tue Jun 12 2012 Brian Pepple <bpepple at fedoraproject.org> - 0.1.11-3
+- Make tests conditional. (#831344)
+
 * Mon Jan 09 2012 Brian Pepple <bpepple at fedoraproject.org> - 0.1.11-2
 - Rebuild for new gcc.
 


More information about the scm-commits mailing list