diff options
author | Mihai Moldovan <ionic@ionic.de> | 2018-11-10 07:30:23 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2018-11-10 07:33:00 +0100 |
commit | 93c9b8862e68a5be51852dbaaf8d2e005c0b2b54 (patch) | |
tree | 9d19a741d07056c3cbe1892fc2d2154f79cf6902 /nx-libs.spec | |
parent | 89f1e3baa7cf7bd40ceb28d735026c3ece321293 (diff) | |
download | nx-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.
Diffstat (limited to 'nx-libs.spec')
-rw-r--r-- | nx-libs.spec | 11 |
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... |