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 Name: libccd
Version: 1.4 Version: 1.4
Release: 1%{?dist} Release: 2%{?dist}
Summary: Library for collision detection between convex shapes Summary: Library for collision detection between convex shapes
License: BSD License: BSD
@ -21,7 +25,9 @@ BuildRequires: cmake
%endif %endif
# These are required for executing the test suite # These are required for executing the test suite
BuildRequires: python BuildRequires: python
%if 0%{?with_valgrind}
BuildRequires: valgrind BuildRequires: valgrind
%endif
%description %description
libccd implements variation on Gilbert-Johnson-Keerthi (GJK) algorithm + 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 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
%check %check
%if 0%{?with_valgrind}
make -C build test make -C build test
%endif
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
@ -82,6 +90,9 @@ make -C build test
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%changelog %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 * Mon Oct 22 2012 Rich Mattes <richmattes@gmail.com> - 1.4-1
- Update to release 1.4 - Update to release 1.4