Hi, Attached is the diff for my pyvorbis 1.3-1.1 NMU.
be careful, it needs the pyogg NMU I did to build and install properly. -- ·O· Pierre Habouzit ··O [EMAIL PROTECTED] OOO http://www.madism.org
diff -u pyvorbis-1.3/debian/control pyvorbis-1.3/debian/control
--- pyvorbis-1.3/debian/control
+++ pyvorbis-1.3/debian/control
@@ -2,12 +2,15 @@
Section: interpreters
Priority: optional
Maintainer: Christopher L Cheney <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.1.62), libvorbis-dev (>= 1.0.1), python-pyogg
(>= 1.3), python-dev (>= 2.3)
-Standards-Version: 3.6.1.0
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11),
+ python-support (>= 0.3), python-pyogg (>= 1.3), libvorbis-dev (>= 1.0.1)
+Standards-Version: 3.7.2
Package: python-pyvorbis
Architecture: any
Depends: ${python:Depends}, python-pyogg, ${shlibs:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
Description: A Python interface to the Ogg Vorbis library
This module makes the libvorbis (Ogg Vorbis) functions available
in Python. With this module you can write Python applications
diff -u pyvorbis-1.3/debian/rules pyvorbis-1.3/debian/rules
--- pyvorbis-1.3/debian/rules
+++ pyvorbis-1.3/debian/rules
@@ -6,34 +6,34 @@
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
-export DH_COMPAT=3
+export DH_COMPAT=5
-configure: configure-stamp
-configure-stamp:
- dh_testdir
-
- python config_unix.py --prefix /usr
- python setup.py config
+PYVERS:=$(shell pyversions -r)
- touch configure-stamp
-
-build: configure-stamp build-stamp
+build: build-stamp
build-stamp:
dh_testdir
-
- python setup.py build
-
+
+ set -e; \
+ for py in $(PYVERS); do \
+ $$py config_unix.py --prefix /usr; \
+ $$py setup.py build; \
+ done
+
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
-
- -python setup.py clean --all
+
+ -for py in $(PYVERS); do \
+ $$py setup.py clean --all; \
+ done
+
-rm Setup
-rm config.log
-
+
dh_clean
install: build
@@ -41,8 +41,11 @@
dh_testroot
dh_clean -k
dh_installdirs
-
- python setup.py install --prefix $(CURDIR)/debian/python-pyvorbis/usr
+
+ set -e; \
+ for py in $(PYVERS); do \
+ $$py setup.py install --root=debian/python-pyvorbis; \
+ done
# Build architecture-independent files here.
@@ -56,6 +59,7 @@
dh_installdocs
dh_installexamples
dh_installchangelogs ChangeLog
+ dh_pysupport
dh_python
dh_link
dh_strip
@@ -72 +76 @@
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install
diff -u pyvorbis-1.3/debian/changelog pyvorbis-1.3/debian/changelog
--- pyvorbis-1.3/debian/changelog
+++ pyvorbis-1.3/debian/changelog
@@ -1,3 +1,10 @@
+pyvorbis (1.3-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Update package to the new python policy (Closes: #373371).
+
+ -- Pierre Habouzit <[EMAIL PROTECTED]> Fri, 30 Jun 2006 11:13:41 +0200
+
pyvorbis (1.3-1) unstable; urgency=low
* Maintainer upload.
@@ -80,3 +86,0 @@
-Local variables:
-mode: debian-changelog
-End:
only in patch2:
unchanged:
--- pyvorbis-1.3.orig/debian/pycompat
+++ pyvorbis-1.3/debian/pycompat
@@ -0,0 +1 @@
+2
signature.asc
Description: Digital signature

