From: Kevin Rosenberg Date: Sun, 2 Aug 2009 07:42:34 +0000 (-0600) Subject: Updates for new debian standards X-Git-Tag: debian-2.1.3-3^0 X-Git-Url: http://git.kpe.io/?p=pubmed.git;a=commitdiff_plain;h=1fb268703ec07f3112d2c7fbca138535091124c9 Updates for new debian standards --- diff --git a/debian/README.Debian b/debian/README.Debian index 138717d..841ad31 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -1,6 +1,7 @@ To use this package in Debian, execute -(require 'pubmed) +(clc:require 'pubmed) in your Lisp environment. + -- Kevin M. Rosenberg , Sun, 2 Aug 2009 01:42:14 -0600 diff --git a/debian/changelog b/debian/changelog index 507b10d..44481d3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +cl-pubmed (2.1.3-3) 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 01:41:26 -0600 + cl-pubmed (2.1.3-2) unstable; urgency=low * debian/rules: don't export DH_COMPAT 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 d96165e..61ae853 100644 --- a/debian/control +++ b/debian/control @@ -1,13 +1,14 @@ Source: cl-pubmed -Section: devel +Section: lisp Priority: optional Maintainer: Kevin M. Rosenberg -Build-Depends: debhelper (>= 4.0.0) -Standards-Version: 3.7.2.2 +Build-Depends: debhelper (>= 7.0.0) +Standards-Version: 3.8.2.0 Package: cl-pubmed Architecture: all -Depends: ${shlibs:Depends}, common-lisp-controller (>= 3.37), cl-kmrcl, cl-aserve +Depends: common-lisp-controller (>= 3.37), cl-kmrcl, cl-aserve Description: Common Lisp package to query Pubmed medical literature database This library has functions for querying the PubMed medical literature - database and parsing the XML results into Common Lisp objects. + database and parsing the XML results into Common Lisp objects. This package + uses the cl-aserve for HTTP fetches. diff --git a/debian/copyright b/debian/copyright index 3aede74..b4bd7ea 100644 --- a/debian/copyright +++ b/debian/copyright @@ -12,4 +12,4 @@ under the terms of the version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. The GNU Lessor General Public License can be found in your Debian file -system in /usr/share/common-licenses/LGPL. +system in /usr/share/common-licenses/LGPL-3. diff --git a/debian/postinst b/debian/postinst index fbebe3f..a92cad6 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,34 +1,11 @@ #! /bin/sh -# postinst script for cl-pubmed -# -# see: dh_installdeb(1) - set -e -# package name according to lisp LISP_PKG=pubmed -# 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) ;; @@ -38,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 a5194d7..375b206 100755 --- a/debian/prerm +++ b/debian/prerm @@ -1,28 +1,11 @@ #! /bin/sh -# prerm script for cl-pubmed -# -# see: dh_installdeb(1) - set -e -# package name according to lisp LISP_PKG=pubmed -# 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) ;; @@ -32,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 cf945d6..a21e6e8 100755 --- a/debian/rules +++ b/debian/rules @@ -6,60 +6,48 @@ debpkg := cl-pubmed clc-source := usr/share/common-lisp/source clc-systems := usr/share/common-lisp/systems clc-pubmed := $(clc-source)/$(pkg) - doc-dir := usr/share/doc/$(debpkg) - configure: configure-stamp configure-stamp: dh_testdir - # Add here commands to configure the package. - touch configure-stamp - build: build-stamp build-stamp: configure-stamp dh_testdir - # Add here commands to compile the package. touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp - # Add here commands to clean up after the build process. rm -f debian/cl-pubmed.postinst.* debian/cl-pubmed.prerm.* dh_clean install: build dh_testdir dh_testroot - dh_clean -k - # Add here commands to install the package into debian/pubmed. + dh_prep dh_installdirs $(clc-systems) $(clc-pubmed) dh_install pubmed.asd $(shell echo *.lisp) $(clc-pubmed) dh_link $(clc-pubmed)/pubmed.asd $(clc-systems)/pubmed.asd -# Build architecture-independent files here. binary-indep: build install + 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 - -# Build architecture-dependent files here. binary-arch: 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 binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure diff --git a/debian/upload.sh b/debian/upload.sh index c6c8b44..49ec2ff 100755 --- a/debian/upload.sh +++ b/debian/upload.sh @@ -1,4 +1,4 @@ #!/bin/bash -e -dup pubmed -Uftp.med-info.com -D/home/ftp/pubmed -C"(umask 022; cd /opt/apache/htdocs/pubmed; make install)" -su $* +dup pubmed -Ufiles.med-info.com -D/home/ftp/pubmed -C"(umask 022; cd /opt/apache/htdocs/pubmed; make install)" -su $* diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..83f0bcf --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://files.b9.com/pubmed/pubmed-([\d\.]*)\.tar\.gz