Commit bd22594e6dec42eaf6b58e14093a2144fa60b891

Authored by minho.sun
1 parent cb003cf9

Use TZ_path on Tizen 3.x

Use TZ_path on Tizen 3.x .

btzplatform-config has TZ_path variable.

Attach variable table below.

     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: I09ea4314a76a9445e1dd3c91f3fd4bd8c63dc155
packaging/com.samsung.dali-demo.spec
@@ -21,6 +21,11 @@ BuildRequires: gettext-tools @@ -21,6 +21,11 @@ BuildRequires: gettext-tools
21 BuildRequires: pkgconfig(dali-core) 21 BuildRequires: pkgconfig(dali-core)
22 BuildRequires: pkgconfig(dali-toolkit) 22 BuildRequires: pkgconfig(dali-toolkit)
23 23
  24 +#need libtzplatform-config for directory if tizen version is 3.x
  25 +%if "%{tizen_version_major}" == "3"
  26 +BuildRequires: pkgconfig(libtzplatform-config)
  27 +%endif
  28 +
24 # DALi C++ applications always run on dali-adaptor. 29 # DALi C++ applications always run on dali-adaptor.
25 BuildRequires: pkgconfig(dali-adaptor) 30 BuildRequires: pkgconfig(dali-adaptor)
26 31
@@ -33,10 +38,22 @@ of the capability of the toolkit. @@ -33,10 +38,22 @@ of the capability of the toolkit.
33 ############################## 38 ##############################
34 %prep 39 %prep
35 %setup -q 40 %setup -q
  41 +
  42 +
  43 +#Use TZ_PATH when tizen version is 3.x
  44 +%if "%{tizen_version_major}" == "2"
36 %define dali_app_ro_dir /usr/apps/com.samsung.dali-demo/ 45 %define dali_app_ro_dir /usr/apps/com.samsung.dali-demo/
37 -%define dali_app_exe_dir %{dali_app_ro_dir}/bin/  
38 %define dali_xml_file_dir /usr/share/packages/ 46 %define dali_xml_file_dir /usr/share/packages/
39 %define dali_icon_dir /usr/share/icons/ 47 %define dali_icon_dir /usr/share/icons/
  48 +%endif
  49 +
  50 +%if "%{tizen_version_major}" == "3"
  51 +%define dali_app_ro_dir %TZ_SYS_RO_APP/com.samsung.dali-demo/
  52 +%define dali_xml_file_dir %TZ_SYS_RO_PACKAGES
  53 +%define dali_icon_dir %TZ_SYS_RO_ICONS
  54 +%endif
  55 +
  56 +%define dali_app_exe_dir %{dali_app_ro_dir}/bin/
40 %define smack_rule_dir /etc/smack/accesses2.d/ 57 %define smack_rule_dir /etc/smack/accesses2.d/
41 %define locale_dir %{dali_app_ro_dir}/res/locale 58 %define locale_dir %{dali_app_ro_dir}/res/locale
42 %define local_style_dir ../../resources/style/mobile 59 %define local_style_dir ../../resources/style/mobile