r2166 - in zope.interface/trunk/debian (6 files)

jinty-guest at users.alioth.debian.org jinty-guest at users.alioth.debian.org
Sun Apr 10 18:13:35 UTC 2011


    Date: Sunday, April 10, 2011 @ 18:13:15
  Author: jinty-guest
Revision: 2166

* New version and incorporate changes from Ubuntu.
* Enable python3 packages

Modified:
  zope.interface/trunk/debian/changelog
  zope.interface/trunk/debian/control
  zope.interface/trunk/debian/copyright
  zope.interface/trunk/debian/python-zope.interface.install
  zope.interface/trunk/debian/rules
  zope.interface/trunk/debian/watch

Modified: zope.interface/trunk/debian/changelog
===================================================================
--- zope.interface/trunk/debian/changelog	2011-04-10 17:16:55 UTC (rev 2165)
+++ zope.interface/trunk/debian/changelog	2011-04-10 18:13:15 UTC (rev 2166)
@@ -1,15 +1,36 @@
-zope.interface (3.6.1-1) UNRELEASED; urgency=low
+zope.interface (3.6.1-1) unstable; urgency=low
 
   [ Brian Sutherland ]
-  * Update to version from ztk1.0
+  * New version and incorporate changes from Ubuntu.
+  * Enable python3 packages
 
   [ Matthias Klose ]
   * The egg doesn't require setuptools. LP: #563060.
   * Call setup.py install with --install-layout=deb to install into
     the final location.
 
- -- Brian Sutherland <brian at vanguardistas.net>  Wed, 03 Nov 2010 13:09:46 +0000
+ -- Brian Sutherland <brian at vanguardistas.net>  Sun, 10 Apr 2011 18:47:16 +0200
 
+zope.interface (3.6.1-0ubuntu3) natty; urgency=low
+
+  * Build packages for python3.
+
+ -- Matthias Klose <doko at ubuntu.com>  Wed, 23 Feb 2011 18:31:44 +0100
+
+zope.interface (3.6.1-0ubuntu2) natty; urgency=low
+
+  * Rebuild to add support for python 2.7.
+
+ -- Matthias Klose <doko at ubuntu.com>  Fri, 03 Dec 2010 00:18:11 +0000
+
+zope.interface (3.6.1-0ubuntu1) maverick; urgency=low
+
+  * New upstream release.
+  * Don't include C source in the package.
+  * debian/copyright: update, convert to dep5 format
+
+ -- Gediminas Paulauskas <menesis at pov.lt>  Thu, 26 Aug 2010 19:40:15 +0300
+
 zope.interface (3.5.3-1) unstable; urgency=low
 
   * New upstream release.

Modified: zope.interface/trunk/debian/control
===================================================================
--- zope.interface/trunk/debian/control	2011-04-10 17:16:55 UTC (rev 2165)
+++ zope.interface/trunk/debian/control	2011-04-10 18:13:15 UTC (rev 2166)
@@ -3,8 +3,8 @@
 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 (>= 7.0.50~), 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
+Build-Depends: debhelper (>= 7.0.50~), 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), python3-all-dev, python3-all-dbg, python3-zope.fixers, python3-setuptools
+Standards-Version: 3.9.1
 XS-Python-Version: all
 XS-Vcs-Svn: svn://svn.debian.org/pkg-zope/zope.interface/trunk
 
@@ -38,3 +38,28 @@
  Design By Contract methodology support in Python.
  .
  This package contains the extension built for the Python debug interpreter.
+
+Package: python3-zope.interface
+Architecture: any
+Depends: ${pydeb:Depends}, ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}
+Recommends: ${pydeb:Recommends}
+Provides: python3-zope, ${pydeb:Provides}, ${python3:Provides}
+Suggests: ${pydeb:Suggests}
+Description: Interfaces for Python3
+ 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: python3-zope.interface-dbg
+Priority: extra
+Section: debug
+Architecture: any
+Depends: python3-zope.interface (= ${binary:Version}), python3-dbg, ${misc:Depends}, ${shlibs:Depends}
+Description: Interfaces for Python3 (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 Python3 debug interpreter.

Modified: zope.interface/trunk/debian/copyright
===================================================================
--- zope.interface/trunk/debian/copyright	2011-04-10 17:16:55 UTC (rev 2165)
+++ zope.interface/trunk/debian/copyright	2011-04-10 18:13:15 UTC (rev 2166)
@@ -1,75 +1,52 @@
-This package was debianized by Brian Sutherland <jinty at web.de> on
-Thu Oct 26 22:39:08 CEST 2006.
+Format-Specification: http://dep.debian.net/deps/dep5/
+Name: zope.interface
+Maintainer: Zope Foundation and Contributors <zope-dev at zope.org>
+Source: http://pypi.python.org/pypi/zope.interface
 
-It was downloaded from http://download.zope.org/distribution
-
-Copyright:
-
-Upstream Author: Zope Corporation and Contributers <zope3-dev at zope.org>
-
-Files contain this header:
-
-# Copyright (c) 2006 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-
-Zope Public License (ZPL) Version 2.1
--------------------------------------
-
-A copyright notice accompanies this license document that
-identifies the copyright holders.
-
-This license has been certified as open source. It has also
-been designated as GPL compatible by the Free Software
-Foundation (FSF).
-
-Redistribution and use in source and binary forms, with or
-without modification, are permitted provided that the
-following conditions are met:
-
-1. Redistributions in source code must retain the
-   accompanying copyright notice, this list of conditions,
-   and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the accompanying
-   copyright notice, this list of conditions, and the
-   following disclaimer in the documentation and/or other
-   materials provided with the distribution.
-
-3. Names of the copyright holders must not be used to
-   endorse or promote products derived from this software
-   without prior written permission from the copyright
-   holders.
-
-4. The right to distribute this software or to use it for
-   any purpose does not give you the right to use
-   Servicemarks (sm) or Trademarks (tm) of the copyright
-   holders. Use of them is covered by separate agreement
-   with the copyright holders.
-
-5. If any files are modified, you must cause the modified
-   files to carry prominent notices stating that you changed
-   the files and the date of any change.
-
-Disclaimer
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS''
-  AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
-  NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
-  AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
-  NO EVENT SHALL THE COPYRIGHT HOLDERS BE
-  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
-  DAMAGE.
+Files: *
+Copyright: (c) 2001-2010 Zope Foundation and Contributors.
+License: ZPL-2.1
+ Zope Public License (ZPL) Version 2.1
+ .
+ A copyright notice accompanies this license document that identifies the
+ copyright holders.
+ .
+ This license has been certified as open source. It has also been designated as
+ GPL compatible by the Free Software Foundation (FSF).
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ 1. Redistributions in source code must retain the accompanying copyright
+ notice, this list of conditions, and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the accompanying copyright
+ notice, this list of conditions, and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ 3. Names of the copyright holders must not be used to endorse or promote
+ products derived from this software without prior written permission from the
+ copyright holders.
+ .
+ 4. The right to distribute this software or to use it for any purpose does not
+ give you the right to use Servicemarks (sm) or Trademarks (tm) of the
+ copyright
+ holders. Use of them is covered by separate agreement with the copyright
+ holders.
+ .
+ 5. If any files are modified, you must cause the modified files to carry
+ prominent notices stating that you changed the files and the date of any
+ change.
+ .
+ Disclaimer
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+ EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Modified: zope.interface/trunk/debian/python-zope.interface.install
===================================================================
--- zope.interface/trunk/debian/python-zope.interface.install	2011-04-10 17:16:55 UTC (rev 2165)
+++ zope.interface/trunk/debian/python-zope.interface.install	2011-04-10 18:13:15 UTC (rev 2166)
@@ -1 +1 @@
-debian/tmp/*
+debian/tmp/usr/lib/python2*

Modified: zope.interface/trunk/debian/rules
===================================================================
--- zope.interface/trunk/debian/rules	2011-04-10 17:16:55 UTC (rev 2165)
+++ zope.interface/trunk/debian/rules	2011-04-10 18:13:15 UTC (rev 2166)
@@ -4,13 +4,41 @@
 
 %:
 	dh --with pydeb --with python-central $@
+	dh --with pydeb --with python-central --with python3 $@
 
 package=python-zope.interface
+package3=python3-zope.interface
 
+override_dh_auto_clean:
+	rm -rf build
+	find -name __pycache__ | xargs -r rm -rf
+	find -name '*.py[co]' | xargs -r rm -f
+
+override_dh_auto_build:
+	for pyvers in $(shell pyversions -vr); do \
+		python$$pyvers setup.py build; \
+	done
+	for pyvers in $(shell py3versions -sv); do \
+		python$$pyvers setup.py build; \
+	done
+
+override_dh_auto_install:
+	set -x; \
+	for pyvers in $(shell pyversions -vr); do \
+		python$$pyvers setup.py install --install-layout=deb \
+			--root $(CURDIR)/debian/$(package); \
+	done
+	set -x; \
+	for pyvers in $(shell py3versions -vs); do \
+		python$$pyvers setup.py install --install-layout=deb \
+			--root $(CURDIR)/debian/$(package3); \
+	done
+
 override_dh_install:
-	dh_install
+	# remove C source
+	find debian/$(package) -name '*.c' | xargs -r rm -f
 	# remove debug symbols
-	rm debian/$(package)/usr/lib/python*/*-packages/zope/interface/_zope_interface_coptimizations_d.so; \
+	#rm debian/$(package)/usr/lib/python*/*-packages/zope/interface/_zope_interface_coptimizations_d.so
 	# 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/; \
@@ -18,13 +46,35 @@
 	# 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-layout=deb; \
+	    $(py_setup_install_args) --root=debian/$(package)-dbg \
+	    --install-layout=deb; \
 	done
-	sed -i '/^setuptools$$/d' $$(find debian/$(package) -name requires.txt)
 	find debian/$(package)-dbg
 	find debian/$(package)-dbg ! -type d ! -name '*.so' | xargs rm -f
 	find debian/$(package)-dbg -depth -empty -exec rmdir {} \;
 
+
+	# remove C source
+	find debian/$(package3) -name '*.c' | xargs -r rm -f
+	# remove debug symbols
+	-rm debian/$(package3)/usr/lib/python3/dist-packages/zope/interface/_zope_interface_coptimizations_d.so
+	# zope.interface provides the zope namespace __init__.py
+	for py in $(shell py3versions -vs); do \
+	    cp src/zope/__init__.py debian/$(package3)/usr/lib/python3/dist-packages/zope/; \
+	done
+	# python3-zope.interface-dbg package
+	for py in $(shell py3versions -vs); do \
+	    python$$py-dbg setup.py install --no-compile --single-version-externally-managed \
+	    $(py_setup_install_args) --root=debian/$(package3)-dbg \
+	    --install-layout=deb; \
+	done
+	find debian/$(package3)-dbg
+	find debian/$(package3)-dbg ! -type d ! -name '*.so' | xargs rm -f
+	find debian/$(package3)-dbg -depth -empty -exec rmdir {} \;
+
+override_dh_pycentral:
+	dh_pycentral -ppython-zope.interface
+
 override_dh_strip:
 	dh_strip -p$(package) --dbg-package=$(package)-dbg
+	dh_strip -p$(package3) --dbg-package=$(package3)-dbg

Modified: zope.interface/trunk/debian/watch
===================================================================
--- zope.interface/trunk/debian/watch	2011-04-10 17:16:55 UTC (rev 2165)
+++ zope.interface/trunk/debian/watch	2011-04-10 18:13:15 UTC (rev 2166)
@@ -1,3 +1,2 @@
 version=3
-http://pypi.python.org/packages/source/z/zope.interface/zope.interface-(.*)\.tar\.gz
-http://pypi.python.org/packages/source/z/zope.interface/zope.interface-(.*)\.zip
+http://pypi.python.org/packages/source/z/zope.interface/zope.interface-(.*)(?:\.tar\.gz|\.zip)




More information about the pkg-zope-developers mailing list