[Python-modules-commits] [pycurl] 110/140: pycurl (7.19.0-7) unstable; urgency=low

Barry Warsaw barry at moszumanska.debian.org
Wed Oct 1 21:45:14 UTC 2014


This is an automated email from the git hooks/post-receive script.

barry pushed a commit to branch master
in repository pycurl.

commit f9b8022e7bd3dc21a7c9b0c0dc8fbc1ec092b530
Author: Sandro Tosi <morph at debian.org>
Date:   Fri Jun 14 20:14:33 2013 +0200

    pycurl (7.19.0-7) unstable; urgency=low
    
      [ Jakub Wilk ]
      * Use canonical URIs for Vcs-* fields.
    
      [ Sandro Tosi ]
      * Upload to unstable
      * debian/patches/50_dont_leak_user_agent.patch
        - fix memory leak in reset(); thanks to Örjan Persson for the report and
          patch; Closes: #709226
---
 debian/TODO                                        |   1 +
 debian/changelog                                   | 459 +++++++++++++++++++++
 debian/compat                                      |   1 +
 debian/control                                     |  32 ++
 debian/copyright                                   |  49 +++
 debian/patches/10_setup.py.patch                   |  21 +
 debian/patches/20_remove_string_options.patch      | 165 ++++++++
 .../30_fix_refcounts_calling_reset_twice.patch     | 152 +++++++
 ...CURLOPT_SEEKFUNCTION_and_CURLOPT_SEEKDATA.patch | 142 +++++++
 debian/patches/50_dont_leak_user_agent.patch       |  43 ++
 debian/patches/series                              |   5 +
 debian/python-pycurl.dirs                          |   1 +
 debian/python-pycurl.doc-base                      |   9 +
 debian/rules                                       |  84 ++++
 debian/source/format                               |   1 +
 debian/watch                                       |   2 +
 16 files changed, 1167 insertions(+)

diff --git a/debian/TODO b/debian/TODO
new file mode 100644
index 0000000..3b093e3
--- /dev/null
+++ b/debian/TODO
@@ -0,0 +1 @@
+- check what tests can be executed even on buildd machines (no network and so)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f76dce9
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,459 @@
+pycurl (7.19.0-7) unstable; urgency=low
+
+  [ Jakub Wilk ]
+  * Use canonical URIs for Vcs-* fields.
+
+  [ Sandro Tosi ]
+  * Upload to unstable
+  * debian/patches/50_dont_leak_user_agent.patch
+    - fix memory leak in reset(); thanks to Örjan Persson for the report and
+      patch; Closes: #709226
+
+ -- Sandro Tosi <morph at debian.org>  Fri, 14 Jun 2013 20:14:33 +0200
+
+pycurl (7.19.0-6) experimental; urgency=low
+
+  * debian/patches/20_remove_string_options.patch
+    - No longer keep copies of string options since this is managed by libcurl,
+      needed to have pycurl.c in sync with upstream CVS, and apply further
+      patches
+  * debian/patches/30_fix_refcounts_calling_reset_twice.patch
+    - Fixes refcount bug and provides better organization of PyCurl object,
+      allowing to call reset() multiple time; thansk to Emmanuel Bouthenot for
+      the report; Closes: #690187
+  * debian/patches/40_add_CURLOPT_SEEKFUNCTION_and_CURLOPT_SEEKDATA.patch
+    - Added CURLOPT_SEEKFUNCTION, CURLOPT_SEEKDATA
+  * debian/control
+    - bump Standards-Version t0 3.9.3 (no changes needed)
+
+ -- Sandro Tosi <morph at debian.org>  Sun, 28 Oct 2012 11:20:44 +0100
+
+pycurl (7.19.0-5) unstable; urgency=low
+
+  * debian/rules
+    - install debug files where gdb will look for them
+  * debian/pyversions
+    - removed, not needed
+  * debian/control
+    - bump Standards-Version to 3.9.2 (no changes needed)
+    - removed Conflicts/Replaces/Provides, not needed
+    - added libssh2-1-dev to build-depends; thanks to Jakub Wilk for the report;
+      Closes: #658952
+  * Convert to 3.0 (quilt) source format
+  * Convert to Debhelper 7
+
+ -- Sandro Tosi <morph at debian.org>  Sat, 11 Feb 2012 17:22:11 +0100
+
+pycurl (7.19.0-4) unstable; urgency=low
+
+  * Add the now!? missing librtmp-dev build-dependency.
+
+ -- Bernd Zeimetz <bzed at debian.org>  Sat, 16 Apr 2011 19:37:02 +0200
+
+pycurl (7.19.0-3) unstable; urgency=low
+
+  * Fix FTBFS on kfreebsd, thanks to KiBi (Closes: #540980).
+  * Bump Standards-version to 3.8.3, no changes needed. 
+
+ -- Bernd Zeimetz <bzed at debian.org>  Sun, 27 Sep 2009 18:03:31 +0200
+
+pycurl (7.19.0-2) unstable; urgency=low
+
+  [ Sandro Tosi ]
+  * debian/control
+    - bump Standards-Version to 3.8.2 (no changes needed)
+
+  [ Bernd Zeimetz ]
+  * Use /usr/bin/curl-config --version to find the libcurl version
+    to depend on (Closes: #527546). Thanks to Samuel Bronson.
+
+ -- Bernd Zeimetz <bzed at debian.org>  Fri, 07 Aug 2009 18:00:37 +0200
+
+pycurl (7.19.0-1) unstable; urgency=low
+
+  [ Bernd Zeimetz ]
+  * debian/control:
+    - Rising the priority to optional, as we have rdepends in optional.
+  * Switching from python-central to python-support. 
+  * Support building for Python 2.6. 
+
+  [ Sandro Tosi ]
+  * New upstream release.
+  * debian/control
+    - bump libcurl4-gnutls-dev versioned depends to >= 7.19.0
+    - updated my email address
+    - bump Standards-Version to 3.8.1
+      + added debian/README.source
+    - added Vcs-{Browser,Svn} fields
+    - added ${misc:Depends} to binary packages
+    - switch Vcs-Browser field to viewsvn
+    - adjusted section to 'debug' for -dbg package
+    - force libcurl3-gnutls depends to at least on version 7.19.0;
+      Closes: #527546
+  * debian/patches/10_setup.py.dpatch
+    - added description (to please lintian) and updated my email address
+  * debian/copyright
+    - used the correct location of LGPL 2.1 on local machine
+
+ -- Bernd Zeimetz <bzed at debian.org>  Fri, 15 May 2009 22:33:30 +0200
+
+pycurl (7.18.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Bernd Zeimetz <bzed at debian.org>  Mon, 16 Jun 2008 13:15:53 +0200
+
+pycurl (7.18.1-1) unstable; urgency=low
+
+  [ Sandro Tosi ]
+  * Adopting packages (Closes: #481074)
+  * New upstream release.
+  * debian/control
+    - set the team as Maintainer
+    - added Bernd Zeimetz and me in Uploaders, removing Matthias Klose
+    - bumped Build-Dep on libcurl4-gnutls-dev to (>= 7.18.1)
+    - added dpatch Build-Dep
+    - bumped Standards-Version to 3.7.3 (no changes)
+    - moved Homepage field to source stanza
+    - updated dependency for -dbg extension to python-pycurl to use
+      ${binary:Version}, to be binNMU safe
+    - fixed a mispell of Python in Description
+  * debian/rules
+    - added dpatch stuff
+    - using setup.py for install and clean targets
+    - running some tests at build-time
+  * debian/patches/10_setup.py.dpatch
+    - added to remove direct upstream code modification
+  * debian/python-pycurl.doc-base
+    - Section updated to Programming/Python
+  * debian/copyright
+    - indented upstream authors, copyright and license with 4 spaces
+    - separated copyright and license notice
+    - extended years in Copyright notice
+    - explicitly identified LGPL location on filesystem
+    - added dual licensing, including MIT license text
+
+ -- Bernd Zeimetz <bzed at debian.org>  Mon, 02 Jun 2008 19:17:08 +0200
+
+pycurl (7.16.4-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Wed, 18 Jul 2007 17:54:16 +0200
+
+pycurl (7.16.2.1-3) unstable; urgency=low
+
+  * Fixed package description (closes: #423905).
+  * Merge from Ubuntu:
+    - build a python-pycurl-dbg package.
+
+ -- Domenico Andreoli <cavok at debian.org>  Mon, 28 May 2007 01:14:33 +0200
+
+pycurl (7.16.2.1-2) unstable; urgency=low
+
+  * Proper SSL library flavour is now known during build.
+
+ -- Domenico Andreoli <cavok at debian.org>  Mon, 14 May 2007 01:17:33 +0200
+
+pycurl (7.16.2.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * Build depends on libcurl4-gnutls-dev (closes: #423446, #423632).
+  * Use dh_pycentral instead of dh_python.
+
+ -- Domenico Andreoli <cavok at debian.org>  Thu, 10 May 2007 16:29:02 +0200
+
+pycurl (7.15.5-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Fri, 11 Aug 2006 08:58:26 +0200
+
+pycurl (7.15.4.2-2) unstable; urgency=low
+
+  * Fixed reversed logic in acquring python thread lock (closes: #380156).
+    Patch courtesy of Bastian Kleineidam.
+
+ -- Domenico Andreoli <cavok at debian.org>  Tue,  8 Aug 2006 08:22:16 +0200
+
+pycurl (7.15.4.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Tue, 25 Jul 2006 11:01:26 +0200
+
+pycurl (7.15.4-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Tue, 27 Jun 2006 17:16:37 +0200
+
+pycurl (7.15.2-2) unstable; urgency=low
+
+  * Adopt to the new python policy.
+
+ -- Matthias Klose <doko at debian.org>  Fri, 16 Jun 2006 18:49:11 +0200
+
+pycurl (7.15.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Adopted debhelper's compatibility level 5.
+
+ -- Domenico Andreoli <cavok at debian.org>  Tue,  7 Mar 2006 10:05:16 +0100
+
+pycurl (7.15.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Tue, 18 Oct 2005 11:22:23 +0200
+
+pycurl (7.14.1-1) experimental; urgency=low
+
+  * New upstream release.
+  * Switched to libcurl3-gnutls-dev build dependency.
+
+ -- Domenico Andreoli <cavok at debian.org>  Sun, 18 Sep 2005 00:48:54 +0200
+
+pycurl (7.14.0-2) unstable; urgency=low
+
+  * Matthias Klose:
+    - Dropped package python2.2-pycurl.
+    - Improved the build process.
+
+  * Domenico Andreoli:
+    - Applied Matthias' patch :) (closes: #320064).
+
+ -- Domenico Andreoli <cavok at debian.org>  Thu,  4 Aug 2005 00:33:41 +0200
+
+pycurl (7.14.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Mon, 20 Jun 2005 11:34:16 +0200
+
+pycurl (7.13.2-2) unstable; urgency=low
+
+  * Applied patch to build also on GNU/kFreeBSD (closes: #304857).
+
+ -- Domenico Andreoli <cavok at debian.org>  Sat, 16 Apr 2005 13:32:16 +0200
+
+pycurl (7.13.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Fri,  8 Apr 2005 18:13:35 +0200
+
+pycurl (7.13.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Mon,  7 Mar 2005 14:51:16 +0100
+
+pycurl (7.13.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Sat, 12 Feb 2005 23:52:49 +0100
+
+pycurl (7.12.3-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Sat,  1 Jan 2005 22:05:24 +0100
+
+pycurl (7.12.2-4) unstable; urgency=low
+
+  * python2.4-pycurl now correctly suggests libcurl3-dev
+
+ -- Domenico Andreoli <cavok at debian.org>  Tue, 21 Dec 2004 09:21:48 +0100
+
+pycurl (7.12.2-3) unstable; urgency=low
+
+  * New python2.4-pycurl package.
+  * Added watch file.
+
+ -- Domenico Andreoli <cavok at debian.org>  Wed,  1 Dec 2004 00:07:48 +0100
+
+pycurl (7.12.2-2) unstable; urgency=low
+
+  * Updated build dependency on libcurl3-dev >= 7.12.2.
+
+ -- Domenico Andreoli <cavok at debian.org>  Sat,  6 Nov 2004 12:09:52 +0100
+
+pycurl (7.12.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Added Matthias Klose as uploader.
+
+ -- Domenico Andreoli <cavok at debian.org>  Sat,  6 Nov 2004 11:31:31 +0100
+
+pycurl (7.12.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Mon, 16 Aug 2004 14:44:16 +0200
+
+pycurl (7.12-2) unstable; urgency=low
+
+  * Upgraded to libcurl3.
+
+ -- Domenico Andreoli <cavok at debian.org>  Tue, 20 Jul 2004 12:26:21 +0200
+
+pycurl (7.12-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Sat, 12 Jun 2004 19:14:23 +0200
+
+pycurl (7.11.3-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Mon, 17 May 2004 18:22:29 +0200
+
+pycurl (7.11.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Wed, 28 Apr 2004 11:21:39 +0200
+
+pycurl (7.11.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Mon, 22 Mar 2004 14:31:06 +0100
+
+pycurl (7.11.0-2) unstable; urgency=low
+
+  * Fixed build depends on libcurl2-dev (>= 7.11.0-1).
+
+ -- Domenico Andreoli <cavok at debian.org>  Thu,  4 Mar 2004 17:55:02 +0100
+
+pycurl (7.11.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Thu,  4 Mar 2004 17:20:37 +0100
+
+pycurl (7.10.8-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Tue, 11 Nov 2003 23:46:59 +0100
+
+pycurl (7.10.6-1) unstable; urgency=low
+
+  * New upstream release (closes: #206658).
+
+ -- Domenico Andreoli <cavok at debian.org>  Fri, 22 Aug 2003 13:41:09 +0200
+
+pycurl (7.10.5-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Mon, 14 Jul 2003 19:22:53 +0200
+
+pycurl (7.10.4.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Mon, 12 May 2003 21:17:44 +0200
+
+pycurl (7.10.4-1) unstable; urgency=low
+
+  * New upstream release.
+  * Changed section to python.
+  * New python2.3-pycurl package.
+
+ -- Domenico Andreoli <cavok at debian.org>  Fri,  4 Apr 2003 23:47:19 +0200
+
+pycurl (7.10.3-2) unstable; urgency=low
+
+  * Updated build dependencies in order to use new libcurl2-dev package
+    (closes: #179230).
+
+ -- Domenico Andreoli <cavok at debian.org>  Thu,  6 Feb 2003 02:39:52 +0100
+
+pycurl (7.10.3-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Thu, 16 Jan 2003 00:51:21 +0100
+
+pycurl (7.10.2-2) unstable; urgency=low
+
+  * It now suggests libcurl-dev for documentation (closes: #171402).
+  * Improved long description.
+  * Added file README.Debian to explain why a PycURL user may be willing
+    to install libcurl-dev package.
+
+ -- Domenico Andreoli <cavok at debian.org>  Wed, 18 Dec 2002 02:02:17 +0100
+
+pycurl (7.10.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Sun, 24 Nov 2002 15:41:40 +0100
+
+pycurl (7.10.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Wed, 16 Oct 2002 19:59:22 +0200
+
+pycurl (7.10-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Wed,  2 Oct 2002 23:07:23 +0200
+
+pycurl (7.9.8.4-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Wed,  2 Oct 2002 01:21:35 +0200
+
+pycurl (7.9.8.2-3) unstable; urgency=low
+
+  * It is now built using python 2.2.
+  * Fixed the last reference to unversioned python in debian/rules
+    (closes: #161201).
+
+ -- Domenico Andreoli <cavok at debian.org>  Wed, 18 Sep 2002 02:38:42 +0200
+
+pycurl (7.9.8.2-2) unstable; urgency=low
+
+  * Fixed the incorrect assumption of python being python2.1
+    (closes: #160315).
+
+ -- Domenico Andreoli <cavok at debian.org>  Fri, 13 Sep 2002 03:15:57 +0200
+
+pycurl (7.9.8.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Wed, 17 Jul 2002 01:10:53 +0200
+
+pycurl (7.9.8.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Fri, 28 Jun 2002 00:39:20 +0200
+
+pycurl (7.9.8-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Domenico Andreoli <cavok at debian.org>  Tue, 25 Jun 2002 20:45:13 +0200
+
+pycurl (7.9.7-2) unstable; urgency=low
+
+  * Fixed the assumption on i586 as the build system (closes: #150001).
+
+ -- Domenico Andreoli <cavok at debian.org>  Sat, 15 Jun 2002 15:39:41 +0200
+
+pycurl (7.9.7-1) unstable; urgency=low
+
+  * Initial release (closes: #149581).
+
+ -- Domenico Andreoli <cavok at debian.org>  Mon, 10 Jun 2002 19:48:05 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0a48d89
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,32 @@
+Source: pycurl
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Sandro Tosi <morph at debian.org>, Bernd Zeimetz <bzed at debian.org>
+Build-Depends: debhelper (>= 7.0.50~), python-all-dev (>= 2.3.5-9), python-all-dbg, python-support (>= 0.7.1), libcurl4-gnutls-dev (>= 7.19.0), librtmp-dev, libssh2-1-dev
+Standards-Version: 3.9.3
+X-Python-Version: all
+Homepage: http://pycurl.sourceforge.net
+Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pycurl/trunk/
+Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pycurl/trunk/
+
+Package: python-pycurl
+Architecture: any
+Suggests: libcurl4-gnutls-dev, python-pycurl-dbg
+Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}
+Description: Python bindings to libcurl
+ This module provides the Python bindings to libcurl. Please refer to
+ the libcurl documentation available in libcurl4-gnutls-dev Debian package.
+ .
+ NOTE: the SSL support is provided by GnuTLS.
+
+Package: python-pycurl-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${shlibs:Depends}, python-dbg, python-pycurl (= ${binary:Version}), ${misc:Depends}
+Description: Python bindings to libcurl (debug extension)
+ This module provides the Python bindings to libcurl. Please refer to
+ the libcurl documentation available in libcurl4-gnutls-dev Debian package.
+ .
+ This package contains the extension built for the Python debug interpreter.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d2267a2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,49 @@
+This package was debianized by Domenico Andreoli <cavok at debian.org> on
+Mon, 10 Jun 2002 19:48:05 +0200.
+
+It was downloaded from http://pycurl.sourceforge.net
+
+Upstream Authors:
+
+    Kjetil Jacobsen <kjetilja at cs.uit.no> 
+    Markus F.X.J. Oberhumer <markus at oberhumer.com>
+
+Copyright:
+
+    Copyright (C) 2001-2008 by Kjetil Jacobsen <kjetilja at gmail.com>
+    Copyright (C) 2001-2008 by Markus F.X.J. Oberhumer <markus at oberhumer.com>
+
+License:
+
+    PycURL is dual licensed under the LGPL (either version 2.1 or later)
+    and an MIT/X derivative license based on the cURL license. You can
+    redistribute and/or modify PycURL according to the terms of either
+    license.
+
+On Debian GNU/Linux systems, the complete text of the GNU Lesser General
+Public License can be found in '/usr/share/common-licenses/LGPL-2.1'.
+
+MIT License text follows:
+
+    COPYRIGHT AND PERMISSION NOTICE
+
+    Copyright (C) 2001-2008 by Kjetil Jacobsen <kjetilja at gmail.com>
+    Copyright (C) 2001-2008 by Markus F.X.J. Oberhumer <markus at oberhumer.com>
+
+    All rights reserved.
+
+    Permission to use, copy, modify, and distribute this software for any purpose
+    with or without fee is hereby granted, provided that the above copyright
+    notice and this permission notice appear in all copies.
+
+    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 OF THIRD PARTY RIGHTS. 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.
+
+    Except as contained in this notice, the name of a copyright holder shall not
+    be used in advertising or otherwise to promote the sale, use or other dealings
+    in this Software without prior written authorization of the copyright holder.
diff --git a/debian/patches/10_setup.py.patch b/debian/patches/10_setup.py.patch
new file mode 100644
index 0000000..800df4f
--- /dev/null
+++ b/debian/patches/10_setup.py.patch
@@ -0,0 +1,21 @@
+Author: Sandro Tosi <morph at debian.org>
+Description: Adjust setup.py file for Debian architecture
+--- pycurl-7.19.0.orig/setup.py
++++ pycurl-7.19.0/setup.py
+@@ -17,7 +17,7 @@
+ from distutils.version import LooseVersion
+ 
+ include_dirs = []
+-define_macros = []
++define_macros = [ ('HAVE_CURL_GNUTLS', 1) ]
+ library_dirs = []
+ libraries = []
+ runtime_library_dirs = []
+@@ -188,7 +188,6 @@
+     maintainer_email="kjetilja at gmail.com, markus at oberhumer.com",
+     url="http://pycurl.sourceforge.net/",
+     license="LGPL/MIT",
+-    data_files=get_data_files(),
+     ext_modules=[ext],
+     long_description="""
+ This module provides Python bindings for the cURL library.""",
diff --git a/debian/patches/20_remove_string_options.patch b/debian/patches/20_remove_string_options.patch
new file mode 100644
index 0000000..901701e
--- /dev/null
+++ b/debian/patches/20_remove_string_options.patch
@@ -0,0 +1,165 @@
+Description: No longer keep copies of string options since this is managed by libcurl
+Origin: http://pycurl.cvs.sourceforge.net/viewvc/pycurl/pycurl/src/pycurl.c?r1=1.147&r2=1.148
+
+--- pycurl-7.19.0.orig/src/pycurl.c	2008/09/09 17:40:34	1.147
++++ pycurl-7.19.0/src/pycurl.c	2008/09/29 10:56:57	1.148
+@@ -1,4 +1,4 @@
+-/* $Id: pycurl.c,v 1.147 2008/09/09 17:40:34 kjetilja Exp $ */
++/* $Id: pycurl.c,v 1.148 2008/09/29 10:56:57 kjetilja Exp $ */
+ 
+ /* PycURL -- cURL Python module
+  *
+@@ -97,12 +97,6 @@
+ /* Calculate the number of OBJECTPOINT options we need to store */
+ #define OPTIONS_SIZE    ((int)CURLOPT_LASTENTRY % 10000)
+ #define MOPTIONS_SIZE   ((int)CURLMOPT_LASTENTRY % 10000)
+-static int OPT_INDEX(int o)
+-{
+-    assert(o >= CURLOPTTYPE_OBJECTPOINT);
+-    assert(o < CURLOPTTYPE_OBJECTPOINT + OPTIONS_SIZE);
+-    return o - CURLOPTTYPE_OBJECTPOINT;
+-}
+ 
+ /* Type objects */
+ static PyObject *ErrorObject = NULL;
+@@ -161,7 +155,6 @@
+     PyObject *writedata_fp;
+     PyObject *writeheader_fp;
+     /* misc */
+-    void *options[OPTIONS_SIZE];    /* for OBJECTPOINT options */
+     char error[CURL_ERROR_SIZE+1];
+ } CurlObject;
+ 
+@@ -741,7 +734,6 @@
+     self->writeheader_fp = NULL;
+ 
+     /* Zero string pointer memory buffer used by setopt */
+-    memset(self->options, 0, sizeof(self->options));
+     memset(self->error, 0, sizeof(self->error));
+ 
+     return self;
+@@ -804,7 +796,6 @@
+         free(s);
+         goto error;
+     }
+-    self->options[ OPT_INDEX(CURLOPT_USERAGENT) ] = s; s = NULL;
+ 
+     /* Success - return new object */
+     return self;
+@@ -872,7 +863,6 @@
+ util_curl_close(CurlObject *self)
+ {
+     CURL *handle;
+-    int i;
+ 
+     /* Zero handle and thread-state to disallow any operations to be run
+      * from now on */
+@@ -916,16 +906,6 @@
+     SFREE(self->postquote);
+     SFREE(self->prequote);
+ #undef SFREE
+-
+-    /* Last, free the options.  This must be done after the curl handle
+-     * is closed since libcurl assumes that some options are valid when
+-     * invoking curl_easy_cleanup(). */
+-    for (i = 0; i < OPTIONS_SIZE; i++) {
+-        if (self->options[i] != NULL) {
+-            free(self->options[i]);
+-            self->options[i] = NULL;
+-        }
+-    }
+ }
+ 
+ 
+@@ -1424,8 +1404,6 @@
+ static PyObject*
+ do_curl_reset(CurlObject *self)
+ {
+-    unsigned int i;
+-
+     curl_easy_reset(self->handle);
+ 
+     /* Decref callbacks and file handles */
+@@ -1443,15 +1421,6 @@
+     SFREE(self->postquote);
+     SFREE(self->prequote);
+ #undef SFREE
+-
+-    /* Last, free the options */
+-    for (i = 0; i < OPTIONS_SIZE; i++) {
+-        if (self->options[i] != NULL) {
+-            free(self->options[i]);
+-            self->options[i] = NULL;
+-        }
+-    }
+-
+     return Py_None;
+ }
+ 
+@@ -1461,7 +1430,6 @@
+ util_curl_unsetopt(CurlObject *self, int option)
+ {
+     int res;
+-    int opt_index = -1;
+ 
+ #define SETOPT2(o,x) \
+     if ((res = curl_easy_setopt(self->handle, (o), (x))) != CURLE_OK) goto error
+@@ -1502,7 +1470,6 @@
+     case CURLOPT_SSL_CIPHER_LIST:
+     case CURLOPT_USERPWD:
+         SETOPT((char *) 0);
+-        opt_index = OPT_INDEX(option);
+         break;
+ 
+     /* info: we explicitly list unsupported options here */
+@@ -1512,11 +1479,6 @@
+         return NULL;
+     }
+ 
+-    if (opt_index >= 0 && self->options[opt_index] != NULL) {
+-        free(self->options[opt_index]);
+-        self->options[opt_index] = NULL;
+-    }
+-
+     Py_INCREF(Py_None);
+     return Py_None;
+ 
+@@ -1587,8 +1549,6 @@
+     if (PyString_Check(obj)) {
+         char *str = NULL;
+         Py_ssize_t len = -1;
+-        char *buf;
+-        int opt_index;
+ 
+         /* Check that the option specified a string as well as the input */
+         switch (option) {
+@@ -1651,28 +1611,12 @@
+         }
+         /* Allocate memory to hold the string */
+         assert(str != NULL);
+-        if (len <= 0)
+-            buf = strdup(str);
+-        else {
+-            buf = (char *) malloc(len);
+-            if (buf) memcpy(buf, str, len);
+-        }
+-        if (buf == NULL)
+-            return PyErr_NoMemory();
+         /* Call setopt */
+-        res = curl_easy_setopt(self->handle, (CURLoption)option, buf);
++        res = curl_easy_setopt(self->handle, (CURLoption)option, str);
+         /* Check for errors */
+         if (res != CURLE_OK) {
+-            free(buf);
+             CURLERROR_RETVAL();
+         }
+-        /* Save allocated option buffer */
+-        opt_index = OPT_INDEX(option);
+-        if (self->options[opt_index] != NULL) {
+-            free(self->options[opt_index]);
+-            self->options[opt_index] = NULL;
+-        }
+-        self->options[opt_index] = buf;
+         Py_INCREF(Py_None);
+         return Py_None;
+     }
diff --git a/debian/patches/30_fix_refcounts_calling_reset_twice.patch b/debian/patches/30_fix_refcounts_calling_reset_twice.patch
new file mode 100644
index 0000000..1180cdd
--- /dev/null
+++ b/debian/patches/30_fix_refcounts_calling_reset_twice.patch
@@ -0,0 +1,152 @@
+Description: Fixes refcount bug and provides better organization of PyCurl object. Submitted by dbprice1.
+Origin: http://pycurl.cvs.sourceforge.net/viewvc/pycurl/pycurl/src/pycurl.c?r1=1.148&r2=1.149
+Bug: https://sourceforge.net/tracker/?func=detail&aid=2893665&group_id=28236&atid=392777
+
+--- pycurl-7.19.0.orig/src/pycurl.c	2008/09/29 10:56:57	1.148
++++ pycurl-7.19.0/src/pycurl.c	2010/04/28 16:02:41	1.149
+@@ -1,4 +1,4 @@
+-/* $Id: pycurl.c,v 1.148 2008/09/29 10:56:57 kjetilja Exp $ */
++/* $Id: pycurl.c,v 1.149 2010/04/28 16:02:41 zanee Exp $ */
+ 
+ /* PycURL -- cURL Python module
+  *
+@@ -739,64 +739,80 @@
+     return self;
+ }
+ 
+-
+-/* constructor - this is a module-level function returning a new instance */
+-static CurlObject *
+-do_curl_new(PyObject *dummy)
++/* initializer - used to intialize curl easy handles for use with pycurl */
++static int
++util_curl_init(CurlObject *self)
+ {
+-    CurlObject *self = NULL;
+     int res;
+     char *s = NULL;
+ 
+-    UNUSED(dummy);
+-
+-    /* Allocate python curl object */
+-    self = util_curl_new();
+-    if (self == NULL)
+-        return NULL;
+-
+-    /* Initialize curl handle */
+-    self->handle = curl_easy_init();
+-    if (self->handle == NULL)
+-        goto error;
+-
+     /* Set curl error buffer and zero it */
+     res = curl_easy_setopt(self->handle, CURLOPT_ERRORBUFFER, self->error);
+-    if (res != CURLE_OK)
+-        goto error;
++    if (res != CURLE_OK) {
++        return (-1);
++    }
+     memset(self->error, 0, sizeof(self->error));
+ 
+     /* Set backreference */
+     res = curl_easy_setopt(self->handle, CURLOPT_PRIVATE, (char *) self);
+-    if (res != CURLE_OK)
+-        goto error;
++    if (res != CURLE_OK) {
++        return (-1);
++    }
+ 
+     /* Enable NOPROGRESS by default, i.e. no progress output */
+     res = curl_easy_setopt(self->handle, CURLOPT_NOPROGRESS, (long)1);
+-    if (res != CURLE_OK)
+-        goto error;
++    if (res != CURLE_OK) {
++        return (-1);
++    }
+ 
+     /* Disable VERBOSE by default, i.e. no verbose output */
+     res = curl_easy_setopt(self->handle, CURLOPT_VERBOSE, (long)0);
+-    if (res != CURLE_OK)
+-        goto error;
++    if (res != CURLE_OK) {
++        return (-1);
++    }
+ 
+     /* Set FTP_ACCOUNT to NULL by default */
+     res = curl_easy_setopt(self->handle, CURLOPT_FTP_ACCOUNT, NULL);
+-    if (res != CURLE_OK)
+-        goto error;
++    if (res != CURLE_OK) {
++        return (-1);
++    }
+ 
+     /* Set default USERAGENT */
+     s = (char *) malloc(7 + strlen(LIBCURL_VERSION) + 1);
+-    if (s == NULL)
+-        goto error;
++    if (s == NULL) {
++        return (-1);
++    }
+     strcpy(s, "PycURL/"); strcpy(s+7, LIBCURL_VERSION);
+     res = curl_easy_setopt(self->handle, CURLOPT_USERAGENT, (char *) s);
+     if (res != CURLE_OK) {
+         free(s);
+-        goto error;
++        return (-1);
+     }
++    return (0);
++}
++
++/* constructor - this is a module-level function returning a new instance */
++static CurlObject *
++do_curl_new(PyObject *dummy)
++{
++    CurlObject *self = NULL;
++    int res;
++
++    UNUSED(dummy);
++
++    /* Allocate python curl object */
++    self = util_curl_new();
++    if (self == NULL)
++        return NULL;
++
++    /* Initialize curl handle */
++    self->handle = curl_easy_init();
++    if (self->handle == NULL)
++        goto error;
+ 
++    res = util_curl_init(self);
++    if (res < 0)
++            goto error;
+     /* Success - return new object */
+     return self;
+ 
+@@ -1404,6 +1420,8 @@
+ static PyObject*
+ do_curl_reset(CurlObject *self)
+ {
++    int res;
++
+     curl_easy_reset(self->handle);
+ 
+     /* Decref callbacks and file handles */
+@@ -1421,10 +1439,19 @@
+     SFREE(self->postquote);
+     SFREE(self->prequote);
+ #undef SFREE
++    res = util_curl_init(self);
++    if (res < 0) {
++        Py_DECREF(self);    /* this also closes self->handle */
++        PyErr_SetString(ErrorObject, "resetting curl failed");
++        return NULL;
++    }
++
++    Py_INCREF(Py_None);
+     return Py_None;
+ }
+ 
+ /* --------------- unsetopt/setopt/getinfo --------------- */
++    int res;
+ 
+ static PyObject *
+ util_curl_unsetopt(CurlObject *self, int option)
diff --git a/debian/patches/40_add_CURLOPT_SEEKFUNCTION_and_CURLOPT_SEEKDATA.patch b/debian/patches/40_add_CURLOPT_SEEKFUNCTION_and_CURLOPT_SEEKDATA.patch
new file mode 100644
index 0000000..a95d6ce
--- /dev/null
+++ b/debian/patches/40_add_CURLOPT_SEEKFUNCTION_and_CURLOPT_SEEKDATA.patch
@@ -0,0 +1,142 @@
+Description: Added CURLOPT_SEEKFUNCTION, CURLOPT_SEEKDATA
+Origin: http://pycurl.cvs.sourceforge.net/viewvc/pycurl/pycurl/src/pycurl.c?r1=1.149&r2=1.150
+
+--- pycurl-7.19.0.orig/src/pycurl.c	2010/04/28 16:02:41	1.149
++++ pycurl-7.19.0/src/pycurl.c	2010/10/13 15:53:40	1.150
+@@ -1,4 +1,4 @@
+-/* $Id: pycurl.c,v 1.149 2010/04/28 16:02:41 zanee Exp $ */
++/* $Id: pycurl.c,v 1.150 2010/10/13 15:53:40 zanee Exp $ */
+ 
+ /* PycURL -- cURL Python module
+  *
+@@ -150,6 +150,7 @@
+     PyObject *debug_cb;
+     PyObject *ioctl_cb;
+     PyObject *opensocket_cb;
++    PyObject *seek_cb;
+     /* file objects */
+     PyObject *readdata_fp;
+     PyObject *writedata_fp;
+@@ -727,6 +728,7 @@
+     self->debug_cb = NULL;
+     self->ioctl_cb = NULL;
+     self->opensocket_cb = NULL;
++    self->seek_cb = NULL;
+ 
+     /* Set file object pointers to NULL by default */
+     self->readdata_fp = NULL;
+@@ -1181,6 +1183,82 @@
+     goto silent_error;
+ }
+ 
++static int
++seek_callback(void *stream, curl_off_t offset, int origin)
++{
++    CurlObject *self;
++    PyThreadState *tmp_state;
++    PyObject *arglist;
++    PyObject *result = NULL;
++    int ret = 2;     /* assume error 2 (can't seek, libcurl free to work around). */
++    PyObject *cb;
++    int source = 0;     /* assume beginning */
++
++    /* acquire thread */
++    self = (CurlObject *)stream;
++    tmp_state = get_thread_state(self);
++    if (tmp_state == NULL)
++        return ret;
++    PyEval_AcquireThread(tmp_state);
++
++    /* check arguments */
++    switch (origin)
++    {
++      case SEEK_SET:
++          source = 0;
++          break;
++      case SEEK_CUR:
++          source = 1;
++          break;
++      case SEEK_END:
++          source = 2;
++          break;
++      default:
++          source = origin;
++          break;
++    }
++    
++    /* run callback */
++    cb = self->seek_cb;
++    if (cb == NULL)
++        goto silent_error;
++    arglist = Py_BuildValue("(i,i)", offset, source);
++    if (arglist == NULL)
++        goto verbose_error;
++    result = PyEval_CallObject(cb, arglist);
++    Py_DECREF(arglist);
++    if (result == NULL)
++        goto verbose_error;
++
++    /* handle result */
++    if (result == Py_None) {
++        ret = 0;           /* None means success */
++    }
++    else if (PyInt_Check(result)) {
++        int ret_code = PyInt_AsLong(result);
++        if (ret_code < 0 || ret_code > 2) {
++            PyErr_Format(ErrorObject, "invalid return value for seek callback %d not in (0, 1, 2)", ret_code);
++            goto verbose_error;
++        }
++        ret = ret_code;    /* pass the return code from the callback */
++    }
++    else {
++        PyErr_SetString(ErrorObject, "seek callback must return 0 (CURL_SEEKFUNC_OK), 1 (CURL_SEEKFUNC_FAIL), 2 (CURL_SEEKFUNC_CANTSEEK) or None");
++        goto verbose_error;
++    }
++
++silent_error:
++    Py_XDECREF(result);
++    PyEval_ReleaseThread(tmp_state);
++    return ret;
++verbose_error:
++    PyErr_Print();
++    goto silent_error;
++}
++
++
++
++
+ static size_t
+ read_callback(char *ptr, size_t size, size_t nmemb, void *stream)
+ {
+@@ -1988,7 +2066,8 @@
+         const curl_progress_callback pro_cb = progress_callback;
+         const curl_debug_callback debug_cb = debug_callback;
+         const curl_ioctl_callback ioctl_cb = ioctl_callback;
+-	const curl_opensocket_callback opensocket_cb = opensocket_callback;
++        const curl_opensocket_callback opensocket_cb = opensocket_callback;
++        const curl_seek_callback seek_cb = seek_callback;
+ 
+         switch(option) {
+         case CURLOPT_WRITEFUNCTION:
+@@ -2046,6 +2125,13 @@
+             curl_easy_setopt(self->handle, CURLOPT_OPENSOCKETFUNCTION, opensocket_cb);
+             curl_easy_setopt(self->handle, CURLOPT_OPENSOCKETDATA, self);
+             break;
++        case CURLOPT_SEEKFUNCTION:
++            Py_INCREF(obj);
++            ZAP(self->seek_cb);
++            self->seek_cb = obj;
++            curl_easy_setopt(self->handle, CURLOPT_SEEKFUNCTION, seek_cb);
++            curl_easy_setopt(self->handle, CURLOPT_SEEKDATA, self);
++            break;
+ 
+         default:
+             /* None of the function options were recognized, throw exception */
+@@ -3616,6 +3702,7 @@
+     insint_c(d, "PREQUOTE", CURLOPT_PREQUOTE);
+     insint_c(d, "WRITEHEADER", CURLOPT_WRITEHEADER);
+     insint_c(d, "HEADERFUNCTION", CURLOPT_HEADERFUNCTION);
++    insint_c(d, "SEEKFUNCTION", CURLOPT_SEEKFUNCTION);
+     insint_c(d, "COOKIEFILE", CURLOPT_COOKIEFILE);
+     insint_c(d, "SSLVERSION", CURLOPT_SSLVERSION);
+     insint_c(d, "TIMECONDITION", CURLOPT_TIMECONDITION);
diff --git a/debian/patches/50_dont_leak_user_agent.patch b/debian/patches/50_dont_leak_user_agent.patch
new file mode 100644
index 0000000..4d88086
--- /dev/null
+++ b/debian/patches/50_dont_leak_user_agent.patch
@@ -0,0 +1,43 @@
+Description: fix a memory leak in reset() function
+Author: Örjan Persson <orjan at spotify.com>
+
+Index: pycurl-openssl/src/pycurl.c
+===================================================================
+--- pycurl-openssl.orig/src/pycurl.c	2013-05-14 18:51:53.040481318 -0700
++++ pycurl-openssl/src/pycurl.c	2013-05-14 18:58:03.705278225 -0700
+@@ -98,6 +98,9 @@
+ #define OPTIONS_SIZE    ((int)CURLOPT_LASTENTRY % 10000)
+ #define MOPTIONS_SIZE   ((int)CURLMOPT_LASTENTRY % 10000)
+ 
++/* Keep some default variables around */
++static const char g_pycurl_useragent[7 + sizeof(LIBCURL_VERSION) + 1];
++
+ /* Type objects */
+ static PyObject *ErrorObject = NULL;
+ static PyTypeObject *p_Curl_Type = NULL;
+@@ -780,14 +783,8 @@
+     }
+ 
+     /* Set default USERAGENT */
+-    s = (char *) malloc(7 + strlen(LIBCURL_VERSION) + 1);
+-    if (s == NULL) {
+-        return (-1);
+-    }
+-    strcpy(s, "PycURL/"); strcpy(s+7, LIBCURL_VERSION);
+-    res = curl_easy_setopt(self->handle, CURLOPT_USERAGENT, (char *) s);
++    res = curl_easy_setopt(self->handle, CURLOPT_USERAGENT, (char *) g_pycurl_useragent);
+     if (res != CURLE_OK) {
+-        free(s);
+         return (-1);
+     }
+     return (0);
+@@ -3953,6 +3950,9 @@
+         assert(0);
+     }
+ 
++    strcpy(g_pycurl_useragent, "PycURL/");
++    strcpy(g_pycurl_useragent+7, LIBCURL_VERSION);
++
+     /* Initialize callback locks if ssl is enabled */
+ #if defined(PYCURL_NEED_SSL_TSL)
+     pycurl_ssl_init();
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..20676c9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,5 @@
+10_setup.py.patch
+20_remove_string_options.patch
+30_fix_refcounts_calling_reset_twice.patch
+40_add_CURLOPT_SEEKFUNCTION_and_CURLOPT_SEEKDATA.patch
+50_dont_leak_user_agent.patch
diff --git a/debian/python-pycurl.dirs b/debian/python-pycurl.dirs
new file mode 100644
index 0000000..fb04ed5
--- /dev/null
+++ b/debian/python-pycurl.dirs
@@ -0,0 +1 @@
+usr/share/doc/python-pycurl/html
diff --git a/debian/python-pycurl.doc-base b/debian/python-pycurl.doc-base
new file mode 100644
index 0000000..9c4210c
--- /dev/null
+++ b/debian/python-pycurl.doc-base
@@ -0,0 +1,9 @@
+Document: python-pycurl
+Title: PycURL
+Author: Markus F.X.J. Oberhumer, Kjetil Jacobsen
+Abstract: A Python interface to the cURL library
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-pycurl/html/pycurl.html
+Files: /usr/share/doc/python-pycurl/html/*.html
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0d9619f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,84 @@
+#! /usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+PYVERS := $(shell pyversions -vs)
+CURLVERS := $(strip $(shell /usr/bin/curl-config --version | awk '{print $$2}'))
+
+unexport LDFLAGS
+export FFLAGS="-fPIC"
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	set -e ;\
+	for py in $(PYVERS) ; do \
+		python$$py setup.py build ; \
+		python$$py-dbg setup.py build ; \
+	done
+
+override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+	set -e ;\
+	for py in $(PYVERS) ; do \
+		for test in "tests/test_internals.py" "tests/test_memleak.py" ; do \
+		    PYTHONPATH=`ls -d $(CURDIR)/build/lib.*-*-$$py` \
+	        	python$$py $$test; \
+		done; \
+	done
+endif
+
+#clean:
+#	dh_testdir
+#	dh_testroot
+#	rm -f build-*
+#
+#	for py in $(PYVERS); do \
+#	    python$$py setup.py clean; \
+#	    python$$py-dbg setup.py clean; \
+#	done
+#
+#	rm -rf build
+#	-find -name '*.py[co]' | xargs rm -f
+#	dh_clean
+
+override_dh_auto_install:
+	for py in $(PYVERS); do \
+  	    python$$py setup.py install --root=$(CURDIR)/debian/python-pycurl --install-layout=deb; \
+ 	    python$$py-dbg setup.py install --root=$(CURDIR)/debian/python-pycurl-dbg --install-layout=deb; \
+	done
+
+	rm -rf $(CURDIR)/debian/python-pycurl-dbg/usr/lib/python*/*-packages/curl
+	rm -f $(CURDIR)/debian/python-pycurl-dbg/usr/lib/python*/*-packages/pycurl-*.egg-info
+
+	rm -rf debian/python-pycurl-dbg/usr/share/doc/python-pycurl-dbg
+	dh_link -ppython-pycurl-dbg usr/share/doc/python-pycurl usr/share/doc/python-pycurl-dbg
+
+override_dh_installdocs:
+	cp -a doc/*.html debian/python-pycurl/usr/share/doc/python-pycurl/html
+	dh_installdocs TODO
+
+override_dh_installexamples:
+	dh_installexamples examples/*
+
+override_dh_installchangelogs:
+	dh_installchangelogs ChangeLog
+
+override_dh_strip:
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+	dh_strip -ppython-pycurl --dbg-package=python-pycurl-dbg
+	# fix python-debug-in-wrong-location lintian warning
+	cd debian/*-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules
+endif
+
+override_dh_compress:
+	dh_compress -X.py
+
+override_dh_shlibdeps:
+	dh_shlibdeps -a
+	sed -i '/shlibs:Depends/s,\(libcurl[0-9]*-gnutls (>= \)[^)]*\().*\),\1$(CURLVERS)\2,' debian/python-pycurl*.substvars
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..04b9cf4
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=2
+http://pycurl.sourceforge.net/download/pycurl-([\d\.]*).tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pycurl.git



More information about the Python-modules-commits mailing list