Package: python-geoip
Version: 1.2.4-1
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu karmic ubuntu-patch
Hi,
attached is a patch from Ubuntu to build a debug package
of python-geoip. Please consider it for inclusion.
It also appears that the license has changed from GPL to
LGPL. debian/copyright still refers to GPL, but the header
of py_GEOIP.c reads now:
/* py_GeoIP.c
*
* Copyright (C) 2007 MaxMind LLC
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
...
Thanks,
Michael
-- System Information:
Debian Release: squeeze/sid
APT prefers karmic
APT policy: (500, 'karmic')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-10-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u python-geoip-1.2.4/debian/control python-geoip-1.2.4/debian/control
--- python-geoip-1.2.4/debian/control
+++ python-geoip-1.2.4/debian/control
@@ -2,7 +2,7 @@
Section: python
Priority: optional
Maintainer: Josselin Mouette j...@debian.org
-Build-Depends: debhelper (= 5.0.37.2), python-all-dev (= 2.3.5-11), cdbs (= 0.4.43), libgeoip-dev (= 1.4.5), python-support (= 0.3)
+Build-Depends: debhelper (= 5.0.37.2), python-all-dev (= 2.3.5-11), python-all-dbg, cdbs (= 0.4.43), libgeoip-dev, python-support (= 0.3)
Standards-Version: 3.8.2
Package: python-geoip
@@ -17,2 +17,14 @@
- This package contains the Python bindings for GeoIP, allowing to use
- this library within a Python program.
+ This package contains the python bindings for GeoIP, allowing to use
+ this library within a python program.
+
+Package: python-geoip-dbg
+Priority: extra
+Architecture: any
+Depends: python-geoip (= ${Source-Version}), python-dbg, ${shlibs:Depends}
+Description: python bindings for the GeoIP IP-to-country resolver library (debug extension)
+ GeoIP is a library that enables the user to find the country that any
+ IP address or hostname originates from, using a database instead of
+ DNS.
+ .
+ This package contains the python bindings for GeoIP, allowing to use
+ this library within a python program, built for the python debug interpreter.
diff -u python-geoip-1.2.4/debian/rules python-geoip-1.2.4/debian/rules
--- python-geoip-1.2.4/debian/rules
+++ python-geoip-1.2.4/debian/rules
@@ -7,0 +8,21 @@
+
+build/python-geoip-dbg::
+ set -e; \
+ for i in $(cdbs_python_build_versions); do \
+ python$$i-dbg ./setup.py build; \
+ done
+
+install/python-geoip-dbg::
+ for i in $(cdbs_python_build_versions); do \
+ python$$i-dbg ./setup.py install --root $(CURDIR)/debian/python-geoip-dbg --install-layout=deb; \
+ done
+ find debian/python-geoip-dbg \
+ ! -type d ! -name '*_d.so' | xargs rm -f
+ find debian/python-geoip-dbg -depth -empty -exec rmdir {} \;
+
+binary-predeb/python-geoip-dbg::
+ rm -rf debian/python-geoip-dbg/usr/share/doc/python-geoip-dbg
+ ln -s python-geoip debian/python-geoip-dbg/usr/share/doc/python-geoip-dbg
+
+clean::
+ rm -rf build
only in patch2:
unchanged:
--- python-geoip-1.2.4.orig/debian/python-geoip.install
+++ python-geoip-1.2.4/debian/python-geoip.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/python*