-%define debug_package %{nil}
-%define __strip /bin/true
-
Name: osp-appfw
Summary: The App Framework library of OSP
Version: 1.2.2.1
Release: 1
Group: TO_BE/FILLED_IN
-License: Apache License, Version 2.0 or Flora
+License: Apache-2.0 or Flora
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(dukgenerator)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(heynoti)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(efreet)
BuildRequires: pkgconfig(ethumb)
BuildRequires: pkgconfig(icu-i18n)
+BuildRequires: pkgconfig(iniparser)
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(libssl)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: boost-devel
BuildRequires: gettext-tools
BuildRequires: pkgconfig(security-server)
+BuildRequires: pkgconfig(badge)
+BuildRequires: pkgconfig(appinfo) >= 0.1.0
# runtime requires
Requires: capi-appfw-application
Requires: capi-security-privilege-manager
Requires: chromium
Requires: message-port
-Requires: osp-env-config
+Requires: osp-env-config >= 1.2.2.1
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
%description internal-devel
The App Framework library of OSP (Internal-DEV)
-%package debug
-Summary: The App Framework library of OSP (Development)
-Group: TO_BE/FILLED_IN
-Requires: %{name} = %{version}-%{release}
-
-%description debug
-The App Framework library of OSP (DEV)
-
%prep
%setup -q
%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 %{?jobs:-j%jobs}
+make %{?_smp_mflags}
-%install
+%clean
rm -rf %{buildroot}
+
+%install
mkdir -p %{buildroot}/usr/share/license
cp %{_builddir}/%{name}-%{version}/LICENSE.Flora %{buildroot}/usr/share/license/%{name}
-cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
+cat %{_builddir}/%{name}-%{version}/LICENSE.APLv2 >> %{buildroot}/usr/share/license/%{name}
%make_install
%files
%manifest osp-appfw.manifest
/usr/share/license/%{name}
-/etc/*
-/opt/usr/share/.osp-compat/share/*
-/opt/usr/etc/*
+%config /etc/*
+%config /opt/usr/etc/*
/usr/share/locale/*
-/usr/etc/*
+%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*
%{_libdir}/pkgconfig/osp-appfw-server.pc
%{_libdir}/pkgconfig/osp-system-server.pc
-%files debug
-%{_libdir}/osp/debug/libosp-appfw.so*
-%{_libdir}/osp/debug/libosp-newlib.so*
-%{_libdir}/osp-server/debug/libosp-appfw-server.so*
-%{_libdir}/osp-server/debug/libosp-system-server.so*