debian/0000755000000000000000000000000012313576630007174 5ustar debian/docs0000644000000000000000000000001712173441553010044 0ustar README CREDITS debian/copyright0000644000000000000000000000310512173441553011125 0ustar 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. debian/changelog0000644000000000000000000001664212313576630011057 0ustar pyicu (1.5-2ubuntu4) trusty; urgency=medium * No-change rebuild to drop Python 3.3 support. -- Matthias Klose Sun, 23 Mar 2014 15:28:24 +0000 pyicu (1.5-2ubuntu3) trusty; urgency=medium * No change rebuild against libicu52 -- Dimitri John Ledkov Fri, 27 Dec 2013 05:13:05 +0000 pyicu (1.5-2ubuntu2) saucy; urgency=low * Make the new packages Break and Replace the old (now transitional) ones to avoid file conflicts and failed upgrades. -- Iain Lane Wed, 24 Jul 2013 09:38:34 +0000 pyicu (1.5-2ubuntu1) saucy; urgency=low * Resynchronise with Debian. * Added transitional packages python3-pyicu[-dbg] to migrate to python3-icu[-dbg] -- B. Clausius Sat, 20 Jul 2013 21:40:05 +0200 pyicu (1.5-2) unstable; urgency=low * Rename docs.py to icu_docs.py instead of removing it as it's used in icu (closes: #714048) -- Piotr Ożarowski Tue, 25 Jun 2013 19:22:34 +0200 pyicu (1.5-1) unstable; urgency=low * Team upload. [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Colin Watson ] * Add Python 3 packages (closes: #671361). * Drop manual cleaning of python-pyicu-dbg, since dh_python2 handles this. [ Piotr Ożarowski ] * New upstream release * Convert patches from deprecated dpatch to quilt * Debian source package format changed to 3.0 (quilt) * Add fix_typo_in_deprecation_warning patch (closes: #589031) * Remove docs.py file from binary packages (closes: #603717) * Standards-Version bumped to 3.9.4: - build-arch and build-indep targets added in debian/rules -- Piotr Ożarowski Mon, 24 Jun 2013 22:20:56 +0200 pyicu (1.4-1ubuntu3) raring; urgency=low * Rebuild to drop python3.2 provides. -- Matthias Klose Wed, 07 Nov 2012 23:00:26 +0000 pyicu (1.4-1ubuntu2) raring; urgency=low * No-change upload to build for python3.3. -- Matthias Klose Mon, 22 Oct 2012 17:50:54 +0200 pyicu (1.4-1ubuntu1) quantal; urgency=low * Resynchronise with Debian. Remaining changes: - Add Python 3 packages (see Debian #671361). - Drop manual cleaning of python-pyicu-dbg, since dh_python2 handles this. -- Colin Watson Thu, 21 Jun 2012 11:32:38 +0100 pyicu (1.4-1) unstable; urgency=low [ Jakub Wilk ] * Update platform-definitions-fix.dpatch to treat Hurd like other GNU platforms. [ Bernd Zeimetz ] * New upstream version. * Dropping ICUtzinfo-not-heap-type.dpatch, applied upstream. -- Bernd Zeimetz Thu, 10 May 2012 22:59:17 +0200 pyicu (1.3-1ubuntu1) quantal; urgency=low * Add Python 3 packages (see Debian #671361; uploading in advance of Debian in order to be able to complete a port of ubiquity). * Replace ICUtzinfo-not-heap-type.dpatch with upstream r191, which restores Python 3 compatibility. * Drop manual cleaning of python-pyicu-dbg, since dh_python2 handles this. -- Colin Watson Tue, 15 May 2012 15:38:16 +0100 pyicu (1.3-1) unstable; urgency=low * Team upload. [ Bernd Zeimetz ] * Migrate to dh_python2 (closes: #635633). [ Jakub Wilk ] * New upstream version. + Fix compatiblity with ICU 4.8 (closes: #628584). + Rewrite platform-definitions-fix.dpatch from scratch. + Revert upstream change to make ICUtzinfo a heap type. * Bump standards version to 3.9.2 (no changes needed). * Don't override shared library dependency information for libpython2.X; the exension modules aren't linked to it anyway. -- Jakub Wilk Sun, 13 Nov 2011 12:07:46 +0100 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 debian/compat0000644000000000000000000000000212173441553010371 0ustar 5 debian/patches/0000755000000000000000000000000012173442012010611 5ustar debian/patches/no-setuptools-please.diff0000644000000000000000000000103012173441553015550 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## no-setuptools-please.dpatch by Bernd Zeimetz ## ## DP: As usual - do not build with setuptools. @DPATCH@ Index: PyICU-1.5/setup.py =================================================================== --- PyICU-1.5.orig/setup.py +++ PyICU-1.5/setup.py @@ -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 = '1.5' debian/patches/fix_typo_in_deprecation_warning.patch0000644000000000000000000000064212173441553020276 0ustar Index: PyICU-1.5/PyICU.py =================================================================== --- PyICU-1.5.orig/PyICU.py +++ PyICU-1.5/PyICU.py @@ -23,7 +23,7 @@ import warnings as _warnings -_warnings.warn("Module 'PyICU' is deprecated, import 'icu' instead'", +_warnings.warn("Module 'PyICU' is deprecated, import 'icu' instead", category=DeprecationWarning, stacklevel=2) from icu import * debian/patches/rename_docs_module.patch0000644000000000000000000000042412173441553015467 0ustar Index: PyICU-1.5/icu.py =================================================================== --- PyICU-1.5.orig/icu.py +++ PyICU-1.5/icu.py @@ -34,4 +34,4 @@ class ICUError(Exception): class InvalidArgsError(Exception): pass -from docs import * +from icu_docs import * debian/patches/platform-definitions-fix.diff0000644000000000000000000000113412173441553016374 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## platform-definitions-fix.dpatch by Jakub Wilk ## ## DP: Fixing FTBFS due to new platform definitions. Setup.py doesn't need to ## DP: take care of them in our case. @DPATCH@ Index: PyICU-1.5/setup.py =================================================================== --- PyICU-1.5.orig/setup.py +++ PyICU-1.5/setup.py @@ -48,7 +48,7 @@ LIBRARIES = { } platform = sys.platform -if platform.startswith('linux'): +if platform.startswith('linux') or platform.startswith('gnu'): platform = 'linux' if 'PYICU_INCLUDES' in os.environ: debian/patches/series0000644000000000000000000000016712173441553012043 0ustar no-setuptools-please.diff platform-definitions-fix.diff fix_typo_in_deprecation_warning.patch rename_docs_module.patch debian/control0000644000000000000000000000644512173720223010601 0ustar Source: pyicu Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Python Modules Team Uploaders: Bernd Zeimetz Build-Depends: debhelper (>= 5.0.37.3), python-all-dev (>= 2.6.6-3~), python-all-dbg (>= 2.6.6-3~), python3-all-dev, python3-all-dbg, libicu-dev, # uncoment below line to run test_LayoutEngine at build time (once all Python versions will be supported by these packages) # fonttools, python-numpy-dbg, python3-numpy-dbg Build-Conflicts: python-pyicu Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pyicu/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pyicu/trunk/ Homepage: http://pyicu.osafoundation.org/ Standards-Version: 3.9.4 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. Package: python3-icu Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends} Breaks: python3-pyicu (<< 1.5-2ubuntu1~) Replaces: python3-pyicu (<< 1.5-2ubuntu1~) Provides: ${python3:Provides} Description: Python 3 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 3 which wraps the ICU C++ API. Package: python3-icu-dbg Section: debug Architecture: any Priority: extra Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, python3-icu (= ${binary:Version}), python3-dbg Provides: ${python3:Provides} Description: Python 3 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 3 which wraps the ICU C++ API. . This package contains the extension built for the Python 3 debug interpreter. Package: python3-pyicu Section: oldlibs Architecture: any Depends: python3-icu (= ${binary:Version}) Description: dummy transitional package for PyICU Python 3 extension This is a transitional package to migrate to python3-icu. Once no package depends on it, you may safely remove it. Package: python3-pyicu-dbg Section: oldlibs Architecture: any Priority: extra Depends: python3-icu-dbg (= ${binary:Version}) Description: dummy transitional package for PyICU Python 3 debug extension This is a transitional package to migrate to python3-icu-dbg. Once no package depends on it, you may safely remove it. debian/rules0000755000000000000000000000573312173441553010263 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PKGNAME:=python-pyicu PKG3NAME=python3-icu PYVERS:=$(shell pyversions -vr) PY3VERS:=$(shell py3versions -vr) -include /usr/share/python/python.mk build: build-arch build-indep: # We have nothing to do by default. build-arch: build-stamp build-stamp: dh_testdir # setup.py modifies test source files when building for Python 3, so # build out of tree. rm -rf build/py2 build/py3 mkdir -p build/py2 build/py3 cp -a $(filter-out build/py2 build/py3 debian,$(wildcard *)) build/py2/ cp -a $(filter-out build/py2 build/py3 debian,$(wildcard *)) build/py3/ set -e; \ for py in $(PYVERS) $(PY3VERS); do \ (cd build/py$${py%%.*}; \ python$$py setup.py build; \ python$$py-dbg setup.py build); \ done set -e; \ for file in `find $(CURDIR)/build -type f -name docs.py`; do \ mv "$$file" "`dirname $$file`/icu_docs.py"; done ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) set -ex ;\ for test in `ls test/*.py`; do \ for py in $(PYVERS) $(PY3VERS); do \ (cd build/py$${py%%.*}; \ PYTHONPATH=`ls -d $$(pwd)/build/lib.*-$$py` \ python$$py $$test ;\ PYTHONPATH=`ls -d $$(pwd)/build/lib_d.*-$$py || ls -d $$(pwd)/build/lib.*-$$py-pydebug` \ python$$py-dbg $$test) ;\ done ;\ done endif touch $@ clean: dh_testdir dh_testroot rm -f install-stamp build-stamp find . -name "*.pyc" -print0 | xargs -0 rm -f find . -name __pycache__ -print0 | xargs -0 rm -rf 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 \ (cd build/py2; \ 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 set -e; \ for py in $(PY3VERS); do \ (cd build/py3; \ python$$py setup.py install --root=$(CURDIR)/debian/$(PKG3NAME) --prefix=/usr $(py_setup_install_args) ;\ python$$py-dbg setup.py install --root=$(CURDIR)/debian/$(PKG3NAME)-dbg --prefix=/usr $(py_setup_install_args)) ;\ done dh_installdocs dh_installexamples touch install-stamp binary-indep: build-indep install # We have nothing to do by default. binary-arch: build-arch install dh_testdir dh_testroot dh_installchangelogs CHANGES dh_compress -X.py dh_strip -p$(PKGNAME) --dbg-package=$(PKGNAME)-dbg dh_strip -p$(PKG3NAME) --dbg-package=$(PKG3NAME)-dbg dh_fixperms dh_python2 dh_python3 rm -rf debian/$(PKGNAME)-dbg/usr/share/doc/$(PKGNAME)-dbg ln -s $(PKGNAME) debian/$(PKGNAME)-dbg/usr/share/doc/$(PKGNAME)-dbg rm -rf debian/$(PKG3NAME)-dbg/usr/share/doc/$(PKG3NAME)-dbg ln -s $(PKG3NAME) debian/$(PKG3NAME)-dbg/usr/share/doc/$(PKG3NAME)-dbg dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/source/0000755000000000000000000000000012173442012010462 5ustar debian/source/format0000644000000000000000000000001412173441553011701 0ustar 3.0 (quilt) debian/README.source0000644000000000000000000000031712173441553011353 0ustar 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 debian/watch0000644000000000000000000000012012173441553010215 0ustar version = 3 http://pypi.python.org/packages/source/P/PyICU/PyICU-(.*)\.tar\.gz