From: Heeyong Song Date: Fri, 1 Sep 2017 01:21:52 +0000 (+0900) Subject: [Tizen] Fix resource package install issue X-Git-Tag: accepted/tizen/4.0/unified/20170907.192405~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F147073%2F2;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git [Tizen] Fix resource package install issue Change-Id: I32d0fba8d0f0244a729ea25458fecb34adef03fb --- diff --git a/packaging/dali-toolkit.spec b/packaging/dali-toolkit.spec index 10159cf..043c1f3 100644 --- a/packaging/dali-toolkit.spec +++ b/packaging/dali-toolkit.spec @@ -232,19 +232,19 @@ popd %preun resources_480x800 pushd %{dali_toolkit_style_files} mv images ./480x800 -mv *.json ./480x800 +mv dali-toolkit-default-theme.json ./480x800 popd %preun resources_720x1280 pushd %{dali_toolkit_style_files} mv images ./720x1280 -mv *.json ./720x1280 +mv dali-toolkit-default-theme.json ./720x1280 popd %preun resources_1920x1080 pushd %{dali_toolkit_style_files} mv images ./1920x1080 -mv *.json ./1920x1080 +mv dali-toolkit-default-theme.json ./1920x1080 popd ############################## @@ -255,19 +255,31 @@ popd exit 0 %postun resources_480x800 -pushd %{dali_toolkit_style_files} -rm -rf * -popd +case "$1" in + 0) + pushd %{dali_toolkit_style_files} + rm -rf * + popd + ;; +esac %postun resources_720x1280 -pushd %{dali_toolkit_style_files} -rm -rf * -popd +case "$1" in + 0) + pushd %{dali_toolkit_style_files} + rm -rf * + popd + ;; +esac %postun resources_1920x1080 -pushd %{dali_toolkit_style_files} -rm -rf * -popd +case "$1" in + 0) + pushd %{dali_toolkit_style_files} + rm -rf * + popd + ;; +esac ############################## # Files in Binary Packages