diff --git a/glusterfs.spec b/glusterfs.spec index 3bca82733eaf4af6c7947811d0f6f89b16aa72d6..71441e9e51b3ea7cf96f400e432359ffd536f594 100644 --- a/glusterfs.spec +++ b/glusterfs.spec @@ -71,7 +71,11 @@ # libtcmalloc # if you wish to compile an rpm without tcmalloc (i.e. use gluster mempool) # rpmbuild -ta glusterfs-10.0.tar.gz --without tcmalloc -%{?_without_tcmalloc:%global _without_libtcmalloc --without-tcmalloc} +%{?_without_tcmalloc:%global _without_tcmalloc --without-tcmalloc} + +%ifnarch x86_64 +%global _without_tcmalloc --without-tcmalloc +%endif # Do not use libtirpc on EL6, it does not have xdr_uint64_t() and xdr_uint32_t # Do not use libtirpc on EL7, it does not have xdr_sizeof() @@ -220,7 +224,7 @@ Summary: Distributed File System Name: glusterfs Version: 10.0 -Release: 1 +Release: 2 License: GPLv2 or LGPLv3+ URL: http://docs.gluster.org/ %if ( 0%{_for_fedora_koji_builds} ) @@ -241,7 +245,7 @@ Requires(pre): shadow-utils BuildRequires: systemd %endif -%if ( 0%{?_with_tcmalloc:1} ) +%if ( 0%{!?_without_tcmalloc:1} ) Requires: gperftools-libs%{?_isa} %endif @@ -263,7 +267,7 @@ BuildRequires: ncurses-devel readline-devel BuildRequires: libxml2-devel openssl-devel BuildRequires: libaio-devel libacl-devel BuildRequires: python%{_pythonver}-devel -%if ( 0%{?_with_tcmalloc:1} ) +%if ( 0%{!?_without_tcmalloc:1} ) BuildRequires: gperftools-devel %endif %if ( 0%{?rhel} && 0%{?rhel} < 8 ) @@ -1639,6 +1643,9 @@ exit 0 %endif %changelog +* Fri Jan 28 2022 imxcc - 10.0-2 +- tcmalloc issues + * Wed Dec 1 2021 Wenchao Hao - 10.0-1 - DESC: delete -Sgit from %autosetup, and delete BuildRequires git