[robot-model] 01/01: Initial Debianization

Jochen Sprickerhof jspricke-guest at moszumanska.debian.org
Wed Aug 5 11:52:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

jspricke-guest pushed a commit to branch master
in repository robot-model.

commit b1c2e00737df9723a2468ca4345ee27fb4215b11
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date:   Wed Aug 5 13:42:57 2015 +0200

    Initial Debianization
---
 debian/changelog                                   |   5 +
 debian/compat                                      |   1 +
 debian/control                                     | 123 +++++++++++++++++++++
 debian/copyright                                   |  80 ++++++++++++++
 debian/joint-state-publisher.install               |   1 +
 debian/libcollada-parser-dev.install               |   5 +
 debian/libcollada-parser0d.install                 |   1 +
 debian/libcollada-urdf-dev.install                 |   5 +
 debian/libcollada-urdf0d.install                   |   2 +
 debian/libkdl-parser-dev.install                   |   5 +
 debian/libkdl-parser0d.install                     |   1 +
 debian/liburdf-dev.install                         |   5 +
 debian/liburdf-parser-plugin-dev.install           |   4 +
 debian/liburdf0d.install                           |   1 +
 debian/patches/0001-Add-CMakeLists.txt.patch       |  24 ++++
 .../0002-Add-Debian-specific-SOVERSION.patch       |  66 +++++++++++
 debian/patches/series                              |   2 +
 debian/rules                                       |  32 ++++++
 debian/source/format                               |   1 +
 debian/watch                                       |  10 ++
 20 files changed, 374 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0b619ed
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+robot-model (1.11.7-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Jochen Sprickerhof <debian at jochen.sprickerhof.de>  Wed, 05 Aug 2015 09:53:08 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..1b80411
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,123 @@
+Source: robot-model
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Thomas Moulard <thomas.moulard at gmail.com>,
+           Jochen Sprickerhof <debian at jochen.sprickerhof.de>,
+           Leopold Palomo-Avellaneda <leo at alaxarxa.net>
+Build-Depends: debhelper (>= 9), catkin
+Standards-Version: 3.9.6
+Section: libs
+Homepage: http://wiki.ros.org/robot_model
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/ros/robot-model.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/ros/robot-model.git
+
+Package: libcollada-parser-dev
+Section: libdevel
+Architecture: any
+Depends: libcollada-parser0d (= ${binary:Version}), ${misc:Depends}
+Description: Development files for ROS collada_parser library
+ This package contains a C++ parser for the Collada robot description format.
+ The parser reads a Collada XML robot description, and creates a C++ URDF
+ model. Although it is possible to directly use this parser when working with
+ Collada robot descriptions, the preferred user API is found in the urdf
+ package.
+ .
+ This package contains the development files for the library.
+
+Package: libcollada-parser0d
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: ROS collada_parser library
+ This package contains a C++ parser for the Collada robot description format.
+ The parser reads a Collada XML robot description, and creates a C++ URDF
+ model. Although it is possible to directly use this parser when working with
+ Collada robot descriptions, the preferred user API is found in the urdf
+ package.
+ .
+ This package contains the library.
+
+Package: libcollada-urdf-dev
+Section: libdevel
+Architecture: any
+Depends: libcollada-urdf0d (= ${binary:Version}), ${misc:Depends}
+Description: Development files for ROS collada_urdf library
+ This package contains a tool to convert Unified Robot Description Format
+ (URDF) documents into COLLAborative Design Activity (COLLADA) documents.
+ .
+ Implements robot-specific COLLADA extensions as defined by
+ http://openrave.programmingvision.com/index.php/Started:COLLADA
+ .
+ This package contains the development files for the library.
+
+Package: libcollada-urdf0d
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: ROS collada_urdf library
+ This package contains a tool to convert Unified Robot Description Format
+ (URDF) documents into COLLAborative Design Activity (COLLADA) documents.
+ .
+ Implements robot-specific COLLADA extensions as defined by
+ http://openrave.programmingvision.com/index.php/Started:COLLADA
+ .
+ This package contains the library.
+
+Package: joint-state-publisher
+Section: utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: ROS joint_state_publisher
+ This package contains a tool for setting and publishing joint state values for
+ a given URDF.
+
+Package: libkdl-parser-dev
+Section: libdevel
+Architecture: any
+Depends: libkdl-parser0d (= ${binary:Version}), ${misc:Depends}
+Description: Development files for ROS collada_urdf library
+ The Kinematics and Dynamics Library (KDL) defines a tree structure to
+ represent the kinematic and dynamic parameters of a robot mechanism.
+ kdl_parser provides tools to construct a KDL tree from an XML robot
+ representation in URDF.
+ .
+ This package contains the development files for the library.
+
+Package: libkdl-parser0d
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: ROS collada_urdf library
+ The Kinematics and Dynamics Library (KDL) defines a tree structure to
+ represent the kinematic and dynamic parameters of a robot mechanism.
+ kdl_parser provides tools to construct a KDL tree from an XML robot
+ representation in URDF.
+ .
+ This package contains the library.
+
+Package: liburdf-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}
+Description: Development files for ROS urdf library
+ This package contains a C++ parser for the Unified Robot Description Format
+ (URDF), which is an XML format for representing a robot model. The code API of
+ the parser has been through our review process and will remain backwards
+ compatible in future releases.
+ .
+ This package contains the development files for the library.
+
+Package: liburdf0d
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: ROS urdf library
+ This package contains a C++ parser for the Unified Robot Description Format
+ (URDF), which is an XML format for representing a robot model. The code API of
+ the parser has been through our review process and will remain backwards
+ compatible in future releases.
+ .
+ This package contains the library.
+
+Package: liburdf-parser-plugin-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}
+Description: Development files for ROS urdf_parser_plugin library
+ This package contains a C++ base class for URDF parsers.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f3973c8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,80 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: bond-core
+Upstream-Contact: Esteve Fernandez <esteve at osrfoundation.org>
+Source: https://github.com/ros/bond_core
+
+Files: *
+Copyright: 2009 Willow Garage, Inc.
+License: BSD-3-clause
+#Author from package.xml
+# Stuart Glaser
+
+Files: smclib/python/smclib/statemap.py 
+ 	smclib/include/smclib/statemap.h
+Copyright: 2004 Francois Perrad <francois.perrad at gadz.org>
+	   2005 Charles W. Rapp
+License: MPL-1.1
+
+License: MPL-1.1
+ The contents of this file are subject to the Mozilla Public    
+ License Version 1.1 (the "License"); you may not use this file 
+ except in compliance with the License. You may obtain a copy of
+ the License at http://www.mozilla.org/MPL/
+ .
+ Software distributed under the License is distributed on an "AS
+ IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or  
+ implied. See the License for the specific language governing
+ rights and limitations under the License.
+ .
+ The Original Code is State Machine Compiler (SMC).
+ .
+ The Initial Developer of the Original Code is Charles W. Rapp.
+ Portions created by Charles W. Rapp are
+ Copyright (C) 2005. Charles W. Rapp.
+ .
+ .
+ Port to Python by Francois Perrad, francois.perrad at gadz.org
+ Copyright 2004, Francois Perrad.
+ .
+ .
+ Contributor(s):
+ .
+ RCS ID
+ $Id: statemap.py,v 1.7 2009/11/24 20:42:39 cwrapp Exp $
+ .
+ See: http://smc.sourceforge.net/
+
+Files: debian/*
+Copyright: 2015, Thomas Moulard <thomas.moulard at gmail.com>,
+                 Jochen Sprickerhof <debian at jochen.sprickerhof.de>,
+           	 Leopold Palomo-Avellaneda <leo at alaxarxa.net>
+License: BSD-3-clause
+
+License: BSD-3-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+  * Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+  * Redistributions in binary form must reproduce the above
+    copyright notice, this list of conditions and the following
+    disclaimer in the documentation and/or other materials provided
+    with the distribution.
+  * Neither the name of Willow Garage, Inc. nor the names of its
+    contributors may be used to endorse or promote products derived
+    from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/debian/joint-state-publisher.install b/debian/joint-state-publisher.install
new file mode 100644
index 0000000..ca908d8
--- /dev/null
+++ b/debian/joint-state-publisher.install
@@ -0,0 +1 @@
+usr/lib/joint_state_publisher
diff --git a/debian/libcollada-parser-dev.install b/debian/libcollada-parser-dev.install
new file mode 100755
index 0000000..4ef5013
--- /dev/null
+++ b/debian/libcollada-parser-dev.install
@@ -0,0 +1,5 @@
+#! /usr/bin/dh-exec
+usr/include/collada_parser
+usr/lib/libcollada_parser.so
+usr/lib/pkgconfig/collada_parser.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/
+usr/share/collada_parser
diff --git a/debian/libcollada-parser0d.install b/debian/libcollada-parser0d.install
new file mode 100644
index 0000000..16e5625
--- /dev/null
+++ b/debian/libcollada-parser0d.install
@@ -0,0 +1 @@
+usr/lib/libcollada_parser.so.*
diff --git a/debian/libcollada-urdf-dev.install b/debian/libcollada-urdf-dev.install
new file mode 100755
index 0000000..a1c8b83
--- /dev/null
+++ b/debian/libcollada-urdf-dev.install
@@ -0,0 +1,5 @@
+#! /usr/bin/dh-exec
+usr/include/collada_urdf
+usr/lib/libcollada_urdf.so
+usr/lib/pkgconfig/collada_urdf.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/
+usr/share/collada_urdf
diff --git a/debian/libcollada-urdf0d.install b/debian/libcollada-urdf0d.install
new file mode 100644
index 0000000..9eb0ad9
--- /dev/null
+++ b/debian/libcollada-urdf0d.install
@@ -0,0 +1,2 @@
+usr/lib/collada_urdf
+usr/lib/libcollada_urdf.so.*
diff --git a/debian/libkdl-parser-dev.install b/debian/libkdl-parser-dev.install
new file mode 100755
index 0000000..b18c2ea
--- /dev/null
+++ b/debian/libkdl-parser-dev.install
@@ -0,0 +1,5 @@
+#! /usr/bin/dh-exec
+usr/include/kdl_parser
+usr/lib/libkdl_parser.so
+usr/lib/pkgconfig/kdl_parser.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/
+usr/share/kdl_parser
diff --git a/debian/libkdl-parser0d.install b/debian/libkdl-parser0d.install
new file mode 100644
index 0000000..a04505a
--- /dev/null
+++ b/debian/libkdl-parser0d.install
@@ -0,0 +1 @@
+usr/lib/libkdl_parser.so.*
diff --git a/debian/liburdf-dev.install b/debian/liburdf-dev.install
new file mode 100755
index 0000000..48e18c2
--- /dev/null
+++ b/debian/liburdf-dev.install
@@ -0,0 +1,5 @@
+#! /usr/bin/dh-exec
+usr/include/urdf
+usr/lib/liburdf.so
+usr/lib/pkgconfig/urdf.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/
+usr/share/urdf
diff --git a/debian/liburdf-parser-plugin-dev.install b/debian/liburdf-parser-plugin-dev.install
new file mode 100755
index 0000000..0c84a61
--- /dev/null
+++ b/debian/liburdf-parser-plugin-dev.install
@@ -0,0 +1,4 @@
+#! /usr/bin/dh-exec
+usr/include/urdf_parser_plugin
+usr/lib/pkgconfig/urdf_parser_plugin.pc usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/
+usr/share/urdf_parser_plugin
diff --git a/debian/liburdf0d.install b/debian/liburdf0d.install
new file mode 100644
index 0000000..27f4ac8
--- /dev/null
+++ b/debian/liburdf0d.install
@@ -0,0 +1 @@
+usr/lib/liburdf.so.*
diff --git a/debian/patches/0001-Add-CMakeLists.txt.patch b/debian/patches/0001-Add-CMakeLists.txt.patch
new file mode 100644
index 0000000..fb6649b
--- /dev/null
+++ b/debian/patches/0001-Add-CMakeLists.txt.patch
@@ -0,0 +1,24 @@
+From: Jochen Sprickerhof <git at jochen.sprickerhof.de>
+Date: Wed, 5 Aug 2015 13:33:39 +0200
+Subject: Add CMakeLists.txt
+
+---
+ CMakeLists.txt | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+ create mode 100644 CMakeLists.txt
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+new file mode 100644
+index 0000000..4b3842c
+--- /dev/null
++++ b/CMakeLists.txt
+@@ -0,0 +1,9 @@
++cmake_minimum_required(VERSION 2.8.3)
++project(robot_model)
++
++add_subdirectory(urdf_parser_plugin)
++add_subdirectory(urdf)
++add_subdirectory(collada_parser)
++add_subdirectory(collada_urdf)
++add_subdirectory(joint_state_publisher)
++add_subdirectory(kdl_parser)
diff --git a/debian/patches/0002-Add-Debian-specific-SOVERSION.patch b/debian/patches/0002-Add-Debian-specific-SOVERSION.patch
new file mode 100644
index 0000000..56d1d7f
--- /dev/null
+++ b/debian/patches/0002-Add-Debian-specific-SOVERSION.patch
@@ -0,0 +1,66 @@
+From: Jochen Sprickerhof <git at jochen.sprickerhof.de>
+Date: Wed, 5 Aug 2015 13:36:06 +0200
+Subject: Add Debian specific SOVERSION
+
+---
+ collada_parser/CMakeLists.txt | 2 ++
+ collada_urdf/CMakeLists.txt   | 1 +
+ kdl_parser/CMakeLists.txt     | 1 +
+ urdf/CMakeLists.txt           | 1 +
+ 4 files changed, 5 insertions(+)
+
+diff --git a/collada_parser/CMakeLists.txt b/collada_parser/CMakeLists.txt
+index 43ed0c8..6366507 100644
+--- a/collada_parser/CMakeLists.txt
++++ b/collada_parser/CMakeLists.txt
+@@ -37,12 +37,14 @@ add_library(${PROJECT_NAME} src/collada_parser.cpp)
+ target_link_libraries(${PROJECT_NAME}
+   ${COLLADA_DOM_LIBRARIES} ${Boost_LIBRARIES} ${catkin_LIBRARIES}
+ )
++set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${collada_parser_VERSION} SOVERSION "0d")
+ 
+ # build the plugin for the parser
+ add_library(${PROJECT_NAME}_plugin src/collada_parser_plugin.cpp)
+ target_link_libraries(${PROJECT_NAME}_plugin
+   ${PROJECT_NAME} ${Boost_LIBRARIES} ${catkin_LIBRARIES}
+ )
++set_target_properties(${PROJECT_NAME}_plugin PROPERTIES VERSION ${collada_parser_VERSION} SOVERSION "0d")
+ 
+ set_target_properties(${PROJECT_NAME}
+   PROPERTIES COMPILER_FLAGS "${COLLADA_DOM_CFLAGS_OTHER}"
+diff --git a/collada_urdf/CMakeLists.txt b/collada_urdf/CMakeLists.txt
+index 0e301e9..cd7a2b2 100644
+--- a/collada_urdf/CMakeLists.txt
++++ b/collada_urdf/CMakeLists.txt
+@@ -64,6 +64,7 @@ target_link_libraries(${PROJECT_NAME} ${TinyXML_LIBRARIES} ${catkin_LIBRARIES} $
+   ${Boost_LIBRARIES} ${ASSIMP_LIBRARIES})
+ set_target_properties(${PROJECT_NAME} PROPERTIES COMPILER_FLAGS "${ASSIMP_CXX_FLAGS} ${ASSIMP_CFLAGS_OTHER}")
+ set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "${ASSIMP_LINK_FLAGS}") 
++set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${collada_urdf_VERSION} SOVERSION "0d")
+ 
+ add_executable(urdf_to_collada src/urdf_to_collada.cpp)
+ target_link_libraries(urdf_to_collada ${catkin_LIBRARIES} ${PCRECPP_LIBRARIES} ${COLLADA_DOM_LIBRARIES}
+diff --git a/kdl_parser/CMakeLists.txt b/kdl_parser/CMakeLists.txt
+index eedaf8a..a101f64 100644
+--- a/kdl_parser/CMakeLists.txt
++++ b/kdl_parser/CMakeLists.txt
+@@ -30,6 +30,7 @@ add_library(${PROJECT_NAME} src/kdl_parser.cpp)
+ target_link_libraries(${PROJECT_NAME}
+   ${TinyXML_LIBRARIES} ${orocos_kdl_LIBRARIES} ${catkin_LIBRARIES}
+ )
++set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${kdl_parser_VERSION} SOVERSION "0d")
+ 
+ add_executable(check_kdl_parser src/check_kdl_parser.cpp )
+ target_link_libraries(check_kdl_parser ${PROJECT_NAME})
+diff --git a/urdf/CMakeLists.txt b/urdf/CMakeLists.txt
+index 6e0a655..d196e42 100644
+--- a/urdf/CMakeLists.txt
++++ b/urdf/CMakeLists.txt
+@@ -34,6 +34,7 @@ link_directories(${catkin_LIBRARY_DIRS})
+ 
+ add_library(${PROJECT_NAME} src/model.cpp src/rosconsole_bridge.cpp)
+ target_link_libraries(${PROJECT_NAME} ${TinyXML_LIBRARIES} ${catkin_LIBRARIES} ${urdfdom_LIBRARIES} ${libpcrecpp_LIBRARIES})
++set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${urdf_VERSION} SOVERSION "0d")
+ 
+ if(APPLE)
+   set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c0916ef
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+0001-Add-CMakeLists.txt.patch
+0002-Add-Debian-specific-SOVERSION.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..97ec64f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#DH_VERBOSE = 1
+
+# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+# see FEATURE AREAS in dpkg-buildflags(1)
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# see ENVIRONMENT in dpkg-buildflags(1)
+# package maintainers to append CFLAGS
+#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
+# package maintainers to append LDFLAGS
+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+
+# main packaging script based on dh7 syntax
+%:
+	dh $@ --parallel
+
+# debmake generated override targets
+# This is example for Cmake (See http://bugs.debian.org/641051 )
+#override_dh_auto_configure:
+#	dh_auto_configure -- \
+#	-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
+
+
+
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..2efb9f5
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,10 @@
+# Watch control file for uscan
+# Compulsory line, this is a version 3 file
+version=3
+# For GitHub projects you can use the tags page:
+
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/robot_model-$1\.tar\.gz/ \
+  https://github.com/ros/robot_model/releases .*/v?(\d\S*)\.tar\.gz
+
+
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ros/robot-model.git



More information about the debian-science-commits mailing list