diff --git a/jammy/debian/changelog b/jammy/debian/changelog new file mode 100644 index 0000000..97d963b --- /dev/null +++ b/jammy/debian/changelog @@ -0,0 +1,5 @@ +sdformat13 (12.999.999-1~jammy) jammy; urgency=medium + + * First release for jammy + + -- Jose Luis Rivero Tue, 15 Mar 2022 20:10:40 +0100 diff --git a/jammy/debian/compat b/jammy/debian/compat new file mode 100644 index 0000000..b1bd38b --- /dev/null +++ b/jammy/debian/compat @@ -0,0 +1 @@ +13 diff --git a/jammy/debian/control b/jammy/debian/control new file mode 100644 index 0000000..ca02e8d --- /dev/null +++ b/jammy/debian/control @@ -0,0 +1,123 @@ +Source: sdformat13 +Standards-Version: 3.9.5 +Maintainer: Jose Luis Rivero +Section: science +Priority: optional +Build-Depends: cmake, + debhelper (>= 9), + python3, + libtinyxml2-dev, + doxygen, + texlive-base, + texlive-fonts-recommended, + texlive-latex-extra, + ruby, + libignition-tools-dev, + libignition-math7-dev, + libignition-utils1-dev +Vcs-Browser: https://github.com/ignition-release/sdformat13-release +Vcs-Git: https://github.com/ignition-release/sdformat13-release +Homepage: http://sdformat.org + +Package: libsdformat13 +Architecture: any +Section: libs +Pre-Depends: ${misc:Pre-Depends} +Depends: sdformat13-sdf (>= ${source:Version}), + ${shlibs:Depends}, + ${misc:Depends} +Multi-Arch: same +Breaks: libsdformat2, + libsdformat3, + libsdformat4, + libsdformat5 +Replaces: libsdformat2, + libsdformat3, + libsdformat4, + libsdformat5 +Description: Simulation Description Format (SDF) parser - Shared library + SDF is an XML file format that describes environments, objects, and robots + in a manner suitable for robotic applications. SDF is capable of representing + and describing different physic engines, lighting properties, terrain, static + or dynamic objects, and articulated robots with various sensors, and acutators. + The format of SDF is also described by XML, which facilitates updates and + allows conversion from previous versions. A parser is also contained within + this package that reads SDF files and returns a C++ interface. + +Package: libsdformat13-dev +Architecture: any +Section: libdevel +Depends: libtinyxml2-dev, + libignition-tools-dev, + libignition-math7-dev, + libignition-utils1-dev, + libsdformat13 (= ${binary:Version}), + ${misc:Depends} +Breaks: libsdformat2-dev, + libsdformat3-dev, + libsdformat4-dev, + libsdformat5-dev +Replaces: libsdformat2-dev, + libsdformat3-dev, + libsdformat4-dev, + libsdformat5-dev +Multi-Arch: same +Description: Simulation Description Format (SDF) parser - Development files + SDF is an XML file format that describes environments, objects, and robots + in a manner suitable for robotic applications. SDF is capable of representing + and describing different physic engines, lighting properties, terrain, static + or dynamic objects, and articulated robots with various sensors, and acutators. + The format of SDF is also described by XML, which facilitates updates and + allows conversion from previous versions. A parser is also contained within + this package that reads SDF files and returns a C++ interface. + +Package: sdformat13-sdf +Architecture: all +Section: libdevel +Depends: ${misc:Depends} +Multi-Arch: foreign +Conflicts: libsdformat1 +Description: Simulation Description Format (SDF) parser - SDF files + SDF is an XML file format that describes environments, objects, and robots + in a manner suitable for robotic applications. SDF is capable of representing + and describing different physic engines, lighting properties, terrain, static + or dynamic objects, and articulated robots with various sensors, and acutators. + The format of SDF is also described by XML, which facilitates updates and + allows conversion from previous versions. A parser is also contained within + this package that reads SDF files and returns a C++ interface. + . + This package contains SDF (Simulation Description Format) XML files needed by + the libsdformat. + +Package: libsdformat13-dbg +Architecture: any +Section: debug +Priority: extra +Depends: + libsdformat13 (= ${binary:Version}), + ${misc:Depends} +Multi-Arch: same +Description: Simulation Description Format (SDF) parser - Debugging symbols + SDF is an XML file format that describes environments, objects, and robots + in a manner suitable for robotic applications. SDF is capable of representing + and describing different physic engines, lighting properties, terrain, static + or dynamic objects, and articulated robots with various sensors, and acutators. + The format of SDF is also described by XML, which facilitates updates and + allows conversion from previous versions. A parser is also contained within + this package that reads SDF files and returns a C++ interface. + +Package: sdformat13-doc +Architecture: all +Section: doc +Depends: ${misc:Depends}, libjs-jquery +Multi-Arch: foreign +Description: Simulation Description Format (SDF) parser - Documentation + SDF is an XML file format that describes environments, objects, and robots + in a manner suitable for robotic applications. SDF is capable of representing + and describing different physic engines, lighting properties, terrain, static + or dynamic objects, and articulated robots with various sensors, and acutators. + The format of SDF is also described by XML, which facilitates updates and + allows conversion from previous versions. A parser is also contained within + this package that reads SDF files and returns a C++ interface. + . + This package contains the program documentation diff --git a/jammy/debian/copyright b/jammy/debian/copyright new file mode 120000 index 0000000..e9a51f1 --- /dev/null +++ b/jammy/debian/copyright @@ -0,0 +1 @@ +../../ubuntu/debian/debian_copyright_2022 \ No newline at end of file diff --git a/jammy/debian/docs b/jammy/debian/docs new file mode 120000 index 0000000..1220cdb --- /dev/null +++ b/jammy/debian/docs @@ -0,0 +1 @@ +../../ubuntu/debian/docs \ No newline at end of file diff --git a/jammy/debian/libsdformat13-dev.install b/jammy/debian/libsdformat13-dev.install new file mode 120000 index 0000000..e2af379 --- /dev/null +++ b/jammy/debian/libsdformat13-dev.install @@ -0,0 +1 @@ +../../ubuntu/debian/libsdformat-dev.install \ No newline at end of file diff --git a/jammy/debian/libsdformat13.install b/jammy/debian/libsdformat13.install new file mode 120000 index 0000000..7494b66 --- /dev/null +++ b/jammy/debian/libsdformat13.install @@ -0,0 +1 @@ +../../ubuntu/debian/libsdformat.install \ No newline at end of file diff --git a/jammy/debian/rules b/jammy/debian/rules new file mode 120000 index 0000000..c234c18 --- /dev/null +++ b/jammy/debian/rules @@ -0,0 +1 @@ +../../ubuntu/debian/rules \ No newline at end of file diff --git a/jammy/debian/sdformat-doc.doc-base b/jammy/debian/sdformat-doc.doc-base new file mode 120000 index 0000000..8fec17f --- /dev/null +++ b/jammy/debian/sdformat-doc.doc-base @@ -0,0 +1 @@ +../../ubuntu/debian/sdformat-doc.doc-base \ No newline at end of file diff --git a/jammy/debian/sdformat-doc.docs b/jammy/debian/sdformat-doc.docs new file mode 120000 index 0000000..911cc07 --- /dev/null +++ b/jammy/debian/sdformat-doc.docs @@ -0,0 +1 @@ +../../ubuntu/debian/sdformat-doc.docs \ No newline at end of file diff --git a/jammy/debian/sdformat-doc.examples b/jammy/debian/sdformat-doc.examples new file mode 120000 index 0000000..b26bb98 --- /dev/null +++ b/jammy/debian/sdformat-doc.examples @@ -0,0 +1 @@ +../../ubuntu/debian/sdformat-doc.examples \ No newline at end of file diff --git a/jammy/debian/sdformat-doc.links b/jammy/debian/sdformat-doc.links new file mode 120000 index 0000000..c8835d5 --- /dev/null +++ b/jammy/debian/sdformat-doc.links @@ -0,0 +1 @@ +../../ubuntu/debian/sdformat-doc.links \ No newline at end of file diff --git a/jammy/debian/sdformat13-doc.docs b/jammy/debian/sdformat13-doc.docs new file mode 120000 index 0000000..911cc07 --- /dev/null +++ b/jammy/debian/sdformat13-doc.docs @@ -0,0 +1 @@ +../../ubuntu/debian/sdformat-doc.docs \ No newline at end of file diff --git a/jammy/debian/sdformat13-sdf.install b/jammy/debian/sdformat13-sdf.install new file mode 120000 index 0000000..3639d71 --- /dev/null +++ b/jammy/debian/sdformat13-sdf.install @@ -0,0 +1 @@ +../../ubuntu/debian/sdformat-sdf.install \ No newline at end of file diff --git a/jammy/debian/source b/jammy/debian/source new file mode 120000 index 0000000..8fb4c09 --- /dev/null +++ b/jammy/debian/source @@ -0,0 +1 @@ +../../ubuntu/debian/source \ No newline at end of file diff --git a/jammy/debian/tests b/jammy/debian/tests new file mode 120000 index 0000000..d163274 --- /dev/null +++ b/jammy/debian/tests @@ -0,0 +1 @@ +../../ubuntu/debian/tests \ No newline at end of file diff --git a/jammy/debian/watch b/jammy/debian/watch new file mode 120000 index 0000000..40c9b2c --- /dev/null +++ b/jammy/debian/watch @@ -0,0 +1 @@ +../../ubuntu/debian/watch \ No newline at end of file diff --git a/ubuntu/debian/control b/ubuntu/debian/control index c218c35..d3dcdc8 100644 --- a/ubuntu/debian/control +++ b/ubuntu/debian/control @@ -1,10 +1,9 @@ Source: sdformat13 -Standards-Version: 3.9.5 Maintainer: Jose Luis Rivero Section: science Priority: optional Build-Depends: cmake, - debhelper (>= 9), + debhelper (>= 11), python, libtinyxml2-dev, doxygen, @@ -15,8 +14,9 @@ Build-Depends: cmake, libignition-tools-dev, libignition-math7-dev, libignition-utils1-dev -Vcs-Browser: https://github.com/ignition-release/sdformat13-release +Vcs-Browser: https://github.com/ignitionrobotics/sdformat Vcs-Git: https://github.com/ignition-release/sdformat13-release +Standards-Version: 4.5.1 Homepage: http://sdformat.org Package: libsdformat13 diff --git a/ubuntu/debian/debian_copyright_2022 b/ubuntu/debian/debian_copyright_2022 new file mode 100644 index 0000000..d07a491 --- /dev/null +++ b/ubuntu/debian/debian_copyright_2022 @@ -0,0 +1,119 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: sdformat +Upstream-Contact: gazebo@osrfoundation.org +Source: http://sdformat.org/ + +Files: * +Copyright: 2011, Nate Koenig + 2012-2021, Open Source Robotics Foundation +License: Apache-2.0 + +Files: src/urdf/* + tools/check_test_ran.py + tools/cpplint.py +Copyright: 2009, Google Inc + 2016, Open Source Robotics Foundation (OSRF) + 2008, Willow Garage, Inc +License: BSD-3-clause + +Files: src/Filesystem.cc +Copyright: 2002-2014, Beman Dawes + 2001, Dietmar Kuehl +License: BSL-1 + +Files: cmake/TargetArch.cmake +Copyright: 2012, Petroules Corporation +License: BSD-2-clause + +Files: doc/search.js +Copyright: 2009, Dimitri van Heesch + 2003-2008, Greg Valure +License: GPL + +Files: debian/* +Copyright: 2012-2021, Jose Luis Rivero + 2008, Willow Garage, Inc +License: Apache-2.0 + +License: Apache-2.0 + On Debian systems the full text of the Apache License can be found + in the `/usr/share/common-licenses/Apache-2.0' + +License: BSD-2-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. + . + 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. + +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 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. + +License: BSL-1 + Permission is hereby granted, free of charge, to any person or organization + obtaining a copy of the software and accompanying documentation covered by this + license (the "Software") to use, reproduce, display, distribute, execute, and + transmit the Software, and to prepare derivative works of the Software, and to + permit third-parties to whom the Software is furnished to do so, all subject to + the following: + . + The copyright notices in the Software and this entire statement, including the + above license grant, this restriction and the following disclaimer, must be + included in all copies of the Software, in whole or in part, and all derivative + works of the Software, unless such copies or derivative works are solely in the + form of machine-executable object code generated by a source language + processor. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL + THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY + DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +License: GPL + On Debian systems the full text of the GPL can be found in the + `/usr/share/common-licenses/GPL'. diff --git a/ubuntu/debian/docs b/ubuntu/debian/docs index 46a4ca7..0608431 100644 --- a/ubuntu/debian/docs +++ b/ubuntu/debian/docs @@ -1,3 +1,3 @@ AUTHORS -NEWS +Migration.md README.md diff --git a/ubuntu/debian/rules b/ubuntu/debian/rules index 40df773..7dc55f0 100755 --- a/ubuntu/debian/rules +++ b/ubuntu/debian/rules @@ -1,27 +1,18 @@ #!/usr/bin/make -f - -DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) - -.PHONY: override_dh_auto_configure \ - override_dh_strip \ - override_dh_auto_test \ - override_dh_auto_build-indep - - -%: - dh $@ --parallel - -override_dh_auto_build-indep: - dh_auto_build -- doc # Generate documentation. +# -*- makefile -*- override_dh_auto_configure: dh_auto_configure -- \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo + -DCMAKE_BUILD_TYPE=RelWithDebInfo + +override_dh_auto_test-arch: + LD_LIBRARY_PATH=$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)/src LC_ALL=C dh_auto_test -# Tests are broken without a installed copy of sdformat. -# see: https://bitbucket.org/osrf/sdformat/issue/35 -override_dh_auto_test: - true +execute_after_dh_auto_build-indep: + dh_auto_build -- doc # Generate documentation override_dh_strip: dh_strip -a --dbg-package=libsdformat13-dbg + +%: + dh $@ diff --git a/ubuntu/debian/sdformat-doc.examples b/ubuntu/debian/sdformat-doc.examples new file mode 100644 index 0000000..e39721e --- /dev/null +++ b/ubuntu/debian/sdformat-doc.examples @@ -0,0 +1 @@ +examples/* diff --git a/ubuntu/debian/tests/build b/ubuntu/debian/tests/build new file mode 100755 index 0000000..ec8198f --- /dev/null +++ b/ubuntu/debian/tests/build @@ -0,0 +1,49 @@ +#!/bin/sh +# autopkgtest check: Build and run a program against glib, to verify that the +# headers and pkg-config file are installed correctly +# (C) 2012 Jose Luis Rivero +# Author: Jose Luis Rivero + +set -e + +WORKDIR=$(mktemp -d) +trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM +cd $WORKDIR +cat < sdformattest.cc +#include + +int main() +{ + sdf::SDFPtr p(new sdf::SDF()); + sdf::init(p); + return 0; +} +EOF + +g++ -o sdformattest sdformattest.cc `pkg-config --cflags --libs sdformat13` +echo "build pkgconfig: OK" +[ -x sdformattest ] +./sdformattest +echo "run pkgconfig: OK" + +# 2. CMAKE +cat < CMakeLists.txt +cmake_minimum_required(VERSION 3.5) + +project(sdf_test VERSION 1.0.0) + +find_package(sdformat13 13.0.0 REQUIRED) +add_executable(sdftest sdformattest.cc) +target_link_libraries(sdftest + PUBLIC + sdformat13::sdformat13) +EOF + +cmake . +echo "configure cmake with component: OK" +make +echo "build cmake component:OK" +[ -x sdftest ] +./sdftest +echo "run: OK" + diff --git a/ubuntu/debian/tests/control b/ubuntu/debian/tests/control new file mode 100644 index 0000000..97cf499 --- /dev/null +++ b/ubuntu/debian/tests/control @@ -0,0 +1,3 @@ +Tests: build +Depends: @, cmake, pkg-config, build-essential +Restrictions: superficial diff --git a/ubuntu/debian/watch b/ubuntu/debian/watch index f841b37..e509e7e 100644 --- a/ubuntu/debian/watch +++ b/ubuntu/debian/watch @@ -1,2 +1,5 @@ -version=3 -http://gazebosim.org/assets/distributions/sdformat-(\d\.\d\.\d)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) +version=4 +opts=filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE@-$1.tar.gz%,\ + dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,repacksuffix=+ds \ + https://github.com/osrf/sdformat/tags \ + (?:.*?/)@PACKAGE@.*_(\d[\d.]*)\.tar\.gz