DALI_EXTENSION_VERSION=dali_version
AC_SUBST(DALI_EXTENSION_VERSION)
+AC_ARG_WITH([tizen_55_or_greater],
+ [AC_HELP_STRING([--with-tizen-55-or-greater],
+ [Use this conditional when Tizen version is 5.5 or greater])],
+ [with_tizen_55_or_greater=yes],
+ [with_tizen_55_or_greater=no])
+
PKG_CHECK_MODULES([DALI], [dali-core dali-adaptor dali-toolkit])
AC_CONFIG_SUBDIRS(key)
AC_CONFIG_SUBDIRS(video-player)
-AC_CONFIG_SUBDIRS(web-engine-chromium)
AC_CONFIG_SUBDIRS(image-loader)
-AC_CONFIG_SUBDIRS(vector-animation-renderer)
AC_CONFIG_SUBDIRS(color-controller)
-AC_CONFIG_SUBDIRS(web-engine-lwe)
+
+if test "x$with_tizen_55_or_greater" = "xyes"; then
+ AC_CONFIG_SUBDIRS(vector-animation-renderer)
+ AC_CONFIG_SUBDIRS(web-engine-chromium)
+ AC_CONFIG_SUBDIRS(web-engine-lwe)
+fi
devincludepath=${includedir}
AC_SUBST(devincludepath)
%description
dali-extension
+%if 0%{?tizen_version_major} >= 4
+%define tizen_40_or_greater 1
+%if 0%{?tizen_version_major} >= 5
+%define tizen_50_or_greater 1
+%if 0%{?tizen_version_minor} >= 5
+%define tizen_55_or_greater 1
+%endif
+%endif
+%endif
+
##############################
# devel
##############################
%package web-engine-chromium-plugin
Summary: Plugin to support WebView for Dali
Group: System/Libraries
+%if 0%{?tizen_55_or_greater}
BuildRequires: pkgconfig(libtbm)
BuildRequires: pkgconfig(chromium-efl)
BuildRequires: pkgconfig(elementary)
+%endif
%description web-engine-chromium-plugin
Web Engine chromium plugin to support WebView for Dali
####################################
# Vector Animation Renderer Plugin
####################################
-
%package vector-animation-renderer-plugin
Summary: Plugin to render a vector animation
Group: System/Libraries
+%if 0%{?tizen_55_or_greater}
BuildRequires: pkgconfig(rlottie)
+%endif
%description vector-animation-renderer-plugin
Plugin to render a vector animation
%package web-engine-lwe-plugin
Summary: Plugin to support WebView for Dali
Group: System/Libraries
+%if 0%{?tizen_55_or_greater}
BuildRequires: pkgconfig(libtbm)
BuildRequires: pkgconfig(lightweight-web-engine)
+%endif
%description web-engine-lwe-plugin
Web Engine LWE(Light-weight Web Engine) plugin to support WebView for Dali
autoreconf --install
%configure --prefix=$PREFIX \
+%if 0%{?tizen_50_or_greater}
+ --with-tizen-50-or-greater \
+%endif
+%if 0%{?tizen_55_or_greater}
+ --with-tizen-55-or-greater \
+%endif
--enable-keyextension
%if 0%{?use_image_loader}
%configure \
/sbin/ldconfig
exit 0
+%if 0%{?tizen_55_or_greater}
%post web-engine-chromium-plugin
pushd %{_libdir}
ln -sf libdali-web-engine-chromium-plugin.so libdali-web-engine-plugin.so
popd
/sbin/ldconfig
exit 0
+%endif
%post image-loader-plugin
/sbin/ldconfig
exit 0
+%if 0%{?tizen_55_or_greater}
%post vector-animation-renderer-plugin
/sbin/ldconfig
exit 0
+%endif
%post color-controller-plugin
/sbin/ldconfig
exit 0
+%if 0%{?tizen_55_or_greater}
%post web-engine-lwe-plugin
/sbin/ldconfig
exit 0
+%endif
##############################
# Pre Uninstall old package
/sbin/ldconfig
exit 0
+%if 0%{?tizen_55_or_greater}
%postun web-engine-chromium-plugin
/sbin/ldconfig
exit 0
+%endif
%postun image-loader-plugin
/sbin/ldconfig
exit 0
+%if 0%{?tizen_55_or_greater}
%postun vector-animation-renderer-plugin
/sbin/ldconfig
exit 0
+%endif
%postun color-controller-plugin
/sbin/ldconfig
exit 0
+%if 0%{?tizen_55_or_greater}
%postun web-engine-lwe-plugin
/sbin/ldconfig
exit 0
+%endif
##############################
# Files in Binary Packages
%{_libdir}/libdali-video-player-plugin.so*
%license LICENSE
+%if 0%{?tizen_55_or_greater}
%files web-engine-chromium-plugin
%manifest dali-extension.manifest
%defattr(-,root,root,-)
%{_libdir}/libdali-web-engine-chromium-plugin.so*
%license LICENSE
+%endif
%if 0%{?use_image_loader}
%files image-loader-plugin
%license LICENSE
%endif
+%if 0%{?tizen_55_or_greater}
%files vector-animation-renderer-plugin
%manifest dali-extension.manifest
%defattr(-,root,root,-)
%{_libdir}/libdali-vector-animation-renderer-plugin.so*
%license LICENSE
+%endif
%files color-controller-plugin
%manifest dali-extension.manifest
%{_libdir}/libdali-color-controller-plugin.so*
%license LICENSE
+%if 0%{?tizen_55_or_greater}
%files web-engine-lwe-plugin
%manifest dali-extension.manifest
%defattr(-,root,root,-)
%{_libdir}/libdali-web-engine-lwe-plugin.so*
%license LICENSE
+%endif