[3.0] change absolute dir to TZ_* path 19/63519/1
authorminho.sun <minho.sun@samsung.com>
Thu, 24 Mar 2016 10:17:32 +0000 (19:17 +0900)
committerminho.sun <minho.sun@samsung.com>
Thu, 24 Mar 2016 10:17:32 +0000 (19:17 +0900)
 Change absolute dir to TZ_* path

     variable       |     actual path
----------------------------------------
%TZ_SYS_BIN         |    /usr/bin
%TZ_SYS_RUN         |    /var/run
%TZ_SYS_DATA        |    /opt/data
%TZ_SYS_RW_APP      |    /opt/usr/apps
%TZ_SYS_DB          |    /opt/dbspace
%TZ_SYS_SHARE       |    /opt/share
%TZ_SYS_ETC         |    /opt/etc
%TZ_SYS_HOME        |    /home
%TZ_SYS_ROOT        |    /root
%TZ_SYS_RO_APP      |    /usr/apps
%TZ_SYS_RO_ICONS    |    /usr/share/icons
%TZ_SYS_RO_PACKAGES |    /usr/share/pakages
%TZ_SYS_RO_UG       |    /usr/ug

Change-Id: Icc0e03ee703f1ef66a04d268b9b77e137cc78959

packaging/com.samsung.dali-demo.spec

index fe61171ccb21460825c28d79097105fe3e14b088..e87ee7b45aa43fa1d0b5adaf48be265e96d5fa44 100755 (executable)
@@ -20,6 +20,7 @@ BuildRequires:  pkgconfig(dlog)
 BuildRequires:  gettext-tools
 BuildRequires:  pkgconfig(dali-core)
 BuildRequires:  pkgconfig(dali-toolkit)
+BuildRequires:  pkgconfig(libtzplatform-config)
 
 # DALi C++ applications always run on dali-adaptor.
 BuildRequires:  pkgconfig(dali-adaptor)
@@ -33,11 +34,12 @@ of the capability of the toolkit.
 ##############################
 %prep
 %setup -q
-%define dali_app_ro_dir       /usr/apps/com.samsung.dali-demo/
+%define dali_app_ro_dir       %TZ_SYS_RO_APP/com.samsung.dali-demo/
 %define dali_app_exe_dir      %{dali_app_ro_dir}/bin/
-%define dali_xml_file_dir     /usr/share/packages/
-%define dali_icon_dir         /usr/share/icons/
-%define smack_rule_dir        /etc/smack/accesses2.d/
+%define dali_xml_file_dir     %TZ_SYS_RO_PACKAGES
+%define dali_icon_dir         %TZ_SYS_RO_ICONS
+%define smack_rule_dir        /etc/smack/accesses2.d/%TZ_SYS_RO_PACKAGES
+
 %define locale_dir            %{dali_app_ro_dir}/res/locale
 %define local_style_dir       ../../resources/style/mobile