[ros-comm] 01/17: Add packaging for roslz4

Jochen Sprickerhof jspricke-guest at moszumanska.debian.org
Fri Dec 12 00:14:23 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 34ac2bd36782bfa9365cb37ce3f06be5e5cc576c
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date:   Thu Dec 11 12:59:09 2014 +0100

    Add packaging for roslz4
---
 debian/control                                 | 36 +++++++++++++++++++++++++-
 debian/libroslz4-0d.install                    |  1 +
 debian/libroslz4-dev.install                   |  4 +++
 debian/patches/0002-Add-SONAME-to-roslz4.patch | 20 ++++++++++++++
 debian/patches/series                          |  1 +
 debian/python-roslz4.pyinstall                 |  2 ++
 debian/rules                                   |  2 +-
 7 files changed, 64 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 08c9e06..17a5e24 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,8 @@ Build-Depends: debhelper (>= 9), python, catkin, libroscpp-core-dev,
  python-rosunit, libconsole-bridge-dev, libboost-date-time-dev,
  libboost-filesystem-dev, libboost-program-options-dev, libboost-regex-dev,
  libboost-system-dev, libboost-thread-dev, libboost-signals-dev, liblz4-dev,
- message-generation, libbz2-dev, libros-rosgraph-msgs-dev
+ message-generation, libbz2-dev, libros-rosgraph-msgs-dev, libstd-msgs-dev,
+ dh-python
 Standards-Version: 3.9.4
 Vcs-Browser: http://git.debian.org/?p=debian-science/packages/ros/ros-comm.git
 Vcs-Git: git://git.debian.org/debian-science/packages/ros/ros-comm.git
@@ -174,3 +175,36 @@ Depends: ${misc:Depends}
 Multi-Arch: foreign
 Description: FIXME
  FIXME FIXME FIXME
+
+Package: libroslz4-dev
+Section: libdevel
+Architecture: any
+Depends: libroslz4-0d (= ${binary:Version}), ${misc:Depends}
+Description: development files for libroslz4
+ A Python and C++ implementation of the LZ4 streaming format.  Large data
+ streams are split into blocks which are compressed using the very fast LZ4
+ compression algorithm.
+ .
+ This package contains the development files for the library.
+
+Package: libroslz4-0d
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: library for rosplz4
+ A Python and C++ implementation of the LZ4 streaming format.  Large data
+ streams are split into blocks which are compressed using the very fast LZ4
+ compression algorithm.
+ .
+ This package contains the library.
+
+Package: python-roslz4
+Section: python
+Architecture: any
+Multi-Arch: allowed
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: Python library for rosplz4
+ A Python and C++ implementation of the LZ4 streaming format.  Large data
+ streams are split into blocks which are compressed using the very fast LZ4
+ compression algorithm.
+ .
+ This package contains the Python library.
diff --git a/debian/libroslz4-0d.install b/debian/libroslz4-0d.install
new file mode 100644
index 0000000..fb8ec36
--- /dev/null
+++ b/debian/libroslz4-0d.install
@@ -0,0 +1 @@
+usr/lib/libroslz4.so.*
diff --git a/debian/libroslz4-dev.install b/debian/libroslz4-dev.install
new file mode 100644
index 0000000..1e065b6
--- /dev/null
+++ b/debian/libroslz4-dev.install
@@ -0,0 +1,4 @@
+usr/include/roslz4
+usr/lib/libroslz4.so
+usr/lib/pkgconfig/roslz4.pc
+usr/share/roslz4
diff --git a/debian/patches/0002-Add-SONAME-to-roslz4.patch b/debian/patches/0002-Add-SONAME-to-roslz4.patch
new file mode 100644
index 0000000..be08b54
--- /dev/null
+++ b/debian/patches/0002-Add-SONAME-to-roslz4.patch
@@ -0,0 +1,20 @@
+From: Jochen Sprickerhof <git at jochen.sprickerhof.de>
+Date: Thu, 11 Dec 2014 13:01:16 +0100
+Subject: Add SONAME to roslz4
+
+---
+ utilities/roslz4/CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/utilities/roslz4/CMakeLists.txt b/utilities/roslz4/CMakeLists.txt
+index 1b6bac9..0bb7b62 100644
+--- a/utilities/roslz4/CMakeLists.txt
++++ b/utilities/roslz4/CMakeLists.txt
+@@ -23,6 +23,7 @@ catkin_package(
+ 
+ include_directories(include ${lz4_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
+ add_library(roslz4 src/lz4s.c src/xxhash.c)
++set_target_properties(roslz4 PROPERTIES VERSION ${roslz4_VERSION} SOVERSION "0d")
+ target_link_libraries(roslz4 ${lz4_LIBRARIES} ${catkin_LIBRARIES})
+ 
+ # Python bindings
diff --git a/debian/patches/series b/debian/patches/series
index 6e9def9..72f4d84 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Add-CMakeLists.txt.patch
+0002-Add-SONAME-to-roslz4.patch
diff --git a/debian/python-roslz4.pyinstall b/debian/python-roslz4.pyinstall
new file mode 100644
index 0000000..5b2ea5d
--- /dev/null
+++ b/debian/python-roslz4.pyinstall
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/python2*/*/roslz4/*.py roslz4
+debian/tmp/usr/lib/python2*/*/roslz4/*.so roslz4
diff --git a/debian/rules b/debian/rules
index 320914b..4f6f05f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,4 +2,4 @@
 # -*- makefile -*-
 
 %:
-	dh  $@ --parallel --buildsystem=cmake
+	dh  $@ --parallel --with=python2 --buildsystem=cmake

-- 
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