[Python-modules-commits] r857 - in /packages/configobj/trunk/debian: changelog rules

kov at users.alioth.debian.org kov at users.alioth.debian.org
Thu Jun 15 22:47:17 UTC 2006


Author: kov
Date: Thu Jun 15 22:47:16 2006
New Revision: 857

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=857
Log:
  - rename the egg info directory so that easy_install and others
    will not ignore it because there is a python version number

Modified:
    packages/configobj/trunk/debian/changelog
    packages/configobj/trunk/debian/rules

Modified: packages/configobj/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/configobj/trunk/debian/changelog?rev=857&op=diff
==============================================================================
--- packages/configobj/trunk/debian/changelog (original)
+++ packages/configobj/trunk/debian/changelog Thu Jun 15 22:47:16 2006
@@ -1,8 +1,10 @@
 configobj (4.3.2-2) UNRELEASED; urgency=low
 
-  * NOT RELEASED YET
+  * debian/rules:
+  - rename the egg info directory so that easy_install and others
+    will not ignore it because there is a python version number
 
- -- Gustavo Noronha Silva <kov at debian.org>  Thu, 15 Jun 2006 19:18:37 -0300
+ -- Gustavo Noronha Silva <kov at debian.org>  Thu, 15 Jun 2006 19:46:57 -0300
 
 configobj (4.3.2-1) unstable; urgency=low
 

Modified: packages/configobj/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/configobj/trunk/debian/rules?rev=857&op=diff
==============================================================================
--- packages/configobj/trunk/debian/rules (original)
+++ packages/configobj/trunk/debian/rules Thu Jun 15 22:47:16 2006
@@ -13,6 +13,14 @@
 DEB_PYTHON_INSTALL_ARGS := ${DEB_PYTHON_INSTALL_ARGS_ALL}
 DEB_INSTALL_CHANGELOGS_ALL += CONFIGOBJ_CHANGELOG_TODO.txt
 
+UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
+PYVER=$(shell python -V 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1-2)
+
+binary-post-install/python-configobj::
+	mv debian/python-configobj/usr/share/python-support/python-configobj/configobj-${UPSTREAM_VERSION}-py${PYVER}.egg-info \
+		debian/python-configobj/usr/share/python-support/python-configobj/configobj-${UPSTREAM_VERSION}.egg-info
+	-rm -rf debian/python-configobj/usr/lib/
+
 clean::
 	# hack (CDBS bug -- see #300149)
 	-rm -rf build configobj.egg-info




More information about the Python-modules-commits mailing list