[ompl/f16] Update to release 0.10.2

rmattes rmattes at fedoraproject.org
Wed May 16 01:39:25 UTC 2012


commit d0a32e93fd007a108622921042a1273932c974da
Author: Rich Mattes <richmattes at gmail.com>
Date:   Tue May 15 21:39:17 2012 -0400

    Update to release 0.10.2

 .gitignore                  |    1 +
 ompl-0.10.2-fedora.patch    |   91 +++++++++++++++++++++++++++++++++++++++++++
 ompl-0.9.3.fixinstall.patch |   12 ------
 ompl.spec                   |   26 ++++++++----
 sources                     |    2 +-
 5 files changed, 111 insertions(+), 21 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 27b3705..3d7f9e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /ompl-0.9.3-Source.tar.gz
 /ompl-0.9.5-Source.tar.gz
+/ompl-0.10.2-Source.tar.gz
diff --git a/ompl-0.10.2-fedora.patch b/ompl-0.10.2-fedora.patch
new file mode 100644
index 0000000..0234648
--- /dev/null
+++ b/ompl-0.10.2-fedora.patch
@@ -0,0 +1,91 @@
+diff -up ./CMakeLists.txt.fedora ./CMakeLists.txt
+--- ./CMakeLists.txt.fedora	2012-05-15 18:59:18.014694396 -0400
++++ ./CMakeLists.txt	2012-05-15 20:06:33.163674225 -0400
+@@ -80,10 +80,10 @@ if(NOT OMPL_IN_ROS)
+         set(PKG_OMPL_LIBS "-lompl")
+         set(pkg_conf_file "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/ompl.pc")
+         configure_file("${pkg_conf_file}.in" "${pkg_conf_file}" @ONLY)
+-        install(FILES ${pkg_conf_file} DESTINATION lib/pkgconfig/ COMPONENT pkgconfig)
++        install(FILES ${pkg_conf_file} DESTINATION lib${LIB_SUFFIX}/pkgconfig/ COMPONENT pkgconfig)
+ 
+         install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/doc/dox/FindOMPL.cmake"
+-            DESTINATION "share/cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}/Modules/")
++            DESTINATION "share/cmake/Modules/")
+     endif()
+ 
+     # uninstall target
+diff -up ./CMakeModules/ompl.pc.in.fedora ./CMakeModules/ompl.pc.in
+--- ./CMakeModules/ompl.pc.in.fedora	2012-05-15 21:14:46.795346428 -0400
++++ ./CMakeModules/ompl.pc.in	2012-05-15 21:15:02.816951787 -0400
+@@ -1,7 +1,7 @@
+ # This file was generated by CMake for @PROJECT_NAME@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=${prefix}
+-libdir=${prefix}/lib
++libdir=${prefix}/lib at LIB_SUFFIX@
+ includedir=${prefix}/include
+ 
+ Name: @PKG_NAME@
+@@ -9,4 +9,4 @@ Description: @PKG_DESC@
+ Version: @OMPL_VERSION@
+ Requires: @PKG_EXTERNAL_DEPS@
+ Libs: -L${libdir} @PKG_OMPL_LIBS@
+-Cflags: -I${includedir}
++Cflags: -I${includedir}/ompl
+diff -up ./src/CMakeLists.txt.fedora ./src/CMakeLists.txt
+--- ./src/CMakeLists.txt.fedora	2012-05-15 20:04:03.632175319 -0400
++++ ./src/CMakeLists.txt	2012-05-15 21:12:41.859625847 -0400
+@@ -8,7 +8,7 @@ install(DIRECTORY ompl DESTINATION inclu
+     REGEX "/doc$" EXCLUDE
+     REGEX "/tests$" EXCLUDE)
+     
+-install(DIRECTORY external/omplext_odeint DESTINATION include)
++install(DIRECTORY external/omplext_odeint DESTINATION include/ompl)
+ 
+ # Add target to install Py++ and its dependencies pygccxml and gccxml
+ # (This won't work on Windows, since there is no "patch" command.)
+@@ -16,14 +16,14 @@ set(PATCH_GCCXCML_DIFF "${CMAKE_CURRENT_
+ # This patch is for Windows, and includes the diff above, as well as another Windows specific change.
+ set(PATCH_GCCXML_SOURCE_READER "${CMAKE_CURRENT_SOURCE_DIR}/external/source_reader.py")
+ string(REPLACE "/" "\\" PATCH_GCCXML_SOURCE_READER ${PATCH_GCCXML_SOURCE_READER})
+-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.sh.in"
+-    "${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.sh" @ONLY)
+-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.bat.in"
+-    "${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.bat" @ONLY)
++#configure_file("${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.sh.in"
++#    "${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.sh" @ONLY)
++#configure_file("${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.bat.in"
++#    "${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.bat" @ONLY)
+ if(WIN32)
+ add_custom_target(installpyplusplus
+     COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.bat" VERBATIM)
+ else(WIN32)
+-add_custom_target(installpyplusplus
+-    COMMAND "sh" "${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.sh")
++#add_custom_target(installpyplusplus
++#    COMMAND "sh" "${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.sh")
+ endif(WIN32)
+diff -up ./src/ompl/CMakeLists.txt.fedora ./src/ompl/CMakeLists.txt
+--- ./src/ompl/CMakeLists.txt.fedora	2012-05-15 19:00:44.471992137 -0400
++++ ./src/ompl/CMakeLists.txt	2012-05-15 19:01:01.697644332 -0400
+@@ -76,7 +76,7 @@ else(OMPL_IN_ROS)
+ endif(OMPL_IN_ROS)
+ 
+ # install the library
+-install(TARGETS ompl DESTINATION lib/)
++install(TARGETS ompl DESTINATION lib${LIB_SUFFIX}/)
+ if(NOT MSVC)
+     get_target_property(OMPL_LIBRARY_LOC ompl LOCATION)
+     add_custom_command(TARGET ompl POST_BUILD
+diff -up ./src/ompl/tools/benchmark/src/MachineSpecs.cpp.fedora ./src/ompl/tools/benchmark/src/MachineSpecs.cpp
+--- ./src/ompl/tools/benchmark/src/MachineSpecs.cpp.fedora	2012-05-15 18:49:47.860902896 -0400
++++ ./src/ompl/tools/benchmark/src/MachineSpecs.cpp	2012-05-15 18:51:17.132141650 -0400
+@@ -36,7 +36,7 @@
+ 
+ #include "ompl/tools/benchmark/MachineSpecs.h"
+ #include "ompl/util/Console.h"
+-
++#include "unistd.h"
+ /// @cond IGNORE
+ 
+ #if defined _WIN32
diff --git a/ompl.spec b/ompl.spec
index 6f816bf..1438b1e 100644
--- a/ompl.spec
+++ b/ompl.spec
@@ -1,5 +1,5 @@
 Name:           ompl
-Version:        0.9.5
+Version:        0.10.2
 Release:        1%{?dist}
 Summary:        The Open Motion Planning Library
 
@@ -8,9 +8,10 @@ License:        BSD
 URL:            http://ompl.kavrakilab.org/
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Source.tar.gz
 # This patch adds LIB_SUFFIX to the library installation directory, so that
-# libraries get installed to /usr/lib64 on 64 bit systems.
-# Not yet submitted upstream
-Patch0:         ompl-0.9.3.fixinstall.patch
+# libraries get installed to /usr/lib64 on 64 bit systems.  It also
+# moves the installation directory of the odeint library
+# Not yet submitted upstrea
+Patch0:         ompl-0.10.2-fedora.patch
 
 BuildRequires:  boost-devel >= 1.42.0
 BuildRequires:  cmake >= 2.8.2
@@ -39,21 +40,26 @@ developing applications that use %{name}.
 
 %prep
 %setup -q -n %{name}-%{version}-Source
-%patch0 -p0 -b .fixinstalldir
+%patch0 -p0 -b .fedora
 
 %build
 # Python bindings are disabled because dependencies pygccxml and pyplusplus are not packaged for Fedora
-%cmake -DCMAKE_SKIP_RPATH=ON -DOMPL_BUILD_PYBINDINGS=OFF -DBOOST_LIBRARYDIR=%{_libdir} -DODE_LIB_PATH=%{_libdir}
+mkdir build
+cd build
+%cmake -DCMAKE_SKIP_RPATH=ON -DOMPL_BUILD_PYBINDINGS=OFF -DBOOST_LIBRARYDIR=%{_libdir} -DODE_LIB_PATH=%{_libdir} -DBUILD_OMPL_TESTS=ON  -DOMPL_ODESOLVER=ON ..
 make %{?_smp_mflags}
 make doc
 rm -f doc/html/installdox
 
 %install
-make install DESTDIR=%{buildroot}
+make -C build install DESTDIR=%{buildroot}
 
 rm -f %{buildroot}%{_datadir}/%{name}/demos/*.py
 rm -rf %{buildroot}%{_includedir}/%{name}/CMakeFiles
 
+%check
+export LD_LIBRARY_PATH=$(pwd)/build/lib
+make -C build test
 
 %post -p /sbin/ldconfig
 
@@ -71,9 +77,13 @@ rm -rf %{buildroot}%{_includedir}/%{name}/CMakeFiles
 %{_libdir}/libompl.so
 %{_includedir}/%{name}
 %{_datadir}/%{name}
-
+%{_libdir}/pkgconfig/*.pc
+%{_datadir}/cmake/Modules/FindOMPL.cmake
 
 %changelog
+* Tue May 15 2012 Rich Mattes <richmattes at gmail.com> - 0.10.2-1
+- Update to release 0.10.2
+
 * Sun Oct 9 2011 Rich Mattes <richmattes at gmail.com> - 0.9.5-1
 - Update to release 0.9.5
 
diff --git a/sources b/sources
index 44cb3d4..6b922af 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8d8553ff36ae7f248c98f38b4a52c858  ompl-0.9.5-Source.tar.gz
+2e7ad9780070b93916f1e695696fd185  ompl-0.10.2-Source.tar.gz


More information about the scm-commits mailing list