# should not disable features. This allows the developer to override
# features through the command line.
+if test "x$enable_profile" = "xMOBILE"; then
+PKG_CHECK_MODULES(OPENGLES20, gles20)
+else
PKG_CHECK_MODULES(OPENGLES20, glesv2 egl)
+fi
if test "x$enable_profile" != "xUBUNTU"; then
PKG_CHECK_MODULES(CAPI_APPFW_APPLICATION, capi-appfw-application)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: boost-thread
+Requires: boost-chrono
Requires: giflib
BuildRequires: pkgconfig
BuildRequires: gawk
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(capi-system-system-settings)
BuildRequires: pkgconfig(libpng)
-BuildRequires: pkgconfig(opengl-es-20)
+BuildRequires: pkgconfig(gles20)
BuildRequires: pkgconfig(efl-assist)
BuildRequires: libcurl-devel
BuildRequires: pkgconfig(harfbuzz)
%setup -q
%define dali_data_rw_dir /opt/usr/share/dali/
%define dali_data_ro_dir /usr/share/dali/
+%define smack_rule_dir /etc/smack/accesses2.d/
%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/
cd build/tizen
%make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
+##############################
+# Smack
+##############################
+mkdir -p %{buildroot}%{smack_rule_dir}
+cp -f %{_builddir}/%{name}-%{version}/%{name}.rule-mobile %{buildroot}%{smack_rule_dir}/%{name}.rule
+
# LICENSE
mkdir -p %{buildroot}/usr/share/license
cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
%files
%manifest dali-adaptor.manifest-mobile
%defattr(-,root,root,-)
+%{smack_rule_dir}/%{name}.rule
%{_libdir}/libdali-adap*.so*
%defattr(-,app,app,-)
%dir %{user_shader_cache_dir}