From 9caa8605f45ab55398f6374250b4a8bdb5a684e8 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 15 Feb 2019 20:17:57 -0700 Subject: generate a versioned dependency on libghc-pandoc-types-dev --- debian/changelog | 5 +++++ debian/control | 2 ++ debian/rules | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/debian/changelog b/debian/changelog index 0624f2b..d6e40f9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,10 @@ pandoc-citeproc-preamble (1.2.3-1) UNRELEASED; urgency=medium + * Add override_dh_gencontrol stanza to generate a versioned dependency + on libghc-pandoc-types-dev using haskell-devscripts (Closes: #920743). + This should enable automatically binNMUing pandoc-citeproc-preamble + when new versions of pandoc-types hit Debian unstable. + - Build-depend on haskell-devscripts-minimal | haskell-devscripts. * Switch to source format 3.0 (quilt). -- Sean Whitton Fri, 15 Feb 2019 20:16:14 -0700 diff --git a/debian/control b/debian/control index 3b63ad0..c5267c5 100644 --- a/debian/control +++ b/debian/control @@ -4,6 +4,7 @@ Priority: extra Section: haskell Build-Depends: debhelper (>= 10), ghc, + haskell-devscripts-minimal | haskell-devscripts (>= 0.8), libghc-pandoc-types-dev, Standards-Version: 3.9.8 Homepage: https://spwhitton.name/tech/code/pandoc-citeproc-preamble/ @@ -14,6 +15,7 @@ Package: pandoc-citeproc-preamble Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, + ${haskell:Depends}, Recommends: pandoc-citeproc Description: insert a preamble before pandoc-citeproc's bibliography pandoc-citeproc-preamble is a JSON filter for Pandoc which inserts a diff --git a/debian/rules b/debian/rules index 2a8d309..b52fa27 100755 --- a/debian/rules +++ b/debian/rules @@ -14,6 +14,11 @@ override_dh_auto_build: pod2man --center="User Commands" --section=1 \ pandoc-citeproc-preamble.1.pod > pandoc-citeproc-preamble.1 +override_dh_gencontrol: + echo "haskell:Depends=$(shell . /usr/share/haskell-devscripts/Dh_Haskell.sh; hashed_dependency ghc dev pandoc-types)" \ + >>debian/pandoc-citeproc-preamble.substvars + dh_gencontrol + override_dh_auto_clean: if [ -x Setup ]; then ./Setup clean; fi rm -f Setup Setup.o Setup.hi pandoc-citeproc-preamble.1 -- cgit v1.2.3