--- python-ipaddr-2.0.0.orig/debian/README.source +++ python-ipaddr-2.0.0/debian/README.source @@ -0,0 +1,58 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. + --- python-ipaddr-2.0.0.orig/debian/copyright +++ python-ipaddr-2.0.0/debian/copyright @@ -0,0 +1,32 @@ +This package was debianized by Scott Kitterman on +Sun, 24 Jan 2010 15:45:45 -0500. + +It was downloaded from + +Upstream Author: + + Google + +Copyright: + + Copyright © 2007, 2008 Google Inc. + +License: + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied. See the License for the specific language governing + permissions and limitations under the License. + +See /usr/share/common-licenses/Apache-2.0 for the full text of the license + +The Debian packaging is © 2010, Scott Kitterman and +is licensed under the same terms as the upstream package, see above. + --- python-ipaddr-2.0.0.orig/debian/watch +++ python-ipaddr-2.0.0/debian/watch @@ -0,0 +1,4 @@ +version=3 + +http://code.google.com/p/ipaddr-py/downloads/list \ +http://ipaddr-py.googlecode.com/files/ipaddr-([0-9]\..*)\.tar\.gz --- python-ipaddr-2.0.0.orig/debian/control +++ python-ipaddr-2.0.0/debian/control @@ -0,0 +1,27 @@ +Source: python-ipaddr +Section: python +Priority: optional +Maintainer: Scott Kitterman +Uploaders: Debian Python Modules Team +Build-Depends: debhelper (>= 7.2.11), quilt (>= 0.46-7) +Build-Depends-Indep: python-all (>= 2.5.4-2~), python-support (>= 0.6.4) +Standards-Version: 3.8.3 +Homepage: http://code.google.com/p/ipaddr-py/ +XS-Python-Version: >= 2.4 +Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-ipaddr/trunk/ +Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-ipaddr/trunk/ +DM-Upload-Allowed: yes + +Package: python-ipaddr +Architecture: all +Depends: ${python:Depends}, ${misc:Depends} +Description: Python module for working with IP addresses, both IPv4 and IPv6 + A fast, lightweight IPv4/IPv6 manipulation library in Python. + . + This library is used to create/poke/manipulate IPv4 and IPv6 addresses + and networks. + . + This is a pure Python implementation of classes for IPv4/6 addresses and + networks. It supports comparisons to determine if IP addresses are contained + inside a defined network, conversion of lists of IP addresses into compact + CIDR lists, and other IP address manipulation --- python-ipaddr-2.0.0.orig/debian/rules +++ python-ipaddr-2.0.0/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +%: + dh $@ --with quilt + --- python-ipaddr-2.0.0.orig/debian/changelog +++ python-ipaddr-2.0.0/debian/changelog @@ -0,0 +1,6 @@ +python-ipaddr (2.0.0-1) unstable; urgency=low + + * Initial release (Closes: #566724) + + -- Scott Kitterman Sun, 24 Jan 2010 15:44:45 -0500 + --- python-ipaddr-2.0.0.orig/debian/compat +++ python-ipaddr-2.0.0/debian/compat @@ -0,0 +1 @@ +7 --- python-ipaddr-2.0.0.orig/debian/patches/IPv4IpValidationError +++ python-ipaddr-2.0.0/debian/patches/IPv4IpValidationError @@ -0,0 +1,15 @@ +Reported upstream as http://code.google.com/p/ipaddr-py/issues/detail?id=55 + +Index: python-ipaddr-2.0.0/ipaddr.py +=================================================================== +--- python-ipaddr-2.0.0.orig/ipaddr.py 2010-01-25 01:13:01.000000000 -0500 ++++ python-ipaddr-2.0.0/ipaddr.py 2010-01-25 01:13:28.000000000 -0500 +@@ -1656,7 +1656,7 @@ + return None + try: + return IPv4Address(int('%s%s' % (hextets[-2], hextets[-1]), 16)) +- except IPv4IpvalidationError: ++ except IPv4IpValidationError: + return None + + --- python-ipaddr-2.0.0.orig/debian/patches/Invalid_exception_names +++ python-ipaddr-2.0.0/debian/patches/Invalid_exception_names @@ -0,0 +1,21 @@ +http://code.google.com/p/ipaddr-py/issues/detail?id=50 + +Index: python-ipaddr-2.0.0/ipaddr.py +=================================================================== +--- python-ipaddr-2.0.0.orig/ipaddr.py 2010-01-25 00:47:52.000000000 -0500 ++++ python-ipaddr-2.0.0/ipaddr.py 2010-01-25 00:49:03.000000000 -0500 +@@ -137,12 +137,12 @@ + + try: + return IPv4Address(address) +- except (IPv4IpValidationError, IPv6NetmaskValidationError): ++ except (IPv4IpValidationError, IPv4NetmaskValidationError): + pass + + try: + return IPv6Address(address) +- except (IPv6ValidationError, IPv6NetmaskValidationError): ++ except (IPv6IpValidationError, IPv6NetmaskValidationError): + pass + + raise ValueError('%r does not appear to be an IPv4 or IPv6 address' % --- python-ipaddr-2.0.0.orig/debian/patches/NameError_checking_prefixlen_IPv6Network +++ python-ipaddr-2.0.0/debian/patches/NameError_checking_prefixlen_IPv6Network @@ -0,0 +1,15 @@ +http://code.google.com/p/ipaddr-py/issues/detail?id=51 + +Index: python-ipaddr-2.0.0/ipaddr.py +=================================================================== +--- python-ipaddr-2.0.0.orig/ipaddr.py 2010-01-25 01:01:38.000000000 -0500 ++++ python-ipaddr-2.0.0/ipaddr.py 2010-01-25 01:02:08.000000000 -0500 +@@ -1780,7 +1780,7 @@ + addr = str(address).split('/') + + if len(addr) > 2: +- raise IPv6IpValidationError(ipaddr) ++ raise IPv6IpValidationError(address) + + if not self._is_valid_ip(addr[0]): + raise IPv6IpValidationError(addr[0]) --- python-ipaddr-2.0.0.orig/debian/patches/series +++ python-ipaddr-2.0.0/debian/patches/series @@ -0,0 +1,3 @@ +Invalid_exception_names +NameError_checking_prefixlen_IPv6Network +IPv4IpValidationError