[Python-modules-commits] r855 - in /packages/json-py/trunk/debian: changelog rules

kov at users.alioth.debian.org kov at users.alioth.debian.org
Thu Jun 15 22:40:33 UTC 2006


Author: kov
Date: Thu Jun 15 22:40:31 2006
New Revision: 855

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=855
Log:
  - rename the egg directory to remove the python version (Closes: #372577)

Modified:
    packages/json-py/trunk/debian/changelog
    packages/json-py/trunk/debian/rules

Modified: packages/json-py/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/json-py/trunk/debian/changelog?rev=855&op=diff
==============================================================================
--- packages/json-py/trunk/debian/changelog (original)
+++ packages/json-py/trunk/debian/changelog Thu Jun 15 22:40:31 2006
@@ -5,8 +5,10 @@
     versions of cdbs, debhelper and python-support; (Closes: #373447)
   * debian/python-json.{postinst,prerm}:
   - removed; will be created automatically by dh_pysupport
+  * debian/rules:
+  - rename the egg directory to remove the python version (Closes: #372577)
 
- -- Gustavo Noronha Silva <kov at debian.org>  Thu, 15 Jun 2006 19:29:52 -0300
+ -- Gustavo Noronha Silva <kov at debian.org>  Thu, 15 Jun 2006 19:37:55 -0300
 
 json-py (3.4-1) unstable; urgency=low
 

Modified: packages/json-py/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/json-py/trunk/debian/rules?rev=855&op=diff
==============================================================================
--- packages/json-py/trunk/debian/rules (original)
+++ packages/json-py/trunk/debian/rules Thu Jun 15 22:40:31 2006
@@ -11,6 +11,14 @@
 # hack around CDBS bug -- see #373678
 DEB_PYTHON_INSTALL_ARGS := ${DEB_PYTHON_INSTALL_ARGS_ALL}
 
+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-json::
+	mv debian/python-json/usr/share/python-support/python-json/json_py-${UPSTREAM_VERSION}-py${PYVER}.egg-info \
+		debian/python-json/usr/share/python-support/python-json/json_py-${UPSTREAM_VERSION}.egg-info
+	-rm -rf debian/python-json/usr/lib/
+
 clean::
 	# hack (CDBS bug -- see #300149)
 	-rm -rf build json_py.egg-info




More information about the Python-modules-commits mailing list