[ros-realtime-tools] 01/01: Initial debianization

Jochen Sprickerhof jspricke-guest at moszumanska.debian.org
Sat Dec 26 21:33:56 UTC 2015


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

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

commit 05a5b67ea3b21d3ed22339498043bfbfa0a9da50
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date:   Sat Dec 26 22:32:51 2015 +0100

    Initial debianization
---
 debian/changelog                                   |  5 +++
 debian/compat                                      |  1 +
 debian/control                                     | 39 ++++++++++++++++++++++
 debian/copyright                                   | 38 +++++++++++++++++++++
 debian/librealtime-tools-dev.install               |  4 +++
 debian/librealtime-tools0d.install                 |  2 ++
 .../0001-Add-Debian-specific-SOVERSION.patch       | 20 +++++++++++
 debian/patches/series                              |  1 +
 debian/rules                                       |  9 +++++
 debian/source/format                               |  1 +
 debian/watch                                       |  7 ++++
 11 files changed, 127 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0739b45
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ros-realtime-tools (1.9.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Jochen Sprickerhof <debian at jochen.sprickerhof.de>  Sat, 26 Dec 2015 22:17:41 +0100
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..4040c5d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,39 @@
+Source: ros-realtime-tools
+Priority: optional
+Maintainer: Jochen Sprickerhof <debian at jochen.sprickerhof.de>
+Build-Depends: debhelper (>= 9), cmake
+Standards-Version: 3.9.6
+Section: libs
+Homepage: http://wiki.ros.org/realtime_tools
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/ros/ros-realtime-tools.git
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/ros/ros-realtime-tools.git
+
+Package: librealtime-tools-dev
+Section: libdevel
+Architecture: any
+Depends: librealtime-tools0d (= ${binary:Version}), ${misc:Depends}
+Description: development files for for realtime_tools (Robot OS)
+ This package is part of Robot OS (ROS). Contains a set of tools that can be
+ used from a hard realtime thread, without breaking the realtime behavior. The
+ tools currently only provides the realtime publisher, which makes it possible
+ to publish messages to a ROS topic from a realtime thread. We plan to add a
+ basic implementation of a realtime buffer, to make it possible to get data
+ from a (non-realtime) topic callback into the realtime loop. Once the lockfree
+ buffer is created, the realtime publisher will start using it, which will
+ result in major API changes for the realtime publisher (removal of all lock
+ methods).
+
+Package: librealtime-tools0d
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: same
+Description: library for realtime_tools (Robot OS)
+ This package is part of Robot OS (ROS). Contains a set of tools that can be
+ used from a hard realtime thread, without breaking the realtime behavior. The
+ tools currently only provides the realtime publisher, which makes it possible
+ to publish messages to a ROS topic from a realtime thread. We plan to add a
+ basic implementation of a realtime buffer, to make it possible to get data
+ from a (non-realtime) topic callback into the realtime loop. Once the lockfree
+ buffer is created, the realtime publisher will start using it, which will
+ result in major API changes for the realtime publisher (removal of all lock
+ methods).
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..337f099
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,38 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ros-realtime-tools
+Source: <url://example.com>
+
+Files: *
+Copyright: <years> <put author's name and email here>
+           <years> <likewise for another author>
+License: <special license>
+ <Put the license of the package here indented by 1 space>
+ <This follows the format of Description: lines in control file>
+ .
+ <Including paragraphs>
+
+# If you want to use GPL v2 or later for the /debian/* files use 
+# the following clauses, or change it to suit. Delete these two lines
+Files: debian/*
+Copyright: 2015 Jochen Sprickerhof <debian at jochen.sprickerhof.de>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
+# Please avoid picking licenses with terms that are more restrictive than the
+# packaged work, as it may make Debian's contributions unacceptable upstream.
diff --git a/debian/librealtime-tools-dev.install b/debian/librealtime-tools-dev.install
new file mode 100644
index 0000000..0fb210b
--- /dev/null
+++ b/debian/librealtime-tools-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/*/lib*.so
+usr/lib/*/pkgconfig/*
+usr/share/*
diff --git a/debian/librealtime-tools0d.install b/debian/librealtime-tools0d.install
new file mode 100644
index 0000000..961f78e
--- /dev/null
+++ b/debian/librealtime-tools0d.install
@@ -0,0 +1,2 @@
+usr/lib/*/lib*.so.*
+usr/lib/*/realtime_tools
diff --git a/debian/patches/0001-Add-Debian-specific-SOVERSION.patch b/debian/patches/0001-Add-Debian-specific-SOVERSION.patch
new file mode 100644
index 0000000..2b65e6b
--- /dev/null
+++ b/debian/patches/0001-Add-Debian-specific-SOVERSION.patch
@@ -0,0 +1,20 @@
+From: Jochen Sprickerhof <git at jochen.sprickerhof.de>
+Date: Sat, 26 Dec 2015 22:19:11 +0100
+Subject: Add Debian specific SOVERSION
+
+---
+ CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5730259..33ba0b9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -17,6 +17,7 @@ catkin_package(
+ 
+ add_library(${PROJECT_NAME} src/realtime_clock.cpp)
+ target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES})
++set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${realtime_tools_VERSION} SOVERSION "0d")
+ 
+ # Install
+ install(DIRECTORY include/${PROJECT_NAME}/
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6eac731
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Add-Debian-specific-SOVERSION.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1791301
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+%:
+	dh $@ --parallel --buildsystem=cmake
+
+get-orig-source:
+	uscan --verbose --force-download --repack --compress xz
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..a37bce1
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,7 @@
+# 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/realtime_tools-$1\.tar\.gz/ \
+  https://github.com/ros-controls/realtime_tools/releases .*/v?(\d\S*)\.tar\.gz

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



More information about the debian-science-commits mailing list