[ignition-common] 01/01: Implement debian metadata

Jose Luis Rivero jrivero-guest at moszumanska.debian.org
Wed Jan 18 12:36:10 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-common.

commit f47a79683184bf3dafb3bdb14334a10144eca644
Author: Jose Luis Rivero <jrivero at osrfoundation.org>
Date:   Tue Jan 17 23:08:46 2017 +0000

    Implement debian metadata
---
 debian/changelog                             |  6 +++
 debian/compat                                |  1 +
 debian/control                               | 54 ++++++++++++++++++++++++++
 debian/copyright                             | 57 ++++++++++++++++++++++++++++
 debian/docs                                  |  3 ++
 debian/libignition-common-dev.install        |  4 ++
 debian/libignition-common0.install           |  1 +
 debian/libignition-common0.lintian-overrides |  3 ++
 debian/patches/0001_use_system_gtest.patch   | 39 +++++++++++++++++++
 debian/patches/0002_respect_cflags.patch     | 21 ++++++++++
 debian/patches/0003_use_c++11_in_gtest.patch | 12 ++++++
 debian/patches/series                        |  3 ++
 debian/rules                                 | 16 ++++++++
 debian/source/format                         |  1 +
 debian/source/lintian-overrides              |  2 +
 debian/tests/build                           | 30 +++++++++++++++
 debian/tests/control                         |  2 +
 debian/watch                                 |  3 ++
 18 files changed, 258 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..313e8e0
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+ignition-common (0.1.0-1) unstable; urgency=medium
+
+  * Imported Upstream version 0.1.0
+    (Closes: #832806)
+
+ -- Jose Luis Rivero <jrivero at osrfoundation.org>  Tue, 17 Jan 2017 22:56:16 +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..7156489
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,54 @@
+Source: ignition-common
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jose Luis Rivero <jrivero at osrfoundation.org>
+Section: science
+Testsuite: autopkgtest
+Priority: extra
+Build-Depends: cmake,
+               pkg-config,
+               debhelper (>= 9.20151004),
+               libgtest-dev,
+               libfreeimage-dev,
+               libignition-math2-dev (>> 2.5),
+               libtinyxml2-dev,
+               uuid-dev,
+               libgts-dev,
+               libavformat-dev,
+               libavcodec-dev,
+               libswscale-dev
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/ignition-common.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/ignition-common.git
+Homepage: http://ignitionrobotics.org/libraries/common
+
+Package: libignition-common0
+Architecture: any
+Section: libs
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: same
+Description: Collection of useful code used by robotics apps - Shared library
+ Ignition common is a component in the Ignition framework, a set of
+ libraries designed to rapidly develop robot applications. A collection of
+ useful classes and functions for handling many command tasks. This includes
+ parsing 3D mesh files, managing console output, and using PID controllers.
+
+Package: libignition-common-dev
+Architecture: any
+Section: libdevel
+Depends: libfreeimage-dev,
+         libignition-math2-dev (>> 2.5),
+         libtinyxml2-dev,
+         uuid-dev,
+         libgts-dev,
+         libavformat-dev,
+         libavcodec-dev,
+         libswscale-dev,
+         libignition-common0 (= ${binary:Version}),
+         ${misc:Depends}
+Multi-Arch: same
+Description: Collection of useful code used by robotics apps - Dev files
+ Ignition common is a component in the Ignition framework, a set of
+ libraries designed to rapidly develop robot applications. A collection of
+ useful classes and functions for handling many command tasks. This includes
+ parsing 3D mesh files, managing console output, and using PID controllers.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0819a61
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,57 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ignmath
+Upstream-Contact: gazebo-list at gazebosim.org
+Source: https://bitbucket.org/ignitionrobotics/ign_common
+Files-Excluded: test/gtest
+
+Files: *
+Copyright: 2017 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
+
+Files: doc/search.js
+Copyright: 2009, Dimitri van Heesch.
+           2003-2008, Greg Valure.
+License: GPL
+ See '/usr/share/common-licenses/GPL'.
+
+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/libignition-common-dev.install b/debian/libignition-common-dev.install
new file mode 100644
index 0000000..2b1c886
--- /dev/null
+++ b/debian/libignition-common-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/*/*.so
+usr/lib/*/pkgconfig/*.pc
+usr/lib/*/cmake/ignition-common0/*
diff --git a/debian/libignition-common0.install b/debian/libignition-common0.install
new file mode 100644
index 0000000..3de3b10
--- /dev/null
+++ b/debian/libignition-common0.install
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
diff --git a/debian/libignition-common0.lintian-overrides b/debian/libignition-common0.lintian-overrides
new file mode 100644
index 0000000..68a258b
--- /dev/null
+++ b/debian/libignition-common0.lintian-overrides
@@ -0,0 +1,3 @@
+# zero is already included in the name of the package and in the library 
+# filename. Upstream follows semantic versioning, don't need to set it twice.
+libignition-common0: package-name-doesnt-match-sonames libignition-common0-0
diff --git a/debian/patches/0001_use_system_gtest.patch b/debian/patches/0001_use_system_gtest.patch
new file mode 100644
index 0000000..d3b9f05
--- /dev/null
+++ b/debian/patches/0001_use_system_gtest.patch
@@ -0,0 +1,39 @@
+Description: Use system packaged gtest
+Author: Anton Gladky <gladk at debian.org>, Jose Luis Rivero <jrivero at osrfoundation.org>
+Last-Update: 2016-10-26
+
+diff --git a/cmake/Utils.cmake b/cmake/Utils.cmake
+index af11ab9..886ee94 100644
+--- a/cmake/Utils.cmake
++++ b/cmake/Utils.cmake
+@@ -168,7 +168,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/test/CMakeLists.txt b/test/CMakeLists.txt
+index b40c9d6..1445cf4 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -1,14 +1,14 @@
+ include_directories (
+-  ${PROJECT_SOURCE_DIR}/test/gtest/include
+-  ${PROJECT_SOURCE_DIR}/test/gtest
++  /usr/include
++  /usr/src/gtest
+   ${PROJECT_SOURCE_DIR}/test
+ )
+ 
+ configure_file (test_config.h.in ${PROJECT_BINARY_DIR}/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/debian/patches/0002_respect_cflags.patch b/debian/patches/0002_respect_cflags.patch
new file mode 100644
index 0000000..5ab1cff
--- /dev/null
+++ b/debian/patches/0002_respect_cflags.patch
@@ -0,0 +1,21 @@
+Description: Respect CFLAGS and CXXFLAGS
+Author: Jose Luis Rivero <jrivero at osrfoundation.org>
+Last-Update: 2016-08-03
+Forwarded: No
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4f8602d..d2fe6af 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -173,11 +173,6 @@ else()
+   build_error("CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} unknown. Valid options are: Debug Release RelWithDebInfo Profile Check")
+ endif()
+ 
+-#####################################
+-# Handle CFlags
+-unset (CMAKE_C_FLAGS_ALL CACHE)
+-unset (CMAKE_CXX_FLAGS CACHE)
+-
+ # Check if warning options are avaliable for the compiler and return WARNING_CXX_FLAGS variable
+ # MSVC generates tons of warnings on gtest code.
+ # Recommended to use /W4 instead of /Wall
diff --git a/debian/patches/0003_use_c++11_in_gtest.patch b/debian/patches/0003_use_c++11_in_gtest.patch
new file mode 100644
index 0000000..af2c60f
--- /dev/null
+++ b/debian/patches/0003_use_c++11_in_gtest.patch
@@ -0,0 +1,12 @@
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index b40c9d6..7f6c715 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -10,6 +10,7 @@ configure_file (test_config.h.in ${PROJECT_BINARY_DIR}/test_config.h)
+ 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)
++target_compile_options(gtest PUBLIC "-std=c++11")
+ set(GTEST_LIBRARY "${PROJECT_BINARY_DIR}/test/libgtest.a")
+ set(GTEST_MAIN_LIBRARY "${PROJECT_BINARY_DIR}/test/libgtest_main.a")
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8563614
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+0001_use_system_gtest.patch
+0002_respect_cflags.patch
+0003_use_c++11_in_gtest.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c5b9c4d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
+
+.PHONY: override_dh_auto_configure
+
+override_dh_auto_configure:
+	dh_auto_configure -- \
+                -DUSE_HOST_CFLAGS:BOOL=False \
+		-DUSE_EXTERNAL_TINYXML2:BOOL=True \
+                -DUSE_UPSTREAM_CFLAGS:BOOL=False \
+                -DCMAKE_BUILD_TYPE=RelWithDebInfo
+
+%:
+	dh $@ --buildsystem=cmake --parallel
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/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..58133fd
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+# False postive warning. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829545
+ignition-common source: unknown-field-in-dsc testsuite-triggers
diff --git a/debian/tests/build b/debian/tests/build
new file mode 100755
index 0000000..12e4a5d
--- /dev/null
+++ b/debian/tests/build
@@ -0,0 +1,30 @@
+#!/bin/sh
+# autopkgtest check: Build and run a program against ign-common, 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 <iostream>
+#include <ignition/common.hh>
+
+int main(int argc, char **argv)
+{
+    ignition::common::Int32 foo;
+    ignition::common::StringMsg fee;
+
+    return 0;
+}
+EOF
+
+g++ -o igntest igntest.c `pkg-config --cflags --libs ignition-common0`
+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..7ca5a18
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: build
+Depends: libignition-common-dev, pkg-config, build-essential
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..61a7f21
--- /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-common/releases/ .*ignition-common-(\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-common.git



More information about the debian-science-commits mailing list