Hi,

Attached is the diff for my python-pylibacl 0.2.1-3.1 NMU.

-- 
·O·  Pierre Habouzit
··O                                                [EMAIL PROTECTED]
OOO                                                http://www.madism.org
diff -u python-pylibacl-0.2.1/debian/rules python-pylibacl-0.2.1/debian/rules
--- python-pylibacl-0.2.1/debian/rules
+++ python-pylibacl-0.2.1/debian/rules
@@ -11,8 +11,7 @@
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
-PYTHON2.3 = /usr/bin/python2.3
-PYTHON2.4 = /usr/bin/python2.4
+PYVERS := $(shell pyversions -r)
 
 configure: configure-stamp
 configure-stamp:
@@ -25,8 +24,8 @@
 
 build-arch: build-arch-stamp
 build-arch-stamp: configure-stamp 
-       $(PYTHON2.3) setup.py build
-       $(PYTHON2.4) setup.py build
+       set -e; for py in $(PYVERS); do \
+           $$py setup.py build; done
 
        touch build-arch-stamp
 
@@ -47,10 +46,10 @@
        dh_clean -k -s 
        dh_installdirs -s
 
-       $(PYTHON2.3) setup.py install --root=$(CURDIR)/debian/python2.3-pylibacl
-       $(PYTHON2.4) setup.py install --root=$(CURDIR)/debian/python2.4-pylibacl
-       rm -rf $(CURDIR)/debian/python2.3-pylibacl/usr/share/doc/pylibacl-0.2.1
-       rm -rf $(CURDIR)/debian/python2.4-pylibacl/usr/share/doc/pylibacl-0.2.1
+       set -e; for py in $(PYVERS); do \
+           $$py setup.py install --root=$(CURDIR)/debian/python-pylibacl; \
+       done
+       rm -rf $(CURDIR)/debian/python-pylibacl/usr/share/doc/pylibacl-0.2.1
 
 # Build architecture-dependent files here.
 binary-arch: build install
@@ -61,6 +60,7 @@
        dh_strip
        dh_compress
        dh_fixperms
+       dh_pysupport
        dh_python
        dh_installdeb
        dh_shlibdeps
reverted:
--- python-pylibacl-0.2.1/debian/python2.4-pylibacl.docs
+++ python-pylibacl-0.2.1.orig/debian/python2.4-pylibacl.docs
@@ -1,3 +0,0 @@
-README
-posix1e.txt
-posix1e.html
reverted:
--- python-pylibacl-0.2.1/debian/python2.3-pylibacl.docs
+++ python-pylibacl-0.2.1.orig/debian/python2.3-pylibacl.docs
@@ -1,3 +0,0 @@
-README
-posix1e.txt
-posix1e.html
diff -u python-pylibacl-0.2.1/debian/control 
python-pylibacl-0.2.1/debian/control
--- python-pylibacl-0.2.1/debian/control
+++ python-pylibacl-0.2.1/debian/control
@@ -5,33 +5,15 @@
-Build-Depends: debhelper (>> 4.0.0), libacl1-dev, python2.3-dev, 
python2.4-dev, python
-Standards-Version: 3.6.2
-
-Package: python2.3-pylibacl
-Architecture: any
-Depends: ${shlibs:Depends}, ${python:Depends}
-Description: module for manipulating POSIX.1e ACLs
- pylibacl is a python interface to the libacl library. It allows
- manipulation of the POSIX.1e-compliant filesystem ACLs present
- in some operating systems (GNU/Linux included).
- .
- This module is compiled against python 2.3
-
-Package: python2.4-pylibacl
-Architecture: any
-Depends: ${shlibs:Depends}, ${python:Depends}
-Description: module for manipulating POSIX.1e ACLs
- pylibacl is a python interface to the libacl library. It allows
- manipulation of the POSIX.1e-compliant filesystem ACLs present
- in some operating systems (GNU/Linux included).
- .
- This module is compiled against python 2.4
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11),
+ python-support (>= 0.3), libacl1-dev
+Standards-Version: 3.7.2
 
 Package: python-pylibacl
-Architecture: all
-Depends: ${python:Depends}
+Architecture: any
+Depends: ${python:Depends}, ${shlibs:Depends}
+Provides: ${python:Provides}
+Replaces: python2.3-pylibacl (<< 0.2.1-3.1), python2.4-pylibacl (<< 0.2.1-3.1)
+Conflicts: python2.3-pylibacl (<< 0.2.1-3.1), python2.4-pylibacl (<< 0.2.1-3.1)
+XB-Python-Version: ${python:Versions}
 Description: module for manipulating POSIX.1e ACLs
  pylibacl is a python interface to the libacl library. It allows
  manipulation of the POSIX.1e-compliant filesystem ACLs present
  in some operating systems (GNU/Linux included).
- .
- This Debian package is an empty dummy package that always depends on
- a package built for Debian's default Python version.
diff -u python-pylibacl-0.2.1/debian/changelog 
python-pylibacl-0.2.1/debian/changelog
--- python-pylibacl-0.2.1/debian/changelog
+++ python-pylibacl-0.2.1/debian/changelog
@@ -1,3 +1,10 @@
+python-pylibacl (0.2.1-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Update package for the last python policy (Closes: #373342).
+
+ -- Pierre Habouzit <[EMAIL PROTECTED]>  Sun,  2 Jul 2006 15:07:24 +0200
+
 python-pylibacl (0.2.1-3) unstable; urgency=low
 
   * Stop building python 2.2 packages (closes: #351149)
only in patch2:
unchanged:
--- python-pylibacl-0.2.1.orig/debian/pycompat
+++ python-pylibacl-0.2.1/debian/pycompat
@@ -0,0 +1 @@
+2
only in patch2:
unchanged:
--- python-pylibacl-0.2.1.orig/debian/python-pylibacl.docs
+++ python-pylibacl-0.2.1/debian/python-pylibacl.docs
@@ -0,0 +1,3 @@
+README
+posix1e.txt
+posix1e.html

Attachment: signature.asc
Description: Digital signature

Reply via email to