X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fosp-appfw.spec;h=bcf5b08c5dcd9afab5f6c2ff445b4f8c7bd514de;hb=bee4a804e683c1b893a099838f520ac0463c2d7b;hp=64a7d1906b2b13873fa2c8249b48e8e27d1fd5ad;hpb=74b04323937cb9997ab7b7180bbeb6060e152c60;p=platform%2Fframework%2Fnative%2Fappfw.git diff --git a/packaging/osp-appfw.spec b/packaging/osp-appfw.spec index 64a7d19..bcf5b08 100644 --- a/packaging/osp-appfw.spec +++ b/packaging/osp-appfw.spec @@ -72,7 +72,6 @@ BuildRequires: capi-security-privilege-manager-devel BuildRequires: boost-devel BuildRequires: gettext-tools BuildRequires: pkgconfig(security-server) -BuildRequires: pkgconfig(badge) BuildRequires: pkgconfig(appinfo) >= 0.1.0 # runtime requires @@ -99,7 +98,6 @@ 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) @@ -108,16 +106,15 @@ Requires: pkgconfig(pkgmgr-info) 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 @@ -128,16 +125,24 @@ The App Framework library of OSP (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 + ARCH=x86 + CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_" + %if 0%{?simulator} + CXXFLAGS="$CXXFLAGS -D_OSP_EMUL_" + %endif %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 + 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 -%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 + +%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 %{?_smp_mflags} @@ -148,7 +153,7 @@ 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 @@ -192,7 +197,6 @@ chmod 444 /opt/usr/etc/clocale.list %files devel %{_includedir}/osp/*.h %{_includedir}/osp/*.hpp -%{_libdir}/pkgconfig/osp-appfw.pc %files internal-devel %{_includedir}/osp/app/* @@ -203,7 +207,7 @@ 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