[ros-diagnostics] 01/01: Initial debianization

Jochen Sprickerhof jspricke-guest at moszumanska.debian.org
Sat Dec 26 17:45:58 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-diagnostics.

commit 8a0d73451088f60df3dd2a63d0fc7098ca077449
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date:   Sat Dec 26 18:36:53 2015 +0100

    Initial debianization
---
 debian/changelog                                   |   5 +
 debian/compat                                      |   1 +
 debian/control                                     | 102 +++++++++++++++++++++
 debian/copyright                                   |  38 ++++++++
 debian/docs                                        |   0
 debian/libdiagnostic-aggregator-dev.install        |   4 +
 debian/libdiagnostic-aggregator-tools.install      |   1 +
 debian/libdiagnostic-aggregator0d.install          |   1 +
 debian/libdiagnostic-updater-dev.install           |   3 +
 debian/libself-test-dev.install                    |   3 +
 debian/libself-test-tools.install                  |   1 +
 debian/patches/0001-Add-CMakeLists.txt.patch       |  22 +++++
 .../0002-Add-Debian-specific-SOVERSION.patch       |  20 ++++
 debian/patches/series                              |   2 +
 debian/python-diagnostic-analysis.install          |   2 +
 debian/python-diagnostic-analysis.pyinstall        |   1 +
 .../python-diagnostic-common-diagnostics.install   |   3 +
 .../python-diagnostic-common-diagnostics.pyinstall |   1 +
 debian/python-diagnostic-updater.pyinstall         |   1 +
 debian/rules                                       |   9 ++
 debian/source/format                               |   1 +
 debian/watch                                       |  10 ++
 22 files changed, 231 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..53d4483
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ros-diagnostics (1.8.8-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 17:25:13 +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..1ab94fb
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,102 @@
+Source: ros-diagnostics
+Section: libs
+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 (>> 0.6.16-2), python-all (>= 2.6.6-3), python-setuptools (>= 0.6b3), dh-python
+Standards-Version: 3.9.6
+Homepage: http://wiki.ros.org/diagnostics
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/ros/ros-diagnostics.git
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/ros/ros-diagnostics.git
+
+Package: libdiagnostic-aggregator-dev
+Section: libdevel
+Architecture: any
+Depends: libdiagnostic-aggregator0d (= ${binary:Version}), ${misc:Depends}
+Description: development files for diagnostic_aggregator (Robot OS)
+ This package is part of Robot OS (ROS).
+ .
+ This package contains the development files for the library.
+
+Package: libdiagnostic-aggregator0d
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: same
+Description: library for diagnostic_aggregator (Robot OS)
+ This package is part of Robot OS (ROS).
+ .
+ This package contains the C library.
+
+Package: libdiagnostic-aggregator-tools
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: foreign
+Description: Robot OS diagnostic_aggregator tools
+ This package is part of Robot OS (ROS).
+ .
+ This package contains the tools.
+
+Package: python-diagnostic-analysis
+Section: python
+Architecture: all
+Multi-Arch: allowed
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: Python library diagnostic_analysis (Robot OS)
+ This package is part of Robot OS (ROS). The diagnostic_analysis package can
+ convert a log of diagnostics data into a series of CSV files. Robot logs are
+ recorded with rosbag, and can be processed offline using the scripts in this
+ package.
+
+Package: libdiagnostic-updater-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}
+Description: Robot OS diagnostic_updater tools
+ This package is part of Robot OS (ROS). diagnostic_updater contains tools for
+ easily updating diagnostics. it is commonly used in device drivers to keep
+ track of the status of output topics, device status, etc.
+ .
+ This package contains the development files for the library.
+
+Package: python-diagnostic-updater
+Section: python
+Architecture: all
+Multi-Arch: allowed
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: Python library diagnostic_analysis (Robot OS)
+ This package is part of Robot OS (ROS). The diagnostic_analysis package can
+ convert a log of diagnostics data into a series of CSV files. Robot logs are
+ recorded with rosbag, and can be processed offline using the scripts in this
+ package.
+
+Package: python-diagnostic-common-diagnostics
+Section: python
+Architecture: all
+Multi-Arch: allowed
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: Python library diagnostic_analysis (Robot OS)
+ This package is part of Robot OS (ROS). The diagnostic_analysis package can
+ convert a log of diagnostics data into a series of CSV files. Robot logs are
+ recorded with rosbag, and can be processed offline using the scripts in this
+ package.
+
+Package: libself-test-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}
+Description: development files for self_test (Robot OS)
+ This package is part of Robot OS (ROS).
+ .
+ This package contains the development files for the library.
+
+Package: libself-test-tools
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: foreign
+Description: Robot OS self_test tools
+ This package is part of Robot OS (ROS).
+ .
+ This package contains the tools.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f6e6659
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,38 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ros-diagnostics
+Source: https://github.com/ros/diagnostics
+
+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/docs b/debian/docs
new file mode 100644
index 0000000..e69de29
diff --git a/debian/libdiagnostic-aggregator-dev.install b/debian/libdiagnostic-aggregator-dev.install
new file mode 100644
index 0000000..9785e46
--- /dev/null
+++ b/debian/libdiagnostic-aggregator-dev.install
@@ -0,0 +1,4 @@
+usr/include/diagnostic_aggregator
+usr/lib/*/libdiagnostic_aggregator.so
+usr/lib/*/pkgconfig/diagnostic_aggregator.pc
+usr/share/diagnostic_aggregator
diff --git a/debian/libdiagnostic-aggregator-tools.install b/debian/libdiagnostic-aggregator-tools.install
new file mode 100644
index 0000000..117a758
--- /dev/null
+++ b/debian/libdiagnostic-aggregator-tools.install
@@ -0,0 +1 @@
+usr/lib/*/diagnostic_aggregator usr/lib
diff --git a/debian/libdiagnostic-aggregator0d.install b/debian/libdiagnostic-aggregator0d.install
new file mode 100644
index 0000000..374de1b
--- /dev/null
+++ b/debian/libdiagnostic-aggregator0d.install
@@ -0,0 +1 @@
+usr/lib/*/libdiagnostic_aggregator.so.*
diff --git a/debian/libdiagnostic-updater-dev.install b/debian/libdiagnostic-updater-dev.install
new file mode 100644
index 0000000..20332fc
--- /dev/null
+++ b/debian/libdiagnostic-updater-dev.install
@@ -0,0 +1,3 @@
+usr/include/diagnostic_updater
+usr/lib/*/pkgconfig/diagnostic_updater.pc
+usr/share/diagnostic_updater
diff --git a/debian/libself-test-dev.install b/debian/libself-test-dev.install
new file mode 100644
index 0000000..5dd05d9
--- /dev/null
+++ b/debian/libself-test-dev.install
@@ -0,0 +1,3 @@
+usr/include/self_test
+usr/lib/*/pkgconfig/self_test.pc
+usr/share/self_test
diff --git a/debian/libself-test-tools.install b/debian/libself-test-tools.install
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/libself-test-tools.install
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/patches/0001-Add-CMakeLists.txt.patch b/debian/patches/0001-Add-CMakeLists.txt.patch
new file mode 100644
index 0000000..74ceed0
--- /dev/null
+++ b/debian/patches/0001-Add-CMakeLists.txt.patch
@@ -0,0 +1,22 @@
+From: Jochen Sprickerhof <git at jochen.sprickerhof.de>
+Date: Sat, 26 Dec 2015 17:22:59 +0100
+Subject: Add CMakeLists.txt
+
+---
+ CMakeLists.txt | 7 +++++++
+ 1 file changed, 7 insertions(+)
+ create mode 100644 CMakeLists.txt
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+new file mode 100644
+index 0000000..1b0e02a
+--- /dev/null
++++ b/CMakeLists.txt
+@@ -0,0 +1,7 @@
++cmake_minimum_required(VERSION 2.8.3)
++project(diagnostics)
++add_subdirectory(diagnostic_aggregator)
++add_subdirectory(diagnostic_analysis)
++add_subdirectory(diagnostic_updater)
++add_subdirectory(diagnostic_common_diagnostics)
++add_subdirectory(self_test)
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..2335a66
--- /dev/null
+++ b/debian/patches/0002-Add-Debian-specific-SOVERSION.patch
@@ -0,0 +1,20 @@
+From: Jochen Sprickerhof <git at jochen.sprickerhof.de>
+Date: Sat, 26 Dec 2015 17:43:15 +0100
+Subject: Add Debian specific SOVERSION
+
+---
+ diagnostic_aggregator/CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/diagnostic_aggregator/CMakeLists.txt b/diagnostic_aggregator/CMakeLists.txt
+index 48da72b..35cdb6e 100644
+--- a/diagnostic_aggregator/CMakeLists.txt
++++ b/diagnostic_aggregator/CMakeLists.txt
+@@ -25,6 +25,7 @@ target_link_libraries(diagnostic_aggregator ${Boost_LIBRARIES}
+                                             ${catkin_LIBRARIES}
+ )
+ add_dependencies(${PROJECT_NAME} diagnostic_msgs_generate_messages_cpp)
++set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${diagnostic_aggregator_VERSION} SOVERSION "0d")
+ 
+ # Aggregator node 
+ add_executable(aggregator_node src/aggregator_node.cpp)
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/python-diagnostic-analysis.install b/debian/python-diagnostic-analysis.install
new file mode 100644
index 0000000..ffe0c3f
--- /dev/null
+++ b/debian/python-diagnostic-analysis.install
@@ -0,0 +1,2 @@
+usr/lib/*/pkgconfig/diagnostic_analysis.pc usr/lib
+usr/share/diagnostic_analysis
diff --git a/debian/python-diagnostic-analysis.pyinstall b/debian/python-diagnostic-analysis.pyinstall
new file mode 100644
index 0000000..617ebf2
--- /dev/null
+++ b/debian/python-diagnostic-analysis.pyinstall
@@ -0,0 +1 @@
+diagnostic_analysis/src/diagnostic_analysis/*.py diagnostic_analysis
diff --git a/debian/python-diagnostic-common-diagnostics.install b/debian/python-diagnostic-common-diagnostics.install
new file mode 100644
index 0000000..d84231d
--- /dev/null
+++ b/debian/python-diagnostic-common-diagnostics.install
@@ -0,0 +1,3 @@
+usr/lib/*/diagnostic_common_diagnostics usr/lib
+usr/lib/*/pkgconfig/diagnostic_common_diagnostics.pc usr/lib
+usr/share/diagnostic_common_diagnostics
diff --git a/debian/python-diagnostic-common-diagnostics.pyinstall b/debian/python-diagnostic-common-diagnostics.pyinstall
new file mode 100644
index 0000000..74b7773
--- /dev/null
+++ b/debian/python-diagnostic-common-diagnostics.pyinstall
@@ -0,0 +1 @@
+diagnostic_common_diagnostics/src/diagnostic_common_diagnostics/*.py diagnostic_common_diagnostics
diff --git a/debian/python-diagnostic-updater.pyinstall b/debian/python-diagnostic-updater.pyinstall
new file mode 100644
index 0000000..325cfa1
--- /dev/null
+++ b/debian/python-diagnostic-updater.pyinstall
@@ -0,0 +1 @@
+diagnostic_updater/src/diagnostic_updater/*.py diagnostic_updater
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e4d7575
--- /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 --with python2
+
+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..6c9bfcc
--- /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/diagnostics-$1\.tar\.gz/ \
+  https://github.com/ros/diagnostics/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-diagnostics.git



More information about the debian-science-commits mailing list