--- pymad-0.7.orig/MANIFEST.in +++ pymad-0.7/MANIFEST.in @@ -0,0 +1,3 @@ +include config_unix.py AUTHORS COPYING README ChangeLog NEWS THANKS +recursive-include src *.h +include test/*.py --- pymad-0.7.orig/README.md +++ pymad-0.7/README.md @@ -0,0 +1,53 @@ +pymad - a Python wrapper for the MPEG Audio Decoder library +=========================================================== + +pymad is a Python module that allows Python programs to use the MPEG Audio Decoder library. pymad provides a high-level API, similar to the pyogg module, which makes reading PCM data from MPEG audio streams a piece of cake. + +MAD is available at http://www.mars.org/home/rob/proj/mpeg/ + +Access this module via `import mad`. To decode +an mp3 stream, you'll want to create a `mad.MadFile` object and read data from +that. You can then write the data to a sound device. See the example +program in `test/` for a simple mp3 player that uses the `python-pyao` wrapper around libao for the sound +device. + +pymad wrapper isn't as low level as the C MAD API is, for example, you don't +have to concern yourself with fixed point conversion -- this was done to +make pymad easy to use. + +```python +import sys + +import ao +import mad + +mf = mad.MadFile(sys.argv[1]) +dev = ao.AudioDevice(0, rate=mf.samplerate()) +while 1: + buf = mf.read() + if buf is None: # eof + break + dev.play(buf, len(buf)) +``` + + +To build, you need the distutils package, availible from +http://www.python.org/sigs/distutils-sig/download.html (it comes with +Python 2.0). Run "python setup.py build" to build and then as root run +"python setup.py install". You may need to run the config_unix.py +script, passing it a --prefix value if you've installed your mad stuff +someplace weird. Alternately, you can just create a file called +"Setup" and put in values for mad_include_dir, mad_lib_dir, and +mad_libs. The file format for Setup is: + +key = value + +with one pair per line. + +```shell +# python config_unix.py --prefix /usr/local +# python setup.py build +# python setup.py install --prefix /usr/local +``` + +Remember to make sure `/usr/local/python/site-packages/` is in your Python search path. --- pymad-0.7.orig/debian/rules +++ pymad-0.7/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PYTHON_VERSIONS := $(shell pyversions -r debian/control) + +-include /usr/share/python/python.mk + +build: build-stamp +build-stamp: + dh_testdir + + 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 + 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 + dh_testdir + dh_testroot + dh_installdirs + + for py in $(PYTHON_VERSIONS); do \ + $$py setup.py install --skip-build --no-compile --root=$(CURDIR)/debian/python-pymad --prefix=/usr $(py_setup_install_args); \ + done + + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installchangelogs NEWS + dh_python2 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- pymad-0.7.orig/debian/dirs +++ pymad-0.7/debian/dirs @@ -0,0 +1 @@ +usr/lib --- pymad-0.7.orig/debian/compat +++ pymad-0.7/debian/compat @@ -0,0 +1 @@ +7 --- pymad-0.7.orig/debian/control +++ pymad-0.7/debian/control @@ -0,0 +1,18 @@ +Source: pymad +Section: python +Priority: optional +Maintainer: Jamie Wilkinson +Build-Depends: debhelper (>= 7), python-all-dev (>= 2.6.6-3~), libmad0-dev +Standards-Version: 3.9.2 + +Package: python-pymad +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} +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) +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. + --- pymad-0.7.orig/debian/copyright +++ pymad-0.7/debian/copyright @@ -0,0 +1,30 @@ +This package was debianized by Jamie Wilkinson on +Sun, 18 Aug 2002 17:34:41 +1000. + +It was downloaded from http://spacepants.org/src/pymad/download/ + +Upstream Author: Jamie Wilkinson + +Copyright: + + Copyright (c) 2002 Jamie Wilkinson + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + --- pymad-0.7.orig/debian/docs +++ pymad-0.7/debian/docs @@ -0,0 +1 @@ +README.md --- pymad-0.7.orig/debian/watch +++ pymad-0.7/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://code.google.com/p/pymad/downloads/list .*/pymad-(.*)\.tar\.gz debian --- pymad-0.7.orig/debian/examples +++ pymad-0.7/debian/examples @@ -0,0 +1,2 @@ +test/test.py +test/madradio.py --- pymad-0.7.orig/debian/changelog +++ pymad-0.7/debian/changelog @@ -0,0 +1,157 @@ +pymad (0.7-1) unstable; urgency=low + + * New upstream version. + * Acknowledge NMUs. Thanks Jakub and Sandro! (Closes: #620280, #556153) + * Update debian/watch with new URI for tarball. + * Updated standards version to 3.9.2 + * Transition from pysupprt to dh_python2. + * Fix debhelper misc:depends to appease lintian. + * Remove obsolete cleanup from debian/rules. + + -- Jamie Wilkinson Thu, 14 Mar 2013 09:19:26 +0000 + +pymad (0.6-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Use python-support (closes: #620280). + + Add build-dependency on python-support. + + In debian/rules, replace call to dh_python with dh_pysupport. + + -- Jakub Wilk Fri, 08 Apr 2011 21:05:01 +0200 + +pymad (0.6-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Prepare for the upcoming Python 2.6 transition; thanks to Piotr Ożarowski + for the bug report and to Kumar Appaiah for the patch; Closes: #556153 + - debian/rules + + optionally include python.mk, add $(py_setup_install_args) and + --prefix=/usr when installing + + -- Sandro Tosi Sun, 15 Nov 2009 22:03:08 +0100 + +pymad (0.6-1) unstable; urgency=low + + * New upstream version. (Closes: #543442, #306757) + * Updated debhelper compat to 7. + - Move into debian/compat from DH_COMPAT. + - Update build dep. + * Update standards version to 3.8.3. + * Fix copyright in debian/copyright. + + -- Jamie Wilkinson Tue, 03 Nov 2009 22:03:24 +1100 + +pymad (0.5.4-3.2) unstable; urgency=low + + * NMU based on 0.5.4-3.1 (removed python-support, not necessary). + + -- Matthias Klose Tue, 11 Jul 2006 09:25:13 +0000 + +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 Mon, 3 Jul 2006 00:13:45 +0200 + +pymad (0.5.4-3) unstable; urgency=low + + * Add build dependency on python. + + -- Jamie Wilkinson Tue, 4 Apr 2006 16:28:35 +1000 + +pymad (0.5.4-2) unstable; urgency=low + + * Added watch file. + * Removed python2.2 package. (Closes: #351135) + * Updated build dependency to specify python2.3-dev instead of python-dev. + * Bumped standards version to 3.6.2 (no other changes necessary). + * Updated FSF address in the copyright file. + + -- Jamie Wilkinson Tue, 4 Apr 2006 14:20:27 +1000 + +pymad (0.5.4-1) unstable; urgency=low + + * New upstream version. + + -- Jamie Wilkinson Thu, 30 Jun 2005 00:56:35 +1000 + +pymad (0.5.3-2) unstable; urgency=low + + * Fix the specified replaced version of python-pymad. (Closes: #306864) + + -- Jamie Wilkinson Fri, 29 Apr 2005 10:55:56 +1000 + +pymad (0.5.3-1) unstable; urgency=low + + * New upstream release. + + Fixes decode error on bigendian platforms. + * Clean up diff. + * Add madradio.py as another example. + * Build pymad modules for each python version. (Closes: #299192) + + -- Jamie Wilkinson Wed, 27 Apr 2005 20:17:17 +1000 + +pymad (0.5.2-1) unstable; urgency=low + + * New upstream release. + - Fixes exception handling for non-file file-like objects. + * Upstream uses arch; svn changelog removed. + * Bumped standards version to 3.6.1. + + -- Jamie Wilkinson Tue, 24 Aug 2004 12:52:24 +1000 + +pymad (0.5.1-1) unstable; urgency=low + + * New upstream release. + Thanks Josselin for the previous NMU. + * Including ChangeLog from svn repository. + + -- Jamie Wilkinson Tue, 30 Dec 2003 18:39:27 +1100 + +pymad (0.4.1-1.1) unstable; urgency=low + + * NMU. + * Use dh_python. + * Rebuild against python 2.3 (closes: #205506). + * Standards-version is 3.6.0. + * Section is python. + + -- Josselin Mouette Mon, 18 Aug 2003 17:26:49 +0200 + +pymad (0.4.1-1) unstable; urgency=low + + * New upstream release + + Typo patch incorporated upstream. + + Fixes occasional FPE in track time code. + + -- Jamie Wilkinson Fri, 7 Feb 2003 08:39:19 +1100 + +pymad (0.4-2) unstable; urgency=low + + * The "lunchtime at LCA" release. + * Fixed typo in configure_unix.py. (Closes: #176587) + + -- Jamie Wilkinson Thu, 23 Jan 2003 13:17:25 +0800 + +pymad (0.4-1) unstable; urgency=low + + * New upstream release. + + -- Jamie Wilkinson Sun, 12 Jan 2003 21:10:04 +1100 + +pymad (0.3-2) unstable; urgency=low + + * Bumped standards-version to 3.5.8.0. + * Set DH_COMPAT to 4. + + -- Jamie Wilkinson Sat, 30 Nov 2002 11:25:09 +1100 + +pymad (0.3-1) unstable; urgency=low + + * Initial Release. (Closes: #161972) + + -- Jamie Wilkinson Sat, 28 Sep 2002 18:16:23 +1000 +