aboutsummaryrefslogtreecommitdiff
path: root/nx-libs.spec
diff options
context:
space:
mode:
Diffstat (limited to 'nx-libs.spec')
-rw-r--r--nx-libs.spec11
1 files changed, 9 insertions, 2 deletions
diff --git a/nx-libs.spec b/nx-libs.spec
index 396ff2323..306621929 100644
--- a/nx-libs.spec
+++ b/nx-libs.spec
@@ -32,10 +32,17 @@ BuildRequires: pkgconfig
%if 0%{?suse_version} && 0%{?suse_version} < 1210
BuildRequires: xorg-x11-util-devel
%else
-# we need xkbcomp.pc
-BuildRequires: xorg-x11-xkb-utils-devel
BuildRequires: imake
%endif
+# For xkbcomp.pc.
+%if 0%{?suse_version}
+# Earlier versions don't have xkbcomp.pc at all.
+%if 0%{?suse_version} >= 1210
+BuildRequires: xkbcomp-devel
+%endif
+%else
+BuildRequires: xorg-x11-xkb-utils-devel
+%endif
# ideally we build with quilt (for mesa-quilt patch appliance script),
# it seems Fedora has it...