--- pyicu-1.1.orig/debian/docs +++ pyicu-1.1/debian/docs @@ -0,0 +1,2 @@ +README +CREDITS --- pyicu-1.1.orig/debian/changelog +++ pyicu-1.1/debian/changelog @@ -0,0 +1,137 @@ +pyicu (1.1-1ubuntu1) oneiric; urgency=low + + * Switch to dh_python2. (LP: #788514) + + -- Barry Warsaw Wed, 27 Jul 2011 14:44:25 -0400 + +pyicu (1.1-1) unstable; urgency=low + + * New upstream release + * Install CHANGES as changelog, not CREDITS. Closes: #589070 - thanks to + Jakub Wilk + + -- Bernd Zeimetz Mon, 14 Feb 2011 13:15:13 +0100 + +pyicu (1.0-1) unstable; urgency=low + + * New upstream version. + + -- Bernd Zeimetz Sun, 11 Jul 2010 00:00:06 +0200 + +pyicu (0.9-3) unstable; urgency=low + + * Stop setup.py from isntalling files into /usr/local. + + -- Bernd Zeimetz Tue, 22 Jun 2010 20:59:32 +0200 + +pyicu (0.9-2) unstable; urgency=low + + [ Jakub Wilk ] + * debian/rules: + - Temporary build directory name has changed in Python 2.6. Adjust + PYTHONPATH for running tests accordingly. + + -- Bernd Zeimetz Mon, 25 Jan 2010 23:38:01 +0100 + +pyicu (0.9-1) unstable; urgency=low + + * New upstream release. + + -- Bernd Zeimetz Mon, 18 Jan 2010 22:23:18 +0100 + +pyicu (0.8.1-4) unstable; urgency=low + + [ Jakub Wilk ] + * debian/control: + - Bump standards version to 3.8.3. + - Put the *-dbg package into section debug. + - Install upstream changelog. + * debian/rules: + - Don't rely on particular names for build/ subdirectories. + Thanks to Cyril Brulebois for the patch. + * debian/patches/platform-definitions-fix.dpatch: + - Handle kFreeBSD platform (Closes: #540128). Thanks to Cyril Brulebois + for new the patch. + * debian/copyright: + - Replace (C) with ©. + + -- Bernd Zeimetz Sun, 10 Jan 2010 11:34:57 +0100 + +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-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-1.1.orig/debian/rules +++ pyicu-1.1/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PKGNAME:=python-pyicu +PYVERS:=$(shell pyversions -vr) + +-include /usr/share/python/python.mk +ifeq (,$(py_sitename)) + py_sitename = site-packages + py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages + py_sitename_sh = $(py_sitename) + py_libdir_sh = $(py_libdir) +endif + + +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=`ls -d $(CURDIR)/build/lib.*-$$py` \ + python$$py $$test ;\ + PYTHONPATH=`ls -d $(CURDIR)/build/lib_d.*-$$py || ls -d $(CURDIR)/build/lib.*-$$py-pydebug` \ + 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) --prefix=/usr $(py_setup_install_args) ;\ + python$$py-dbg setup.py install --root=$(CURDIR)/debian/$(PKGNAME)-dbg --prefix=/usr $(py_setup_install_args) ;\ + 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 CHANGES + dh_compress -X.py + dh_strip -p$(PKGNAME) --dbg-package=$(PKGNAME)-dbg + dh_fixperms + dh_python2 + 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-1.1.orig/debian/compat +++ pyicu-1.1/debian/compat @@ -0,0 +1 @@ +5 --- pyicu-1.1.orig/debian/copyright +++ pyicu-1.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 © 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 © 2007, Bernd Zeimetz and +is licensed under the MIT License, see above. + --- pyicu-1.1.orig/debian/control +++ pyicu-1.1/debian/control @@ -0,0 +1,35 @@ +Source: pyicu +Section: python +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian Python Modules Team +Uploaders: Bernd Zeimetz +Build-Depends: dpatch, debhelper (>= 5.0.37.3), python-all-dev (>= 2.6.6-3~), python-all-dbg (>= 2.6.6-3~), libicu-dev +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.3 +X-Python-Version: >= 2.5 + +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 +Section: debug +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-1.1.orig/debian/README.source +++ pyicu-1.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-1.1.orig/debian/watch +++ pyicu-1.1/debian/watch @@ -0,0 +1,3 @@ +version = 3 + +http://pypi.python.org/packages/source/P/PyICU/PyICU-(.*)\.tar\.gz --- pyicu-1.1.orig/debian/patches/no-setuptools-please.dpatch +++ pyicu-1.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-1.1.orig/debian/patches/00dpatch.conf +++ pyicu-1.1/debian/patches/00dpatch.conf @@ -0,0 +1,2 @@ +conf_debianonly=1 +conf_origtargzpath=../tarballs --- pyicu-1.1.orig/debian/patches/00list +++ pyicu-1.1/debian/patches/00list @@ -0,0 +1,2 @@ +no-setuptools-please +platform-definitions-fix --- pyicu-1.1.orig/debian/patches/platform-definitions-fix.dpatch +++ pyicu-1.1/debian/patches/platform-definitions-fix.dpatch @@ -0,0 +1,47 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## platform-definitions-fix.dpatch by Cyril Brulebois +## +## DP: Fixing FTBFS due to new platform definitions. Setup.py doesn't need to +## DP: take care of them in our case. + +@DPATCH@ +--- pyicu-0.8.1/setup.py ++++ pyicu-0.8.1+kbsd/setup.py +@@ -34,25 +31,33 @@ + 'win32': ['icuin', 'icuuc', 'icudt'], + } + ++my_platform = sys.platform ++# Linux is linux2-* on various platforms (#519099): ++if my_platform.startswith('linux2'): ++ my_platform = 'linux2' ++# GNU/kFreeBSD mostly behaves as GNU/Linux for userland: ++if my_platform.startswith('gnukfreebsd'): ++ my_platform = 'linux2' ++ + if 'PYICU_INCLUDES' in os.environ: + _includes = os.environ['PYICU_INCLUDES'].split(os.pathsep) + else: +- _includes = INCLUDES[sys.platform] ++ _includes = INCLUDES[my_platform] + + if 'PYICU_CFLAGS' in os.environ: + _cflags = os.environ['PYICU_CFLAGS'].split(os.pathsep) + else: +- _cflags = CFLAGS[sys.platform] ++ _cflags = CFLAGS[my_platform] + + if 'PYICU_LFLAGS' in os.environ: + _lflags = os.environ['PYICU_LFLAGS'].split(os.pathsep) + else: +- _lflags = LFLAGS[sys.platform] ++ _lflags = LFLAGS[my_platform] + + if 'PYICU_LIBRARIES' in os.environ: + _libraries = os.environ['PYICU_LIBRARIES'].split(os.pathsep) + else: +- _libraries = LIBRARIES[sys.platform] ++ _libraries = LIBRARIES[my_platform] + + + setup(name="PyICU", --- pyicu-1.1.orig/debian/source/format +++ pyicu-1.1/debian/source/format @@ -0,0 +1 @@ +1.0