]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: disable amqp endpoint on SLE/OpenSUSE
authorKefu Chai <kchai@redhat.com>
Thu, 21 Feb 2019 08:09:00 +0000 (16:09 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Feb 2019 02:30:25 +0000 (10:30 +0800)
as librabbitmq-devel is not packaged on them yet.

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph.spec.in

index a20deb267a5fdf6bcf8106a269e45d64253ff2d1..0876ba9407e25ff4775d0f55134e148c4e3e889d 100644 (file)
 %bcond_without cephfs_java
 %bcond_without lttng
 %bcond_without libradosstriper
+%bcond_without amqp_endpoint
 %global _remote_tarball_prefix https://download.ceph.com/tarballs/
 %endif
 %if 0%{?suse_version}
 %bcond_with selinux
 %bcond_with ceph_test_package
 %bcond_with cephfs_java
+%bcond_with amqp_endpoint
 #Compat macro for new _fillupdir macro introduced in Nov 2017
 %if ! %{defined _fillupdir}
 %global _fillupdir /var/adm/fillup-templates
@@ -1143,6 +1145,11 @@ ${CMAKE} .. \
     -DWITH_LIBRADOSSTRIPER=ON \
 %else
     -DWITH_LIBRADOSSTRIPER=OFF \
+%endif
+%if 0%{with amqp_endpoint}
+    -DWITH_RADOSGW_AMQP_ENDPOINT=ON \
+%else
+    -DWITH_RADOSGW_AMQP_ENDPOINT=OFF \
 %endif
     -DBOOST_J=$CEPH_SMP_NCPUS \
     -DWITH_GRAFANA=ON