From: Kefu Chai Date: Thu, 21 Feb 2019 08:09:00 +0000 (+0800) Subject: rpm: disable amqp endpoint on SLE/OpenSUSE X-Git-Tag: v14.1.0~11^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dd5bc2ff21585aabcf575d5c7a1fbb8a082a3b84;p=ceph.git rpm: disable amqp endpoint on SLE/OpenSUSE as librabbitmq-devel is not packaged on them yet. Signed-off-by: Kefu Chai --- diff --git a/ceph.spec.in b/ceph.spec.in index a20deb267a5..0876ba9407e 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -34,12 +34,14 @@ %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