Compare commits

...

1 Commits

Author SHA1 Message Date
David Abdurachmanov 7c4d88d4d5
Check for valgrind arches
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-10-17 15:34:06 +03:00
1 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,7 @@
Name: netresolve
Version: 0.0.1
Release: 0.34%{?snapshot_suffix}%{?dist}
Release: 0.34%{?snapshot_suffix}.0.riscv64%{?dist}
Summary: Generic name resolution library
License: BSD
# https://github.com/crossdistro/netresolve , possibly?
@ -27,7 +27,9 @@ BuildRequires: pkgconfig(libasyncns)
# live builds
BuildRequires: autoconf automake libtool
# tests
%ifarch %{valgrind_arches}
BuildRequires: valgrind
%endif
%if 0%{?rhel}
# https://bugzilla.redhat.com/show_bug.cgi?id=1190724
BuildRequires: openssl-devel
@ -122,7 +124,9 @@ find %{buildroot} -name '*.la' -delete
%if 0%{?fedora}
%check
%ifarch %{valgrind_arches}
export NETRESOLVE_TEST_COMMAND="libtool execute valgrind --leak-check=full --error-exitcode=1 ./netresolve"
%endif
make check || { cat ./test-suite.log; false; }
%endif
@ -238,6 +242,9 @@ make check || { cat ./test-suite.log; false; }
%{_libdir}/libnss_netresolve.so
%changelog
* Mon Oct 17 2022 David Abdurachmanov <davidlt@rivosinc.com> - 0.0.1-0.34.20160317git.0.riscv64
- Properly check valgrind_arches
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-0.34.20160317git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild