+%bcond_with wayland
+%bcond_with x
Name: elementary
Version: 1.7.8
Release: 2
BuildRequires: pkgconfig(ecore-evas)
BuildRequires: pkgconfig(ecore-file)
BuildRequires: pkgconfig(ecore-imf)
+%if %{with wayland}
+BuildRequires: pkgconfig(ecore-wayland)
+%endif
+%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(evas)
BuildRequires: pkgconfig(emotion)
BuildRequires: pkgconfig(ethumb_client)
-BuildRequires: pkgconfig(x11)
BuildRequires: eet-tools
%description
%build
-%autogen --disable-static --enable-build-examples
+%reconfigure --disable-static \
+%if %{with wayland}
+ --enable-ecore-wayland \
+%endif
+%if !%{with x}
+ --disable-ecore-x \
+%endif
+ --enable-build-examples
+
make %{?_smp_mflags}
%install