From: Daekwang Ryu Date: Thu, 3 Jun 2021 06:27:49 +0000 (+0900) Subject: Fix to build incrementally with gbs X-Git-Tag: dali_2.0.38~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F259386%2F3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Fix to build incrementally with gbs Incremental build with gbs calls the prep section in the rpm spec once. It doesn't execute the section from second. Change-Id: I5eaa375566013bd91de206a34fd0acee937a4e6b --- diff --git a/packaging/dali-toolkit.spec b/packaging/dali-toolkit.spec index 632815e..0a4cd44 100644 --- a/packaging/dali-toolkit.spec +++ b/packaging/dali-toolkit.spec @@ -100,12 +100,6 @@ Requires: %{dali2_scene_loader} = %{version}-%{release} %description -n %{dali2_scene_loader}-devel Development components for dali-scene-loader. -############################## -# Preparation -############################## -%prep -%setup -q - %define dali_data_rw_dir %TZ_SYS_SHARE/dali/ %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/ @@ -116,6 +110,16 @@ Development components for dali-scene-loader. %define dali_xml_file_dir %TZ_SYS_RO_PACKAGES +############################## +# Preparation +############################## +%prep +%setup -q + +############################## +# Build +############################## +%build # PO { cd %{_builddir}/dali2-toolkit-%{version}/dali-toolkit/po @@ -126,10 +130,6 @@ do done } &> /dev/null -############################## -# Build -############################## -%build PREFIX="/usr" CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections " LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "