[libnes] Improve usage of valgrind (don't attempt to use it where it doesn't exist)

Doug Ledford dledford at fedoraproject.org
Wed Jul 20 18:30:34 UTC 2011


commit c4d24e2087a36715125bc014279a2a2c4b36b6d3
Author: Doug Ledford <dledford at redhat.com>
Date:   Wed Jul 20 14:30:18 2011 -0400

    Improve usage of valgrind (don't attempt to use it where it doesn't
    exist)
    
    Signed-off-by: Doug Ledford <dledford at redhat.com>

 libnes.spec |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/libnes.spec b/libnes.spec
index f53d71e..94f8e2a 100644
--- a/libnes.spec
+++ b/libnes.spec
@@ -1,6 +1,6 @@
 Name: libnes
 Version: 1.1.1
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: NetEffect RNIC Userspace Driver
 Group: System Environment/Libraries
 License: GPLv2 or BSD
@@ -8,7 +8,10 @@ Url: http://www.openfabrics.org/
 Source: http://www.openfabrics.org/downloads/nes/%{name}-%{version}.tar.gz
 Patch0: libnes-1.1.1-remove-RAW_ETH.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: libibverbs-devel > 1.1.4, valgrind-devel
+BuildRequires: libibverbs-devel > 1.1.4
+%ifnarch ia64 %{sparc} %{arm}
+BuildRequires: valgrind-devel
+%endif
 Provides: libibverbs-driver.%{_arch}
 ExcludeArch: s390 s390x
 Obsoletes: %{name}-devel
@@ -29,7 +32,11 @@ Static version of libnes that may be linked directly to an application.
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
+%ifnarch ia64 %{sparc} %{arm}
 %configure --with-valgrind
+%else
+%configure
+%endif
 make %{?_smp_mflags}
 
 %install
@@ -52,6 +59,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/*.a
 
 %changelog
+* Wed Jul 20 2011 Doug Ledford <dledford at redhat.com> - 1.1.1-3
+- Improve usage of valgrind (don't attempt to use it where it doesn't exist)
+
 * Wed Jul 20 2011 Doug Ledford <dledford at redhat.com> - 1.1.1-2
 - Initial import into Fedora
 - Add valgrind support


More information about the scm-commits mailing list