dri2proto should not try to build into a pure wayland platform.
[platform/upstream/dri2proto.git] / packaging / dri2proto.spec
index 5ff4bb3..c456b63 100644 (file)
@@ -1,3 +1,5 @@
+%bcond_with x
+
 Name:     dri2proto
 Summary:  X.Org X11 Protocol dri2proto
 Version:  2.8
@@ -11,6 +13,10 @@ Source1001:  dri2proto.manifest
 BuildRequires: pkgconfig
 BuildRequires: pkgconfig(xorg-macros)
 
+%if !%{with x}
+ExclusiveArch:
+%endif
+
 %description
 %{summary}