From 8cca3f09d85a4eaab2df1d671a0f57972b1c167d Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Fri, 15 Dec 2017 08:26:23 +0100 Subject: nx-libs.spec: actually use a weak dependency for xkeyboard-config. At least on platforms that support weak dependencies. --- nx-libs.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nx-libs.spec b/nx-libs.spec index 440e72c9c..9506cb7a2 100644 --- a/nx-libs.spec +++ b/nx-libs.spec @@ -316,7 +316,17 @@ Requires: xorg-x11-font-utils # Should be a weak dependency, because this package # works without the dependency. +# *SUSE supports weak dependencies since version 10, +# so when it comes to our "supported" platforms any +# *SUSE version supports that feature. +# Fedora supports it since version 21. RHEL has not +# yet had any release based on anything newer than +# FC19, so no support on RHEL. +%if 0%{?fedora} >= 21 || 0%{?suse_version} +Recommends: xkeyboard-config +%else Requires: xkeyboard-config +%endif # For /usr/bin/xkbcomp %if 0%{?fedora} || 0%{?rhel} -- cgit v1.2.3