libXft should not try to build into a pure wayland platform.
[platform/upstream/libXft.git] / packaging / libXft.spec
index a37492d..b1009a3 100644 (file)
@@ -1,3 +1,5 @@
+%bcond_with x
+
 Name:           libXft
 Version:        2.3.1
 Release:        0
@@ -17,6 +19,10 @@ BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xorg-macros) >= 1.8
 BuildRequires:  pkgconfig(xrender) >= 0.8.2
 
+%if !%{with x}
+ExclusiveArch:
+%endif
+
 %description
 Xft is a library that connects X applications with the FreeType font
 rasterization library. Xft uses fontconfig to locate fonts so it has
@@ -51,7 +57,7 @@ make %{?_smp_mflags}
 
 %postun  -p /sbin/ldconfig
 
-%files 
+%files
 %manifest %{name}.manifest
 %defattr(-,root,root)
 %license COPYING