Add debian packaging.

This commit is contained in:
Hubert Pham 2010-09-01 15:27:02 -04:00
parent 775aaca9ee
commit 2067c4a45d
10 changed files with 154 additions and 0 deletions

34
debian/changelog vendored Normal file
View file

@ -0,0 +1,34 @@
python-pyaudio (0.2.4-1) UNRELEASED; urgency=low
[ Felipe Sateler ]
* Bump standards version (no changes needed)
* Introduce a long description
* Use --intall-layout=deb to comply with python policy
* Use ${shlib:Depends} and ${misc:Depends}
* Move to python section
* Add dummy binary-indep target
* Add call to dh_compress
* Add homepage field
[ Hubert Pham ]
* Updated directory structure and packaging.
-- Hubert Pham <hubert@mit.edu> Wed, 18 Aug 2010 15:23:00 -0500
python-pyaudio (0.2.3) unstable; urgency=low
* Release the GIL during blocking PortAudio I/O calls.
* Fixed Python argument parsing to use a long for PaSampleFormat.
* pyaudio.PyAudio.is_format_supported() now throws a ValueError
exception if the specified format is not supported for any reason
(or returns True if the format is supported).
-- Hubert Pham <hubert@mit.edu> Thu, 30 Oct 2008 17:00:00 -0500
python-pyaudio (0.2.0) unstable; urgency=low
* Initial version
-- Justin Mazzola Paluska <jmp@mit.edu> Fri, 08 Feb 2008 13:47:27 -0500

1
debian/compat vendored Normal file
View file

@ -0,0 +1 @@
5

21
debian/control vendored Normal file
View file

@ -0,0 +1,21 @@
Source: python-pyaudio
Section: python
Priority: optional
Standards-Version: 3.9.1
Build-Depends: python-all-dev, python-support (>= 0.6), debhelper(>= 5), portaudio19-dev, python-epydoc
Maintainer: Hubert Pham <hubert@mit.edu>
Uploaders: Felipe Sateler <fsateler@debian.org>, Justin Mazzola Paluska <jmp@mit.edu>
Homepage: http://people.csail.mit.edu/hubert/pyaudio/
Vcs-Git: http://people.csail.mit.edu/hubert/git/pyaudio.git
Vcs-Browser: http://people.csail.mit.edu/hubert/git/pyaudio.git
Package: python-pyaudio
Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
Provides: ${python:Provides}
Architecture: any
Description: Python bindings for PortAudio v19
PyAudio provides Python bindings for PortAudio v19, the
cross-platform audio I/O library. PyAudio makes it easy to use Python
to play and record audio via pythonic wrappers around the PortAudio
API. Currently, PyAudio currently only supports blocking-mode audio
I/O.

22
debian/copyright vendored Normal file
View file

@ -0,0 +1,22 @@
PyAudio is distributed under the MIT License. That is to say,
Copyright (c) 2006-2010 Hubert Pham
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

9
debian/docbase vendored Normal file
View file

@ -0,0 +1,9 @@
Document: python-pyaudio
Title: PyAudio API
Author: Hubert Pham
Abstract: This manual is the API reference for the Python PyAudio library.
Section: Programming/Python
Format: HTML
Index: /usr/share/doc/python-pyaudio/docs/index.html
Files: /usr/share/doc/python-pyaudio/docs/*

2
debian/docs vendored Normal file
View file

@ -0,0 +1,2 @@
README
docs/

6
debian/examples vendored Normal file
View file

@ -0,0 +1,6 @@
test/error.py
test/play_wave.py
test/record.py
test/system_info.py
test/wire2.py
test/wire.py

6
debian/gbp.conf vendored Normal file
View file

@ -0,0 +1,6 @@
[DEFAULT]
upstream-branch = master
debian-branch = debian
upstream-tag = v%(version)s
debian-tag = debian/%(version)s

52
debian/rules vendored Executable file
View file

@ -0,0 +1,52 @@
#!/usr/bin/make -f
# -*- mode: makefile -*-
DH_VERBOSE=1
DEB_PYTHON_SYSTEM := pysupport
PYVERS=$(shell pyversions -vs)
build: $(PYVERS:%=build-python%) docs
touch $@
build-python%:
dh_testdir
python$* setup.py build
touch $@
docs:
make docs
clean:
dh_testdir
rm -rf build build-python* debian/python-pyaudio* debian/files docs
rm -rf src/*.pyc MANIFEST
dh_clean
install: build $(PYVERS:%=install-python%) install-docbase
install-python%:
python$* setup.py install --install-layout=deb --root=$(CURDIR)/debian/python-pyaudio
install-docbase:
mkdir -p $(CURDIR)/debian/python-pyaudio/usr/share/doc-base/
cp $(CURDIR)/debian/docbase $(CURDIR)/debian/python-pyaudio/usr/share/doc-base/python-pyaudio
binary: binary-arch binary-indep
# Nothing to do...
binary-indep:
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs CHANGELOG
dh_installexamples
dh_compress -X.js -X.py
dh_strip
dh_fixperms
dh_pysupport
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)