Name: dali-adaptor
Summary: The DALi Tizen Adaptor
-Version: 1.0.24
+Version: 1.0.51
Release: 1
Group: System/Libraries
License: Apache-2.0
%define dali_profile WEARABLE
%define dali_wearable_profile 1
+%define dali_feedback_plugin 0
+%define dali_assimp_plugin 0
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(gles20)
BuildRequires: pkgconfig(efl-assist)
+BuildRequires: libcurl-devel
+BuildRequires: pkgconfig(harfbuzz)
+BuildRequires: fribidi-devel
+
+%if 0%{?dali_assimp_plugin}
+BuildRequires: pkgconfig(assimp)
+%endif
%description
The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
Summary: Development components for the DALi Tizen Adaptor
Group: Development/Building
Requires: %{name} = %{version}-%{release}
+Requires: boost-devel
%description devel
Development components for the DALi Tizen Adaptor - public headers and package configs
%package dali-feedback-plugin
Summary: Plugin to play haptic and audio feedback for Dali
Group: System/Libraries
+%if 0%{?dali_feedback_plugin}
Requires: libdeviced
BuildRequires: pkgconfig(mm-sound)
BuildRequires: pkgconfig(deviced)
BuildRequires: libfeedback-devel
+%endif
%description dali-feedback-plugin
Feedback plugin to play haptic and audio feedback for Dali
%setup -q
%define dali_data_rw_dir /opt/usr/share/dali/
%define dali_data_ro_dir /usr/share/dali/
-%define user_font_cache_dir %{dali_data_rw_dir}/glyphcache/
-%define user_shader_cache_dir %{dali_data_rw_dir}/core/shaderbin/
+%define user_shader_cache_dir %{dali_data_ro_dir}/core/shaderbin/
%define font_preloaded_path /usr/share/fonts/
%define font_downloaded_path /opt/share/fonts/
%define font_application_path /usr/share/app_fonts/
%build
PREFIX+="/usr"
CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
-LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections "
-
-%if 0%{?sec_build_binary_debug_enable}
-export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
-export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
-%endif
+LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
%ifarch %{arm}
CXXFLAGS+=" -D_ARCH_ARM_ -lgcc"
FONT_APPLICATION_PATH="%{font_application_path}" ; export FONT_APPLICATION_PATH
FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
-%configure --with-jpeg-turbo --enable-gles=30 --enable-profile=%{dali_profile} --libdir=%{_libdir}
+%configure --with-jpeg-turbo --enable-gles=20 --enable-profile=%{dali_profile} \
+%if 0%{?dali_feedback_plugin}
+ --enable-feedback \
+%endif
+%if 0%{?dali_assimp_plugin}
+ --enable-assimp \
+%endif
+ --libdir=%{_libdir}
make %{?jobs:-j%jobs}
##############################
%pre
-rm -f %{user_font_cache_dir}/*
-rm -f %{user_shader_cache_dir}/*
exit 0
##############################
##############################
%post
/sbin/ldconfig
-chown 5000:5000 %{user_font_cache_dir}
-chown 5000:5000 %{user_shader_cache_dir}
exit 0
%if 0%{?dali_feedback_plugin}
# Pre Uninstall old package
##############################
%preun
-rm -f %{user_font_cache_dir}/*
-rm -f %{user_shader_cache_dir}/*
exit 0
##############################
%defattr(-,root,root,-)
%{_libdir}/libdali-adap*.so*
%defattr(-,app,app,-)
-%dir %{user_font_cache_dir}
%dir %{user_shader_cache_dir}
%{_bindir}/*
%{_datadir}/license/%{name}