Shellcheck check out a problem.
Signed-off-by: zhanchengbin <zhanchengbin1@huawei.com>
(cherry picked from commit c1f2a29669edfa6d43800deece8bec8205447fc2)
Backport: e894527ecf531d1b31bdcc9b23a10627c1b4d355
1) tcmalloc can't be dlopen()ed successfully on non-x86_64 arches,
or at least not on aarch64, s390x, and armv7hl; causing issues
with qemu and/or libvirt on those platforms.
2) invoking rpmbuild with --without-tcmalloc creates the %global
%_without_tcmalloc (=true), and AFAIK does not creat the
%global %_with_tcmalloc (=false). The later tests for
%_with_tcmalloc: do not work correctly, they need to test for
'!%_without_tcmalloc'.
3) a %global %_without_libtcmalloc is created but never used.
The %configure step uses %_without_tcmalloc.
Signed-off-by: imxcc <xingchaochao@huawei.com>
Signed-off-by: kalebskeithley <kaleb@redhat.com>
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
glusterfs-ganesha is to using glusterfs as NFS server, which based
on NFS-Ganesha package. While NFS-Ganesha is not provided in openeuler.
So it is not necessary to keep subpackage.
glusterfs-regression is a test package which is unnecessary, so remove
it.
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
The spec file is changed based with which exacted from glusterfs-10.0.tar.gz.
Following changes are made:
* make variable _with_systemd true as default
* make variable _usepython3 as 1
* make variable _pythonver as 2
* remove fedora_koji_builds judgements
* add new BuildRequires: rpcgen gperftools-devel libunwind-devel
* update source0 to following address
https://download.gluster.org/pub/gluster/glusterfs/10/10.0/glusterfs-10.0.tar.gz
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
(cherry picked from commit 4cc8690f81540de1d6254dd12485a487b0fb76d4)