RHEL/CentOS 8 does not offer junit and sharutils yet, so disable
cephfs_java on rhel8 at this moment.
RHEL/CentOS 8 does not offer librabbitmq-devel yet, so disable
amqp_endpoint on rhel8 at this moment.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
dd133840b9d35ca7d8b1788836f6076b06c33087)
Conflicts:
ceph.spec.in: trivial resolution
%endif
%if 0%{?fedora} || 0%{?rhel}
%bcond_without selinux
+%if 0%{?rhel} >= 8
+%bcond_with cephfs_java
+%bcond_with amqp_endpoint
+%else
%bcond_without cephfs_java
+%bcond_without amqp_endpoint
+%endif
%bcond_without lttng
%bcond_without libradosstriper
%bcond_without ocf
-%bcond_without amqp_endpoint
%bcond_without kafka_endpoint
%global _remote_tarball_prefix https://download.ceph.com/tarballs/
%endif