add without x segment 94/13094/1
authorJuan Zhao <juan.j.zhao@intel.com>
Thu, 28 Nov 2013 01:54:36 +0000 (09:54 +0800)
committerJuan Zhao <juan.j.zhao@intel.com>
Thu, 28 Nov 2013 10:06:56 +0000 (18:06 +0800)
In IVI platform, some applications still requires cairo_xlib API, though
 the decent fix is to fix them in those applications.
To avoid the influcing those build failure, use without_x segment to disable
 x build.

Change-Id: I75960e639042b10b0ad498bdeddddbd3c0772c21

packaging/cairo.spec

index 6f28908..adbfce2 100644 (file)
@@ -1,6 +1,7 @@
 %bcond_without cairo_xcb_backend 
 %bcond_without cairo_gl_backend
 %bcond_with wayland
+%bcond_without x
 
 
 Name:           cairo
@@ -29,7 +30,7 @@ BuildRequires:  pkgconfig(glesv2)
 BuildRequires: pkgconfig(wayland-egl)
 %endif
 %endif
-%if %{with wayland}
+%if %{without x}
 %else
 BuildRequires:  pkgconfig(xext)
 BuildRequires:  pkgconfig(x11)
@@ -142,7 +143,7 @@ NOCONFIGURE=1 ./autogen.sh
     --enable-script \
     --enable-svg \
     --enable-tee \
-%if %{with wayland}
+%if %{without x}
    --disable-xlib \
    --disable-xcb  \
 %else