License: BSD-2-Clause
URL: http://www.enlightenment.org
Source0: %{name}-%{version}.tar.gz
-BuildRequires: gettext-tools
-BuildRequires: pkgconfig(eina)
-BuildRequires: pkgconfig(eet)
-BuildRequires: pkgconfig(evas)
-BuildRequires: pkgconfig(glib-2.0)
+%if %{with wayland}
+BuildRequires: pkgconfig(wayland-egl)
+BuildRequires: pkgconfig(egl)
+BuildRequires: pkgconfig(wayland-cursor)
+BuildRequires: pkgconfig(xkbcommon)
+%else
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xrender)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xextproto)
BuildRequires: pkgconfig(xtst)
-BuildRequires: curl-devel
-BuildRequires: libjpeg-devel
BuildRequires: pkgconfig(xgesture)
+%endif
+BuildRequires: gettext-tools
+BuildRequires: pkgconfig(eina)
+BuildRequires: pkgconfig(eet)
+BuildRequires: pkgconfig(evas)
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(libcurl)
+BuildRequires: libjpeg-devel
%description
Requires: ecore-input
Requires: ecore-input-evas
Requires: ecore-ipc
+%if %{with wayland}
+Requires: ecore-wayland
+%else
Requires: ecore-x
+%endif
Requires: ecore-con
%description devel
%description ipc
Core abstraction layer for enlightenment (ipc)
+%if %{with wayland}
+%package wayland
+Summary: Enlightened Core interface library (wayland)
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description wayland
+Core abstraction layer for enlightenment (wayland)
+%else
%package x
Summary: Enlightened Core X interface library (x)
Requires: %{name} = %{version}-%{release}
%description x
Core abstraction layer for enlightenment (x)
+%endif
+
%package fb
Summary: Enlightened Core X interface library (fb)
export LDFLAGS+=" -fvisibility=hidden -Wl,--hash-style=both -Wl,--as-needed"
%autogen
+%if %{with wayland}
+%configure --prefix=/usr \
+ --enable-ecore-evas-wayland-shm \
+ --enable-ecore-evas-wayland-egl \
+ --enable-ecore-wayland \
+ --enable-ecore-evas \
+ --enable-glib-integration-always \
+ --disable-ecore-x
+
+%else
%configure --disable-static \
--enable-ecore-fb \
--enable-dependency-tracking \
--disable-xim \
--disable-ecore-imf-xim \
--disable-ecore-imf-scim
-
+%endif
make %{?jobs:-j%jobs}
%install
%postun ipc -p /sbin/ldconfig
+%if %{with wayland}
+%post wayland -p /sbin/ldconfig
+
+%postun wayland -p /sbin/ldconfig
+%else
%post x -p /sbin/ldconfig
%postun x -p /sbin/ldconfig
-
+%endif
%post fb -p /sbin/ldconfig
%{_libdir}/libecore_input.so
%{_libdir}/libecore_input_evas.so
%{_libdir}/libecore_ipc.so
+%if %{with wayland}
+%{_libdir}/libecore_wayland.so
+%else
%{_libdir}/libecore_x.so
+%endif
%{_libdir}/libecore_fb.so
%files tools
%{_libdir}/libecore_ipc.so.*
%manifest %{name}-ipc.manifest
+%if %{with wayland}
+%files wayland
+%defattr(-,root,root,-)
+%{_libdir}/libecore_wayland.so.*
+%else
%files x
%defattr(-,root,root,-)
%{_libdir}/libecore_x.so.*
%manifest %{name}-x.manifest
+%endif
%files fb
%defattr(-,root,root,-)