tags 373498 +patch
thanks
Attached is a patch for update pymad to the new Python Policy.
Ana.
diff -Nrua orig/pymad-0.5.4/debian/changelog pymad-0.5.4/debian/changelog
--- orig/pymad-0.5.4/debian/changelog 2006-07-03 00:07:24.000000000 +0200
+++ pymad-0.5.4/debian/changelog 2006-07-03 00:17:28.000000000 +0200
@@ -1,3 +1,12 @@
+pymad (0.5.4-3.1) unstable; urgency=low
+
+ * NMU.
+ * Updated to new Python Policy. (Closes: #373498)
+ * Bumped standards-version to 3.7.2, no changes required.
+ * Raised debhelper compat level to 5.
+
+ -- Ana Beatriz Guerrero Lopez <[EMAIL PROTECTED]> Mon, 3 Jul 2006 00:13:45
+0200
+
pymad (0.5.4-3) unstable; urgency=low
* Add build dependency on python.
diff -Nrua orig/pymad-0.5.4/debian/control pymad-0.5.4/debian/control
--- orig/pymad-0.5.4/debian/control 2006-07-03 00:07:24.000000000 +0200
+++ pymad-0.5.4/debian/control 2006-07-03 00:47:04.000000000 +0200
@@ -2,32 +2,18 @@
Section: python
Priority: optional
Maintainer: Jamie Wilkinson <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>> 4.1.65), libmad0-dev, python, python2.4-dev,
python2.3-dev
-Standards-Version: 3.6.2
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11),
python-support (>= 0.3), libmad0-dev
+Standards-Version: 3.7.2
Package: python-pymad
-Architecture: all
-Depends: python2.3-pymad
-Description: Python wrapper to the MPEG Audio Decoder library
- This module makes the MAD MP3 decoder library available to Python
- programs. It provides a high-level API to the MAD functions, that make
- reading audio data from an MPEG stream simple.
-
-Package: python2.3-pymad
-Architecture: any
-Depends: ${python:Depends}, ${shlibs:Depends}
-Provides: python-pymad
-Replaces: python-pymad (<< 0.5.3-1)
-Description: Python wrapper to the MPEG Audio Decoder library
- This module makes the MAD MP3 decoder library available to Python
- programs. It provides a high-level API to the MAD functions, that make
- reading audio data from an MPEG stream simple.
-
-Package: python2.4-pymad
Architecture: any
Depends: ${python:Depends}, ${shlibs:Depends}
-Provides: python-pymad
+Provides: ${python:Provides}
+Conflicts: python2.3-pymad (<< 0.5.4-3.1), python2.4-pymad (<< 0.5.4-3.1)
+Replaces: python2.3-pymad (<< 0.5.4-3.1), python2.4-pymad (<< 0.5.4-3.1)
+XB-Python-Version: ${python:Versions}
Description: Python wrapper to the MPEG Audio Decoder library
This module makes the MAD MP3 decoder library available to Python
programs. It provides a high-level API to the MAD functions, that make
reading audio data from an MPEG stream simple.
+
diff -Nrua orig/pymad-0.5.4/debian/pycompat pymad-0.5.4/debian/pycompat
--- orig/pymad-0.5.4/debian/pycompat 1970-01-01 01:00:00.000000000 +0100
+++ pymad-0.5.4/debian/pycompat 2006-07-03 00:20:10.000000000 +0200
@@ -0,0 +1 @@
+2
diff -Nrua orig/pymad-0.5.4/debian/rules pymad-0.5.4/debian/rules
--- orig/pymad-0.5.4/debian/rules 2006-07-03 00:07:24.000000000 +0200
+++ pymad-0.5.4/debian/rules 2006-07-03 00:49:35.000000000 +0200
@@ -6,91 +6,68 @@
#export DH_VERBOSE=1
# This is the debhelper compatibility version to use.
-export DH_COMPAT=4
+export DH_COMPAT=5
-PYTHON=python
-PYTHON_VERSIONS=2.4 2.3
+PYTHON_VERSIONS := $(shell pyversions -r)
build: build-stamp
-build-stamp: $(patsubst %,build-stamp-%,$(PYTHON_VERSIONS))
- touch build-stamp
-
-build-stamp-%:
+build-stamp:
dh_testdir
- $(PYTHON)$(subst build-stamp-,,$@) config_unix.py --prefix /usr
- $(PYTHON)$(subst build-stamp-,,$@) setup.py build
- touch $@
+
+ for py in $(PYTHON_VERSIONS); 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) config_unix.py --prefix /usr
- -$(PYTHON) setup.py clean --all
- -rm Setup
- -rm -rf build
+ rm -f build-stamp configure-stamp
+ for py in $(PYTHON_VERSIONS); do \
+ $$py config_unix.py --prefix /usr; \
+ $$py setup.py clean --all; \
+ done
+
+ rm -rf Setup build
dh_clean
-install: build $(patsubst %,install-%,$(PYTHON_VERSIONS))
-
-v = $(subst install-,,$@)
-p = $(PYTHON)$(v)-pymad
-d = $(CURDIR)/debian/$(p)
-
-install-%: build-stamp-%
+install: build
dh_testdir
dh_testroot
- # don't clean out the previous pacakge install directories
- #dh_clean -k
- # instead:
- rm -rf $(d)
dh_installdirs
- $(PYTHON)$(v) setup.py install \
- --skip-build \
- --no-compile \
- --prefix $(d)/usr
-
- -find $(d)/usr -name '.arch-ids' -print0 | xargs -0 rm -rf
- -find $(d)/usr -name '.cvsignore' -print0 | xargs -0 rm -rf
- -find $(d) -name '*.py[co]' -exec rm \{\} \;
+ for py in $(PYTHON_VERSIONS); do \
+ $$py setup.py install --skip-build --no-compile
--root=$(CURDIR)/debian/python-pymad; \
+ done
+
+ -find $(CURDIR)/debian/python-pymad/usr -name '.arch-ids' -print0 |
xargs -0 rm -rf
+ -find $(CURDIR)/debian/python-pymad/usr -name '.cvsignore' -print0 |
xargs -0 rm -rf
+ -find $(CURDIR)/debian/python-pymad/ -name '*.py[co]' -exec rm \{\} \;
- mkdir -p $(d)/usr/share/doc/$(p)
# Build architecture-independent files here.
binary-indep: build install
- dh_testdir -i
- dh_testroot -i
- dh_installdocs -i
- dh_installexamples -i
- dh_installchangelogs -i NEWS
- dh_python -i
- dh_strip -i
- dh_compress -i
- dh_fixperms -i
- dh_installdeb -i
- dh_shlibdeps -i
- dh_gencontrol -i
- dh_md5sums -i
- dh_builddeb -i
# Build architecture-dependent files here.
binary-arch: build install
- dh_testdir -a
- dh_testroot -a
- dh_installdocs -a
- dh_installexamples -a
- dh_installchangelogs -a NEWS
- dh_python -a
- dh_link -a
- dh_strip -a
- dh_compress -a
- dh_fixperms -a
- dh_installdeb -a
- dh_shlibdeps -a
- dh_gencontrol -a
- dh_md5sums -a
- dh_builddeb -a
+ dh_testdir
+ dh_testroot
+ dh_installdocs
+ dh_installexamples
+ dh_installchangelogs NEWS
+ dh_pysupport
+ dh_python
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
-binary: binary-indep binary-arch
+binary: binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure