[rviz] 01/01: Initial Debianization
Jochen Sprickerhof
jspricke-guest at moszumanska.debian.org
Wed Aug 5 15:43:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
jspricke-guest pushed a commit to branch master
in repository rviz.
commit 918ebc70980196bc6901c4ec363affe37c3c9e92
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date: Wed Aug 5 16:39:46 2015 +0200
Initial Debianization
---
debian/changelog | 5 ++
debian/compat | 1 +
debian/control | 39 +++++++++++
debian/copyright | 80 ++++++++++++++++++++++
debian/librviz-dev.install | 6 ++
debian/librviz0d.install | 1 +
.../0001-Add-Debian-specific-SOVERSION.patch | 33 +++++++++
...package-python-version-detected-by-catkin.patch | 34 +++++++++
debian/patches/series | 2 +
debian/python-rviz.pyinstall | 1 +
debian/rules | 32 +++++++++
debian/rviz.install | 6 ++
debian/source/format | 1 +
debian/watch | 10 +++
14 files changed, 251 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f0e55e9
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+rviz (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..08cf208
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,39 @@
+Source: rviz
+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/rviz
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/ros/rviz.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/ros/rviz.git
+
+Package: librviz-dev
+Section: libdevel
+Architecture: any
+Depends: librviz0d (= ${binary:Version}), ${misc:Depends}
+Description: 3D visualization tool for ROS.
+ This package contains the development files for the library.
+
+Package: librviz0d
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 3D visualization tool for ROS.
+ This package contains the library.
+
+Package: rviz
+Section: utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 3D visualization tool for ROS.
+ This package contains the program.
+
+Package: python-rviz
+Section: python
+Architecture: all
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: 3D visualization tool for ROS.
+ This package contains the Python library.
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/librviz-dev.install b/debian/librviz-dev.install
new file mode 100755
index 0000000..8432702
--- /dev/null
+++ b/debian/librviz-dev.install
@@ -0,0 +1,6 @@
+#! /usr/bin/dh-exec
+usr/include
+usr/lib/lib*.so
+usr/lib/pkgconfig/* usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/
+usr/share/rviz/cmake
+usr/share/rviz/package.xml
diff --git a/debian/librviz0d.install b/debian/librviz0d.install
new file mode 100644
index 0000000..d0dbfd1
--- /dev/null
+++ b/debian/librviz0d.install
@@ -0,0 +1 @@
+usr/lib/lib*.so.*
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..63b1155
--- /dev/null
+++ b/debian/patches/0001-Add-Debian-specific-SOVERSION.patch
@@ -0,0 +1,33 @@
+From: Jochen Sprickerhof <git at jochen.sprickerhof.de>
+Date: Wed, 5 Aug 2015 14:05:24 +0200
+Subject: Add Debian specific SOVERSION
+
+---
+ src/rviz/CMakeLists.txt | 1 +
+ src/rviz/default_plugin/CMakeLists.txt | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/src/rviz/CMakeLists.txt b/src/rviz/CMakeLists.txt
+index 5dad564..40a87cd 100644
+--- a/src/rviz/CMakeLists.txt
++++ b/src/rviz/CMakeLists.txt
+@@ -198,6 +198,7 @@ target_link_libraries(${PROJECT_NAME}
+ assimp
+ yaml-cpp
+ )
++set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${rviz_VERSION} SOVERSION "0d")
+
+ if(APPLE)
+ set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
+diff --git a/src/rviz/default_plugin/CMakeLists.txt b/src/rviz/default_plugin/CMakeLists.txt
+index 8e8a3ad..c794890 100644
+--- a/src/rviz/default_plugin/CMakeLists.txt
++++ b/src/rviz/default_plugin/CMakeLists.txt
+@@ -110,6 +110,7 @@ set(SOURCE_FILES
+
+ add_library(default_plugin ${SOURCE_FILES})
+ target_link_libraries(default_plugin ${PROJECT_NAME} ${catkin_LIBRARIES} ${QT_LIBRARIES} ${OGRE_OV_LIBRARIES_ABS} ${Boost_LIBRARIES})
++set_target_properties(default_plugin PROPERTIES VERSION ${rviz_VERSION} SOVERSION "0d")
+
+ install(TARGETS default_plugin
+ ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
diff --git a/debian/patches/0001-find_package-python-version-detected-by-catkin.patch b/debian/patches/0001-find_package-python-version-detected-by-catkin.patch
new file mode 100644
index 0000000..835a167
--- /dev/null
+++ b/debian/patches/0001-find_package-python-version-detected-by-catkin.patch
@@ -0,0 +1,34 @@
+From: v4hn <me at v4hn.de>
+Date: Fri, 8 May 2015 17:19:50 +0200
+Subject: find_package python version detected by catkin
+
+Otherwise it might happen that catkin (and the rest of the workspace)
+uses 2.x and rviz detects & tries to use 3.x. This can produce some nasty
+collisions.
+
+See rospack, roslz4, qt_gui_cpp and others for similar invokation.
+---
+ CMakeLists.txt | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6fb40bb..79b9168 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -84,8 +84,6 @@ endif()
+
+ find_package(OpenGL REQUIRED)
+
+-find_package(PythonLibs REQUIRED)
+-
+ find_package(Qt4 REQUIRED COMPONENTS QtCore QtGui QtOpenGL)
+
+ find_package(catkin REQUIRED
+@@ -120,6 +118,7 @@ if(${tf_VERSION} VERSION_LESS "1.11.3")
+ add_definitions("-DRVIZ_USE_BOOST_SIGNAL_1")
+ endif()
+
++find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" REQUIRED)
+
+ find_package(Eigen REQUIRED)
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3604896
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+0001-Add-Debian-specific-SOVERSION.patch
+0001-find_package-python-version-detected-by-catkin.patch
diff --git a/debian/python-rviz.pyinstall b/debian/python-rviz.pyinstall
new file mode 100644
index 0000000..19047c5
--- /dev/null
+++ b/debian/python-rviz.pyinstall
@@ -0,0 +1 @@
+debian/tmp/usr/lib/python2*/*/rviz/*.py rviz
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e48a70f
--- /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 --with=python2 --buildsystem=cmake
+
+# 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/rviz.install b/debian/rviz.install
new file mode 100644
index 0000000..5f81d65
--- /dev/null
+++ b/debian/rviz.install
@@ -0,0 +1,6 @@
+usr/bin/rviz
+usr/share/rviz/icons
+usr/share/rviz/images
+usr/share/rviz/ogre_media
+usr/share/rviz/default.rviz
+usr/share/rviz/plugin_description.xml
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..aa1ac1e
--- /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/rviz-$1\.tar\.gz/ \
+ https://github.com/ros-visualization/rviz/releases .*/v?(\d\S*)\.tar\.gz
+
+
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ros/rviz.git
More information about the debian-science-commits
mailing list