+%bcond_with wayland
+%bcond_with x
Name: elementary
Version: 1.7.8
Release: 2
BuildRequires: pkgconfig(ecore-fb)
BuildRequires: pkgconfig(ecore-file)
BuildRequires: pkgconfig(ecore-imf)
+%if %{with x}
BuildRequires: pkgconfig(ecore-x)
+BuildRequires: pkgconfig(x11)
+%endif
BuildRequires: pkgconfig(edbus)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(eet)
BuildRequires: pkgconfig(efreet)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(evas)
-BuildRequires: pkgconfig(x11)
+
BuildRequires: eet-tools
BuildRequires: python-devel
%build
-%autogen --disable-static --enable-build-examples
+%autogen --disable-static \
+%if %{with wayland}
+ --enable-ecore-wayland \
+%endif
+%if !%{with x}
+ --disable-ecore-x \
+%endif
+ --enable-build-examples
+
make %{?_smp_mflags}
%install