diff options
author | Roger Shimizu <rosh@debian.org> | 2020-07-09 19:40:04 +0900 |
---|---|---|
committer | Roger Shimizu <rosh@debian.org> | 2020-07-09 19:40:04 +0900 |
commit | d53c3fb2a5cc090b591b537caf72e347e8e8c893 (patch) | |
tree | f1becd90ddf73e61f3360f0285b1cfdc8fbc68f5 | |
parent | 3367a227cb491f2c3bf2b4513e43771d7e9720a1 (diff) |
Initial packaging
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/control | 28 | ||||
-rw-r--r-- | debian/copyright | 37 | ||||
-rw-r--r-- | debian/gbp.conf | 3 | ||||
-rw-r--r-- | debian/gitlab-ci.yml | 26 | ||||
-rwxr-xr-x | debian/rules | 4 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/upstream/metadata | 5 | ||||
-rw-r--r-- | debian/watch | 11 |
9 files changed, 120 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d817ea6 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +golang-github-openprinting-goipp (0.0~git20200517.da79ff1-1) UNRELEASED; urgency=medium + + * Initial release (Closes: #964590) + + -- Roger Shimizu <rosh@debian.org> Thu, 09 Jul 2020 19:36:08 +0900 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c990f89 --- /dev/null +++ b/debian/control @@ -0,0 +1,28 @@ +Source: golang-github-openprinting-goipp +Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org> +Uploaders: Roger Shimizu <rosh@debian.org> +Section: devel +Testsuite: autopkgtest-pkg-go +Priority: optional +Build-Depends: + debhelper-compat (= 12), + dh-golang, + golang-any +Standards-Version: 4.5.0 +Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-openprinting-goipp +Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-openprinting-goipp.git +Homepage: https://github.com/OpenPrinting/goipp +Rules-Requires-Root: no +XS-Go-Import-Path: github.com/OpenPrinting/goipp + +Package: golang-github-openprinting-goipp-dev +Architecture: all +Depends: ${misc:Depends} +Description: IPP core protocol in pure Go Library (RFC 8010) + The goipp library is fairly complete implementation of IPP core protocol + in pure Go. Essentially, it is IPP messages parser/composer. Transport + is not implemented here, because Go standard library has an excellent + built-in HTTP client, and it doesn't make a lot of sense to wrap it here. + . + High-level requests, like "print a file" are also not implemented, + only the low-level stuff. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a0cc3c2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,37 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: goipp +Upstream-Contact: Alexander Pevzner <pzz@apevzner.com> +Source: https://github.com/OpenPrinting/goipp + +Files: * +Copyright: + 2020 OpenPrinting + 2020 Alexander Pevzner +License: BSD-2-clause + +Files: debian/* +Copyright: 2020 Roger Shimizu <rosh@debian.org> +License: BSD-2-clause +Comment: Debian packaging is licensed under the same terms as upstream + +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: + . + 1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + . + 2. 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 HOLDER 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/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..3d450c2 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,3 @@ +[DEFAULT] +debian-branch = debian/sid +dist = DEP14 diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml new file mode 100644 index 0000000..03e820d --- /dev/null +++ b/debian/gitlab-ci.yml @@ -0,0 +1,26 @@ +# auto-generated, DO NOT MODIFY. +# The authoritative copy of this file lives at: +# https://salsa.debian.org/go-team/ci/blob/master/config/gitlabciyml.go + +image: stapelberg/ci2 + +test_the_archive: + artifacts: + paths: + - before-applying-commit.json + - after-applying-commit.json + script: + # Create an overlay to discard writes to /srv/gopath/src after the build: + - "rm -rf /cache/overlay/{upper,work}" + - "mkdir -p /cache/overlay/{upper,work}" + - "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src" + - "export GOPATH=/srv/gopath" + - "export GOCACHE=/cache/go" + # Build the world as-is: + - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json" + # Copy this package into the overlay: + - "GBP_CONF_FILES=:debian/gbp.conf gbp buildpackage --git-no-pristine-tar --git-ignore-branch --git-ignore-new --git-export-dir=/tmp/export --git-no-overlay --git-tarball-dir=/nonexistant --git-cleaner=/bin/true --git-builder='dpkg-buildpackage -S -d --no-sign'" + - "pgt-gopath -dsc /tmp/export/*.dsc" + # Rebuild the world: + - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json" + - "ci-diff before-applying-commit.json after-applying-commit.json" diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8cce5e0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --buildsystem=golang --with=golang 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/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..5721c96 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +Homepage: https://github.com/OpenPrinting/goipp +Repository: https://github.com/OpenPrinting/goipp.git +Repository-Browse: https://github.com/OpenPrinting/goipp +Bug-Database: https://github.com/OpenPrinting/goipp/issues +Bug-Submit: https://github.com/OpenPrinting/goipp/issues/new diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..607325b --- /dev/null +++ b/debian/watch @@ -0,0 +1,11 @@ +version=4 +opts="mode=git, pgpmode=none" \ + https://github.com/OpenPrinting/goipp.git \ + HEAD debian + +# Use the following when upstream starts to tag releases: +# +#version=4 +#opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%golang-github-openprinting-goipp_$1.orig.tar.gz%,\ +# uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/" \ +# https://github.com/OpenPrinting/goipp/tags .*/v?(\d\S*)\.tar\.gz debian |