From 93c9b8862e68a5be51852dbaaf8d2e005c0b2b54 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Sat, 10 Nov 2018 07:30:23 +0100 Subject: 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. --- nx-libs.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'nx-libs.spec') 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... -- cgit v1.2.3