Commits

Alexandre Quessy committed 95245d2

Applied patches to support multiple version of python in the debian package.
Updated the license in the debian package to fit the MIT license.

Comments (0)

Files changed (4)

+python-portmidi (0.0.6-4ubuntu7) hardy; urgency=low
+  
+  * Switched to dh_pysupport.
+
+ -- Alexandre Quessy <alexandre@quessy.net>  Mon, 15 Mar 2010 12:26:34 -0400
+
 python-portmidi (0.0.6-4ubuntu6) hardy; urgency=low
   
   * Fixed ubuntu version number
 Section: python
 Priority: optional
 Maintainer: Alexandre Quessy <alexandre@quessy.net>
-Build-Depends: cdbs, debhelper (>= 5.0.38), python-central (>= 0.6.0), python-pyrex, python-dev, libportmidi-dev, libasound2-dev
+Build-Depends: cdbs, debhelper (>= 5.0.38), python-central (>= 0.6.0), python-pyrex, libportmidi-dev, libasound2-dev, python-all-dev
 Suggests: timidity, freepats
-XS-Python-Version: >= 2.4
-Standards-Version: 3.8.0
+XS-Python-Version: all
+Standards-Version: 3.8.3
 Homepage: http://bitbucket.org/aalex/pyportmidi/
 
 Package: python-portmidi
-Architecture: all
+Architecture: any
 XB-Python-Version: ${python:Versions}
-Depends: ${misc:Depends}, python (>= 2.4), python-central (>= 0.6.7), libportmidi0
-Description: Wrapper for PortMidi to send and receive MIDI in Python.
- .
- pyPortMidi is a Python wrapper for PortMidi. PortMidi is a cross-platform C library for realtime MIDI control. Using pyPortMidi, you can send and receive MIDI data in realtime from Python. 
+Provides: ${python:Provides}
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python (>= 2.4), python-central (>= 0.6.7), libportmidi0
+Description: Python interface to libportmidi
+ pyPortMidi is a Python wrapper for PortMidi. PortMidi is a cross-platform C
+ library for realtime MIDI control. Using pyPortMidi, you can send and receive
+ MIDI data in realtime from Python. 
  . 
- Besides using pyPortMidi to communicate to synthesizers and the like, it is possible to use pyPortMidi as a way to send MIDI messages between software packages on the same computer. 
+ Besides using pyPortMidi to communicate to synthesizers and the like, it is
+ possible to use pyPortMidi as a way to send MIDI messages between software
+ packages on the same computer.
  . 
- The original code is from John Harrison. See http://alumni.media.mit.edu/~harrison/pyportmidi.html
+ The original code is from John Harrison.
+ See http://python-pyrex.media.mit.edu/~harrison/pyportmidi.html
+
-PyPortMidi v0.03 03/15/05
-Python wrappings for PortMidi
-John Harrison
-harrison@media.mit.edu
+
+This package was debianized by Alexandre Quessy <alexandre@quessy.net> on
+Mon, 15 Mar 2010 12:32:10 -0400
+
+It was downloaded from http://alumni.media.mit.edu/~harrison/code.html
+
+Copyright Holders:
+
+ Copyright (c) 1999-2000 Ross Bencina and Phil Burk
+ Copyright (c) 2001 Roger B. Dannenberg
+ Copyright (c) 2005 John Harrison for the Python bindings
+
+License:
+
+ 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.
+ 
+ Any person wishing to distribute modifications to the Software is
+ requested to send the modifications to the original developer so that
+ they can be incorporated into the canonical version.
+ 
+ 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.
+
+ The text above constitutes the entire PortMidi license; however, 
+ the PortMusic community also makes the following non-binding requests:
+ 
+ Any person wishing to distribute modifications to the Software is
+ requested to send the modifications to the original developer so that
+ they can be incorporated into the canonical version. It is also
+ requested that these non-binding requests be included along with the 
+ license above.
 #!/usr/bin/make -f
 
-DEB_PYTHON_SYSTEM=pycentral
+# See http://svn.debian.org/viewsvn/collab-maint/deb-maint/python-support/trunk/README
+PYVERS=$(shell pyversions -vs)
 
+# those takes care of default rules 
+export DEB_PYTHON_SYSTEM=pysupport
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
-# Add here any variable or target overrides you need.
-binary-install/python-portmidi::
-	dh_pycentral -ppyPortMidi
-	dh_installdocs test_pyportmidi.py
-	dh_installdocs debian/copyright
-	dh_installdocs README.txt
+build: $(PYVERS:%=build-python%)
+	touch $@
+
+build-python%:
+	python$* setup.py build
+	touch $@
+
+install: build $(PYVERS:%=install-python%)
+install-python%:
+	python$* setup.py install --root $(CURDIR)/debian/python-portmidi
+
+binary-arch:
+	dh_pysupport
+	dh_installdocs test_pyportmidi.py debian/copyright README.txt