[ros-comm] 11/17: Add packaging for rosbag

Jochen Sprickerhof jspricke-guest at moszumanska.debian.org
Fri Dec 12 00:14:24 UTC 2014


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

jspricke-guest pushed a commit to branch master
in repository ros-comm.

commit 2a1ab35af917437729372c24f6ff5f0622b6ae79
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date:   Thu Dec 11 22:02:52 2014 +0100

    Add packaging for rosbag
---
 debian/control                                 | 34 ++++++++++++++++++++++----
 debian/librosbag-dev.install                   |  6 +++++
 debian/librosbag0d.install                     |  1 +
 debian/patches/0008-Add-SONAME-to-rosbag.patch | 20 +++++++++++++++
 debian/patches/series                          |  1 +
 debian/python-rosbag.install                   |  2 ++
 debian/python-rosbag.pyinstall                 |  1 +
 7 files changed, 60 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 0d87a6e..fba843e 100644
--- a/debian/control
+++ b/debian/control
@@ -113,12 +113,36 @@ Description: rospy is a pure Python client library for ROS.
 # Tools #
 #########
 
-Package: rosbag
+Package: librosbag-dev
+Section: libdevel
 Architecture: any
-Depends: ${misc:Depends}
-Multi-Arch: foreign
-Description: FIXME
- FIXME FIXME FIXME
+Depends: librosbag0d (= ${binary:Version}), ${misc:Depends}
+Description: This is a set of tools for recording from and playing back to ROS
+    topics.
+ It is intended to be high performance and avoids deserialization and
+ reserialization of the messages. 
+ .
+ This package contains the development files for the library.
+
+Package: librosbag0d
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: This is a set of tools for recording from and playing back to ROS
+    topics.
+ It is intended to be high performance and avoids deserialization and
+ reserialization of the messages. 
+ .
+ This package contains the library.
+
+Package: python-rosbag
+Section: python
+Architecture: any
+Multi-Arch: allowed
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: This is a set of tools for recording from and playing back to ROS
+    topics.
+ It is intended to be high performance and avoids deserialization and
+ reserialization of the messages. 
 
 Package: librosbag-storage-dev
 Section: libdevel
diff --git a/debian/librosbag-dev.install b/debian/librosbag-dev.install
new file mode 100644
index 0000000..dfec995
--- /dev/null
+++ b/debian/librosbag-dev.install
@@ -0,0 +1,6 @@
+usr/include/rosbag/player.h
+usr/include/rosbag/recorder.h
+usr/include/rosbag/time_translator.h
+usr/lib/librosbag.so
+usr/lib/pkgconfig/rosbag.pc
+usr/share/rosbag
diff --git a/debian/librosbag0d.install b/debian/librosbag0d.install
new file mode 100644
index 0000000..87193e7
--- /dev/null
+++ b/debian/librosbag0d.install
@@ -0,0 +1 @@
+usr/lib/librosbag.so.*
diff --git a/debian/patches/0008-Add-SONAME-to-rosbag.patch b/debian/patches/0008-Add-SONAME-to-rosbag.patch
new file mode 100644
index 0000000..e1e3231
--- /dev/null
+++ b/debian/patches/0008-Add-SONAME-to-rosbag.patch
@@ -0,0 +1,20 @@
+From: Jochen Sprickerhof <git at jochen.sprickerhof.de>
+Date: Thu, 11 Dec 2014 21:58:19 +0100
+Subject: Add SONAME to rosbag
+
+---
+ tools/rosbag/CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tools/rosbag/CMakeLists.txt b/tools/rosbag/CMakeLists.txt
+index 4d063ea..2cfdcff 100644
+--- a/tools/rosbag/CMakeLists.txt
++++ b/tools/rosbag/CMakeLists.txt
+@@ -20,6 +20,7 @@ add_library(rosbag
+   src/player.cpp
+   src/recorder.cpp
+   src/time_translator.cpp)
++set_target_properties(rosbag PROPERTIES VERSION ${rosbag_VERSION} SOVERSION "0d")
+ 
+ target_link_libraries(rosbag ${catkin_LIBRARIES} ${Boost_LIBRARIES})
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 82f6e7c..bd9f2db 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
 0005-Add-SONAME-for-xmlrpcpp.patch
 0006-Add-SONAME-for-roscpp.patch
 0007-Add-SONAME-for-topic_tools.patch
+0008-Add-SONAME-to-rosbag.patch
diff --git a/debian/python-rosbag.install b/debian/python-rosbag.install
new file mode 100644
index 0000000..af3c324
--- /dev/null
+++ b/debian/python-rosbag.install
@@ -0,0 +1,2 @@
+usr/bin/rosbag
+usr/lib/rosbag
diff --git a/debian/python-rosbag.pyinstall b/debian/python-rosbag.pyinstall
new file mode 100644
index 0000000..1d74361
--- /dev/null
+++ b/debian/python-rosbag.pyinstall
@@ -0,0 +1 @@
+tools/rosbag/src/rosbag/*.py rosbag

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



More information about the debian-science-commits mailing list