[Python-modules-commits] r937 - in /packages/fixedpoint/trunk/debian: changelog control python-fixedpoint.docs python-fixedpoint.examples python2.3-fixedpoint.docs python2.3-fixedpoint.examples rules

rganesan at users.alioth.debian.org rganesan at users.alioth.debian.org
Mon Jun 19 12:20:15 UTC 2006


Author: rganesan
Date: Mon Jun 19 12:20:13 2006
New Revision: 937

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=937
Log:
Updated for new python policy.


Added:
    packages/fixedpoint/trunk/debian/python-fixedpoint.docs
      - copied unchanged from r122, packages/fixedpoint/trunk/debian/python2.3-fixedpoint.docs
    packages/fixedpoint/trunk/debian/python-fixedpoint.examples
      - copied unchanged from r122, packages/fixedpoint/trunk/debian/python2.3-fixedpoint.examples
Removed:
    packages/fixedpoint/trunk/debian/python2.3-fixedpoint.docs
    packages/fixedpoint/trunk/debian/python2.3-fixedpoint.examples
Modified:
    packages/fixedpoint/trunk/debian/changelog
    packages/fixedpoint/trunk/debian/control
    packages/fixedpoint/trunk/debian/rules

Modified: packages/fixedpoint/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/fixedpoint/trunk/debian/changelog?rev=937&op=diff
==============================================================================
--- packages/fixedpoint/trunk/debian/changelog (original)
+++ packages/fixedpoint/trunk/debian/changelog Mon Jun 19 12:20:13 2006
@@ -1,3 +1,10 @@
+fixedpoint (0.1.2-7) unstable; urgency=low
+
+  * Support new python policy (Closes: #373428).
+  * Update Debian Standards Version (no source changes).
+
+ -- Ganesan Rajagopal <rganesan at debian.org>  Mon, 19 Jun 2006 17:47:09 +0530
+
 fixedpoint (0.1.2-6) unstable; urgency=low
 
   * Stop building python2.2 version of the package (Closes: #351112).

Modified: packages/fixedpoint/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/fixedpoint/trunk/debian/control?rev=937&op=diff
==============================================================================
--- packages/fixedpoint/trunk/debian/control (original)
+++ packages/fixedpoint/trunk/debian/control Mon Jun 19 12:20:13 2006
@@ -1,26 +1,21 @@
 Source: fixedpoint
 Section: python
 Priority: optional
-Build-Depends-Indep: python, python2.3-dev, debhelper (>> 4.1.67)
+Build-Depends-Indep: python2.3-dev (>= 2.3.5-10), python-central (>= 0.4.17), debhelper (>= 5.0.37.1)
+XS-Python-Version: 2.3
 Maintainer: Ganesan Rajagopal <rganesan at debian.org>
-Standards-Version: 3.6.2
-
-Package: python2.3-fixedpoint
-Architecture: all
-Depends: python2.3
-Description: A fixed point math object for python (2.3.x)
- This module provides a fixed point math object for python for monetary 
- applications. 
- .
- This package is built for Python 2.3.x
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Standards-Version: 3.7.2
 
 Package: python-fixedpoint
 Architecture: all
-Depends: python2.3-fixedpoint
+Depends: python2.3
+Provides: ${python:Provides}
+Conflicts: python2.3-fixedpoint
+Replaces: python2.3-fixedpoint
+XB-Python-Version: 2.3
 Description: A fixed point math object for python [dummy package]
  This module provides a fixed point math object for python for monetary 
- applications. 
- .
- This package is an empty dummy package that always depends on a package
- built for Debian's default Python version.   
+ applications. This module is not needed for python2.4 and later versions 
+ because they provide a built-in decimal module.
 

Modified: packages/fixedpoint/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/fixedpoint/trunk/debian/rules?rev=937&op=diff
==============================================================================
--- packages/fixedpoint/trunk/debian/rules (original)
+++ packages/fixedpoint/trunk/debian/rules Mon Jun 19 12:20:13 2006
@@ -4,26 +4,28 @@
 #export DH_VERBOSE=1
 
 # This is the debhelper compatibility version to use.
-export DH_COMPAT=4
+export DH_COMPAT=5
 
-PYTHON2.3 = /usr/bin/python2.3
+PYVERS	:= $(shell pyversions -vr debian/control)
+DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog \
+                         | grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
+PYMOD	= fixedpoint
+d	= debian/python-fixedpoint
 
-configure: configure-stamp
-configure-stamp:
+build: $(PYVERS:%=build-python%)
+	touch $@
+
+build-python%:
 	dh_testdir
-	touch configure-stamp
-
-build: configure-stamp build-stamp
-build-stamp:
-	dh_testdir
-	$(PYTHON2.3) setup.py build
+	python$* setup.py build
 	touch build-stamp
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp configure-stamp
-	rm -rf build
+	rm -f build-stamp build-python*
+	rm -rf build dist
+	rm -f *.pyc 
 	dh_clean
 
 install: build
@@ -31,10 +33,10 @@
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
+	$(MAKE) -f debian/rules $(PYVERS:%=install-python%)
 
-	$(PYTHON2.3) setup.py install \
-		--root=debian/python2.3-fixedpoint --no-compile
-
+install-python%:
+	python$* setup.py install --no-compile --root=$(d)
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -44,9 +46,10 @@
 	dh_installdocs -i
 	dh_installexamples -i
 	dh_installchangelogs -i
-
 	dh_link -i
+	dh_pycentral -i
 	dh_python -i
+	echo python:Provides=python2.3-fixedpoint >> debian/python-fixedpoint.substvars
 	dh_compress -i
 	dh_fixperms -i
 	dh_installdeb -i




More information about the Python-modules-commits mailing list