Hi! On Fri, 2016-10-14 at 14:21:33 +0200, Guillem Jover wrote: > Source: golang-dns > Source-Version: 0.0~git20160414.0.89d9c5e-2 > Severity: wishlist > Tags: patch
> Here's a packaging cleanup and new upstream release request. (This one > I also had packaged initially from scratch as I didn't find it :/.) > > Attached the working and tested patch. I've also renamed the Vcs > fields to makes this less confusing overall, but that will require > changes on the alioth side (probably rename + compat symlinks?). Hmm, it seems that particular iteration was not working so much. :/ Attached a fixed version. With additional cleanups. Thanks, Guillem
diff --git c/debian/changelog i/debian/changelog index bb95f73..608085c 100644 --- c/debian/changelog +++ i/debian/changelog @@ -1,3 +1,18 @@ +golang-github-miekg-dns (0.0~git20161006.0.fc4e1e2-1) UNRELEASED; urgency=medium + + * New upstream snapshot. + * Remove unused shlibs:Depends substvar. + * Add a Built-Using field. + * Rename source package name and add a new binary package + golang-github-miekg-dns-dev to match current Go packaging policy. + * Switch old golang-dns-dev binary to be a transitional package. + * Fix Upstream-Name in debian/copyright. + * Use https in the debian/copyright Format field. + * Use _build as build directory. + * Disable DH_VERBOSE by default. + + -- Guillem Jover <gjo...@sipwise.com> Fri, 14 Oct 2016 13:53:46 +0200 + golang-dns (0.0~git20160414.0.89d9c5e-2) unstable; urgency=medium [ Paul Tagliamonte ] diff --git c/debian/control i/debian/control index 38199da..9d83a62 100644 --- c/debian/control +++ i/debian/control @@ -1,4 +1,4 @@ -Source: golang-dns +Source: golang-github-miekg-dns Section: devel Priority: extra Maintainer: pkg-go <pkg-go-maintain...@lists.alioth.debian.org> @@ -7,13 +7,16 @@ Uploaders: Tonnerre LOMBARD <tonne...@ancient-solutions.com>, Build-Depends: debhelper (>= 9), dh-golang, golang-go (>= 2:1.5.1~) Standards-Version: 3.9.8 Homepage: https://github.com/miekg/dns -Vcs-Git: https://anonscm.debian.org/git/pkg-go/packages/golang-dns.git -Vcs-Browser: https://anonscm.debian.org/cgit/pkg-go/packages/golang-dns.git +Vcs-Git: https://anonscm.debian.org/git/pkg-go/packages/golang-github-miekg-dns.git +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-go/packages/golang-github-miekg-dns.git -Package: golang-dns-dev -Provides: golang-github-miekg-dns-dev +Package: golang-github-miekg-dns-dev Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends} +Depends: ${misc:Depends} +Breaks: golang-dns-dev (<< 0.0~git20161006.0.fc4e1e2-1~) +Replaces: golang-dns-dev (<< 0.0~git20161006.0.fc4e1e2-1~) +Provides: golang-dns-dev +Built-Using: ${misc:Built-Using} Description: DNS protocol library for Go Complete and usable DNS library. All widely used Resource Records are supported, including the DNSSEC types. It follows a lean and @@ -21,3 +24,11 @@ Description: DNS protocol library for Go programmer there isn't a convenience function for it. Server side and client side programming is supported, i.e. you can build servers and resolvers with it. + +Package: golang-dns-dev +Section: oldlibs +Architecture: all +Depends: golang-github-miekg-dns-dev +Description: transitional package for golang-github-miekg-dns-dev + This is a transitional package to ease upgrades to the + golang-github-miekg-dns-dev. It can be safely removed. diff --git c/debian/copyright i/debian/copyright index d54b933..6ad36ee 100644 --- c/debian/copyright +++ i/debian/copyright @@ -1,6 +1,6 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: golang-dns +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://github.com/miekg/dns/ +Upstream-Name: dns Files: * Copyright: 2009-2015 Miek Gieben <m...@miek.nl> diff --git c/debian/golang-github-miekg-dns-dev.install i/debian/golang-github-miekg-dns-dev.install new file mode 100644 index 0000000..a3da66d --- /dev/null +++ i/debian/golang-github-miekg-dns-dev.install @@ -0,0 +1 @@ +usr/share/gocode diff --git c/debian/rules i/debian/rules index 213abd6..0c874b0 100755 --- c/debian/rules +++ i/debian/rules @@ -1,14 +1,14 @@ #!/usr/bin/make -f # Uncomment this to turn on verbose mode. -export DH_VERBOSE=1 +#export DH_VERBOSE=1 # DH_GOPKG is the upstream path which you would normally “go get”. # Using it allows us to build applications without patching locations. export DH_GOPKG := github.com/miekg/dns %: - dh $@ --buildsystem=golang --with=golang + dh $@ --buildsystem=golang --with=golang --builddirectory=_build override_dh_auto_install: dh_auto_install -O--buildsystem=golang