fix build error of spec file 60/287360/2 accepted/tizen_7.0_unified accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_7.0 tizen_8.0 accepted/tizen/7.0/unified/20230131.162900 accepted/tizen/8.0/unified/20231005.092801 accepted/tizen/unified/20230131.162128 tizen_8.0_m2_release
authorYoungjae Shin <yj99.shin@samsung.com>
Fri, 27 Jan 2023 07:21:44 +0000 (16:21 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Fri, 27 Jan 2023 07:25:12 +0000 (16:25 +0900)
Change-Id: I1db91c26bf78dd31280d00d0fe21bffbcae87b8b

packaging/capi-context-motion.spec

index 3d0ab21..51ec774 100644 (file)
@@ -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"