libXrender should not try to build into a pure wayland platform.
[platform/upstream/libXrender.git] / packaging / libXrender.spec
index 90647c6..2e8a284 100644 (file)
@@ -1,3 +1,5 @@
+%bcond_with x
+
 Name:           libXrender
 Version:        0.9.7
 Release:        0
@@ -13,6 +15,10 @@ BuildRequires:  pkgconfig(renderproto) >= 0.9
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xorg-macros) >= 1.8
 
+%if !%{with x}
+ExclusiveArch:
+%endif
+
 %description
 The Xrender library is designed as a lightweight library interface to
 the Render extension.