%define __strip /bin/true
Name: osp-appfw
-Summary: The App Framework library of OSP
-Version: 1.2.2.0
+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(capi-appfw-app-manager)
-BuildRequires: pkgconfig(capi-appfw-package-manager)
BuildRequires: pkgconfig(capi-content-mime-type)
BuildRequires: pkgconfig(capi-network-serial)
BuildRequires: pkgconfig(capi-system-device)
BuildRequires: pkgconfig(capi-system-power)
BuildRequires: pkgconfig(capi-system-runtime-info)
BuildRequires: pkgconfig(capi-system-system-settings)
-BuildRequires: pkgconfig(capi-system-media-key)
BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: pkgconfig(capi-telephony-sim)
BuildRequires: pkgconfig(capi-network-tethering)
BuildRequires: pkgconfig(capi-network-wifi)
BuildRequires: pkgconfig(capi-network-wifi-direct)
+BuildRequires: pkgconfig(wifi-direct)
BuildRequires: pkgconfig(capi-media-sound-manager)
+BuildRequires: pkgconfig(capi-system-media-key)
BuildRequires: pkgconfig(sysman)
BuildRequires: pkgconfig(tapi)
BuildRequires: pkgconfig(alarm-service)
BuildRequires: pkgconfig(efreet)
BuildRequires: pkgconfig(ethumb)
BuildRequires: pkgconfig(icu-i18n)
-BuildRequires: pkgconfig(libcurl)
+BuildRequires: pkgconfig(iniparser)
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(libssl)
BuildRequires: pkgconfig(libsoup-2.4)
-BuildRequires: pkgconfig(libwbxml2)
+BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(message-port)
BuildRequires: pkgconfig(minizip)
BuildRequires: pkgconfig(notification)
BuildRequires: boost-devel
BuildRequires: gettext-tools
BuildRequires: pkgconfig(security-server)
+BuildRequires: pkgconfig(badge)
+BuildRequires: pkgconfig(appinfo) >= 0.1.0
# runtime requires
-Requires: capi-appfw-app-manager
-Requires: capi-appfw-application
+Requires: capi-appfw-application
Requires: capi-appfw-package-manager
Requires: capi-content-mime-type
Requires: capi-network-serial
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
+Provides: libosp-appfw.so.1, libosp-newlib.so.1
-Requires(post): /sbin/ldconfig
+Requires(post): /sbin/ldconfig
Requires(post): coreutils
Requires(postun): /sbin/ldconfig
Requires: %{name} = %{version}-%{release}
Requires: boost-devel
Requires: pkgconfig(pkgmgr-info)
-Requires: pkgconfig(capi-appfw-app-manager)
%description devel
The App Framework library of OSP (DEV)
Summary: osp app framework internel (Internal)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
-Requires: pkgconfig(capi-appfw-app-manager)
%description internal-devel
The App Framework library of OSP (Internal-DEV)
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%ifarch %{ix86}
+%if 0%{?simulator}
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
%else
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=x86
+%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
%endif
# 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}
%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*
%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*
-