!8 让valgrind构建依赖跟随系统%{valgrind_arches}宏

From: @laokz 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
This commit is contained in:
openeuler-ci-bot 2023-10-24 06:21:54 +00:00 committed by Gitee
commit 94222aca7e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,12 +1,15 @@
Name: fabtests
Version: 1.6.2
Release: 1
Release: 2
Summary: libfabric API test suite
License: BSD-2-Clause and GPL-2.0-only and MIT
Url: https://github.com/ofiwg/fabtests
Source: https://github.com/ofiwg/fabtests/releases/download/v%{version}/fabtests-%{version}.tar.gz
BuildRequires: autoconf automake libtool
BuildRequires: libfabric-devel >= %{version} valgrind-devel gcc
BuildRequires: libfabric-devel >= %{version} gcc
%ifarch %{valgrind_arches}
BuildRequires: valgrind-devel
%endif
%description
Fabtests provides a set of examples that uses libfabric
@ -22,7 +25,11 @@ Documentation for user of fabtests.
%build
./autogen.sh
%ifarch %{valgrind_arches}
%configure --with-valgrind
%else
%configure
%endif
%make_build V=1
%install
@ -38,6 +45,9 @@ Documentation for user of fabtests.
%{_mandir}/man7/*
%changelog
* Fri Oct 20 2023 laokz <zhangkai@iscas.ac.cn> - 1.6.2-2
- Let valgrind BuildRequire following system %{valgrind_arches}
* Wed Oct 18 2023 Ge Wang <wang__ge@126.com> - 1.6.2-1
- Update to version 1.6.2