make with_mem_leak_test option following %{valgrind_arches}

(cherry picked from commit 95a20ed610c4e8739c7be0326a8ab0cbbdec4dcb)
This commit is contained in:
laokz 2023-09-20 20:35:53 +08:00 committed by openeuler-sync-bot
parent 121ea61b22
commit 677c28a9bf

View File

@ -2,7 +2,7 @@
%define with_python2 0
Name: libstoragemgmt
Version: 1.9.6
Release: 1
Release: 2
Summary: Storage array management library
License: LGPLv2+
URL: https://github.com/libstorage/libstoragemgmt
@ -10,7 +10,10 @@ Source0: https://github.com/libstorage/libstoragemgmt/releases/download/%{versio
BuildRequires: gcc gcc-c++ autoconf automake libtool libxml2-devel check-devel perl-interpreter
BuildRequires: glib2-devel systemd bash-completion libconfig-devel systemd-devel
BuildRequires: procps sqlite-devel python3-six python3-devel systemd systemd-devel chrpath valgrind
BuildRequires: procps sqlite-devel python3-six python3-devel systemd systemd-devel chrpath
%ifarch %{valgrind_arches}
BuildRequires: valgrind
%endif
%{?systemd_requires}
%if 0%{?with_python2}
@ -152,7 +155,12 @@ rm -fr %{py2_build_dir}
cp -a . %{py2_build_dir}
%endif
%configure --with-python3
%ifarch %{valgrind_arches}
WITHOUT_VALGRIND=
%else
WITHOUT_VALGRIND=--without-mem-leak-test
%endif
%configure --with-python3 $WITHOUT_VALGRIND
%make_build
%if 0%{?with_python2}
@ -395,6 +403,9 @@ fi
%{_mandir}/man*/*
%changelog
* Wed Sep 20 2023 laokz <zhangkai@iscas.ac.cn> - 1.9.6-2
- make with_mem_leak_test option following %{valgrind_arches}
* Tue Feb 7 2023 xu_ping <xuping33@h-partners.com> - 1.9.6-1
- Upgrade 1.9.6