[Python-modules-commits] r943 - in /packages/ctypes/trunk/debian: control docs rules

rganesan at users.alioth.debian.org rganesan at users.alioth.debian.org
Mon Jun 19 15:36:11 UTC 2006


Author: rganesan
Date: Mon Jun 19 15:36:11 2006
New Revision: 943

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

Modified:
    packages/ctypes/trunk/debian/control
    packages/ctypes/trunk/debian/docs
    packages/ctypes/trunk/debian/rules

Modified: packages/ctypes/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/ctypes/trunk/debian/control?rev=943&op=diff
==============================================================================
--- packages/ctypes/trunk/debian/control (original)
+++ packages/ctypes/trunk/debian/control Mon Jun 19 15:36:11 2006
@@ -1,15 +1,19 @@
 Source: ctypes
 Section: python
 Priority: optional
-Build-Depends: libffi4-dev, python, python2.3-dev, python2.4-dev, debhelper (>> 4.1.67)
-Build-Depends-Indep: debhelper (>> 4.1.67)
+Build-Depends: python2.3-dev (>= 2.3.5-10), python2.4-dev, python-central (>= 0.4.17), debhelper (>= 5.0.37.1)
+XS-Python-Version: <= 2.4
 Maintainer: Ganesan Rajagopal <rganesan at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Standards-Version: 3.6.2
+Standards-Version: 3.7.2
 
 Package: python-ctypes
-Architecture: all
+Architecture: alpha amd64 i386 kfreebsd-i386 ia64 hppa mips mipsel powerpc ppc64 s390 sparc sparc64
 Depends: ${python:Depends}
+Provides: ${python:Provides}
+Conflicts: python2.3-ctypes, python2.4-ctypes
+Replaces: python2.3-ctypes, python2.4-ctypes
+XB-Python-Version: ${python:Versions}
 Description: Python package to create and manipulate C data types
  ctypes is a ffi (Foreign Function Interface) package for Python.  ctypes
  allows you to call functions exposed from dlls/shared libraries and has
@@ -17,33 +21,3 @@
  complicated C data types in Python - in other words: wrap libraries in pure
  Python.  It is even possible to implement C callback functions in pure
  Python.
- .
- This package always depends on a package built for Debian's default Python 
- version. It contains documentation and some example code.
-
-Package: python2.4-ctypes
-Architecture: alpha amd64 i386 kfreebsd-i386 ia64 hppa mips mipsel powerpc ppc64 s390 sparc sparc64
-Depends: python2.4, ${shlibs:Depends}
-Description: Python package to create and manipulate C data types
- ctypes is a ffi (Foreign Function Interface) package for Python.  ctypes
- allows you to call functions exposed from dlls/shared libraries and has
- extensive facilities to create, access and manipulate simple and
- complicated C data types in Python - in other words: wrap libraries in pure
- Python.  It is even possible to implement C callback functions in pure
- Python.
- .  
- This package is built for Python 2.4.x
-
-Package: python2.3-ctypes
-Architecture: alpha amd64 i386 kfreebsd-i386 ia64 hppa mips mipsel powerpc ppc64 s390 sparc sparc64
-Depends: python2.3, ${shlibs:Depends}
-Description: Python package to create and manipulate C data types
- ctypes is a ffi (Foreign Function Interface) package for Python.  ctypes
- allows you to call functions exposed from dlls/shared libraries and has
- extensive facilities to create, access and manipulate simple and
- complicated C data types in Python - in other words: wrap libraries in pure
- Python.  It is even possible to implement C callback functions in pure
- Python.
- .
- This package is built for Python 2.3.x
-

Modified: packages/ctypes/trunk/debian/docs
URL: http://svn.debian.org/wsvn/python-modules/packages/ctypes/trunk/debian/docs?rev=943&op=diff
==============================================================================
--- packages/ctypes/trunk/debian/docs (original)
+++ packages/ctypes/trunk/debian/docs Mon Jun 19 15:36:11 2006
@@ -1,4 +1,3 @@
 README.txt
-NEWS.txt
 docs
 

Modified: packages/ctypes/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/ctypes/trunk/debian/rules?rev=943&op=diff
==============================================================================
--- packages/ctypes/trunk/debian/rules (original)
+++ packages/ctypes/trunk/debian/rules Mon Jun 19 15:36:11 2006
@@ -1,31 +1,31 @@
 #!/usr/bin/make -f
 
 # Uncomment this to turn on verbose mode.
-export DH_VERBOSE=1
+#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
-PYTHON2.4 = /usr/bin/python2.4
+PYVERS	:= $(shell pyversions -vr debian/control)
+DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog \
+                         | grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
+PYMOD	= ctypes
+d	= debian/python-ctypes
 
-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
-	$(PYTHON2.4) 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
@@ -33,31 +33,14 @@
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
+	$(MAKE) -f debian/rules $(PYVERS:%=install-python%)
 
-	$(PYTHON2.3) setup.py install \
-		--root=debian/python2.3-ctypes --no-compile
-	$(PYTHON2.4) setup.py install \
-		--root=debian/python2.4-ctypes --no-compile
-
+install-python%:
+	python$* setup.py install --no-compile --root=$(d)
 
 # Build architecture-independent files here.
 binary-indep: build install
-	dh_testdir -i
-	dh_testroot -i
-
-	dh_installdocs -i
-	dh_installexamples -i 
-	dh_installchangelogs -i docs/changes.stx
-
-	dh_link -i
-	dh_python -i
-	dh_compress -i
-	dh_fixperms -i
-	dh_installdeb -i
-	dh_shlibdeps -i
-	dh_gencontrol -i
-	dh_md5sums -i
-	dh_builddeb -i
+	# nothing to do
 
 # Build architecture-dependent files here.
 binary-arch: build install
@@ -67,14 +50,13 @@
 	dh_installdocs -a
 	dh_installexamples -a
 	dh_installchangelogs -a
-
 	dh_link -a
+	dh_pycentral -a
 	dh_python -a
-	dh_strip -a
+	echo python:Provides=$(foreach pv,python2.3 python2.4,$(pv)-ctypes)|sed 's/ /, /g' >> debian/python-ctypes.substvars
 	dh_compress -a
 	dh_fixperms -a
 	dh_installdeb -a
-	dh_shlibdeps -a
 	dh_gencontrol -a
 	dh_md5sums -a
 	dh_builddeb -a




More information about the Python-modules-commits mailing list