Tizen Directory Migration 10/78110/2
authorminho.sun <minho.sun@samsung.com>
Mon, 4 Jul 2016 09:25:27 +0000 (18:25 +0900)
committerminho.sun <minho.sun@samsung.com>
Mon, 18 Jul 2016 05:20:41 +0000 (14:20 +0900)
Change absolute Directories to Tizen paths

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

index fead10f..eb2312d 100644 (file)
@@ -20,6 +20,12 @@ 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 +63,17 @@ 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/
+%else
+%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/