tags 373402 +patch
thanks

Attached is a patch for update urlgrabber to the new Python Policy.

Ana.
diff -Nrua orig/urlgrabber-2.9.7/debian/changelog 
urlgrabber-2.9.7/debian/changelog
--- orig/urlgrabber-2.9.7/debian/changelog      2006-07-02 22:15:07.000000000 
+0200
+++ urlgrabber-2.9.7/debian/changelog   2006-07-02 22:38:44.000000000 +0200
@@ -1,3 +1,12 @@
+urlgrabber (2.9.7-2.1) unstable; urgency=low
+
+  * NMU.
+  * Updated to new Python Policy. (Closes: #373402)
+  * Bumped standards-version to 3.7.2, no changes required.
+  * Raised debhelper compat level to 5.
+
+ -- Ana Beatriz Guerrero Lopez <[EMAIL PROTECTED]>  Sun,  2 Jul 2006 22:04:51 
+0200
+
 urlgrabber (2.9.7-2) unstable; urgency=low
 
   * When I imported urlgrabber into bzr, I somehow lost a Build-Dep: on
diff -Nrua orig/urlgrabber-2.9.7/debian/compat urlgrabber-2.9.7/debian/compat
--- orig/urlgrabber-2.9.7/debian/compat 2006-07-02 22:15:07.000000000 +0200
+++ urlgrabber-2.9.7/debian/compat      2006-07-02 22:08:00.000000000 +0200
@@ -1 +1 @@
-4
+5
diff -Nrua orig/urlgrabber-2.9.7/debian/control urlgrabber-2.9.7/debian/control
--- orig/urlgrabber-2.9.7/debian/control        2006-07-02 22:15:07.000000000 
+0200
+++ urlgrabber-2.9.7/debian/control     2006-07-02 22:25:39.000000000 +0200
@@ -2,13 +2,15 @@
 Section: python
 Priority: optional
 Maintainer: Anand Kumria <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.0.0), python2.3-dev, python
-Standards-Version: 3.6.2
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), 
python-support (>= 0.3)
+Standards-Version: 3.7.2
 
 Package: python-urlgrabber
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
-Description: A high-level cross-protocol url-grabber.
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: A high-level cross-protocol url-grabber
  Python urlgrabber drastically simplifies the fetching of files. It is
  designed to be used in programs that need common (but not necessarily 
  simple) url-fetching features.
diff -Nrua orig/urlgrabber-2.9.7/debian/dirs urlgrabber-2.9.7/debian/dirs
--- orig/urlgrabber-2.9.7/debian/dirs   2006-07-02 22:15:07.000000000 +0200
+++ urlgrabber-2.9.7/debian/dirs        2006-07-02 22:25:42.000000000 +0200
@@ -1,2 +1 @@
 usr/bin
-usr/sbin
diff -Nrua orig/urlgrabber-2.9.7/debian/pycompat 
urlgrabber-2.9.7/debian/pycompat
--- orig/urlgrabber-2.9.7/debian/pycompat       1970-01-01 01:00:00.000000000 
+0100
+++ urlgrabber-2.9.7/debian/pycompat    2006-07-02 22:07:40.000000000 +0200
@@ -0,0 +1 @@
+2
diff -Nrua orig/urlgrabber-2.9.7/debian/rules urlgrabber-2.9.7/debian/rules
--- orig/urlgrabber-2.9.7/debian/rules  2006-07-02 22:15:07.000000000 +0200
+++ urlgrabber-2.9.7/debian/rules       2006-07-02 22:21:29.000000000 +0200
@@ -10,6 +10,7 @@
 #export DH_VERBOSE=1
 
 
+PYVERS := $(shell pyversions -r)
 
 
 CFLAGS = -Wall -g
@@ -34,10 +35,10 @@
        dh_testdir
 
        # Add here commands to compile the package.
-       #$(MAKE)
-       python setup.py build
-       #docbook-to-man debian/urlgrabber.sgml > urlgrabber.1
-       python test/runtests.py
+       for py in $(PYVERS); do \
+               $$py setup.py build; \
+               $$py test/runtests.py; \
+       done
 
        touch build-stamp
 
@@ -47,8 +48,10 @@
        rm -f build-stamp configure-stamp
 
        # Add here commands to clean up after the build process.
-       #-$(MAKE) clean
-       python setup.py clean
+       for py in $(PYVERS); do \
+               $$py setup.py clean; \
+       done
+       
        find $(CURDIR) -name "*.pyc" -exec rm -f '{}' \;
 
        dh_clean 
@@ -60,10 +63,11 @@
        dh_installdirs
 
        # Add here commands to install the package into debian/urlgrabber.
-       #$(MAKE) install DESTDIR=$(CURDIR)/debian/urlgrabber
-       python setup.py install --root=$(CURDIR)/debian/python-urlgrabber
-       #
-       rm -rf $(CURDIR)/debian/python-urlgrabber/usr/share/doc/urlgrabber-2.9.6
+       for py in $(PYVERS); do \
+               $$py setup.py install 
--root=$(CURDIR)/debian/python-urlgrabber; \
+       done
+
+       rm -rf $(CURDIR)/debian/python-urlgrabber/usr/share/doc/urlgrabber-2.9.7
 
 
 # Build architecture-independent files here.
@@ -93,6 +97,7 @@
        dh_compress
        dh_fixperms
 #      dh_perl
+       dh_pysupport
        dh_python
 #      dh_makeshlibs
        dh_installdeb

Reply via email to