X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fosp-appfw.spec;h=4b8f6924af666df180634f574b1330b8babc16a6;hb=refs%2Fchanges%2F29%2F13629%2F1;hp=606053fe4b068d2d928a17a2f7abc410a4e82d4f;hpb=be71dc856af7c35d871d0fe296dbdafa7c64f17a;p=platform%2Fframework%2Fnative%2Fappfw.git diff --git a/packaging/osp-appfw.spec b/packaging/osp-appfw.spec old mode 100644 new mode 100755 index 606053f..4b8f692 --- a/packaging/osp-appfw.spec +++ b/packaging/osp-appfw.spec @@ -1,13 +1,12 @@ -%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-2.0 or Flora -Source0: %{name}-%{version}.tar.gz +Name: osp-appfw +Summary: The App Framework library of OSP +Version: 1.2.2.1 +Release: 1 +Group: Application Framework/Libraries +License: Apache-2.0 or Flora +Url: https://review.tizen.org/git/?p=platform/framework/native/appfw.git;a=summary +Source0: %{name}-%{version}.tar.gz +Source1001: osp-appfw.manifest BuildRequires: cmake BuildRequires: pkgconfig(capi-appfw-application) BuildRequires: pkgconfig(capi-content-mime-type) @@ -18,14 +17,14 @@ BuildRequires: pkgconfig(capi-system-power) BuildRequires: pkgconfig(capi-system-runtime-info) 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-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(sysman) BuildRequires: pkgconfig(tapi) BuildRequires: pkgconfig(alarm-service) BuildRequires: pkgconfig(appsvc) @@ -39,15 +38,14 @@ 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(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(iniparser) BuildRequires: pkgconfig(libpcre) @@ -73,83 +71,81 @@ BuildRequires: capi-security-privilege-manager-devel BuildRequires: boost-devel BuildRequires: gettext-tools BuildRequires: pkgconfig(security-server) -BuildRequires: pkgconfig(badge) +BuildRequires: pkgconfig(appinfo) >= 0.1.2 # runtime requires -Requires: capi-appfw-application -Requires: capi-appfw-package-manager -Requires: capi-content-mime-type -Requires: capi-network-serial -Requires: capi-system-runtime-info -Requires: capi-security-privilege-manager -Requires: chromium -Requires: message-port -Requires: osp-env-config -Requires: sqlite -Requires: iniparser - -Provides: libosp-appfw.so.1, libosp-newlib.so.1 - -Requires(post): /sbin/ldconfig -Requires(post): coreutils -Requires(postun): /sbin/ldconfig +Requires: capi-appfw-application +Requires: capi-appfw-package-manager +Requires: capi-content-mime-type +Requires: capi-network-serial +Requires: capi-system-runtime-info +Requires: capi-security-privilege-manager +Requires: chromium +Requires: message-port +Requires: osp-env-config +Requires: sqlite +Requires: iniparser + +Provides: libosp-appfw.so.1 + +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) -Group: TO_BE/FILLED_IN -Requires: %{name} = %{version}-%{release} -Requires: boost-devel -Requires: pkgconfig(pkgmgr-info) +Summary: The App Framework library of OSP (Development) +Requires: %{name} = %{version}-%{release} +Requires: boost-devel +Requires: pkgconfig(pkgmgr-info) %description devel -The App Framework library of OSP (DEV) +The App Framework library of OSP (DEV) %package internal-devel -Summary: osp app framework internel (Internal) -Group: TO_BE/FILLED_IN +Summary: OSP app framework internal (Internal) Requires: %{name} = %{version}-%{release} +Requires: %{name}-devel %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 +cp %{SOURCE1001} . %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 -# Call make instruction with smp support -#make %{?jobs:-j%jobs} +%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=${ARCH} + make %{?_smp_mflags} %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} - %make_install +%find_lang osp %post -/bin/rm -f /etc/ld.so.cache /sbin/ldconfig mkdir -p /opt/usr/share/.osp-compat/share/AppControl @@ -159,8 +155,7 @@ 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 /opt/usr/media/DCIM/Camera mkdir -p /tmp/osp @@ -174,24 +169,26 @@ chmod 444 /opt/usr/etc/clocale.list %postun -p /sbin/ldconfig -%files -%manifest osp-appfw.manifest -/usr/share/license/%{name} -%config /etc/* +%files -f osp.lang + +%manifest %{name}.manifest +%license LICENSE.APLv2 LICENSE.Flora +%config %{_sysconfdir}/* %config /opt/usr/etc/* /usr/share/locale/* -%config /usr/etc/* +%config %{_prefix}/etc/* +%attr(755,root,app_logging) /usr/bin/nativeinfologctrl %{_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 +%manifest %{name}.manifest %{_includedir}/osp/*.h %{_includedir}/osp/*.hpp -%{_libdir}/pkgconfig/osp-appfw.pc %files internal-devel +%manifest %{name}.manifest %{_includedir}/osp/app/* %{_includedir}/osp/base/* %{_includedir}/osp/io/* @@ -200,12 +197,6 @@ chmod 444 /opt/usr/etc/clocale.list %{_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 - -%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*