!25 [sync] PR-24: 让valgrind构建依赖可选
From: @openeuler-sync-bot Reviewed-by: @starlet-dx Signed-off-by: @starlet-dx
This commit is contained in:
commit
58090ed660
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user