[telepathy-qt4] make unittest conditionals more compact
Rex Dieter
rdieter at fedoraproject.org
Mon Jul 16 23:32:19 UTC 2012
commit e6961b1f857dccffac432db38f81d7d33a0582c2
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Mon Jul 16 18:35:16 2012 -0500
make unittest conditionals more compact
telepathy-qt4.spec | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/telepathy-qt4.spec b/telepathy-qt4.spec
index 096c143..363cede 100644
--- a/telepathy-qt4.spec
+++ b/telepathy-qt4.spec
@@ -1,8 +1,4 @@
-%if 0%{?fedora} > 17
-%define enable_tests -DENABLE_TESTS:BOOL=ON
-%endif
-
Name: telepathy-qt4
Version: 0.9.3
Release: 1%{?dist}
@@ -27,8 +23,9 @@ BuildRequires: pkgconfig(telepathy-farstream)
%define farsight 1
BuildRequires: pkgconfig(telepathy-farsight)
%endif
-# unit tests
-%if 0%{?enable_tests:1}
+## unit tests
+%if 0%{?fedora} > 17
+%define enable_tests -DENABLE_TESTS:BOOL=ON
BuildRequires: pkgconfig(telepathy-glib) >= 0.19
BuildRequires: pkgconfig(gio-2.0)
%endif
More information about the scm-commits
mailing list