BuildRequires: pkgconfig(dukgenerator)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(heynoti)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(evas)
Requires: sqlite
Requires: iniparser
-Provides: libosp-appfw.so.1, libosp-newlib.so.1
+Provides: libosp-appfw.so.1
Requires(post): /sbin/ldconfig
Requires(post): coreutils
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+
%ifarch %{ix86}
-CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=x86
+ ARCH=x86
+ CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_"
+ %if 0%{?simulator}
+ CXXFLAGS="$CXXFLAGS -D_OSP_EMUL_"
+ %endif
%else
-CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=arm
+ ARCH=arm
+ CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_"
+%endif
+
+%if 0%{?tizen_build_binary_release_type_eng}
+ CXXFLAGS="$CXXFLAGS -D_SECURE_LOG"
%endif
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=${ARCH}
+
# Call make instruction with smp support
#make %{?jobs:-j%jobs}
make %{?_smp_mflags}
/usr/share/locale/*
%config /usr/etc/*
%{_libdir}/osp/libosp-appfw.so*
-%{_libdir}/osp/libosp-newlib.so*
%{_libdir}/osp-server/libosp-appfw-server.so*
%{_libdir}/osp-server/libosp-system-server.so*