Name: dali
Summary: The OpenGLES Canvas Core Library
-Version: 1.1.15
+Version: 1.2.6
Release: 1
Group: System/Libraries
-License: Apache-2.0, BSD-2.0, MIT
+License: Apache-2.0 and BSD-2-Clause and MIT
URL: https://review.tizen.org/git/?p=platform/core/uifw/dali-core.git;a=summary
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: gawk
+%if "%{tizen_version_major}" == "3"
+BuildRequires: pkgconfig(libtzplatform-config)
+%endif
+
+
%description
The OpenGLES Canvas Core Library provides a 3D scene graph
##############################
%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 dev_include_path %{_includedir}
##############################
CXXFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
%endif
+%if 0%{?enable_coverage}
+CXXFLAGS+=" --coverage "
+LDFLAGS+=" --coverage "
+%endif
+
libtoolize --force
cd %{_builddir}/%{name}-%{version}/build/tizen
autoreconf --install
export DALI_DATA_RW_DIR
export DALI_DATA_RO_DIR
+# Default to GLES 2.0 if not specified.
+%{!?target_gles_version: %define target_gles_version 20}
+
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS;
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS;
LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS;
--localstatedir=%{_localstatedir} \
--sharedstatedir=%{_sharedstatedir} \
--mandir=%{_mandir} \
+ --enable-gles=%{target_gles_version} \
+%if 0%{?enable_debug}
+ --enable-debug \
+%endif
--infodir=%{_infodir}
make %{?jobs:-j%jobs}