%define __strip /bin/true
Name: osp-appfw
-Summary: The App Framework library of OSP
-Version: 1.2.0.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-location-manager)
-BuildRequires: pkgconfig(capi-media-sound-manager)
-BuildRequires: pkgconfig(capi-network-connection)
BuildRequires: pkgconfig(capi-network-serial)
-BuildRequires: pkgconfig(capi-network-tethering)
-BuildRequires: pkgconfig(capi-network-wifi)
-BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: pkgconfig(capi-system-device)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(capi-system-power)
-BuildRequires: pkgconfig(capi-system-sensor)
-BuildRequires: pkgconfig(capi-system-system-settings)
BuildRequires: pkgconfig(capi-system-runtime-info)
-BuildRequires: pkgconfig(capi-telephony-network-info)
-BuildRequires: pkgconfig(capi-telephony-sim)
+BuildRequires: pkgconfig(capi-system-system-settings)
+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(appsvc)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(devman)
BuildRequires: pkgconfig(dlog)
+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(edje)
+BuildRequires: pkgconfig(eet)
+BuildRequires: pkgconfig(edbus)
+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: pkgconfig(openssl)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(pmapi)
BuildRequires: pkgconfig(libprivilege-control)
-BuildRequires: pkgconfig(sensor)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(wifi-direct)
BuildRequires: pkgconfig(zlib)
-BuildRequires: pkgconfig(drm-service-core-intel)
-#BuildRequires: drm-service-core-intel-devel
-BuildRequires: pkgconfig(tapi)
BuildRequires: pkgconfig(haptic)
-BuildRequires: pkgconfig(sysman)
BuildRequires: pkgconfig(x11)
+BuildRequires: privacy-manager-client-devel
+BuildRequires: capi-security-privilege-manager-devel
BuildRequires: boost-devel
BuildRequires: gettext-tools
-BuildRequires: libcryptsvc-devel
-BuildRequires: dukgenerator
+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-location-manager
-Requires: capi-media-sound-manager
-Requires: capi-network-connection
-Requires: capi-network-serial
-Requires: capi-network-tethering
-Requires: capi-network-wifi
-Requires: capi-system-device
-Requires: capi-system-info
-Requires: capi-system-power
-Requires: capi-system-sensor
-Requires: capi-system-system-settings
-Requires: capi-system-runtime-info
-Requires: capi-telephony-sim
+Requires: capi-content-mime-type
+Requires: capi-network-serial
+Requires: capi-system-runtime-info
+Requires: capi-security-privilege-manager
Requires: chromium
-Requires: osp-env-config
-#Requires: drm-service-core-intel
+Requires: message-port
+Requires: osp-env-config >= 1.2.2.1
Requires: sqlite
-Requires: libcryptsvc-devel
+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
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%ifarch %{ix86}
-CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=x86
+%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="-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_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=arm
+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}
mkdir -p /opt/usr/share/.osp-compat/share/AppControl
mkdir -p /opt/usr/share/.osp-compat/share2
-mkdir -p /opt/usr/share/certs/rootcert
-mkdir -p /opt/usr/share/certs/usercert/key
mkdir -p /opt/usr/etc
mkdir -p /opt/usr/media/Images
mkdir -p /opt/usr/media/Others
mkdir -p /tmp/osp
-if [ -f /usr/lib/rpm-plugins/msm.so ]
-then
- chsmack -a "osp::compat" /opt/usr/share/.osp-compat/share/AppControl
- chsmack -t /opt/usr/share/.osp-compat/share/AppControl
- chsmack -a "osp::root-certs" /opt/usr/share/certs/rootcert
- chsmack -t /opt/usr/share/certs/rootcert
- chsmack -a "osp::root-certs" /opt/usr/share/certs/rootcert
- chsmack -t /opt/usr/share/certs/rootcert
- chsmack -a "osp::user-certs" /opt/usr/share/certs/usercert
- chsmack -t /opt/usr/share/certs/usercert
- chsmack -a "osp::user-certs" /opt/usr/share/certs/usercert/key
- chsmack -t /opt/usr/share/certs/usercert/key
- chsmack -a "*" /opt/usr/media/*
- chsmack -t /opt/usr/media/*
- chsmack -a "*" /tmp/osp
- chsmack -t /tmp/osp
-fi
-
chmod -R 707 /opt/usr/share/.osp-compat/share/AppControl
-chmod -R 705 /opt/usr/share/certs
-chmod -R 700 /opt/usr/share/certs/usercert/key
chmod -R 777 /opt/usr/media
chmod -R 777 /tmp/osp
chown -R 5000:5000 /opt/usr/media
+locale -a > /opt/usr/etc/clocale.list
+chmod 444 /opt/usr/etc/clocale.list
%postun -p /sbin/ldconfig
%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 devel
%{_includedir}/osp/*.h
%{_includedir}/osp/security/*
%{_includedir}/osp/system/*
%{_includedir}/osp/text/*
+%{_includedir}/osp/server/*
+%{_includedir}/osp/system-server/*
+%{_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*