r1918 - in zope.interface/trunk/debian (7 files)

kobold at users.alioth.debian.org kobold at users.alioth.debian.org
Tue Dec 22 15:09:34 UTC 2009


    Date: Tuesday, December 22, 2009 @ 15:09:25
  Author: kobold
Revision: 1918

* New upstream release.
* Convert to debhelper 7 and the pydeb dh7 extension.

Added:
  zope.interface/trunk/debian/python-zope.interface.install
Modified:
  zope.interface/trunk/debian/changelog
  zope.interface/trunk/debian/compat
  zope.interface/trunk/debian/control
  zope.interface/trunk/debian/docs
  zope.interface/trunk/debian/rules
  zope.interface/trunk/debian/tests/all

Modified: zope.interface/trunk/debian/changelog
===================================================================
--- zope.interface/trunk/debian/changelog	2009-12-22 12:46:13 UTC (rev 1917)
+++ zope.interface/trunk/debian/changelog	2009-12-22 15:09:25 UTC (rev 1918)
@@ -1,3 +1,10 @@
+zope.interface (3.5.3-1) unstable; urgency=low
+
+  * New upstream release.
+  * Convert to debhelper 7 and the pydeb dh7 extension.
+
+ -- Fabio Tranchitella <kobold at debian.org>  Tue, 22 Dec 2009 13:14:19 +0100
+
 zope.interface (3.5.2-2) unstable; urgency=low
 
   [ Matthias Klose ]

Modified: zope.interface/trunk/debian/compat
===================================================================
--- zope.interface/trunk/debian/compat	2009-12-22 12:46:13 UTC (rev 1917)
+++ zope.interface/trunk/debian/compat	2009-12-22 15:09:25 UTC (rev 1918)
@@ -1 +1 @@
-5
+7

Modified: zope.interface/trunk/debian/control
===================================================================
--- zope.interface/trunk/debian/control	2009-12-22 12:46:13 UTC (rev 1917)
+++ zope.interface/trunk/debian/control	2009-12-22 15:09:25 UTC (rev 1918)
@@ -3,33 +3,38 @@
 Priority: optional
 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>
-Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.3.5-11), python-all-dbg, python-central (>= 0.5.6), python-setuptools (>= 0.6b3), python-van.pydeb (>= 1.3.0-2)
+Build-Depends: debhelper (>= 7), python-all-dev (>= 2.3.5-11), python-all-dbg, python-central (>= 0.5.6), python-setuptools (>= 0.6b3), python-van.pydeb (>= 1.3.0-4)
 Standards-Version: 3.8.3
 XS-Python-Version: all
 XS-Vcs-Svn: svn://svn.debian.org/pkg-zope/zope.interface/trunk
 
 Package: python-zope.interface
 Architecture: any
-Depends: ${setuptools:Depends}, ${python:Depends}, ${shlibs:Depends}
-Provides: python-zope, python-zopeinterface, ${python:Provides}
-Suggests: ${setuptools:Suggests}
+Depends: ${pydeb:Depends}, ${python:Depends}, ${misc:Depends}
+Recommends: ${pydeb:Recommends}
+Provides: python-zope, python-zopeinterface, ${pydeb:Provides}, ${python:Provides}
+Suggests: ${pydeb:Suggests}
 Replaces: python-zope, python-zopeinterface
 Conflicts: python-zope, python-zopeinterface, zope3
 XB-Python-Version: ${python:Versions}
-Description: Zope 3 Interface Infrastructure
- This package provides the zope.interface module, which provide interfaces
- for Python.
+Description: Interfaces for Python
+ This package provides an implementation of object interfaces for Python.
+ Interfaces are a mechanism for labeling objects as conforming to a given API
+ or contract. So, this package can be considered as implementation of the
+ Design By Contract methodology support in Python.
 
 Package: python-zope.interface-dbg
 Priority: extra
 Section: debug
 Architecture: any
-Depends: python-zope.interface (= ${binary:Version}), python-dbg, ${shlibs:Depends}
+Depends: python-zope.interface (= ${binary:Version}), python-dbg, ${misc:Depends}, ${shlibs:Depends}
 Conflicts: python-zopeinterface-dbg
 Replaces: python-zopeinterface-dbg
 Provides: python-zopeinterface-dbg
-Description: Zope 3 Interface Infrastructure (debug extension)
- This package provides the zope.interface module, which provide interfaces
- for Python.
+Description: Interfaces for Python (debug extension)
+ This package provides an implementation of object interfaces for Python.
+ Interfaces are a mechanism for labeling objects as conforming to a given API
+ or contract. So, this package can be considered as implementation of the
+ Design By Contract methodology support in Python.
  .
  This package contains the extension built for the Python debug interpreter.

Modified: zope.interface/trunk/debian/docs
===================================================================
--- zope.interface/trunk/debian/docs	2009-12-22 12:46:13 UTC (rev 1917)
+++ zope.interface/trunk/debian/docs	2009-12-22 15:09:25 UTC (rev 1918)
@@ -1,2 +1 @@
-PKG-INFO
 README.txt

Added: zope.interface/trunk/debian/python-zope.interface.install
===================================================================
--- zope.interface/trunk/debian/python-zope.interface.install	                        (rev 0)
+++ zope.interface/trunk/debian/python-zope.interface.install	2009-12-22 15:09:25 UTC (rev 1918)
@@ -0,0 +1 @@
+debian/tmp/*

Modified: zope.interface/trunk/debian/rules
===================================================================
--- zope.interface/trunk/debian/rules	2009-12-22 12:46:13 UTC (rev 1917)
+++ zope.interface/trunk/debian/rules	2009-12-22 15:09:25 UTC (rev 1918)
@@ -1,70 +1,27 @@
 #!/usr/bin/make -f
 
-include /usr/share/python-van.pydeb/rules_templates/rules.1.mk
+export PYDEB_SUGGESTS_EXTRAS=docs
 
-# target overwritten
-build: $(PYVERS:%=build-python%) $(PYVERS:%=build-dbg-python%)
-	touch $@
-build-dbg-python%:
-	dh_testdir
-	python$*-dbg setup.py build
-	touch $@
+%:
+	dh --with pydeb --with python-central $@
 
-# target overwritten
-clean:
-	dh_testdir
-	dh_testroot
-	$(MAKE) -f debian/rules $(PYVERS:%=clean-python%)
-	rm -f build-python?.? build-dbg-python?.?
-	rm -rf build
-	rm -rf dist
-	find -iname '*.pyc' -exec rm -f {} \;
-	dh_clean
+package=python-zope.interface
 
-# target overwritten
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-	$(MAKE) -f debian/rules $(PYVERS:%=install-python%) $(PYVERS:%=install-dbg-python%)
-
-# target overwritten
-install-dbg-python%:
-	python$*-dbg setup.py install --no-compile --single-version-externally-managed $(py_setup_install_args) --root=debian/$(package)-dbg --install-data=usr/lib/$(package)
+override_dh_install:
+	dh_install
+	# zope.interface provides the zope namespace __init__.py
+	for py in $(shell pyversions -vr debian/control); do \
+	    cp src/zope/__init__.py debian/$(package)/usr/lib/python$$py/*-packages/zope/; \
+	done
+	# python-zope.interface-dbg package
+	for py in $(shell pyversions -vr debian/control); do \
+	    python$$py-dbg setup.py install --no-compile --single-version-externally-managed \
+            $(py_setup_install_args) --root=debian/$(package)-dbg \
+            --install-data=usr/lib/$(package); \
+	done
 	find debian/$(package)-dbg
 	find debian/$(package)-dbg ! -type d ! -name '*.so' | xargs rm -f
 	find debian/$(package)-dbg -depth -empty -exec rmdir {} \;
 
-# target overwritten
-binary-common:
-	dh_testdir
-	dh_testroot
-	dh_install
-	dh_installchangelogs
-	dh_installdocs
-	dh_installexamples
-	dh_installman
-	dh_link
-	dh_strip
+override_dh_strip:
 	dh_strip -p$(package) --dbg-package=$(package)-dbg
-	rm -rf debian/$(package)-dbg/usr/share/doc/$(package)-dbg
-	mkdir -p debian/$(package)-dbg/usr/share/doc
-	ln -sf $(package) debian/$(package)-dbg/usr/share/doc/$(package)-dbg
-	dh_compress
-	dh_fixperms
-	dh_pycentral
-	dh_makeshlibs
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-post-install-python%:
-	install -D -m 644 src/zope/__init__.py \
-	    debian/$(package)/$(call py_libdir,$*)/zope/__init__.py
-	(echo -n 'setuptools:Depends=' && van-pydeb depends --egg-info debian/$(package)/$(call py_libdir,$*)/$(py_package).egg-info --exclude-extra docs) >> debian/$(package).substvars
-	(echo -n 'setuptools:Suggests=' && van-pydeb depends --egg-info debian/$(package)/$(call py_libdir,$*)/$(py_package).egg-info --extra docs) >> debian/$(package).substvars
-	sed -i 's/python-setuptools/python-pkg-resources/g' debian/$(package).substvars
-	find debian/$(package) -name '*.c' | xargs -r rm -f

Modified: zope.interface/trunk/debian/tests/all
===================================================================
--- zope.interface/trunk/debian/tests/all	2009-12-22 12:46:13 UTC (rev 1917)
+++ zope.interface/trunk/debian/tests/all	2009-12-22 15:09:25 UTC (rev 1918)
@@ -1,27 +1,2 @@
 #!/bin/bash
-
-set -e
-
-PYVERS=$(pyversions -vr debian/control)
-TMPFILE=$(mktemp)
-
-cat > $TMPFILE << EOF
-import sys
-from zope.testing import testrunner
-
-subs = (sys.version_info[0], sys.version_info[1])
-test_path = '/usr/lib/python%s.%s/site-packages/' % subs
-
-
-
-exitcode = testrunner.run([
-                '--tests-pattern', '^f?tests$',
-                '-s', 'zope.interface',
-                '--test-path', test_path
-                ])
-sys.exit(exitcode)
-EOF
-
-for version in ${PYVERS}; do
-    python${version} ${TMPFILE}
-done
+. /usr/share/python-zope.testing/test_helper




More information about the pkg-zope-developers mailing list