From ca370c5b18e807e4a163c0a941c32ae45512e837 Mon Sep 17 00:00:00 2001 From: Kevin Rosenberg Date: Mon, 3 Aug 2009 18:59:43 -0600 Subject: [PATCH] Convert to dh-lisp; add Vcs-Browser --- debian/changelog | 9 ++++++- debian/control | 4 ++- debian/postinst | 24 ------------------ debian/prerm | 22 ---------------- debian/rules | 65 ++++++++++++++++++++---------------------------- 5 files changed, 38 insertions(+), 86 deletions(-) delete mode 100644 debian/postinst delete mode 100644 debian/prerm diff --git a/debian/changelog b/debian/changelog index ae71c26..77cd3c2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,15 @@ +cl-rlc (0.1.3-3) unstable; urgency=low + + * Build with debhelper extension dh-lisp + * control: Add Vcs-Browser field. Fix Depends field. + + -- Kevin M. Rosenberg Mon, 03 Aug 2009 18:58:55 -0600 + cl-rlc (0.1.3-2) unstable; urgency=low * debian/watch: New file * debian/control: Require debhelper 7. Change to new lisp section. - Add Vcs-Git and Homepage fields. + Added 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 diff --git a/debian/control b/debian/control index d1d7348..b169cac 100644 --- a/debian/control +++ b/debian/control @@ -2,14 +2,16 @@ Source: cl-rlc Section: lisp Priority: optional Maintainer: Kevin M. Rosenberg +Build-Depends-Indep: dh-lisp Build-Depends: debhelper (>> 7.0.0) Standards-Version: 3.8.2.0 Homepage: http://files.b9.com/rlc/ Vcs-Git: git://git.b9.com/rlc.git +Vcs-Browser: http://git.b9.com/?p=rlc.git Package: cl-rlc Architecture: all -Depends: common-lisp-controller (>= 3.37), cl-kmrcl, xgraph +Depends: ${misc:Depends}, cl-kmrcl, xgraph Description: Common Lisp RLC Circuit Simulator cl-rlc provides a simulator for RLC (resistance, inductance, capacitance) circuits. It is written in Common Lisp and uses the xgraph package for diff --git a/debian/postinst b/debian/postinst deleted file mode 100644 index a56da7b..0000000 --- a/debian/postinst +++ /dev/null @@ -1,24 +0,0 @@ -#! /bin/sh -set -e - -LISP_PKG=rlc - -case "$1" in - configure) - register-common-lisp-source ${LISP_PKG} - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 - - diff --git a/debian/prerm b/debian/prerm deleted file mode 100644 index b7a8dc7..0000000 --- a/debian/prerm +++ /dev/null @@ -1,22 +0,0 @@ -#! /bin/sh -set -e - -LISP_PKG=rlc - -case "$1" in - remove|upgrade|deconfigure) - unregister-common-lisp-source ${LISP_PKG} - ;; - failed-upgrade) - ;; - *) - echo "prerm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 - - diff --git a/debian/rules b/debian/rules index 87d88cf..8fc93c5 100755 --- a/debian/rules +++ b/debian/rules @@ -1,57 +1,46 @@ #!/usr/bin/make -f -pkg := rlc -debpkg := cl-rlc +pkg := rlc +debpkg := cl-rlc clc-source := usr/share/common-lisp/source clc-systems := usr/share/common-lisp/systems -clc-irc := $(clc-source)/$(pkg) +clc-files := $(clc-source)/$(pkg) doc-dir := usr/share/doc/$(debpkg) -configure: configure-stamp -configure-stamp: - dh_testdir - touch configure-stamp - - -build: build-stamp - -build-stamp: configure-stamp - dh_testdir - touch build-stamp +build: clean: dh_testdir dh_testroot - rm -f build-stamp configure-stamp - rm -f debian/cl-rlc.postinst.* debian/cl-rlc.prerm.* dh_clean install: build dh_testdir dh_testroot dh_prep - dh_installdirs $(clc-systems) $(clc-irc) $(doc-dir) - dh_install rlc.asd $(shell echo *.lisp) $(clc-irc) - dh_link $(clc-irc)/rlc.asd $(clc-systems)/rlc.asd - -binary-indep: build install - dh_testdir -i - dh_testroot -i - dh_installdocs -i README - dh_installexamples -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 + dh_installdirs + dh_install $(pkg).asd $(clc-files) + dh_install *.lisp $(clc-files) + +binary-indep: install + dh_testdir + dh_testroot + dh_installdocs README + dh_installexamples + dh_installchangelogs + dh_lisp + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: + +binary: binary-indep + +.PHONY: build clean binary-indep binary-arch binary install -- 2.34.1