[Python-apps-commits] r3861 - in packages/emma/trunk/debian (changelog control preinst rules)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Mon Sep 28 21:06:30 UTC 2009


    Date: Monday, September 28, 2009 @ 21:06:29
  Author: piotr
Revision: 3861

* Pass --prefix=/usr to setup.py install (Python >= 2.6 uses /usr/local by
  default, Closes: 547816)
* Install emma in private directory and remove "current" from
  XS-Python-Version
* Convert to python-support
  - add preist file to remove old .pyc files
* Standards-Version bumped to 3.8.3 (no changes needed)

Added:
  packages/emma/trunk/debian/preinst
Modified:
  packages/emma/trunk/debian/changelog
  packages/emma/trunk/debian/control
  packages/emma/trunk/debian/rules

Modified: packages/emma/trunk/debian/changelog
===================================================================
--- packages/emma/trunk/debian/changelog	2009-09-28 20:38:30 UTC (rev 3860)
+++ packages/emma/trunk/debian/changelog	2009-09-28 21:06:29 UTC (rev 3861)
@@ -1,3 +1,15 @@
+emma (0.6-4) unstable; urgency=low
+
+  * Pass --prefix=/usr to setup.py install (Python >= 2.6 uses /usr/local by
+    default, Closes: 547816)
+  * Install emma in private directory and remove "current" from
+    XS-Python-Version
+  * Convert to python-support
+    - add preist file to remove old .pyc files
+  * Standards-Version bumped to 3.8.3 (no changes needed)
+
+ -- Piotr Ożarowski <piotr at debian.org>  Mon, 28 Sep 2009 22:32:33 +0200
+
 emma (0.6-3) unstable; urgency=low
 
   [ Marco Rodrigues ]

Modified: packages/emma/trunk/debian/control
===================================================================
--- packages/emma/trunk/debian/control	2009-09-28 20:38:30 UTC (rev 3860)
+++ packages/emma/trunk/debian/control	2009-09-28 21:06:29 UTC (rev 3861)
@@ -3,17 +3,17 @@
 Priority: optional
 Maintainer: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
 Uploaders: Piotr Ożarowski <piotr at debian.org>, Marco Rodrigues <gothicx at sapo.pt>
-Build-Depends: python (>= 2.4), python-central (>= 0.5.6), debhelper (>= 5.0.38), quilt (>= 0.40)
-XS-Python-Version: current, >=2.4
-Standards-Version: 3.8.0
+Build-Depends: python (>= 2.4), python-support, debhelper (>= 5.0.38), quilt (>= 0.40)
+XS-Python-Version: >=2.4
+Standards-Version: 3.8.3
 Homepage: http://www.fastflo.de/projects/emma
 Vcs-Svn: svn://svn.debian.org/python-apps/packages/emma/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/emma/trunk/
 
 Package: emma
 Architecture: all
-XB-Python-Version: ${python:Versions}
-Depends: ${python:Depends}, python-gtk2 (>= 2.8.6-1), python-glade2 (>= 2.8.6-1), python-mysqldb (>=1.2.1-p2-2)
+Depends: ${misc:Depends}, ${python:Depends}, python-mysqldb (>=1.2.1-p2-2),
+ python-gtk2 (>= 2.8.6-1), python-glade2 (>= 2.8.6-1)
 Description: extendable MySQL managing assistant
  emma is a graphical toolkit for MySQL database developers and administrators,
  it is the successor of yamysqlfront.

Added: packages/emma/trunk/debian/preinst
===================================================================
--- packages/emma/trunk/debian/preinst	                        (rev 0)
+++ packages/emma/trunk/debian/preinst	2009-09-28 21:06:29 UTC (rev 3861)
@@ -0,0 +1,9 @@
+#!/bin/sh
+# TODO: remove this file after releasing Squeeze
+set -e
+if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 0.6-4~
+then
+	pycentral pkgremove emma
+fi
+
+#DEBHELPER#

Modified: packages/emma/trunk/debian/rules
===================================================================
--- packages/emma/trunk/debian/rules	2009-09-28 20:38:30 UTC (rev 3860)
+++ packages/emma/trunk/debian/rules	2009-09-28 21:06:29 UTC (rev 3861)
@@ -21,10 +21,9 @@
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
-	python setup.py install --root debian/emma
-	# See REAMDE.Debian for explanations
-	mv debian/emma/usr/bin/emma debian/emma/usr/bin/Emma
-	#dh_link /usr/share/pycentral/emma/site-packages/emmalib/changelog /usr/share/doc/emma/changelog
+	python setup.py install --root debian/emma --prefix=/usr --install-lib=/usr/share/emma/ --install-scripts=/usr/share/emma/
+	# See REAMDE.Debian for explanations why the binary is renamed
+	dh_link /usr/share/emma/emma /usr/bin/Emma
 	dh_install debian/emma.desktop /usr/share/applications/
 	dh_install debian/emma.xpm /usr/share/pixmaps/
 
@@ -37,7 +36,7 @@
 	dh_installman
 	dh_compress -X.py -X.glade
 	dh_fixperms
-	dh_pycentral
+	dh_pysupport
 	dh_installdeb
 	dh_gencontrol
 	dh_md5sums




More information about the Python-apps-commits mailing list