[ignition-transport3] 01/03: Initial debian metadata

Jose Luis Rivero jrivero-guest at moszumanska.debian.org
Fri Aug 11 11:09:20 UTC 2017


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

jrivero-guest pushed a commit to branch master
in repository ignition-transport3.

commit 3b27004942cf283ace3032a9d5f7b42207751915
Author: Jose Luis Rivero <jrivero at osrfoundation.org>
Date:   Thu Aug 10 17:12:07 2017 +0000

    Initial debian metadata
---
 debian/.watch.swp                               | Bin 0 -> 12288 bytes
 debian/changelog                                |   7 +++
 debian/compat                                   |   1 +
 debian/control                                  |  58 ++++++++++++++++++++++++
 debian/copyright                                |  51 +++++++++++++++++++++
 debian/docs                                     |   3 ++
 debian/format                                   |   1 +
 debian/libignition-transport3-dev.install       |   4 ++
 debian/libignition-transport3.install           |   1 +
 debian/libignition-transport3.lintian-overrides |   4 ++
 debian/patches/0001-c++11_unconditional         |  32 +++++++++++++
 debian/patches/0003-respect-cmake-c-flags.patch |  28 ++++++++++++
 debian/patches/0004_use_system_gtest.patch      |  40 ++++++++++++++++
 debian/patches/series                           |   3 ++
 debian/rules                                    |  24 ++++++++++
 debian/source/format                            |   1 +
 debian/tests/build                              |  27 +++++++++++
 debian/tests/control                            |   2 +
 debian/watch                                    |   3 ++
 19 files changed, 290 insertions(+)

diff --git a/debian/.watch.swp b/debian/.watch.swp
new file mode 100644
index 0000000..f4f9043
Binary files /dev/null and b/debian/.watch.swp differ
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0066218
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,7 @@
+ignition-transport3 (3.0.1-1) unstable; urgency=medium
+
+  * Imported Upstream version 3.0.1
+    (Closes: #867968)
+
+ -- Jose Luis Rivero <jrivero at osrfoundation.org>  Thu, 10 Aug 2017 17:09:22 +0000
+
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..7c041a5
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,58 @@
+Source: ignition-transport3
+Standards-Version: 3.9.8
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jose Luis Rivero <jrivero at osrfoundation.org>
+Section: science
+Priority: extra
+Testsuite: autopkgtest
+Build-Depends: cmake,
+               pkg-config,
+               debhelper (>= 9),
+               python,
+               ruby-ronn,
+               libgtest-dev,
+               libprotoc-dev,
+               libprotobuf-dev,
+               protobuf-compiler,
+               uuid-dev,
+               libzmq3-dev (>= 3.0.0)
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/ignition-transport3.git
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/ignition-transport3.git
+Homepage: http://ignitionrobotics.org/libraries/transport
+
+Package: libignition-transport3
+Architecture: any
+Section: libs
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: same
+Description: Ignition Robotics Transport Library - Shared library
+ Ignition transport library combines ZeroMQ with Protobufs to create a fast and
+ efficient message passing system. Asynchronous message publication and
+ subscription is provided along with service calls and discovery.
+ .
+ Ignition Robtics is a set of simple libraries that provide useful
+ functionality to bootstrap robot applications. The included libraries
+ encapsulate all the essentials, such as common math data types, console
+ logging, 3D mesh management, and asynchronous message passing.
+
+Package: libignition-transport3-dev
+Architecture: any
+Section: libdevel
+Depends: libignition-transport3 (= ${binary:Version}),
+         uuid-dev,
+         libzmq3-dev (>= 3.0.0),
+         libprotobuf-dev,
+         ${misc:Depends}
+Conflicts: libignition-transport-dev
+Replaces: libignition-transport-dev
+Multi-Arch: same
+Description: Ignition Robotics transport Library - Development files
+ Ignition transport library combines ZeroMQ with Protobufs to create a fast and
+ efficient message passing system. Asynchronous message publication and
+ subscription is provided along with service calls and discovery.
+ .
+ Ignition Robtics is a set of simple libraries that provide useful
+ functionality to bootstrap robot applications. The included libraries
+ encapsulate all the essentials, such as common math data types, console
+ logging, 3D mesh management, and asynchronous message passing.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..bd6407a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,51 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: igntransport
+Upstream-Contact: gazebo-list at gazebosim.org
+Source: https://bitbucket.org/ignitionrobotics/ign-transport
+Files-Excluded: test/gtest
+
+Files: *
+Copyright: 2014 Open Source Robotics Foundation
+License: Apache
+ See '/usr/share/common-licenses/Apache-2.0'.
+
+Files: tools/check_test_ran.py
+Copyright: 2008, Willow Garage, Inc.
+License: BSD-3-clause
+
+Files: tools/cpplint.py
+Copyright: 2009 Google Inc.
+License: BSD-3-clause
+
+License: BSD-3-clause
+ Software License Agreement (BSD License)
+ .
+ Copyright (c) 2008, Willow Garage, Inc.
+ All rights reserved.
+ .
+ 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 the Willow Garage 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/docs b/debian/docs
new file mode 100644
index 0000000..46a4ca7
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+AUTHORS
+NEWS
+README.md
diff --git a/debian/format b/debian/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/libignition-transport3-dev.install b/debian/libignition-transport3-dev.install
new file mode 100644
index 0000000..9e4bf01
--- /dev/null
+++ b/debian/libignition-transport3-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/*/*.so
+usr/lib/*/pkgconfig/*.pc
+usr/lib/*/cmake/ignition-transport[0-9]*/*
diff --git a/debian/libignition-transport3.install b/debian/libignition-transport3.install
new file mode 100644
index 0000000..3de3b10
--- /dev/null
+++ b/debian/libignition-transport3.install
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
diff --git a/debian/libignition-transport3.lintian-overrides b/debian/libignition-transport3.lintian-overrides
new file mode 100644
index 0000000..187bdbf
--- /dev/null
+++ b/debian/libignition-transport3.lintian-overrides
@@ -0,0 +1,4 @@
+# The msgs library is not useful without the ignition-transport lib
+# so does not make sense to package it separately. Upstream is not
+# using 0 for the main library, just plain name.
+libignition-transport: package-name-doesnt-match-sonames libignition-transport-msgs0-0 libignition-transport-0
diff --git a/debian/patches/0001-c++11_unconditional b/debian/patches/0001-c++11_unconditional
new file mode 100644
index 0000000..2439a5f
--- /dev/null
+++ b/debian/patches/0001-c++11_unconditional
@@ -0,0 +1,32 @@
+Description: Declare c++11 flag unconditional
+Author: Jose Luis Rivero <jrivero at osrfoundation.org>
+Forwarded: No
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c54c198..40f1cdd 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -195,6 +195,7 @@ else()
+ 
+   # Unable to be filtered flags (failing due to limitations in filter_valid_compiler_warnings)
+   set(UNFILTERED_FLAGS "-Wc++11-compat")
++  set(UNFILTERED_FLAGS "-std=c++11")
+ endif()
+ 
+ filter_valid_compiler_warnings(${WARN_LEVEL} -Wextra -Wno-long-long
+diff --git a/cmake/DefaultCFlags.cmake b/cmake/DefaultCFlags.cmake
+index 0903872..aaaaf5b 100644
+--- a/cmake/DefaultCFlags.cmake
++++ b/cmake/DefaultCFlags.cmake
+@@ -36,11 +36,6 @@ set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_LINK_FLAGS_${CMAKE_BUILD_TYPE_UPPERCASE}}")
+ set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_LINK_FLAGS_${CMAKE_BUILD_TYPE_UPPERCASE}}")
+ set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_LINK_FLAGS_${CMAKE_BUILD_TYPE_UPPERCASE}}")
+ 
+-# Visual Studio enables c++11 support by default
+-if (NOT MSVC)
+-  set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE_UPPERCASE}} -std=c++11")
+-endif()
+-
+ if (UNIX)
+     set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE_UPPERCASE}}")
+     set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_LINK_FLAGS_${CMAKE_BUILD_TYPE_UPPERCASE}}")
diff --git a/debian/patches/0003-respect-cmake-c-flags.patch b/debian/patches/0003-respect-cmake-c-flags.patch
new file mode 100644
index 0000000..9c5baac
--- /dev/null
+++ b/debian/patches/0003-respect-cmake-c-flags.patch
@@ -0,0 +1,28 @@
+Description: do not unset CMAKE_C*_FLAGS
+Author: Jose Luis Rivero <jrivero at osrfoundation.org>
+Forwarded: no
+
+Index: ignition-transport-0.8.1/CMakeLists.txt
+===================================================================
+--- ignition-transport-0.8.1.orig/CMakeLists.txt
++++ ignition-transport-0.8.1/CMakeLists.txt
+@@ -159,8 +159,6 @@ endif()
+ 
+ #####################################
+ # Handle CFlags
+-unset (CMAKE_C_FLAGS_ALL CACHE)
+-unset (CMAKE_CXX_FLAGS CACHE)
+ 
+ # USE_HOST_CFLAGS (default TRUE)
+ # Will check building host machine for proper cflags
+@@ -202,6 +200,10 @@ filter_valid_compiler_warnings(${WARN_LE
+   -Wno-unused-value -Wno-unused-value -Wno-unused-value -Wno-unused-value
+   -Wfloat-equal -Wshadow -Winit-self -Wswitch-default
+   -Wmissing-include-dirs -pedantic -Wno-pragmas)
++
++# Set all the global build flags
++set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE}} ${CMAKE_C_FLAGS_ALL}")
++set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_FLAGS_ALL}")
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}${WARNING_CXX_FLAGS} ${UNFILTERED_FLAGS}")
+ 
+ #################################################
diff --git a/debian/patches/0004_use_system_gtest.patch b/debian/patches/0004_use_system_gtest.patch
new file mode 100644
index 0000000..61ef65d
--- /dev/null
+++ b/debian/patches/0004_use_system_gtest.patch
@@ -0,0 +1,40 @@
+Description: Use system packaged gtest
+Author: Anton Gladky <gladk at debian.org>, Jose Luis Rivero <jrivero at osrfoundation.org>
+Last-Update: 2015-11-18
+
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index 974f01d..b0bff1f 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -1,6 +1,6 @@
+ include_directories (
+-  ${PROJECT_SOURCE_DIR}/test/gtest/include
+-  ${PROJECT_SOURCE_DIR}/test/gtest
++  /usr/include
++  /usr/src/gtest
+   ${PROJECT_SOURCE_DIR}/test
+   ${PROJECT_BINARY_DIR}
+ )
+@@ -8,8 +8,8 @@ include_directories (
+ configure_file (test_config.h.in ${PROJECT_BINARY_DIR}/include/ignition/transport/test_config.h)
+ 
+ # Build gtest
+-add_library(gtest STATIC gtest/src/gtest-all.cc)
+-add_library(gtest_main STATIC gtest/src/gtest_main.cc)
++add_library(gtest STATIC /usr/src/gtest/src/gtest-all.cc)
++add_library(gtest_main STATIC /usr/src/gtest/src/gtest_main.cc)
+ target_link_libraries(gtest_main gtest)
+ set(GTEST_LIBRARY "${PROJECT_BINARY_DIR}/test/libgtest.a")
+ set(GTEST_MAIN_LIBRARY "${PROJECT_BINARY_DIR}/test/libgtest_main.a")
+diff --git a/cmake/Utils.cmake b/cmake/Utils.cmake
+index d04352d..0eb7efe 100644
+--- a/cmake/Utils.cmake
++++ b/cmake/Utils.cmake
+@@ -146,7 +146,6 @@ endmacro()
+ # This should be migrated to more fine control solution based on set_property APPEND
+ # directories. It's present on cmake 2.8.8 while precise version is 2.8.7
+ link_directories(${PROJECT_BINARY_DIR}/test)
+-include_directories("${PROJECT_SOURCE_DIR}/test/gtest/include")
+ 
+ #################################################
+ # Enable tests compilation by default
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..71969d0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+0001-c++11_unconditional
+0003-respect-cmake-c-flags.patch
+0004_use_system_gtest.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0595928
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+.PHONY: override_dh_auto_configure \
+        override_dh_auto_test \
+        override_dh_strip 
+
+override_dh_auto_configure:
+	dh_auto_configure -- \
+                -DUSE_HOST_CFLAGS:BOOL=False \
+                -DUSE_UPSTREAM_CFLAGS:BOOL=False \
+                -DCMAKE_BUILD_TYPE=RelWithDebInfo
+
+override_dh_auto_test:
+	# Test are using networking heavily, disabled
+	# since they can not run on the buil farm
+	true
+
+%:
+	dh $@ --parallel --buildsystem=cmake
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/tests/build b/debian/tests/build
new file mode 100755
index 0000000..4b0ced4
--- /dev/null
+++ b/debian/tests/build
@@ -0,0 +1,27 @@
+#!/bin/sh
+# autopkgtest check: Build and run a program against ign-math, to verify that the
+# headers and pkg-config file are installed correctly
+# (C) 2012 Jose Luis Rivero
+# Author: Jose Luis Rivero <jrivero at osrfoundation.org>
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+cat <<EOF > igntest.c
+#include <ignition/transport.hh>
+
+int main()
+{
+    // Create a transport node.
+    ignition::transport::Uuid uuid;
+    return 0;
+}
+EOF
+
+g++ -o igntest igntest.c `pkg-config --cflags --libs ignition-transport3`
+echo "build: OK"
+[ -x igntest ]
+./igntest
+echo "run: OK"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..efa400e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: build
+Depends: libignition-transport3-dev, pkg-config, build-essential
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..2831a31
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)\d*)$/$1~$2/,dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$// \
+http://gazebosim.org/distributions/ign-transport/releases/ .*ignition-transport3-(\d\.\d\.\d)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

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



More information about the debian-science-commits mailing list