aboutsummaryrefslogtreecommitdiff
path: root/nx-libs.spec
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2017-12-15 08:26:23 +0100
committerMihai Moldovan <ionic@ionic.de>2017-12-15 08:26:31 +0100
commit8cca3f09d85a4eaab2df1d671a0f57972b1c167d (patch)
tree79050efbd6bc96dc5f3dd2b1f6ab7790788b88b7 /nx-libs.spec
parent8cf5b5b7c7bcaa8465bbde0cefade28b537fb763 (diff)
downloadnx-libs-8cca3f09d85a4eaab2df1d671a0f57972b1c167d.tar.gz
nx-libs-8cca3f09d85a4eaab2df1d671a0f57972b1c167d.tar.bz2
nx-libs-8cca3f09d85a4eaab2df1d671a0f57972b1c167d.zip
nx-libs.spec: actually use a weak dependency for xkeyboard-config.
At least on platforms that support weak dependencies.
Diffstat (limited to 'nx-libs.spec')
-rw-r--r--nx-libs.spec10
1 files changed, 10 insertions, 0 deletions
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}