%global __provides_exclude_from ^.*\\.(wearable|mobile|tv|ivi|common)$
%endif
-%bcond_with wayland
+%bcond_without wayland
+%bcond_with x
Name: dali-adaptor
Summary: The DALi Tizen Adaptor
-Version: 1.3.20
+Version: 1.3.21
Release: 1
Group: System/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT
BuildRequires: wayland-extension-client-devel
# dali-adaptor uses ecore mainloop
+%if 0%{?tizen_version_major} >= 5
+BuildRequires: pkgconfig(ecore-wl2)
+%else
BuildRequires: pkgconfig(ecore-wayland)
+%endif
# dali-adaptor needs tbm_surface in tizen 3.0 wayland
BuildRequires: pkgconfig(libtbm)
%if %{with wayland}
CFLAGS+=" -DWAYLAND"
CXXFLAGS+=" -DWAYLAND"
+%if 0%{?tizen_version_major} >= 5
+CFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
+CXXFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
+%endif
configure_flags="--enable-wayland"
%endif
# Use this conditional when Tizen version is 4.x or greater
-%if 0%{?tizen_version_major} >= 4
-CXXFLAGS+=" -DOVER_TIZEN_VERSION_4"
+%if 0%{?tizen_version_major} >= 5
+CXXFLAGS+=" -DOVER_TIZEN_VERSION_5"
%endif
%if 0%{?tizen_2_2_compatibility}