%bcond_with selinux
%endif
+# LTTng-UST enabled on Fedora, RHEL/CentOS 6+, and SLES 12
+# (rhel is true for CentOS)
+%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version} == 1315
+%bcond_without lttng
+%endif
%if (0%{?el5} || (0%{?rhel_version} >= 500 && 0%{?rhel_version} <= 600))
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%global _with_systemd 1
%endif
-# LTTng-UST enabled on Fedora, RHEL 6, and SLES 12
-%if 0%{?fedora} || 0%{?rhel} == 6 || 0%{?suse_version} == 1315
-%global _with_lttng 1
-%endif
-
#################################################################################
# common
#################################################################################
BuildRequires: python-argparse
%endif
# lttng and babeltrace for rbd-replay-prep
-%if 0%{?_with_lttng}
+%if %{with lttng}
%if 0%{?fedora} || 0%{?rhel}
BuildRequires: lttng-ust-devel
BuildRequires: libbabeltrace-devel
--with-rgw-group=www \
%endif
--with-radosgw \
+%if %{without lttng}
+ --without-lttng \
+ --without-babeltrace \
+%endif
$CEPH_EXTRA_CONFIGURE_ARGS \
%{?_with_ocf} \
%{?_with_tcmalloc} \
%{_libdir}/rados-classes/libcls_version.so*
%dir %{_libdir}/ceph/erasure-code
%{_libdir}/ceph/erasure-code/libec_*.so*
-%if 0%{?_with_lttng}
+%if %{with lttng}
%{_libdir}/libos_tp.so*
%{_libdir}/libosd_tp.so*
%endif
%{_bindir}/rbd-replay
%{_bindir}/rbd-replay-many
%{_bindir}/rbdmap
-%if 0%{?_with_lttng}
+%if %{with lttng}
%{_bindir}/rbd-replay-prep
%endif
%{_bindir}/ceph-post-file
%files -n librados2
%defattr(-,root,root,-)
%{_libdir}/librados.so.*
-%if 0%{?_with_lttng}
+%if %{with lttng}
%{_libdir}/librados_tp.so.*
%endif
%{_includedir}/rados/rados_types.hpp
%{_includedir}/rados/memory.h
%{_libdir}/librados.so
-%if 0%{?_with_lttng}
+%if %{with lttng}
%{_libdir}/librados_tp.so
%endif
%files -n librbd1
%defattr(-,root,root,-)
%{_libdir}/librbd.so.*
-%if 0%{?_with_lttng}
+%if %{with lttng}
%{_libdir}/librbd_tp.so.*
%endif
%{_includedir}/rbd/librbd.hpp
%{_includedir}/rbd/features.h
%{_libdir}/librbd.so
-%if 0%{?_with_lttng}
+%if %{with lttng}
%{_libdir}/librbd_tp.so
%endif