+#
+
+%bcond_with wayland
+
Name: ecore
Version: 1.7.3
Release: 1
BuildRequires: curl-devel
BuildRequires: doxygen
BuildRequires: gettext
-## BuildRequires: pkgconfig(xscrnsaver)
+BuildRequires: libgcrypt-devel
+%if %{with wayland}
+BuildRequires: libwayland-egl
+BuildRequires: pkgconfig(wayland-client)
+BuildRequires: pkgconfig(wayland-cursor)
+BuildRequires: pkgconfig(xkbcommon)
+%endif
BuildRequires: pkgconfig(eet)
+BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(evas)
+BuildRequires: pkgconfig(gl)
+BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(pixman-1)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xi)
-#BuildRequires: pkgconfig(xinerama)
+BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xrandr)
+BuildRequires: pkgconfig(xscrnsaver)
BuildRequires: pkgconfig(xt)
-BuildRequires: pkgconfig(egl)
-BuildRequires: pkgconfig(gl)
-BuildRequires: pkgconfig(glesv2)
-BuildRequires: libgcrypt-devel
%description
Ecore is the event/X abstraction layer that makes doing selections,
%setup -q
%build
-%configure --disable-static
+%configure \
+%if %{with wayland}
+ --enable-ecore-wayland \
+ --enable-ecore-evas-wayland-egl \
+%endif
+ --disable-static
make %{?_smp_mflags}
%install
%find_lang ecore
%post -p /sbin/ldconfig
+
%postun -p /sbin/ldconfig