From a93912499493117812cdf1cad339d4c1f64d1c4a Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 29 Jan 2017 11:10:14 -0700 Subject: initial debianisation --- debian/changelog | 1 + debian/compat | 1 + debian/control | 29 +++++++++++++++++++++++++++++ debian/copyright | 23 +++++++++++++++++++++++ debian/install | 1 + debian/lintian-overrides | 4 ++++ debian/rules | 22 ++++++++++++++++++++++ debian/source/format | 1 + 8 files changed, 82 insertions(+) create mode 100644 debian/compat 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 diff --git a/debian/changelog b/debian/changelog index ad03739..23f2ae5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ pandoc-citeproc-preamble (1.2.3) UNRELEASED; urgency=medium * Convert changelog to Debian's format. + * Upload to Debian: add debian/ subdirectory. -- Sean Whitton Sun, 29 Jan 2017 11:00:07 -0700 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3b63ad0 --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: pandoc-citeproc-preamble +Maintainer: Sean Whitton +Priority: extra +Section: haskell +Build-Depends: debhelper (>= 10), + ghc, + libghc-pandoc-types-dev, +Standards-Version: 3.9.8 +Homepage: https://spwhitton.name/tech/code/pandoc-citeproc-preamble/ +Vcs-Git: https://git.spwhitton.name/pandoc-citeproc-preamble +Vcs-Browser: https://git.spwhitton.name/pandoc-citeproc-preamble + +Package: pandoc-citeproc-preamble +Architecture: any +Depends: ${shlibs:Depends}, + ${misc: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 + preamble before the output that the pandoc-citeproc filter appends to + the document. This preamble might include a heading + (e.g. "Bibliography") and raw markup to format the bibliography for + the output format. + . + Since pandoc-citeproc doesn't provide any facility to add formatting + control code to its output, pandoc-citeproc-preamble is necessary to + avoid the user being forced to add their control code to the end of + their input files, thereby losing the input file's agnosticity with + regard to output format. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e1b3800 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pandoc-citeproc-preamble +Source: https://spwhitton.name/tech/code/pandoc-citeproc-preamble/ + +Files: * +Copyright: (C) 2015-2017 Sean Whitton +License: GPL-3+ + pandoc-citeproc-preamble is free software: you can redistribute it + and/or modify it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + . + pandoc-citeproc-preamble is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied warranty + of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with pandoc-citeproc-preamble. If not, see + . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3. diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..a4fcfa9 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +dist/build/pandoc-citeproc-preamble/pandoc-citeproc-preamble usr/bin diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 0000000..58bf513 --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1,4 @@ +# standard override for Haskell binary packages +binary-or-shlib-defines-rpath +# standard override for Haskell binary packages +hardening-no-relro diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..42f7d2b --- /dev/null +++ b/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +# these rules originally written by Joey Hess for hothasktags package + +%: + dh $@ + +override_dh_auto_configure: + ghc --make Setup + ./Setup configure + +override_dh_auto_build: + ./Setup build + +override_dh_auto_clean: + if [ -x Setup ]; then ./Setup clean; fi + rm -f Setup Setup.o Setup.hi + +override_dh_strip: + # GHC cannot produce debugging symbols so the -dbgsym package + # ends up empty, so disable generating it + dh_strip --no-automatic-dbgsym diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- cgit v1.2.3