From: Andre Noll Date: Mon, 20 May 2019 14:58:20 +0000 (+0200) Subject: Add infrastructure to build debian packages. X-Git-Tag: v1.0.1~7 X-Git-Url: http://git.tuebingen.mpg.de/?p=tfortune.git;a=commitdiff_plain;h=18c4c002c310e9ffa47bad14c967d9e4c02d8d2a Add infrastructure to build debian packages. This commit adds the usual files below debian/ so that debian source and binary packages can be made with a command like dpkg-buildpackage The debian/rules file relies on dh but overrides the dh_auto_configure and the dh_autoreconf targets. The default recipe for dh_auto_configure results in warnings because tfortune's configure does not implement some of the options which dh appends to the configure command. The override for autoreconf is needed because the default recipe would remove our configure wrapper and replace it with the generated script. This has been tested on debian-9, debian-10 and debian-11. On all systems, lintian(1) reports no warnings and no errors. v3 -> v4 ~~~~~~~~ * Fix Bug ID in debian/changelog (pointed out by Adam Borowski) v2 -> v3 ~~~~~~~~ * Switch to a simple debian/rules file as suggested by Alexis Murzeau and Adam Borowski. v1 -> v2 ~~~~~~~~ Incorporate feedback from Adam Borowski: * Use dh_installchangelogs instead of open-coding it * Use gzip -n to avoid rendering the build non-reproducible * Fix the installation path of debian/copyright by running dh_install, * Create md5sums file --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d8a579b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +tfortune (1.0.0-1) unstable; urgency=low + + * Initial Release. Closes: #929467 + + -- Andre Noll Mon, 20 May 2019 16:47:31 +0100 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..872331f --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: tfortune +Section: games +Priority: optional +Maintainer: Andre Noll +Build-Depends: m4, flex, bison, debhelper (>= 10.0), autoconf, liblopsub-dev +Standards-Version: 4.3.0 +Homepage: http://people.tuebingen.mpg.de/maan/tfortune/ +Vcs-Browser: http://git.tuebingen.mpg.de/tfortune.git +Vcs-Git: git://git.tuebingen.mpg.de/tfortune/ + +Package: tfortune +Architecture: any +Depends: ${shlibs:Depends}, liblopsub1, ${misc:Depends} +Description: Fortune Cookies with Tags + Like fortune(6), tfortune is a Unix command line utility which prints + a random epigram. Epigrams are stored as plain text files, but they + must be annotated with tags to make full use of the features which + tfortune offers over other implementations. + . + Tfortune has a built-in matching language for epigrams. User-supplied + tag expressions define subsets of admissible epigrams. If a tag + expression is given, epigrams are picked from the admissible subset + only. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..cec5122 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,7 @@ +Copyright 2018-2019 Andre Noll + +This package is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License, version 3. + +On Debian GNU systems, the complete text of the GNU General Public +License can be found in `/usr/share/common-licenses/GPL-3'. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..513610c --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +%: + dh "$@" + +# plain dh_auto_configure uses options which configure does not understand +override_dh_auto_configure: + ./configure --prefix=/usr --bindir=/usr/games +# needed because dh_autoreconf overwrites our configure wrapper +override_dh_autoreconf: + $(MAKE) configure.sh diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)