[packages/mirall] add tests bcond, disable as one test fails
glen
glen at pld-linux.org
Sun Feb 8 00:07:59 CET 2015
commit 6e449b9da5518320e4df44812ad8e3e02f006c20
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Feb 8 01:07:54 2015 +0200
add tests bcond, disable as one test fails
mirall.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/mirall.spec b/mirall.spec
index 47c9396..985a163 100644
--- a/mirall.spec
+++ b/mirall.spec
@@ -2,12 +2,13 @@
# Conditional build:
%bcond_without qt4 # build Qt4
%bcond_without nautilus # build Nautilus extension
+%bcond_with tests # build without tests
%define qtver 4.7.0
Summary: Desktop file sync client for directory sharing and syncronization
Name: mirall
Version: 1.7.0
-Release: 0.4
+Release: 0.6
License: GPL v2
Group: X11/Applications
Source0: https://download.owncloud.com/desktop/stable/%{name}-%{version}.tar.bz2
@@ -30,6 +31,10 @@ BuildRequires: QtXmlPatterns-devel >= %{qtver}
BuildRequires: qt4-build
BuildRequires: qt4-linguist
%endif
+%if %{with tests}
+%{?with_qt4:BuildRequires: QtTest}
+BuildRequires: cmocka-devel
+%endif
Requires: %{name}-libs = %{version}-%{release}
Requires: gtk-update-icon-cache
Requires: hicolor-icon-theme
@@ -87,6 +92,7 @@ cd build
%{__make}
%{__make} doc-man
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mirall.git/commitdiff/6e449b9da5518320e4df44812ad8e3e02f006c20
More information about the pld-cvs-commit
mailing list