[telepathy-gabble] Make tests conditional. (#831342)

Brian Pepple bpepple at fedoraproject.org
Tue Jun 12 20:16:54 UTC 2012


commit 28e495e91e210eed2d876091f7d698dfb88866b2
Author: Brian Pepple <bpepple at fedoraproject.org>
Date:   Tue Jun 12 16:16:48 2012 -0400

    Make tests conditional. (#831342)

 telepathy-gabble.spec |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/telepathy-gabble.spec b/telepathy-gabble.spec
index 8fbaf24..5ebe670 100644
--- a/telepathy-gabble.spec
+++ b/telepathy-gabble.spec
@@ -1,6 +1,12 @@
+%if 0%{?rhel}
+%global run_tests 0
+%else
+%global run_tests 1
+%endif
+
 Name:           telepathy-gabble
 Version:        0.16.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A Jabber/XMPP connection manager
 
 Group:          Applications/Communications
@@ -19,11 +25,13 @@ BuildRequires:  libsoup-devel
 BuildRequires:	libnice-devel >= 0.0.11
 BuildRequires:	cyrus-sasl-devel
 BuildRequires:  libxslt
+%if %{run_tests}
 # Build Requires needed for tests.
 BuildRequires:  python
 BuildRequires:	python-twisted
 BuildRequires:	dbus-python
 BuildRequires:	pygobject2
+%endif
 
 Requires:       telepathy-mission-control >= 5.5.0
 Requires:       telepathy-filesystem
@@ -37,10 +45,10 @@ chats and voice calls.
 %prep
 %setup -q
 
-
+%if %{run_tests}
 %check
-#make check
-
+make check
+%endif
 
 %build
 %configure --enable-static=no
@@ -86,6 +94,9 @@ rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/*.html
 
 
 %changelog
+* Tue Jun 12 2012 Brian Pepple <bpepple at fedoraproject.org> - 0.16.0-2
+- Make tests conditional. (#831342)
+
 * Tue Apr  3 2012 Brian Pepple <bpepple at fedoraproject.org> - 0.16.0-1
 - Update to 0.16.0.
 - Bump minimum version of tp-glib needed.


More information about the scm-commits mailing list