Skip to content

Commit 2467033

Browse files
Placing debian template files
1 parent fa96923 commit 2467033

File tree

8 files changed

+110
-0
lines changed

8 files changed

+110
-0
lines changed

debian/changelog.em

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@[for change_version, change_date, changelog, main_name, main_email in changelogs]@(Package) (@(change_version)@(DebianInc)@(Distribution)) @(Distribution); urgency=high
2+
3+
@(changelog)
4+
5+
-- @(main_name) <@(main_email)> @(change_date)
6+
7+
@[end for]

debian/compat.em

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@(debhelper_version)

debian/control.em

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Source: @(Package)
2+
Section: misc
3+
Priority: optional
4+
Maintainer: @(Maintainer)
5+
Build-Depends: debhelper (>= @(debhelper_version).0.0), @(', '.join(BuildDepends))
6+
Homepage: @(Homepage)
7+
Standards-Version: 3.9.2
8+
9+
Package: @(Package)
10+
Architecture: any
11+
Depends: ${shlibs:Depends}, ${misc:Depends}, @(', '.join(Depends))
12+
@[if Conflicts]Conflicts: @(', '.join(Conflicts))@\n@[end if]@
13+
@[if Replaces]Replaces: @(', '.join(Replaces))@\n@[end if]@
14+
Description: @(Description)

debian/copyright.em

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Format: Bloom subset of https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: @(Name)
3+
@[if BugTracker]Upstream-Contact: @(BugTracker)@\n@[end if]@
4+
@[if Source]Source: @(Source)@\n@[end if]@
5+
@[for License, Text in Licenses]@
6+
7+
Files: See file headers in repository for details
8+
Copyright: See package copyright in source code for details
9+
License: @(License)
10+
@(Text)
11+
@[end for]@

debian/gbp.conf.em

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[git-buildpackage]
2+
upstream-tag=@(release_tag)
3+
upstream-tree=tag

debian/rules.em

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
# Sample debian/rules that uses debhelper.
4+
# This file was originally written by Joey Hess and Craig Small.
5+
# As a special exception, when this file is copied by dh-make into a
6+
# dh-make output file, you may use that output file without restriction.
7+
# This special exception was added by Craig Small in version 0.37 of dh-make.
8+
9+
# Uncomment this to turn on verbose mode.
10+
export DH_VERBOSE=1
11+
# TODO: remove the LDFLAGS override. It's here to avoid esoteric problems
12+
# of this sort:
13+
# https://code.ros.org/trac/ros/ticket/2977
14+
# https://code.ros.org/trac/ros/ticket/3842
15+
export LDFLAGS=
16+
export PKG_CONFIG_PATH=@(InstallationPrefix)/lib/pkgconfig
17+
# Explicitly enable -DNDEBUG, see:
18+
# https://github.com/ros-infrastructure/bloom/issues/327
19+
export DEB_CXXFLAGS_MAINT_APPEND=-DNDEBUG
20+
ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
21+
BUILD_TESTING_ARG=-DBUILD_TESTING=OFF
22+
endif
23+
24+
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
25+
26+
%:
27+
dh $@@ -v --buildsystem=cmake --builddirectory=.obj-$(DEB_HOST_GNU_TYPE)
28+
29+
override_dh_auto_configure:
30+
# In case we're installing to a non-standard location, look for a setup.sh
31+
# in the install tree and source it. It will set things like
32+
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
33+
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
34+
dh_auto_configure -- \
35+
-DCMAKE_INSTALL_PREFIX="@(InstallationPrefix)" \
36+
-DAMENT_PREFIX_PATH="@(InstallationPrefix)" \
37+
-DCMAKE_PREFIX_PATH="@(InstallationPrefix)" \
38+
$(BUILD_TESTING_ARG)
39+
40+
override_dh_auto_build:
41+
# In case we're installing to a non-standard location, look for a setup.sh
42+
# in the install tree and source it. It will set things like
43+
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
44+
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
45+
dh_auto_build
46+
47+
override_dh_auto_test:
48+
# In case we're installing to a non-standard location, look for a setup.sh
49+
# in the install tree and source it. It will set things like
50+
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
51+
echo -- Running tests. Even if one of them fails the build is not canceled.
52+
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
53+
dh_auto_test || true
54+
55+
override_dh_shlibdeps:
56+
# In case we're installing to a non-standard location, look for a setup.sh
57+
# in the install tree and source it. It will set things like
58+
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
59+
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
60+
dh_shlibdeps -l$(CURDIR)/debian/@(Package)/@(InstallationPrefix)/lib/
61+
62+
override_dh_auto_install:
63+
# In case we're installing to a non-standard location, look for a setup.sh
64+
# in the install tree and source it. It will set things like
65+
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
66+
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
67+
dh_auto_install

debian/source/format.em

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (@(format))

debian/source/options.em

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@[if format and format == 'quilt']@
2+
# Automatically add upstream changes to the quilt overlay.
3+
# http://manpages.ubuntu.com/manpages/trusty/man1/dpkg-source.1.html
4+
# This supports reusing the orig.tar.gz for debian increments.
5+
auto-commit
6+
@[end if]

0 commit comments

Comments
 (0)