]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: define weak_deps for el8 33229/head
authorKefu Chai <kchai@redhat.com>
Wed, 12 Feb 2020 04:24:50 +0000 (12:24 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 12 Feb 2020 04:28:35 +0000 (12:28 +0800)
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 <kchai@redhat.com>
ceph.spec.in

index 99f19066884028e0eefd241ff272dea2bbc02afd..ccc3f284341541c3bb2c531c01058bee2934ba83 100644 (file)
@@ -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}