Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
32995cdcbb | ||
|
4c28400775 | ||
|
c809f1d679 | ||
|
b3747fce5c | ||
|
776a4cc941 | ||
|
e07b80e635 | ||
|
fdf9037016 | ||
|
cc8e36b256 | ||
|
aeb5142bcb | ||
|
7ad15b7ccb | ||
|
3c445929e3 | ||
|
a97163eb3c | ||
|
ae158dfdf4 | ||
|
431b6e1dde | ||
|
128c7a03dd |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/libccd-1.4.tar.gz
|
/libccd-1.4.tar.gz
|
||||||
|
/libccd-2.0.tar.gz
|
||||||
|
@ -1,79 +0,0 @@
|
|||||||
diff -rpN libccd-1.3/CMakeLists.txt libccd-1.3-testsuite/CMakeLists.txt
|
|
||||||
*** libccd-1.3/CMakeLists.txt 2012-05-16 01:54:39.000000000 -0400
|
|
||||||
--- libccd-1.3-testsuite/CMakeLists.txt 2012-05-26 14:03:34.671702814 -0400
|
|
||||||
*************** set(CCD_VERSION "1.2")
|
|
||||||
*** 6,10 ****
|
|
||||||
--- 6,11 ----
|
|
||||||
set(PKG_DESC "Library for collision detection between convex shapes")
|
|
||||||
set(LIB_SUFFIX "" CACHE STRING "Library installation directory suffix")
|
|
||||||
+ set(BUILD_TESTS false CACHE BOOL "Build the test suite")
|
|
||||||
|
|
||||||
include_directories("src/")
|
|
||||||
|
|
||||||
*************** install(TARGETS ccd ccd_static ARCHIVE D
|
|
||||||
*** 51,53 ****
|
|
||||||
--- 52,58 ----
|
|
||||||
install(DIRECTORY src/ccd DESTINATION include FILES_MATCHING PATTERN "*.h")
|
|
||||||
install(FILES "${pkg_conf_file}" DESTINATION lib${LIB_SUFFIX}/pkgconfig/ COMPONENT pkgconfig)
|
|
||||||
|
|
||||||
+ if (BUILD_TESTS)
|
|
||||||
+ enable_testing()
|
|
||||||
+ add_subdirectory(src/testsuites)
|
|
||||||
+ endif (BUILD_TESTS)
|
|
||||||
diff -rpN libccd-1.3/src/testsuites/CMakeLists.txt libccd-1.3-testsuite/src/testsuites/CMakeLists.txt
|
|
||||||
*** libccd-1.3/src/testsuites/CMakeLists.txt 1969-12-31 19:00:00.000000000 -0500
|
|
||||||
--- libccd-1.3-testsuite/src/testsuites/CMakeLists.txt 2012-05-26 14:04:13.659169012 -0400
|
|
||||||
***************
|
|
||||||
*** 0 ****
|
|
||||||
--- 1,51 ----
|
|
||||||
+ set(CCDTEST_ARGS "" CACHE STRING "Argments to pass to ccdtest executable")
|
|
||||||
+
|
|
||||||
+ set(TEST_SOURCES
|
|
||||||
+ common.c
|
|
||||||
+ support.c
|
|
||||||
+ vec3.c
|
|
||||||
+ polytope.c
|
|
||||||
+ boxbox.c
|
|
||||||
+ spheresphere.c
|
|
||||||
+ cylcyl.c
|
|
||||||
+ boxcyl.c
|
|
||||||
+ mpr_boxbox.c
|
|
||||||
+ mpr_cylcyl.c
|
|
||||||
+ mpr_boxcyl.c)
|
|
||||||
+
|
|
||||||
+ add_library(cu cu/cu.c)
|
|
||||||
+
|
|
||||||
+ add_executable(ccdtest ${TEST_SOURCES} main.c)
|
|
||||||
+ target_link_libraries(ccdtest ccd cu rt)
|
|
||||||
+ add_definitions(-DCU_ENABLE_TIMER)
|
|
||||||
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
+ add_test(NAME ccdtest
|
|
||||||
+ COMMAND ccdtest ${CCDTEST_ARGS}
|
|
||||||
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
+
|
|
||||||
+ add_test(NAME ccdtest-valgrind
|
|
||||||
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
||||||
+ COMMAND valgrind -q --leak-check=full --show-reachable=yes --trace-children=yes
|
|
||||||
+ --error-limit=no
|
|
||||||
+ ${CMAKE_CURRENT_BINARY_DIR}/ccdtest ${CCDTEST_ARGS})
|
|
||||||
+
|
|
||||||
+ add_test(NAME ccdtest-valgrind-gen-suppressions
|
|
||||||
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
||||||
+ COMMAND valgrind -q --leak-check=full --show-reachable=yes --trace-children=yes
|
|
||||||
+ --gen-suppressions=all --log-file=out --error-limit=no
|
|
||||||
+ ${CMAKE_CURRENT_BINARY_DIR}/ccdtest ${CCDTEST_ARGS})
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ add_executable(bench bench.c support.c cu/cu.c)
|
|
||||||
+ target_link_libraries(bench ccd cu rt)
|
|
||||||
+ add_test(NAME bench
|
|
||||||
+ COMMAND bench)
|
|
||||||
+
|
|
||||||
+ add_executable(bench2 bench2.c support.c cu/cu.c)
|
|
||||||
+ target_link_libraries(bench2 ccd cu rt)
|
|
||||||
+ add_test(NAME bench2
|
|
||||||
+ COMMAND bench2)
|
|
||||||
+
|
|
||||||
+ add_test(NAME check-regressions
|
|
||||||
+ COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/cu/check-regressions regressions
|
|
||||||
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
|
75
libccd-2.0-ctest.patch
Normal file
75
libccd-2.0-ctest.patch
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
diff -up ./CMakeLists.txt.ctest ./CMakeLists.txt
|
||||||
|
--- ./CMakeLists.txt.ctest 2014-06-01 20:32:22.135537791 -0400
|
||||||
|
+++ ./CMakeLists.txt 2014-06-01 20:39:59.303110922 -0400
|
||||||
|
@@ -4,6 +4,7 @@ project(libccd C)
|
||||||
|
set(CCD_VERSION "2.0")
|
||||||
|
set(CCD_SOVERSION "2")
|
||||||
|
set(PKG_DESC "Library for collision detection between convex shapes")
|
||||||
|
+set(BUILD_TESTS false cache bool "Build the test suite")
|
||||||
|
|
||||||
|
# Include GNUInstallDirs to get canonical paths
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
@@ -58,3 +59,8 @@ install(TARGETS ccd ccd_static ARCHIVE D
|
||||||
|
install(DIRECTORY src/ccd DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} FILES_MATCHING PATTERN "*.h")
|
||||||
|
install(FILES "${pkg_conf_file}" DESTINATION
|
||||||
|
${CMAKE_INSTALL_LIBDIR}/pkgconfig COMPONENT pkgconfig)
|
||||||
|
+
|
||||||
|
+if (BUILD_TESTS)
|
||||||
|
+ enable_testing()
|
||||||
|
+ add_subdirectory(src/testsuites)
|
||||||
|
+endif (BUILD_TESTS)
|
||||||
|
diff -up ./src/testsuites/CMakeLists.txt.ctest ./src/testsuites/CMakeLists.txt
|
||||||
|
--- ./src/testsuites/CMakeLists.txt.ctest 2014-06-01 20:32:22.136537830 -0400
|
||||||
|
+++ ./src/testsuites/CMakeLists.txt 2014-06-01 20:32:22.136537830 -0400
|
||||||
|
@@ -0,0 +1,51 @@
|
||||||
|
+set(CCDTEST_ARGS "" CACHE STRING "Argments to pass to ccdtest executable")
|
||||||
|
+
|
||||||
|
+set(TEST_SOURCES
|
||||||
|
+ common.c
|
||||||
|
+ support.c
|
||||||
|
+ vec3.c
|
||||||
|
+ polytope.c
|
||||||
|
+ boxbox.c
|
||||||
|
+ spheresphere.c
|
||||||
|
+ cylcyl.c
|
||||||
|
+ boxcyl.c
|
||||||
|
+ mpr_boxbox.c
|
||||||
|
+ mpr_cylcyl.c
|
||||||
|
+ mpr_boxcyl.c)
|
||||||
|
+
|
||||||
|
+add_library(cu cu/cu.c)
|
||||||
|
+
|
||||||
|
+add_executable(ccdtest ${TEST_SOURCES} main.c)
|
||||||
|
+target_link_libraries(ccdtest ccd cu rt)
|
||||||
|
+add_definitions(-DCU_ENABLE_TIMER)
|
||||||
|
+include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
+add_test(NAME ccdtest
|
||||||
|
+ COMMAND ccdtest ${CCDTEST_ARGS}
|
||||||
|
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
+
|
||||||
|
+add_test(NAME ccdtest-valgrind
|
||||||
|
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
+ COMMAND valgrind -q --leak-check=full --show-reachable=yes --trace-children=yes
|
||||||
|
+ --error-limit=no
|
||||||
|
+ ${CMAKE_CURRENT_BINARY_DIR}/ccdtest ${CCDTEST_ARGS})
|
||||||
|
+
|
||||||
|
+add_test(NAME ccdtest-valgrind-gen-suppressions
|
||||||
|
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
+ COMMAND valgrind -q --leak-check=full --show-reachable=yes --trace-children=yes
|
||||||
|
+ --gen-suppressions=all --log-file=out --error-limit=no
|
||||||
|
+ ${CMAKE_CURRENT_BINARY_DIR}/ccdtest ${CCDTEST_ARGS})
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+add_executable(bench bench.c support.c cu/cu.c)
|
||||||
|
+target_link_libraries(bench ccd cu rt)
|
||||||
|
+add_test(NAME bench
|
||||||
|
+ COMMAND bench)
|
||||||
|
+
|
||||||
|
+add_executable(bench2 bench2.c support.c cu/cu.c)
|
||||||
|
+target_link_libraries(bench2 ccd cu rt)
|
||||||
|
+add_test(NAME bench2
|
||||||
|
+ COMMAND bench2)
|
||||||
|
+
|
||||||
|
+add_test(NAME check-regressions
|
||||||
|
+ COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/cu/check-regressions regressions
|
||||||
|
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
60
libccd.spec
60
libccd.spec
@ -1,10 +1,10 @@
|
|||||||
%ifarch %{ix86} x86_64 ppc ppc64 s390x %{arm}
|
%ifnarch s390 %{mips}
|
||||||
%global with_valgrind 1
|
%global with_valgrind 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: libccd
|
Name: libccd
|
||||||
Version: 1.4
|
Version: 2.0
|
||||||
Release: 3%{?dist}
|
Release: 12%{?dist}
|
||||||
Summary: Library for collision detection between convex shapes
|
Summary: Library for collision detection between convex shapes
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -13,18 +13,18 @@ Source0: http://libccd.danfis.cz/files/%{name}-%{version}.tar.gz
|
|||||||
# This patch integrates all of the test programs that are present in
|
# This patch integrates all of the test programs that are present in
|
||||||
# the testsuites folder into CMake, via CTest. Not yet submitted
|
# the testsuites folder into CMake, via CTest. Not yet submitted
|
||||||
# upstream
|
# upstream
|
||||||
Patch0: %{name}-1.3-ctest.patch
|
Patch0: %{name}-2.0-ctest.patch
|
||||||
# This patch changes the ccd.pc file to point to the correct include
|
# This patch changes the ccd.pc file to point to the correct include
|
||||||
# directory. Not yet submitted upstream
|
# directory. Not yet submitted upstream
|
||||||
Patch1: %{name}-1.3-fixpkgconfig.patch
|
Patch1: %{name}-1.3-fixpkgconfig.patch
|
||||||
|
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel} && 0%{?rhel} < 7
|
||||||
BuildRequires: cmake28
|
BuildRequires: cmake28
|
||||||
%else
|
%else
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
%endif
|
%endif
|
||||||
# These are required for executing the test suite
|
# These are required for executing the test suite
|
||||||
BuildRequires: python
|
BuildRequires: python2
|
||||||
%if 0%{?with_valgrind}
|
%if 0%{?with_valgrind}
|
||||||
BuildRequires: valgrind
|
BuildRequires: valgrind
|
||||||
%endif
|
%endif
|
||||||
@ -46,13 +46,13 @@ developing applications that use %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p0 -b .ctest
|
||||||
%patch1 -p0
|
%patch1 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build
|
mkdir build
|
||||||
pushd build
|
pushd build
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel} && 0%{?rhel} < 7
|
||||||
%cmake28 \
|
%cmake28 \
|
||||||
%else
|
%else
|
||||||
%cmake \
|
%cmake \
|
||||||
@ -71,7 +71,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?with_valgrind}
|
%if 0%{?with_valgrind}
|
||||||
make -C build test
|
make -C build test ||exit 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
@ -84,12 +84,52 @@ make -C build test
|
|||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc doc/jgt98convex.pdf
|
%doc
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0-12
|
||||||
|
- Update Python 2 dependency declarations to new packaging standards
|
||||||
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||||
|
|
||||||
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Aug 12 2016 Michal Toman <mtoman@fedoraproject.org> - 2.0-7
|
||||||
|
- No valgrind on MIPS
|
||||||
|
|
||||||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Aug 27 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 2.0-5
|
||||||
|
- Valgrind is not available only on s/390 (rhbz#1257526)
|
||||||
|
|
||||||
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jun 01 2014 Rich Mattes <rmattes@fedoraproject.org> - 2.0-1
|
||||||
|
- Update to release 2.0
|
||||||
|
|
||||||
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user