summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Jehannet <julien.jehannet@logilab.fr>2009-07-17 18:19:17 +0200
committerJulien Jehannet <julien.jehannet@logilab.fr>2009-07-17 18:19:17 +0200
commit6bb5a230a8df5ed2fe417c7b85491073da50dfd3 (patch)
treee9bd64cec3a2d0fddbcb0ceeafb8d6e6949e1da3
parent22d394fdf7d9651080691cb24efa12acba9ed3c4 (diff)
downloadlogilab-common-6bb5a230a8df5ed2fe417c7b85491073da50dfd3.tar.gz
[lenny] Does clean up old pycentral package
-rw-r--r--debian.lenny/python-logilab-common.preinst24
-rwxr-xr-xdebian.lenny/rules73
-rw-r--r--debian/changelog6
3 files changed, 103 insertions, 0 deletions
diff --git a/debian.lenny/python-logilab-common.preinst b/debian.lenny/python-logilab-common.preinst
new file mode 100644
index 0000000..2491e89
--- /dev/null
+++ b/debian.lenny/python-logilab-common.preinst
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+case "$1" in
+ install)
+ ;;
+ upgrade)
+ pycentral pkgremove python-logilab-common || true
+ echo "Start cleaning pycentral..."
+ rm -vrf /usr/lib/$(pyversions -d)/site-packages/logilab/common
+ if [[ $(find /usr/lib/$(pyversions -d)/site-packages/logilab/ -maxdepth 1 -type d | wc -l) = '1' ]]; then
+ rm -vrf /usr/lib/$(pyversions -d)/site-packages/logilab/
+ fi
+ ;;
+ abort-upgrade)
+ ;;
+ *)
+ echo "preinst called with unknown argument '$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian.lenny/rules b/debian.lenny/rules
new file mode 100755
index 0000000..f468406
--- /dev/null
+++ b/debian.lenny/rules
@@ -0,0 +1,73 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+#
+# adapted by Logilab for automatic generation by debianize
+# (part of the devtools project, http://www.logilab.org/projects/devtools)
+#
+# Copyright (c) 2003-2008 LOGILAB S.A. (Paris, FRANCE).
+# http://www.logilab.fr/ -- mailto:contact@logilab.fr
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+
+ # python module build
+ NO_SETUPTOOLS=1 python setup.py -q build
+
+ # build doc
+ $(MAKE) -C doc
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+
+ # clean doc
+ $(MAKE) -C doc clean
+
+ NO_SETUPTOOLS=1 python setup.py clean
+
+ [ ! -d build ] || rm -rf build
+
+ find . -name "*.pyc" -delete
+
+ dh_clean build-stamp
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ NO_SETUPTOOLS=1 python setup.py -q install --no-compile \
+ --root=$(CURDIR)/debian/python-logilab-common/ \
+ # remove test directory
+ rm -rf debian/python-logilab-common/usr/lib/python*/site-packages/logilab/common/test
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_install -i
+ dh_pysupport -i
+ dh_installchangelogs -i ChangeLog
+ dh_installexamples -i
+ dh_installdocs -i README doc/apidoc/
+ dh_installman -i
+ dh_link -i
+ dh_compress -i -X.py -X.ini -X.xml -Xtest/ -Xapidoc/
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+binary-arch:
+
+binary: binary-indep
+.PHONY: build clean binary binary-indep binary-arch
diff --git a/debian/changelog b/debian/changelog
index ab205a8..3b15de8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+logilab-common (0.42.0-2) unstable; urgency=low
+
+ * Does clean up old pycentral package
+
+ -- Julien Jehannet <julien.jehannet@logilab.fr> Fri, 17 Jul 2009 17:44:14 +0200
+
logilab-common (0.42.0-1) unstable; urgency=low
* New upstream release