%bcond_without cephfs_java
%bcond_with tests
%bcond_with xio
+%ifnarch s390 s390x
%bcond_without tcmalloc
+%else
+# no gperftools/tcmalloc on s390(x)
+%bcond_with tcmalloc
+%endif
%bcond_without libs_compat
%bcond_with lowmem_builder
%if 0%{?fedora} || 0%{?rhel}
BuildRequires: nss-devel
BuildRequires: keyutils-libs-devel
BuildRequires: libatomic_ops-devel
+%if 0%{with tcmalloc}
BuildRequires: gperftools-devel
+%endif
BuildRequires: openldap-devel
BuildRequires: openssl-devel
BuildRequires: redhat-lsb-core
%endif
$CEPH_EXTRA_CONFIGURE_ARGS \
%{?_with_ocf} \
- %{?_with_tcmalloc} \
+%if %{without tcmalloc}
+ --without-tcmalloc \
+%endif
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
%if %{with lowmem_builder}