%bcond_with ocf
%bcond_without cephfs_java
%bcond_with tests
+%bcond_without tcmalloc
%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())")}
Requires: python-Flask
%if 0%{?suse_version} > 1210
Requires: gptfdisk
+%if 0%{with tcmalloc}
BuildRequires: gperftools-devel
+%endif
%else
Requires: scsirastools
BuildRequires: google-perftools-devel
BuildRequires: gperftools-devel
Requires: python-flask
%endif
+%endif
%description
Ceph is a massively scalable, open-source, distributed
%endif
$MY_CONF_OPT \
%{?_with_ocf} \
+ %{?_with_tcmalloc} \
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
# fix bug in specific version of libedit-devel