Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I7d106f3e97d659deda6a238148f6853a0d5e18f6
cp %{SOURCE1001} .
%build
-export CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
-export CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
-export LDFLAGS="$LDFLAGS -lgcov"
export ENABLE_ALURE=1
+%if 0%{?gcov:1}
+export CFLAGS+=" -fprofile-arcs -ftest-coverage"
+export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
+export LDFLAGS+=" -lgcov"
+%endif
+
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}