From 906fd96bf1c3e74012810bfe12f5206c9796ae3f Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Tue, 3 Jul 2018 17:11:15 +0200 Subject: [PATCH] debian: Build manpage using help2man. --- debian/changelog | 5 +++-- debian/control | 1 + debian/rules | 10 ++++++++++ debian/source/lintian-overrides | 3 +++ 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 debian/source/lintian-overrides diff --git a/debian/changelog b/debian/changelog index 8053ed4..743b861 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -pgloader (3.5.1-1) UNRELEASED; urgency=medium +pgloader (3.5.2-1) unstable; urgency=medium * New upstream version. * All included test data has been verified as free, stop building a +dfsg @@ -8,11 +8,12 @@ pgloader (3.5.1-1) UNRELEASED; urgency=medium * Add new B-D cl-mustache, cl-yason, cl-zs3, sync Depends to cl-pgloader. * Depend on the libssl version cl-plus-ssl depends on. * Build and install new sphinx docs instead. + * Build manpage using help2man. * Priority: optional, move cl-pgloader to Section: lisp. * Update S-V. * Add watch file. - -- Christoph Berg Sat, 11 Nov 2017 16:39:08 +0100 + -- Christoph Berg Tue, 03 Jul 2018 16:59:07 +0200 pgloader (3.4.1+dfsg-1) unstable; urgency=medium diff --git a/debian/control b/debian/control index 72e7639..fdd3d11 100644 --- a/debian/control +++ b/debian/control @@ -47,6 +47,7 @@ Build-Depends: cl-zs3, debhelper (>= 9.0.0), gawk, + help2man, python3-sphinx, sbcl (>= 1.1.13), tzdata, diff --git a/debian/rules b/debian/rules index 54638d8..293b419 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f +include /usr/share/dpkg/pkg-info.mk + # make pgloader depend on the libssl package cl-plus-ssl depends on LIBSSL := $(shell dpkg-query --showformat='$${Depends}' --show cl-plus-ssl | grep -o 'libssl[^ ]*') @@ -42,6 +44,14 @@ override_dh_auto_test: override_dh_strip: # do nothing +override_dh_installman: + mkdir -p debian/pgloader/usr/share/man/man1/ + help2man --version-string $(DEB_VERSION_UPSTREAM) \ + --no-info \ + --name "extract, transform and load data into PostgreSQL" \ + debian/pgloader/usr/bin/pgloader > \ + debian/pgloader/usr/share/man/man1/pgloader.1 + override_dh_gencontrol: dh_gencontrol -- -V"ssl:Depends=$(LIBSSL)" diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..4076145 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,3 @@ +# don't bug people uploading from @work +source: changelog-should-mention-nmu +source: source-nmu-has-incorrect-version-number