--- pyicu-0.8.1.orig/debian/compat +++ pyicu-0.8.1/debian/compat @@ -0,0 +1 @@ +5 --- pyicu-0.8.1.orig/debian/rules +++ pyicu-0.8.1/debian/rules @@ -0,0 +1,91 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PKGNAME:=python-pyicu +PYVERS:=$(shell pyversions -vr) +DEB_BUILD_OPTIONS += nocheck + +include /usr/share/dpatch/dpatch.make + +build: patch build-stamp +build-stamp: + dh_testdir + + set -e; \ + for py in $(PYVERS); do \ + python$$py setup.py build; \ + python$$py-dbg setup.py build; \ + done + +ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) + set -e ;\ + for test in `ls test/*.py`; do \ + for py in $(PYVERS); do \ + PYTHONPATH=$(CURDIR)/build/lib.$(DEB_BUILD_ARCH_OS)-$(shell uname -m)-$$py \ + python$$py $$test ;\ + PYTHONPATH=$(CURDIR)/build/lib_d.$(DEB_BUILD_ARCH_OS)-$(shell uname -m)-$$py \ + python$$py-dbg $$test ;\ + done ;\ + done +endif + + touch $@ + +clean: clean-patched unpatch +clean-patched: patch-stamp + dh_testdir + dh_testroot + rm -f install-stamp build-stamp + -for py in $(PYVERS); do \ + python$$py setup.py clean; \ + done + find . -name "*.pyc" -print0 | xargs -0 rm -f + rm -rf build + dh_clean + +install: install-stamp +install-stamp: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + set -e; \ + for py in $(PYVERS); do \ + python$$py setup.py install --root=$(CURDIR)/debian/$(PKGNAME) ;\ + python$$py-dbg setup.py install --root=$(CURDIR)/debian/$(PKGNAME)-dbg ;\ + done + find $(CURDIR)/debian/$(PKGNAME)-dbg -name "*.pyc" -print0 | xargs -0 rm -f + find $(CURDIR)/debian/$(PKGNAME)-dbg -name "*.py" -print0 | xargs -0 rm -f + find $(CURDIR)/debian/$(PKGNAME)-dbg -name "*.egg-info" -print0 | xargs -0 rm -f + + dh_installdocs + dh_installexamples + touch install-stamp + +binary-indep: build install +# We have nothing to do by default. + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_compress -X.py + dh_strip -p$(PKGNAME) --dbg-package=$(PKGNAME)-dbg + dh_fixperms + dh_pysupport + rm -rf debian/$(PKGNAME)-dbg/usr/share/doc/$(PKGNAME)-dbg + ln -s $(PKGNAME) debian/$(PKGNAME)-dbg/usr/share/doc/$(PKGNAME)-dbg + dh_installdeb + # Ignore libpython dependencies + ( for i in $(PYVERS); do echo libpython$$i 1.0; done ) > debian/shlibs.local + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install \ + clean-patched patch unpatch + --- pyicu-0.8.1.orig/debian/docs +++ pyicu-0.8.1/debian/docs @@ -0,0 +1,2 @@ +README +CREDITS --- pyicu-0.8.1.orig/debian/control +++ pyicu-0.8.1/debian/control @@ -0,0 +1,33 @@ +Source: pyicu +Section: python +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Debian Python Modules Team +Uploaders: Bernd Zeimetz +Build-Depends: dpatch, debhelper (>= 5.0.37.3), python-all-dev (>= 2.4.4-3), python-all-dbg (>= 2.4.4-3), python-support (>= 0.4), libicu-dev (>= 3.8) +Build-Conflicts: python-pyicu +Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyicu/trunk/ +Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pyicu/trunk/ +Homepage: http://pyicu.osafoundation.org/ +Standards-Version: 3.8.1 + +Package: python-pyicu +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} +Provides: ${python:Provides} +Description: Python extension wrapping the ICU C++ API + ICU is a C++ and C library that provides robust and full-featured + Unicode and locale support. This package provides an extension for + Python which wraps the ICU C++ API. + +Package: python-pyicu-dbg +Architecture: any +Priority: extra +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-pyicu (= ${binary:Version}), python-dbg (>= 2.5) | python2.5-dbg +Provides: ${python:Provides} +Description: Python extension wrapping the ICU C++ API (debug extension) + ICU is a C++ and C library that provides robust and full-featured + Unicode and locale support. This package provides an extension for + Python which wraps the ICU C++ API. + . + This package contains the extension built for the Python debug interpreter. --- pyicu-0.8.1.orig/debian/changelog +++ pyicu-0.8.1/debian/changelog @@ -0,0 +1,93 @@ +pyicu (0.8.1-3ubuntu1) jaunty; urgency=low + + * Merge from debian unstable, Ubuntu remaining changes: + - debian/rules: + + Add nocheck option to DEB_BUILD_OPTIONS to avoid FTBFS with Python 2.6. + + -- Alessio Treglia Wed, 01 Apr 2009 00:01:16 +0200 + +pyicu (0.8.1-3) unstable; urgency=low + + [ Sandro Tosi ] + * debian/control + - uniforming Vcs-Browser field + + [ Bernd Zeimetz ] + * debian/patches/platform-definitions-fix.dpatch: + - Adding patch to handle the new way of platform definitions + on mips, sparc and other architectures, see #499132 for details + (Closes: #519099). + * debian/control: + - Bumping Standards-Version to 3.8.1. + - s/python/Python/ in the long desc. of the dbg package. + * debian/README.source: Adding file. + + -- Bernd Zeimetz Thu, 12 Mar 2009 17:46:19 +0100 + +pyicu (0.8.1-2ubuntu1) jaunty; urgency=low + + * Temporarily disable test suite due to false positive errors that prevent + rebuild for Python 2.6 transition (no-test-suite-for-now.dpatch) + + -- Scott Kitterman Sat, 28 Mar 2009 22:33:11 -0400 + +pyicu (0.8.1-2) unstable; urgency=low + + * Removing bogus changelog entry - 0.8-4 was never released. + + -- Bernd Zeimetz Wed, 12 Dec 2007 09:56:32 +0100 + +pyicu (0.8.1-1) unstable; urgency=low + + * New upstream version. + * debian/patches: + - Removing 64bit-crash-fix.dpatch as it is included in the new version. + + -- Bernd Zeimetz Wed, 12 Dec 2007 09:47:58 +0100 + +pyicu (0.8-3) unstable; urgency=low + + * debian/patches: + - Updating 64bit-crash-fix.dpatch as upstream found another part of code + which could result into segfaults on 64bit architectures. + * debian/control: + - Updating Standards-Version to 3.7.3. + + -- Bernd Zeimetz Thu, 06 Dec 2007 22:45:38 +0100 + +pyicu (0.8-2) unstable; urgency=low + + * debian/patches: + - Adding 64bit-crash-fix.dpatch to fix random crashes on 64bit + architectures. + + -- Bernd Zeimetz Thu, 06 Dec 2007 00:51:29 +0100 + +pyicu (0.8-1) unstable; urgency=low + + * New upstream version, supporting libicu 3.8. + * debian/watch: + - Updating file to point to Pypi. + * debian/control: + - Updating Build-Depends to the new -dev package name of libicu 3.8 - + libicu-dev. + - Updating my email address. + * debian/patches: + - Removing 64bit-fix.dpatch, setup.py.dpatch - patches integrated + upstream. + - Adding no-setuptools-please.dpatch. + + -- Bernd Zeimetz Wed, 05 Dec 2007 14:26:40 +0100 + +pyicu (0.6-2) unstable; urgency=low + + * debian/rules: + - Really removing .egg-info and PyICU.py from the -dbg package now. + + -- Bernd Zeimetz Mon, 19 Nov 2007 00:39:12 +0100 + +pyicu (0.6-1) unstable; urgency=low + + * Initial release (Closes: #449035) + + -- Bernd Zeimetz Sun, 18 Nov 2007 22:55:36 +0100 --- pyicu-0.8.1.orig/debian/watch +++ pyicu-0.8.1/debian/watch @@ -0,0 +1,3 @@ +version = 3 + +http://pypi.python.org/packages/source/P/PyICU/PyICU-(.*)\.tar\.gz --- pyicu-0.8.1.orig/debian/pyversions +++ pyicu-0.8.1/debian/pyversions @@ -0,0 +1 @@ +2.5- --- pyicu-0.8.1.orig/debian/copyright +++ pyicu-0.8.1/debian/copyright @@ -0,0 +1,39 @@ +This package was debianized by Bernd Zeimetz on +Fri, 02 Nov 2007 15:40:58 +0100. + +It was downloaded from http://downloads.osafoundation.org/PyICU/src/ + +Upstream Authors: + + Open Source Applications Foundation + http://www.osafoundation.org/contact.html + info@osafoundation.org + +Copyright: + + Copyright (c) 2004-2007 Open Source Applications Foundation. + +License: + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + +The Debian packaging is (C) 2007, Bernd Zeimetz and +is licensed under the MIT License, see above. + --- pyicu-0.8.1.orig/debian/README.source +++ pyicu-0.8.1/debian/README.source @@ -0,0 +1,6 @@ +This package is using dpatch patch system. + +For details about the handling of patches with dpatch to build this +package, please install the package `dpatch' and read +/usr/share/doc/dpatch/README.source.gz + --- pyicu-0.8.1.orig/debian/patches/platform-definitions-fix.dpatch +++ pyicu-0.8.1/debian/patches/platform-definitions-fix.dpatch @@ -0,0 +1,37 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## platform-definitions-fix.dpatch by Bernd Zeimetz +## +## DP: Fixing FTBFS due to new platform definitions. Setup.py doesn't need to +## DP: take care of them in our case. + +@DPATCH@ +diff -urNad pyicu~/setup.py pyicu/setup.py +--- pyicu~/setup.py 2009-03-12 17:15:41.000000000 +0100 ++++ pyicu/setup.py 2009-03-12 17:17:29.000000000 +0100 +@@ -34,22 +34,22 @@ + if 'PYICU_INCLUDES' in os.environ: + _includes = os.environ['PYICU_INCLUDES'].split(os.pathsep) + else: +- _includes = INCLUDES[sys.platform] ++ _includes = INCLUDES[sys.platform.split('-')[0]] + + if 'PYICU_CFLAGS' in os.environ: + _cflags = os.environ['PYICU_CFLAGS'].split(os.pathsep) + else: +- _cflags = CFLAGS[sys.platform] ++ _cflags = CFLAGS[sys.platform.split('-')[0]] + + if 'PYICU_LFLAGS' in os.environ: + _lflags = os.environ['PYICU_LFLAGS'].split(os.pathsep) + else: +- _lflags = LFLAGS[sys.platform] ++ _lflags = LFLAGS[sys.platform.split('-')[0]] + + if 'PYICU_LIBRARIES' in os.environ: + _libraries = os.environ['PYICU_LIBRARIES'].split(os.pathsep) + else: +- _libraries = LIBRARIES[sys.platform] ++ _libraries = LIBRARIES[sys.platform.split('-')[0]] + + + setup(name="PyICU", --- pyicu-0.8.1.orig/debian/patches/00dpatch.conf +++ pyicu-0.8.1/debian/patches/00dpatch.conf @@ -0,0 +1,2 @@ +conf_debianonly=1 +conf_origtargzpath=../tarballs --- pyicu-0.8.1.orig/debian/patches/no-setuptools-please.dpatch +++ pyicu-0.8.1/debian/patches/no-setuptools-please.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## no-setuptools-please.dpatch by Bernd Zeimetz +## +## DP: As usual - do not build with setuptools. + +@DPATCH@ +diff -urNad pyicu~/setup.py pyicu/setup.py +--- pyicu~/setup.py 2007-11-28 19:37:57.000000000 +0100 ++++ pyicu/setup.py 2007-12-05 14:21:57.000000000 +0100 +@@ -1,10 +1,7 @@ + + import os, sys + +-try: +- from setuptools import setup, Extension +-except ImportError: +- from distutils.core import setup, Extension ++from distutils.core import setup, Extension + + + VERSION = '0.8' --- pyicu-0.8.1.orig/debian/patches/00list +++ pyicu-0.8.1/debian/patches/00list @@ -0,0 +1,2 @@ +no-setuptools-please +platform-definitions-fix