Name: dali-toolkit
Summary: The OpenGLES Canvas Core Library Toolkit
-Version: 1.2.42
+Version: 1.2.54
Release: 1
Group: System/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT
%define profile %{tizen_profile_name}
%endif
-%if "%{profile}" == "mobile"
-%define dali_toolkit_profile MOBILE
-%define dali_style_folder 720x1280
-# dali_style to be provided by build system as with dali_toolkit_profile or by passing --define 'dali_style 470x800' to the rpm build command
-%endif
-
-%if "%{profile}" == "tv"
-%define dali_toolkit_profile TV
-%define dali_style_folder 1920x1080
-%endif
-
-%if "%{?dali_style}"
- %define dali_style_folder %{dali_style}
-%endif
-
%description
The OpenGLES Canvas Core Library Toolkit - a set of controls that provide
user interface functionality.
DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
-%configure --enable-profile=%{dali_toolkit_profile} \
- --with-style=%{dali_style_folder} \
+%configure --enable-profile=TIZEN \
%if 0%{?enable_debug}
--enable-debug \
%endif
cp dali-toolkit/styles/default-feedback-theme.json %{buildroot}%{dali_toolkit_style_files}
##############################
+# Pre Install
+##############################
+
+%pre resources_480x800
+case "$1" in
+ 2)
+ pushd %{dali_toolkit_style_files}
+ rm -rf ./*
+ popd
+ ;;
+esac
+
+%pre resources_720x1280
+case "$1" in
+ 2)
+ pushd %{dali_toolkit_style_files}
+ rm -rf ./*
+ popd
+ ;;
+esac
+
+%pre resources_1920x1080
+case "$1" in
+ 2)
+ pushd %{dali_toolkit_style_files}
+ rm -rf ./*
+ popd
+ ;;
+esac
+
+##############################
# Post Install
##############################
%post
%post resources_720x1280
pushd %{dali_toolkit_style_files}/720x1280
for FILE in *; do mv ./"${FILE}" ../"${FILE}"; done
-rm -rf ./*
popd
%post resources_1920x1080
%postun resources_480x800
pushd %{dali_toolkit_style_files}
-rm -rf 480x800
+rm -rf *
popd
%postun resources_720x1280
pushd %{dali_toolkit_style_files}
-rm -rf 720x1280
+rm -rf *
popd
%postun resources_1920x1080
pushd %{dali_toolkit_style_files}
-rm -rf 1920x1080
+rm -rf *
popd
##############################