[med-svn] r8079 - trunk/packages/cain/trunk/debian

Ivo Maintz ivomaintz-guest at alioth.debian.org
Wed Oct 5 08:31:59 UTC 2011


Author: ivomaintz-guest
Date: 2011-10-05 08:31:59 +0000 (Wed, 05 Oct 2011)
New Revision: 8079

Added:
   trunk/packages/cain/trunk/debian/python-cain.manpages
   trunk/packages/cain/trunk/debian/python-cain.postinst
   trunk/packages/cain/trunk/debian/python-cain.prerm
Removed:
   trunk/packages/cain/trunk/debian/cain.manpages
Modified:
   trunk/packages/cain/trunk/debian/control
Log:
added postinst and prerm scripts for python-cain
renamed cain.manpages to python-cain.manpages


Deleted: trunk/packages/cain/trunk/debian/cain.manpages
===================================================================
--- trunk/packages/cain/trunk/debian/cain.manpages	2011-10-05 03:35:59 UTC (rev 8078)
+++ trunk/packages/cain/trunk/debian/cain.manpages	2011-10-05 08:31:59 UTC (rev 8079)
@@ -1 +0,0 @@
-debian/*1

Modified: trunk/packages/cain/trunk/debian/control
===================================================================
--- trunk/packages/cain/trunk/debian/control	2011-10-05 03:35:59 UTC (rev 8078)
+++ trunk/packages/cain/trunk/debian/control	2011-10-05 08:31:59 UTC (rev 8079)
@@ -3,7 +3,7 @@
 Priority: extra
 Maintainer: Ivo Maintz <ivo at maintz.de>
 Build-Depends: debhelper (>= 7),
- python,
+  python,
  libeigen2-dev
 Standards-Version: 3.9.2
 Homepage: http://cain.sourceforge.net
@@ -20,8 +20,6 @@
  python-scipy,
  python-sympy,
  cain-common
-Provides: cain
-Replaces: cain
 Description: simulations of chemical reactions
  Cain performs stochastic and deterministic simulations of chemical reactions.
  It can spawn multiple simulation processes to utilize multi-core computers.
@@ -46,6 +44,9 @@
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends},
  libeigen2-dev
+Provides: cain
+Replaces: cain
+Conflicts: cain
 Description: simulations of chemical reactions
  Cain performs stochastic and deterministic simulations of chemical reactions.
  It can spawn multiple simulation processes to utilize multi-core computers.

Copied: trunk/packages/cain/trunk/debian/python-cain.manpages (from rev 8069, trunk/packages/cain/trunk/debian/cain.manpages)
===================================================================
--- trunk/packages/cain/trunk/debian/python-cain.manpages	                        (rev 0)
+++ trunk/packages/cain/trunk/debian/python-cain.manpages	2011-10-05 08:31:59 UTC (rev 8079)
@@ -0,0 +1 @@
+debian/*1

Added: trunk/packages/cain/trunk/debian/python-cain.postinst
===================================================================
--- trunk/packages/cain/trunk/debian/python-cain.postinst	                        (rev 0)
+++ trunk/packages/cain/trunk/debian/python-cain.postinst	2011-10-05 08:31:59 UTC (rev 8079)
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+if which pycompile >/dev/null 2>&1; then
+	pycompile -p python-cain /usr/share/cain
+fi

Added: trunk/packages/cain/trunk/debian/python-cain.prerm
===================================================================
--- trunk/packages/cain/trunk/debian/python-cain.prerm	                        (rev 0)
+++ trunk/packages/cain/trunk/debian/python-cain.prerm	2011-10-05 08:31:59 UTC (rev 8079)
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+if which pyclean >/dev/null 2>&1; then
+	pyclean -p python-cain
+else
+	dpkg -L python-cain | grep \.py$ | while read file
+	do
+		rm -f "${file}"[co] >/dev/null
+  	done
+fi




More information about the debian-med-commit mailing list