summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/xhost.spec6
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/xhost.spec b/packaging/xhost.spec
index 0baa182..0a95604 100644
--- a/packaging/xhost.spec
+++ b/packaging/xhost.spec
@@ -1,3 +1,5 @@
+%bcond_with x
+
Name: xhost
Version: 1.0.5
Release: 0
@@ -13,6 +15,10 @@ BuildRequires: pkgconfig(xau)
BuildRequires: pkgconfig(xmuu)
BuildRequires: pkgconfig(xorg-macros) >= 1.8
+%if !%{with x}
+ExclusiveArch:
+%endif
+
%description
xhost is used to manage the list of host names or user names
allowed to make connections to the X server.