Name: osp-appfw Version: 1.2.2.1 Release: 1 License: Apache-2.0 or Flora Summary: The App Framework library of OSP Url: https://review.tizen.org/git/?p=platform/framework/native/appfw.git;a=summary Group: Application Framework/Libraries Source0: %{name}-%{version}.tar.gz Source1001: osp-appfw.manifest BuildRequires: boost-devel BuildRequires: capi-security-privilege-manager-devel BuildRequires: cmake BuildRequires: gettext-tools BuildRequires: privacy-manager-client-devel BuildRequires: pkgconfig(alarm-service) BuildRequires: pkgconfig(appinfo) >= 0.1.0 BuildRequires: pkgconfig(appsvc) BuildRequires: pkgconfig(aul) BuildRequires: pkgconfig(bundle) BuildRequires: pkgconfig(capi-appfw-app-manager) BuildRequires: pkgconfig(capi-appfw-application) BuildRequires: pkgconfig(capi-appfw-package-manager) BuildRequires: pkgconfig(capi-content-mime-type) BuildRequires: pkgconfig(capi-media-sound-manager) BuildRequires: pkgconfig(capi-network-bluetooth) BuildRequires: pkgconfig(capi-network-serial) BuildRequires: pkgconfig(capi-network-tethering) BuildRequires: pkgconfig(capi-network-wifi) BuildRequires: pkgconfig(capi-network-wifi-direct) BuildRequires: pkgconfig(capi-system-device) BuildRequires: pkgconfig(capi-system-info) BuildRequires: pkgconfig(capi-system-media-key) BuildRequires: pkgconfig(capi-system-power) BuildRequires: pkgconfig(capi-system-runtime-info) BuildRequires: pkgconfig(capi-system-system-settings) BuildRequires: pkgconfig(capi-telephony-sim) BuildRequires: pkgconfig(chromium) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(devman) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(dukgenerator) BuildRequires: pkgconfig(ecore) BuildRequires: pkgconfig(edbus) BuildRequires: pkgconfig(edje) BuildRequires: pkgconfig(eet) BuildRequires: pkgconfig(efreet) BuildRequires: pkgconfig(eina) BuildRequires: pkgconfig(elementary) BuildRequires: pkgconfig(ethumb) BuildRequires: pkgconfig(evas) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(haptic) BuildRequires: pkgconfig(icu-i18n) BuildRequires: pkgconfig(iniparser) BuildRequires: pkgconfig(libpcre) BuildRequires: pkgconfig(libprivilege-control) BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(libssl) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(message-port) BuildRequires: pkgconfig(minizip) BuildRequires: pkgconfig(notification) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(pkgmgr) BuildRequires: pkgconfig(pkgmgr-info) BuildRequires: pkgconfig(pmapi) BuildRequires: pkgconfig(security-server) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(sysman) BuildRequires: pkgconfig(tapi) BuildRequires: pkgconfig(uuid) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(wifi-direct) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(zlib) # runtime requires Requires: capi-appfw-app-manager Requires: capi-appfw-application Requires: capi-appfw-package-manager Requires: capi-content-mime-type Requires: capi-network-serial Requires: capi-security-privilege-manager Requires: capi-system-runtime-info Requires: chromium Requires: message-port Requires: osp-env-config >= 1.2.2.1 Requires: sqlite Requires(post): /sbin/ldconfig Requires(post): coreutils Requires(postun): /sbin/ldconfig %description The App Framework library of OSP %package devel Summary: The App Framework library of OSP (Development) Requires: %{name} = %{version} Requires: boost-devel Requires: pkgconfig(capi-appfw-app-manager) Requires: pkgconfig(pkgmgr-info) %description devel The App Framework library of OSP (DEV) %package internal-devel Summary: OSP app framework internal (Internal) Requires: %{name} = %{version}-%{release} Requires: %{name}-devel %description internal-devel The App Framework library of OSP (Internal-DEV) %prep %setup -q cp %{SOURCE1001} . %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %ifarch %{ix86} ARCH=x86 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_" %if 0%{?simulator} CXXFLAGS="$CXXFLAGS -D_OSP_EMUL_" %endif %else 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 . -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=${ARCH} make %{?_smp_mflags} %install %make_install %find_lang osp %post /sbin/ldconfig mkdir -p /opt/usr/share/.osp-compat/share/AppControl mkdir -p /opt/usr/share/.osp-compat/share2 mkdir -p /opt/usr/etc mkdir -p /opt/usr/media/Images mkdir -p /opt/usr/media/Others mkdir -p /opt/usr/media/Sounds mkdir -p /opt/usr/media/Videos mkdir -p /opt/usr/media/Camera mkdir -p /tmp/osp chmod -R 707 /opt/usr/share/.osp-compat/share/AppControl 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 -f osp.lang %manifest %{name}.manifest %license LICENSE.APLv2 LICENSE.Flora %config %{_sysconfdir}/* %config /opt/usr/etc/* /usr/share/locale/* %config %{_prefix}/etc/* %{_libdir}/osp/libosp-appfw.so* %{_libdir}/osp-server/libosp-appfw-server.so* %{_libdir}/osp-server/libosp-system-server.so* %files devel %manifest %{name}.manifest %{_includedir}/osp/*.h %{_includedir}/osp/*.hpp %files internal-devel %manifest %{name}.manifest %{_includedir}/osp/app/* %{_includedir}/osp/base/* %{_includedir}/osp/io/* %{_includedir}/osp/locales/* %{_includedir}/osp/security/* %{_includedir}/osp/system/* %{_includedir}/osp/text/* %{_includedir}/osp/server/* %{_includedir}/osp/system-server/* %{_libdir}/pkgconfig/osp-appfw.pc %{_libdir}/pkgconfig/osp-appfw-server.pc %{_libdir}/pkgconfig/osp-system-server.pc