build on platforms without valgrind

This commit is contained in:
Dan Horák 2013-01-09 18:43:38 +01:00
parent 35fe26bc12
commit c9e57e7802

View File

@ -1,6 +1,10 @@
%ifarch %{ix86} x86_64 ppc ppc64 s390x %{arm}
%global with_valgrind 1
%endif
Name: libccd
Version: 1.4
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Library for collision detection between convex shapes
License: BSD
@ -21,7 +25,9 @@ BuildRequires: cmake
%endif
# These are required for executing the test suite
BuildRequires: python
%if 0%{?with_valgrind}
BuildRequires: valgrind
%endif
%description
libccd implements variation on Gilbert-Johnson-Keerthi (GJK) algorithm +
@ -64,7 +70,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
%check
%if 0%{?with_valgrind}
make -C build test
%endif
%post -p /sbin/ldconfig
@ -82,6 +90,9 @@ make -C build test
%{_libdir}/pkgconfig/*.pc
%changelog
* Wed Jan 09 2013 Dan Horák <dan[at]danny.cz> - 1.4-2
- build on platforms without valgrind
* Mon Oct 22 2012 Rich Mattes <richmattes@gmail.com> - 1.4-1
- Update to release 1.4