summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/xinput.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/packaging/xinput.spec b/packaging/xinput.spec
index 54ef3b3..2ff6bcb 100644
--- a/packaging/xinput.spec
+++ b/packaging/xinput.spec
@@ -1,4 +1,4 @@
-#
+%bcond_with x
Name: xinput
Version: 1.6.0
@@ -18,6 +18,10 @@ BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xorg-macros) >= 1.3
BuildRequires: pkgconfig(xrandr)
+%if !%{with x}
+ExclusiveArch:
+%endif
+
%description
xinput is a utility to configure and test XInput devices.