From dfd1e102eeeeacecbb59415d303e0204cb00d1e0 Mon Sep 17 00:00:00 2001 From: Youngjae Shin Date: Fri, 27 Jan 2023 16:21:44 +0900 Subject: [PATCH] fix build error of spec file Change-Id: I1db91c26bf78dd31280d00d0fe21bffbcae87b8b --- packaging/capi-context-motion.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/capi-context-motion.spec b/packaging/capi-context-motion.spec index 3d0ab21..51ec774 100644 --- a/packaging/capi-context-motion.spec +++ b/packaging/capi-context-motion.spec @@ -6,6 +6,8 @@ Group: Service/Context License: Apache-2.0 Source0: %{name}-%{version}.tar.gz +%{!?gcov: %global gcov 0} + BuildRequires: cmake BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(dlog) @@ -29,7 +31,7 @@ Tizen Native Motion Recognition API %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` -%if %{gcov} +%if 0%{gcov} export CFLAGS+=" -fprofile-arcs -ftest-coverage" export CXXFLAGS+=" -fprofile-arcs -ftest-coverage" export FFLAGS+=" -fprofile-arcs -ftest-coverage" -- 2.7.4