Name: com.samsung.dali-demo
Summary: The OpenGLES Canvas Core Demo
-Version: 1.4.10
+Version: 1.9.26
Release: 1
Group: System/Libraries
License: Apache-2.0
BuildRequires: pkgconfig(capi-media-player)
BuildRequires: pkgconfig(dlog)
BuildRequires: gettext-tools
-BuildRequires: pkgconfig(dali-core)
-BuildRequires: pkgconfig(dali-adaptor)
-BuildRequires: pkgconfig(dali-toolkit)
-
-#need libtzplatform-config for directory if tizen version is 3.x
-%if 0%{?tizen_version_major} >= 3
+BuildRequires: pkgconfig(dali2-core)
+BuildRequires: pkgconfig(dali2-adaptor)
+BuildRequires: pkgconfig(dali2-toolkit)
BuildRequires: pkgconfig(libtzplatform-config)
-%endif
%description
The OpenGLES Canvas Core Demo is a collection of examples and demonstrations
%prep
%setup -q
-#Use TZ_PATH when tizen version is 3.x
-
-%if "%{tizen_version_major}" == "2"
-%define dali_app_ro_dir /usr/apps/com.samsung.dali-demo/
-%define dali_xml_file_dir /usr/share/packages/
-%define dali_icon_dir /usr/share/icons/
-%define smack_rule_dir /etc/smack/accesses2.d/
-%else
%define dali_app_ro_dir %TZ_SYS_RO_APP/com.samsung.dali-demo/
%define dali_xml_file_dir %TZ_SYS_RO_PACKAGES
%define dali_icon_dir %TZ_SYS_RO_ICONS
%define smack_rule_dir %TZ_SYS_SMACK/accesses2.d/
-%endif
%define dali_app_res_dir %{dali_app_ro_dir}/res/
%define dali_app_exe_dir %{dali_app_ro_dir}/bin/
cd %{_builddir}/%{name}-%{version}/build/tizen
-cmake -DDALI_APP_DIR=%{dali_app_ro_dir} \
+cmake -DDALI_APP_DIR=%{dali_app_ro_dir}/bin \
-DLOCALE_DIR=%{locale_dir} \
-DDALI_APP_RES_DIR=%{dali_app_res_dir} \
%if 0%{?enable_debug}
%install
rm -rf %{buildroot}
cd build/tizen
-%make_install DALI_APP_DIR=%{dali_app_ro_dir}
+%make_install DALI_APP_DIR=%{dali_app_ro_dir}/bin
%make_install DDALI_APP_RES_DIR=%{dali_app_res_dir}
mkdir -p %{buildroot}%{dali_xml_file_dir}