From: Kevin Rosenberg Date: Sun, 2 Aug 2009 10:30:48 +0000 (-0600) Subject: Updates for new debian standards X-Git-Tag: debian-1.2.0-2^0 X-Git-Url: http://git.kpe.io/?p=getopt.git;a=commitdiff_plain;h=84e491ca79c31c8d8aa183b11f476cb0cc77e115 Updates for new debian standards --- diff --git a/debian/changelog b/debian/changelog index 3954635..a1dfc65 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +cl-getopt (1.2.0-2) unstable; urgency=low + + * debian/watch: New file + * debian/control: Require debhelper 7. Change to new lisp section. + Add Vcs-Git and Homepage fields. + * debian/compat: Update to version 7 + * debian/rules: Update for debhelper 7, architecture-independent build + * debian/{prerm,postrm}: Remove path from binary function + + -- Kevin M. Rosenberg Sun, 02 Aug 2009 04:30:20 -0600 + cl-getopt (1.2.0-1) unstable; urgency=low * New upstream diff --git a/debian/compat b/debian/compat index b8626c4..7f8f011 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -4 +7 diff --git a/debian/control b/debian/control index 8708de9..7c86ec6 100644 --- a/debian/control +++ b/debian/control @@ -1,13 +1,15 @@ Source: cl-getopt -Section: devel +Section: lisp Priority: optional Maintainer: Kevin M. Rosenberg -Build-Depends: debhelper (>= 4.0.0) -Standards-Version: 3.7.3.0 +Build-Depends: debhelper (>= 7.0.0) +Standards-Version: 3.8.2.0 +Homepage: http://files.b9.com/getopt/ +Vcs-Git: git://git.b9.com/getopt.git Package: cl-getopt Architecture: all -Depends: ${shlibs:Depends}, common-lisp-controller, cl-ptester +Depends: common-lisp-controller, cl-ptester Description: Common Lisp utility for command-line processing This package provides Common Lisp programs processing of command-line arguments. The command-line processing is based on GNU's getopt_long diff --git a/debian/postinst b/debian/postinst index b17dbde..40e672f 100755 --- a/debian/postinst +++ b/debian/postinst @@ -3,27 +3,9 @@ set -e LISP_PKG=getopt -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package -# -# quoting from the policy: -# Any necessary prompting should almost always be confined to the -# post-installation script, and should be protected with a conditional -# so that unnecessary prompting doesn't happen if a package's -# installation fails and the `postinst' is called with `abort-upgrade', -# `abort-remove' or `abort-deconfigure'. - case "$1" in configure) - /usr/sbin/register-common-lisp-source ${LISP_PKG} + register-common-lisp-source ${LISP_PKG} ;; abort-upgrade|abort-remove|abort-deconfigure) ;; @@ -33,9 +15,6 @@ case "$1" in ;; esac -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - #DEBHELPER# exit 0 diff --git a/debian/prerm b/debian/prerm index e711eee..92ca7f0 100755 --- a/debian/prerm +++ b/debian/prerm @@ -3,21 +3,9 @@ set -e LISP_PKG=getopt -# summary of how this script can be called: -# * `remove' -# * `upgrade' -# * `failed-upgrade' -# * `remove' `in-favour' -# * `deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - case "$1" in remove|upgrade|deconfigure) - /usr/sbin/unregister-common-lisp-source ${LISP_PKG} + unregister-common-lisp-source ${LISP_PKG} ;; failed-upgrade) ;; @@ -27,9 +15,6 @@ case "$1" in ;; esac -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - #DEBHELPER# exit 0 diff --git a/debian/rules b/debian/rules index 9ff92d1..a99f817 100755 --- a/debian/rules +++ b/debian/rules @@ -8,7 +8,6 @@ clc-systems := usr/share/common-lisp/systems clc-files := $(clc-source)/$(pkg) clc-tests := $(clc-source)/$(pkg-tests) doc-dir := usr/share/doc/$(debpkg) - source-files := $(wildcard *.lisp) configure: configure-stamp @@ -16,7 +15,6 @@ configure-stamp: dh_testdir touch configure-stamp - build: build-stamp build-stamp: configure-stamp @@ -27,37 +25,31 @@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp - # Clean up after the build process. rm -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.* dh_clean install: build dh_testdir dh_testroot - dh_clean -k - # Install the package into debian/getopt. + dh_prep dh_installdirs $(clc-systems) $(clc-files) $(clc-tests) dh_install $(pkg).asd $(source-files) $(clc-files) dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd -# Build architecture-independent files binary-indep: build install - dh_testdir - dh_testroot - dh_installdocs - dh_installchangelogs - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -# Build architecture-dependent files + dh_testdir -i + dh_testroot -i + dh_installdocs -i + dh_installchangelogs -i + dh_strip -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + binary-arch: build install binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure - diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..6c920b2 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://files.b9.com/getopt/getopt-([\d\.]*)\.tar\.gz +