# HG changeset patch # User paulb # Date 1124215920 0 # Node ID 6de933acbf81c4dd25e0831038e95e9be25b6cb3 # Parent f2a1eb3f3363fb36046e32090bfe82bcc4fbb74e [project @ 2005-08-16 18:12:00 by paulb] Added Debian package support. diff -r f2a1eb3f3363 -r 6de933acbf81 packages/debian/python2.4-xsltools/debian/changelog --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/debian/python2.4-xsltools/debian/changelog Tue Aug 16 18:12:00 2005 +0000 @@ -0,0 +1,5 @@ +xsltools (0.2-1) unstable; urgency=low + + * New upstream release. + + -- Paul Boddie Tue, 16 Aug 2005 19:46:29 +0200 diff -r f2a1eb3f3363 -r 6de933acbf81 packages/debian/python2.4-xsltools/debian/control --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/debian/python2.4-xsltools/debian/control Tue Aug 16 18:12:00 2005 +0000 @@ -0,0 +1,19 @@ +Source: xsltools +Priority: optional +Maintainer: Paul Boddie +Build-Depends: debhelper (>> 3.0.0) +Standards-Version: 3.5.8 +Section: python + +Package: python2.4-xsltools +Section: python +Architecture: all +Depends: python2.4-libxml2dom (>= 0.2.1), python2.4-libxslt1 (>= 1.1.12), python2.4 +Suggests: python2.4-webstack +Description: Modules and packages for the development of XML/XSL-based applications + XSLTools is a distribution providing modules and packages for the development + of XML/XSL-based applications in Python, including Web-based applications, + utilising the open source libxml2 and libxslt libraries through the libxml2dom + wrapper. + . + This package is built for Python 2.4.x. diff -r f2a1eb3f3363 -r 6de933acbf81 packages/debian/python2.4-xsltools/debian/copyright --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/debian/python2.4-xsltools/debian/copyright Tue Aug 16 18:12:00 2005 +0000 @@ -0,0 +1,32 @@ +Package creator: + + Paul Boddie + +The origin of the package is: + + http://www.boddie.org.uk/python/XSLTools.html + +Package author: + + Paul Boddie + +Copyright: + +Licence Agreement for XSLTools +------------------------------ + +Copyright (C) 2005 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA diff -r f2a1eb3f3363 -r 6de933acbf81 packages/debian/python2.4-xsltools/debian/docs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/debian/python2.4-xsltools/debian/docs Tue Aug 16 18:12:00 2005 +0000 @@ -0,0 +1,4 @@ +README.txt +docs +scripts +tools diff -r f2a1eb3f3363 -r 6de933acbf81 packages/debian/python2.4-xsltools/debian/postinst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/debian/python2.4-xsltools/debian/postinst Tue Aug 16 18:12:00 2005 +0000 @@ -0,0 +1,54 @@ +#! /bin/sh +# postinst script for XSLTools +# +# see: dh_installdeb(1) + +set -e + +# 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'. + +PACKAGE=python2.4-xsltools +VERSION=2.4 +LIB="/usr/lib/python$VERSION" +DIRLIST="$LIB/site-packages/XSLForms" +FILELIST="$LIB/site-packages/XMLTable $LIB/site-packages/XSLOutput" + +case "$1" in + configure|abort-upgrade|abort-remove|abort-deconfigure) + for i in $DIRLIST ; do + /usr/bin/python$VERSION -O $LIB/compileall.py -q $i + /usr/bin/python$VERSION $LIB/compileall.py -q $i + done + for i in $FILELIST ; do + /usr/bin/python$VERSION -O -c "import $i" + /usr/bin/python$VERSION -c "import $i" + done + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + + +exit 0 + + diff -r f2a1eb3f3363 -r 6de933acbf81 packages/debian/python2.4-xsltools/debian/prerm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/debian/python2.4-xsltools/debian/prerm Tue Aug 16 18:12:00 2005 +0000 @@ -0,0 +1,30 @@ +#! /bin/sh +# prerm script for XSLTools + +set -e + +PACKAGE=python2.4-xsltools +VERSION=2.4 +LIB="/usr/lib/python$VERSION" +DIRLIST="$LIB/site-packages/XSLTools" +FILELIST="$LIB/site-packages/XMLTable $LIB/site-packages/XSLOutput" + +case "$1" in + remove|upgrade|failed-upgrade) + for i in $DIRLIST ; do + find $i -name '*.py[co]' -exec rm \{\} \; + done + for i in $FILELIST ; do + rm $i.py[co] + done + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + + +exit 0 diff -r f2a1eb3f3363 -r 6de933acbf81 packages/debian/python2.4-xsltools/debian/rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/debian/python2.4-xsltools/debian/rules Tue Aug 16 18:12:00 2005 +0000 @@ -0,0 +1,49 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=4 + + + +build: build-stamp + /usr/bin/python2.4 setup.py build +build-stamp: + touch build-stamp + +configure: + # Do nothing + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + -rm -rf build + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + /usr/bin/python2.4 setup.py install --no-compile --prefix=$(CURDIR)/debian/python2.4-xsltools/usr + +# Build architecture-independent files here. +binary-indep: install + dh_testdir + dh_testroot + + dh_installdocs + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb +# We have nothing to do by default. + +binary: binary-indep +.PHONY: build clean binary-indep binary install