aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2018-11-10 07:30:23 +0100
committerMihai Moldovan <ionic@ionic.de>2018-11-10 07:33:00 +0100
commit93c9b8862e68a5be51852dbaaf8d2e005c0b2b54 (patch)
tree9d19a741d07056c3cbe1892fc2d2154f79cf6902
parent89f1e3baa7cf7bd40ceb28d735026c3ece321293 (diff)
downloadnx-libs-93c9b8862e68a5be51852dbaaf8d2e005c0b2b54.tar.gz
nx-libs-93c9b8862e68a5be51852dbaaf8d2e005c0b2b54.tar.bz2
nx-libs-93c9b8862e68a5be51852dbaaf8d2e005c0b2b54.zip
nx-libs.spec: newer versions of SLE* and OpenSuSE use xkbcomp-devel, while RedHat-based distros want xorg-x11-xkb-utils-devel for xkbcomp.pc.
-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...