[Python-modules-commits] r7141 - in packages/python-pyevent/trunk/debian (4 files)

luciano at users.alioth.debian.org luciano at users.alioth.debian.org
Sun Dec 21 22:55:08 UTC 2008


    Date: Sunday, December 21, 2008 @ 22:55:08
  Author: luciano
Revision: 7141

* watch file added
* all supported Python versions added
* python-event-dbg added

Added:
  packages/python-pyevent/trunk/debian/watch
Modified:
  packages/python-pyevent/trunk/debian/changelog
  packages/python-pyevent/trunk/debian/control
  packages/python-pyevent/trunk/debian/rules

Modified: packages/python-pyevent/trunk/debian/changelog
===================================================================
--- packages/python-pyevent/trunk/debian/changelog	2008-12-21 20:19:25 UTC (rev 7140)
+++ packages/python-pyevent/trunk/debian/changelog	2008-12-21 22:55:08 UTC (rev 7141)
@@ -1,5 +1,6 @@
 python-event (0.3+svn54-1) UNRELEASED; urgency=low
 
-  * Initial release (Closes: #504729)
+  * Initial release (Closes: #504729). Thanks to Piotr Ożarowski for his
+    comments.
 
  -- Luciano Bello <luciano at debian.org>  Thu, 13 Nov 2008 07:19:10 -0200

Modified: packages/python-pyevent/trunk/debian/control
===================================================================
--- packages/python-pyevent/trunk/debian/control	2008-12-21 20:19:25 UTC (rev 7140)
+++ packages/python-pyevent/trunk/debian/control	2008-12-21 22:55:08 UTC (rev 7141)
@@ -3,18 +3,33 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Luciano Bello <luciano at debian.org>
-Build-Depends: debhelper (>= 7), libevent-dev(>=1.4), python-dev, python-support
+Build-Depends: debhelper (>= 7), libevent-dev(>=1.4), python-all-dev, python-support
+Provides: ${python:Provides}
 Standards-Version: 3.8.0
 Homepage: http://code.google.com/p/pyevent/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-pyevent/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-pyevent/trunk/
-#XS-Python-Version: all
+XS-Python-Version: all
 
 Package: python-event
 Architecture: any
 #XB-Python-Version: ${python:Versions}
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Python extension module for Niels Provos' libevent
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: python extension module for Niels Provos' libevent
  Python extension module for libevent, from http://monkey.org/~provos/libevent/.
  Please, read more information about libevent in the libevent package.
 
+Package: python-event-dbg
+Architecture: any
+Priority: extra
+Depends: python-event (= ${binary:Version}), python-dbg, ${shlibs:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: python extension module for Niels Provos' libevent
+ Python extension module for libevent, from http://monkey.org/~provos/libevent/.
+ Please, read more information about libevent in the libevent package.
+ .
+ This package contains the extension built for the Python debug interpreter.
+

Modified: packages/python-pyevent/trunk/debian/rules
===================================================================
--- packages/python-pyevent/trunk/debian/rules	2008-12-21 20:19:25 UTC (rev 7140)
+++ packages/python-pyevent/trunk/debian/rules	2008-12-21 22:55:08 UTC (rev 7141)
@@ -2,8 +2,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-#PYVERS=$(shell pyversions -r)
-PYTHON := /usr/bin/python
+PYVERS=$(shell pyversions -vr)
 
 PACKAGE = python-event
 URL:=http://pyevent.googlecode.com/svn/trunk/
@@ -15,23 +14,43 @@
 	dh_testdir
 	
 #	for python in $(PYVERS); do 
-	$(PYTHON) setup.py clean; 
+	python$* setup.py clean; 
 #	done
 	
 	rm -f build-stamp
 	rm -f *.pyc *.pyo
 	
-	dh_clean
+	dh_clean install-stamp build-stamp \
+                $(PYVERS:%=install-python%) $(PYVERS:%=build-python%) \
+                $(PYVERS:%=install-debug-python%) $(PYVERS:%=build-debug-python%)
 
-build:
-	dh_testdir
-	dh_testroot
-	dh_installdirs
-	
-#	for python in $(PYVERS); do 
-	$(PYTHON) setup.py install --root=$(CURDIR)/debian/python-python-event; 
-#	done
+install: $(PYVERS:%=install-python%) $(PYVERS:%=install-debug-python%)
 
+install-python%: build
+	python$* setup.py install \
+		--skip-build --root=$(CURDIR)/debian/python-event;
+	touch $@
+
+install-debug-python%: build
+	python$*-dbg setup.py install \
+		--skip-build --root=$(CURDIR)/debian/python-event-dbg/
+	find $(CURDIR)/debian/python-event-dbg/usr/lib/python$*/ ! -type d ! -name '*_d\.so' -delete
+	find $(CURDIR)/debian/python-event-dbg/usr/lib/python$*/ -depth -empty -delete
+	touch $@
+
+build: build-stamp
+
+build-stamp: $(PYVERS:%=build-python%) $(PYVERS:%=build-debug-python%)
+	touch $@
+
+build-python%:
+	python$* setup.py build
+	touch $@
+
+build-debug-python%:
+	python$*-dbg setup.py build
+	touch $@
+
 binary-indep: build
 
 binary-arch: install
@@ -51,13 +70,15 @@
 
 get-orig-source:
 	@@dh_testdir
-	rm -rf get-orig-source $(TARBALL)
-	mkdir get-orig-source
-	svn export -r $(SVN_REVISION) $(URL) \
+	@@rm -rf $(TARBALL)
+	@@mkdir get-orig-source
+	@@svn export -r $(SVN_REVISION) $(URL) \
 	       get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig
-	GZIP=--best tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
-	rm -rf get-orig-source
-	echo "  "$(TARBALL)" created; move it to the right destination to build the package"
+	@@echo Cleaning up ...
+	@@rm -rf get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig/pyevent
+	@@GZIP=--best tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
+	@@rm -rf get-orig-source
+	@@echo "  "$(TARBALL)" created; move it to the right destination to build the package"
 
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install

Added: packages/python-pyevent/trunk/debian/watch
===================================================================
--- packages/python-pyevent/trunk/debian/watch	                        (rev 0)
+++ packages/python-pyevent/trunk/debian/watch	2008-12-21 22:55:08 UTC (rev 7141)
@@ -0,0 +1,3 @@
+version=3
+http://code.google.com/p/pyevent/ http://pyevent.googlecode.com/files/pyevent-([\d.]*)\.tar\.gz
+




More information about the Python-modules-commits mailing list