From 5c70f3611160d316e4065c0c1798ecd8c24fb2c3 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 12 Feb 2020 12:24:50 +0800 Subject: [PATCH] rpm: define weak_deps for el8 RHEL/CentOS 8 comes with rpm 4.14, see https://centos.pkgs.org/8/centos-baseos-x86_64/rpm-4.14.2-25.el8.x86_64.rpm.html and https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/packaging_and_distributing_software/new-features-in-rhel-8_packaging-and-distributing-software and since "Recommends" was introduced by rpm 4.12, see https://fedoraproject.org/wiki/Changes/RPM-4.12 . so we are able to use "Recommends" in el8 as well. Signed-off-by: Kefu Chai --- ceph.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index 99f190668840..ccc3f2843415 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -71,7 +71,7 @@ # distros that do _not_ ship cmd2/colorama %bcond_with cephfs_shell %endif -%if 0%{?fedora} || 0%{?suse_version} +%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8 %global weak_deps 1 %endif %if %{with selinux} -- 2.47.3