Add to check condition for emulator in spec file
authorjh0522.choi <jh0522.choi@samsung.com>
Wed, 21 Aug 2013 01:57:52 +0000 (10:57 +0900)
committerjh0522.choi <jh0522.choi@samsung.com>
Wed, 21 Aug 2013 01:57:52 +0000 (10:57 +0900)
packaging/apps.Internet.spec

index 5007903..7bb9ed2 100755 (executable)
@@ -34,8 +34,12 @@ Verification application: Internet
 %build
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %ifarch %{ix86}
+%if 0%{?simulator}
 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
 %else
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%endif
+%else
 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
 %endif