Source: golang-dns
Source-Version: 0.0~git20160414.0.89d9c5e-2
Severity: wishlist
Tags: patch

Hi!

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?).

Thanks,
Guillem
--- a/debian/changelog	2016-07-12 06:48:21.000000000 +0200
+++ b/debian/changelog	2016-10-14 14:13:45.693438786 +0200
@@ -1,3 +1,17 @@
+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.
+
+ -- 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 ]
--- a/debian/control	2016-07-12 06:48:11.000000000 +0200
+++ b/debian/control	2016-10-14 14:03:39.000000000 +0200
@@ -1,4 +1,4 @@
-Source: golang-dns
+Source: golang-github-miekg-dns
 Section: devel
 Priority: extra
 Maintainer: pkg-go <pkg-go-maintainers@lists.alioth.debian.org>
@@ -7,13 +7,16 @@
 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 @@
  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.
--- a/debian/copyright	2016-07-12 06:48:11.000000000 +0200
+++ b/debian/copyright	2016-10-14 14:09:27.795942151 +0200
@@ -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>
--- a/debian/rules	2016-07-12 06:48:11.000000000 +0200
+++ b/debian/rules	2016-10-14 14:00:40.000000000 +0200
@@ -8,7 +8,7 @@
 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
_______________________________________________
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

Reply via email to