[3.0] Tizen Directory Migration 03/78503/1
authorminho.sun <minho.sun@samsung.com>
Wed, 6 Jul 2016 00:57:48 +0000 (09:57 +0900)
committerminho.sun <minho.sun@samsung.com>
Wed, 6 Jul 2016 00:57:48 +0000 (09:57 +0900)
Change absolute Directories to Tizen paths

Change-Id: I947e2c9661134d4cef2b3726a7a83c05799b236b
Signed-off-by: minho.sun <minho.sun@samsung.com>
packaging/dali-toolkit.spec

index 7ec107a..72a4a84 100644 (file)
@@ -20,6 +20,13 @@ BuildRequires: gettext
 # Applications or dali-addon will decide which one they will use.
 BuildRequires:  dali-adaptor-devel
 
+#need libtzplatform-config for directory if tizen version is 3.x
+
+%if "%{tizen_version_major}" == "3"
+BuildRequires:  pkgconfig(libtzplatform-config)
+%endif
+
+
 #############################
 # profile setup
 #############################
@@ -57,8 +64,19 @@ Application development package for the OpenGLES Canvas toolkit - headers and pa
 ##############################
 %prep
 %setup -q
+
+#Use TZ_PATH when tizen version is 3.x
+
+%if "%{tizen_version_major}" == "2"
 %define dali_data_rw_dir            /opt/usr/share/dali/
 %define dali_data_ro_dir            /usr/share/dali/
+%endif
+
+%if "%{tizen_version_major}" == "3"
+%define dali_data_rw_dir            %TZ_SYS_SHARE/dali/
+%define dali_data_ro_dir            %TZ_SYS_RO_SHARE/dali/
+%endif
+
 %define dali_toolkit_image_files    %{dali_data_ro_dir}/toolkit/images/
 %define dali_toolkit_sound_files    %{dali_data_ro_dir}/toolkit/sounds/
 %define dali_toolkit_style_files    %{dali_data_ro_dir}/toolkit/styles/