r2232 - in python-mechanize/trunk/debian (changelog control rules)

jinty-guest at users.alioth.debian.org jinty-guest at users.alioth.debian.org
Sun May 15 17:06:14 UTC 2011


    Date: Sunday, May 15, 2011 @ 17:05:24
  Author: jinty-guest
Revision: 2232

Convert from python-central to debhelper 7 and dh_python2 (Closes: #617013)

Modified:
  python-mechanize/trunk/debian/changelog
  python-mechanize/trunk/debian/control
  python-mechanize/trunk/debian/rules

Modified: python-mechanize/trunk/debian/changelog
===================================================================
--- python-mechanize/trunk/debian/changelog	2011-05-15 16:47:42 UTC (rev 2231)
+++ python-mechanize/trunk/debian/changelog	2011-05-15 17:05:24 UTC (rev 2232)
@@ -8,8 +8,9 @@
   * Remove dependency on python-clientform, it's included in mechanize now and
     deprecated as an external project.
   * Switch to dpkg-source 3.0 (quilt) format from dpatch.
+  * Convert from python-central to debhelper 7 and dh_python2 (Closes: #617013)
 
- -- Brian Sutherland <brian at vanguardistas.net>  Sun, 15 May 2011 18:34:29 +0200
+ -- Brian Sutherland <brian at vanguardistas.net>  Sun, 15 May 2011 18:59:54 +0200
 
 python-mechanize (0.1.11-1.1) unstable; urgency=low
 

Modified: python-mechanize/trunk/debian/control
===================================================================
--- python-mechanize/trunk/debian/control	2011-05-15 16:47:42 UTC (rev 2231)
+++ python-mechanize/trunk/debian/control	2011-05-15 17:05:24 UTC (rev 2232)
@@ -3,18 +3,17 @@
 Priority: extra
 Maintainer: Debian/Ubuntu Zope Team <pkg-zope-developers at lists.alioth.debian.org>
 Uploaders: Brian Sutherland <brian at vanguardistas.net>, Fabio Tranchitella <kobold at debian.org>, Jérémy Bobbio <lunar at debian.org>, Matthias Klose <doko at ubuntu.com>
-Build-Depends-Indep: python-all-dev (>= 2.3.5-9), python-central (>= 0.5)
-Build-Depends: debhelper (>= 5.0.37.2), python-setuptools (>= 0.6b3)
+Build-Depends-Indep: python-all (>= 2.3.5-9)
+Build-Depends: debhelper (>= 7.0.50~), python-setuptools (>= 0.6b3)
 Standards-Version: 3.8.3
-XS-Python-Version: >= 2.5
-XS-Vcs-Svn: svn://svn.debian.org/pkg-zope/python-mechanize/trunk
+X-Python-Version: >= 2.5
+Vcs-Svn: svn://svn.debian.org/pkg-zope/python-mechanize/trunk
 Homepage: http://wwwsearch.sourceforge.net/mechanize/
 
 Package: python-mechanize
 Architecture: all
 Depends: ${python:Depends}
 Provides: ${python:Provides}
-XB-Python-Version: ${python:Versions}
 Conflicts: python2.3-mechanize (<< 0.0.11a-3), python2.4-mechanize (<< 0.0.11a-3)
 Replaces: python2.3-mechanize (<< 0.0.11a-3), python2.4-mechanize (<< 0.0.11a-3)
 Description: stateful programmatic web browsing

Modified: python-mechanize/trunk/debian/rules
===================================================================
--- python-mechanize/trunk/debian/rules	2011-05-15 16:47:42 UTC (rev 2231)
+++ python-mechanize/trunk/debian/rules	2011-05-15 17:05:24 UTC (rev 2232)
@@ -1,75 +1,4 @@
 #!/usr/bin/make -f
 
-# Uncomment this to turn on verbose mode.
-export DH_VERBOSE=1
-
-PYVERS=$(shell pyversions -vr debian/control)
-PYMOD=mechanize
-PACKAGE=python-$(PYMOD)
-
-.PHONY: patch-stamp
-build: patch-stamp $(PYVERS:%=build-python%)
-	touch $@
-build-python%:
-	dh_testdir
-	python$* setup.py build
-	touch $@
-
-.PHONY: clean unpatch
-clean: unpatch
-	dh_testdir
-	dh_testroot
-	rm -f build-python?.?
-	rm -rf build
-	$(MAKE) -f debian/rules $(PYVERS:%=clean-python%)
-	find -name '*.pyc' -exec rm {} \;
-	dh_clean
-
-clean-python%:
-	python$* setup.py clean
-
-.PHONY: install
-install:
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-	$(MAKE) -f debian/rules $(PYVERS:%=install-python%)
-
-install-python%:
-	python$* setup.py install --no-compile --install-layout=deb --single-version-externally-managed --root=debian/$(PACKAGE)
-	# Remove python and module version from .egg-info
-	echo python:Provides=$(foreach pv,$(shell pyversions -s),$(pv)-mechanize)|sed 's/ /, /g' >> debian/python-mechanize.substvars
-	(cd debian/$(PACKAGE)/usr/lib/python$*/*-packages/; \
-		mv $(PYMOD)-*.egg-info $(PYMOD).egg-info)
-
-.PHONY: binary-common
-binary-common:
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs
-	dh_installdocs
-	dh_installexamples
-	dh_installman
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_pycentral
-	dh_makeshlibs
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-.PHONY: binary-indep
-binary-indep: install
-	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
-
-.PHONY: binary-arch
-binary-arch: install
-	# no binary-arch packages to build
-
-.PHONY: binary
-binary: binary-indep binary-arch
+%:
+	dh --with python2 $@




More information about the pkg-zope-developers mailing list