From 7eab3ffb34327c9c3761176d05f56ba6a8acbfd9 Mon Sep 17 00:00:00 2001 From: Philipp Huebner Date: Mon, 27 Dec 2021 21:06:44 +0100 Subject: [PATCH] Initial packaging --- debian/changelog | 5 +++++ debian/control | 30 +++++++++++++++++++++++++++++ debian/copyright | 1 + debian/install | 4 ++++ debian/lintian-overrides | 1 + debian/rules | 34 +++++++++++++++++++++++++++++++++ debian/source/format | 1 + debian/source/lintian-overrides | 5 +++++ debian/upstream/metadata | 8 ++++++++ debian/watch | 3 +++ 10 files changed, 92 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/install create mode 100644 debian/lintian-overrides create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/lintian-overrides create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..24a90cb --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rebar3 (3.17.0-1) UNRELEASED; urgency=medium + + * Initial upload (Closes: #824773) + + -- Philipp Huebner Mon, 27 Dec 2021 21:04:32 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..ef72b1f --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: rebar3 +Maintainer: Debian Erlang Packagers +Uploaders: Philipp Huebner +Section: devel +Priority: optional +Build-Depends: debhelper-compat (= 13), erlang +Standards-Version: 4.6.0 +Rules-Requires-Root: no +Homepage: http://www.rebar3.org/ +Vcs-Browser: https://salsa.debian.org/erlang-team/packages/rebar3 +Vcs-Git: https://salsa.debian.org/erlang-team/packages/rebar3.git + +Package: rebar3 +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, erlang-base:any, ${erlang:Depends} +Recommends: git +Enhances: erlang +Description: Erlang tool to create, develop, and release Erlang libraries and applications + Rebar3 is an Erlang tool that makes it easy to create, develop, and release + Erlang libraries, applications, and systems in a repeatable manner. + Rebar3 will: + * respect and enforce standard Erlang/OTP conventions for project structure + so they are easily reusable by the community; + * manage source dependencies and Erlang packages while ensuring repeatable + builds; + * handle build artifacts, paths, and libraries such that standard development + tools can be used without a headache; + * adapt to projects of all sizes on almost any platform; + * treat documentation as a feature, and errors or lack of documentation as a + bug. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1333ed7 --- /dev/null +++ b/debian/copyright @@ -0,0 +1 @@ +TODO diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..170ba62 --- /dev/null +++ b/debian/install @@ -0,0 +1,4 @@ +_build/prod/bin/rebar3 usr/bin +priv/shell-completion/bash/rebar3 usr/share/bash-completion/completions +priv/shell-completion/fish/rebar3.fish usr/share/fish/completions +priv/shell-completion/zsh/ usr/share/zsh/functions/Completion/Zsh diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 0000000..7016c14 --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1 @@ +rebar3: repeated-path-segment zsh usr/share/zsh/functions/Completion/Zsh/zsh/ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2c5df70 --- /dev/null +++ b/debian/rules @@ -0,0 +1,34 @@ +#!/usr/bin/make -f +export DH_VERBOSE=1 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +include /usr/share/dpkg/default.mk +export ERL_COMPILER_OPTIONS=deterministic + +%: + dh $@ + +override_dh_auto_build: + dh_auto_build + HOME=$$(mktemp -d) ./bootstrap && rm -rf "$$HOME" + +override_dh_auto_install: + dh_auto_install + erlang-depends + +override_dh_clean: + dh_clean + rm -rf _build/bootstrap/ + rm -rf _build/default/lib/bbmustache/ebin/ + rm -rf _build/default/lib/certifi/ebin/ + rm -rf _build/default/lib/cf/ebin/ + rm -rf _build/default/lib/cth_readable/ebin/ + rm -rf _build/default/lib/erlware_commons/ebin/ + rm -rf _build/default/lib/eunit_formatters/ebin/ + rm -rf _build/default/lib/getopt/ebin/ + rm -rf _build/default/lib/providers/ebin/ + rm -rf _build/default/lib/rebar/ + rm -rf _build/default/lib/relx/ebin/ + rm -rf _build/default/lib/ssl_verify_fun/ebin/ + rm -rf _build/prod/ + rm -rf rebar3 + rm -rf src/vendored/r3_safe_erl_term.erl 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..45f07fc --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,5 @@ +# apparently lintian is unable to handle Windows-style line breaks +rebar3 source: very-long-line-length-in-source-file * + +# there are is no gpg signature to check +rebar3 source: debian-watch-does-not-check-gpg-signature diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..a1528cb --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,8 @@ +Name: rebar3 +Bug-Database: https://github.com/erlang/rebar3/issues +Bug-Submit: https://github.com/erlang/rebar3/issues/new +Changelog: https://github.com/erlang/rebar3/commits/master +Repository: https://github.com/erlang/rebar3.git +Repository-Browse: https://github.com/erlang/rebar3 +Registration: https://github.com/join +Documentation: https://www.rebar3.org/docs/ diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..f834773 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/rebar3--$1\.tar\.gz/ \ + https://github.com/weiss/rebar3/releases .*/rebar3-(\d\S+)\.tar\.gz