BuildRequires: pkg-config
BuildRequires: xz
BuildRequires: pkgconfig(fontconfig)
-BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(pixman-1)
-BuildRequires: pkgconfig(x11)
BuildRequires: which
-%if %{with cairo_xcb_backend}
-BuildRequires: pkgconfig(xcb)
-BuildRequires: pkgconfig(xcb-shm)
-%endif
%if %{with cairo_gl_backend}
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glesv2)
%if %{with wayland}
BuildRequires: pkgconfig(wayland-egl)
+%else
+BuildRequires: pkgconfig(xext)
+BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(xrender)
+%if %{with cairo_xcb_backend}
+BuildRequires: pkgconfig(xcb)
+BuildRequires: pkgconfig(xcb-shm)
+%endif
%endif
%endif
-BuildRequires: pkgconfig(xrender)
%description
Cairo is a vector graphics library with cross-device output support.
--enable-script \
--enable-svg \
--enable-tee \
+%if %{with wayland}
+ --disable-xlib \
+ --disable-xcb \
+%else
+ --enable-xlib \
%if %{with cairo_xcb_backend}
--enable-xcb \
%endif
- --enable-xlib \
+%endif
--disable-gtk-doc \
--disable-static
make %{?_smp_mflags} V=1