[Python-modules-commits] r2014 - in /packages/pyusb/trunk/debian:
./ changelog compat control
copyright examples patches/ patches/00list
patches/10_api_kernel_detach.dpatch pycompat pyversions rules
pere at users.alioth.debian.org
pere at users.alioth.debian.org
Mon Apr 9 19:01:52 UTC 2007
Author: pere
Date: Mon Apr 9 19:01:52 2007
New Revision: 2014
URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=2014
Log:
[svn-inject] Applying Debian modifications to trunk
Added:
packages/pyusb/trunk/debian/ (with props)
packages/pyusb/trunk/debian/changelog
packages/pyusb/trunk/debian/compat
packages/pyusb/trunk/debian/control
packages/pyusb/trunk/debian/copyright
packages/pyusb/trunk/debian/examples
packages/pyusb/trunk/debian/patches/
packages/pyusb/trunk/debian/patches/00list
packages/pyusb/trunk/debian/patches/10_api_kernel_detach.dpatch (with props)
packages/pyusb/trunk/debian/pycompat
packages/pyusb/trunk/debian/pyversions
packages/pyusb/trunk/debian/rules (with props)
Propchange: packages/pyusb/trunk/debian/
------------------------------------------------------------------------------
mergeWithUpstream = 1
Added: packages/pyusb/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/pyusb/trunk/debian/changelog?rev=2014&op=file
==============================================================================
--- packages/pyusb/trunk/debian/changelog (added)
+++ packages/pyusb/trunk/debian/changelog Mon Apr 9 19:01:52 2007
@@ -1,0 +1,17 @@
+pyusb (0.3.5-2) unstable; urgency=low
+
+ * Remove unused variables UPSTREAM_VERSION and PYVER from debian/rules.
+ * Tighten build dependency to cdbs (>=0.4.41) and replace python-dev with python-all-dev.
+ Thanks to Piotr Ozarowski for the tip.
+ * Remove empty directory debian/python-pyusb/usr/share/python-support/python-pyusb from
+ the package.
+
+ -- Petter Reinholdtsen <pere at debian.org> Mon, 9 Apr 2007 19:43:44 +0200
+
+pyusb (0.3.5-1) unstable; urgency=low
+
+ * Initial upload. (Closes: #418359)
+ * Added patch 10_api_kernel_detach to make it usable by pymissile.
+
+ -- Petter Reinholdtsen <pere at debian.org> Mon, 9 Apr 2007 14:21:02 +0200
+
Added: packages/pyusb/trunk/debian/compat
URL: http://svn.debian.org/wsvn/python-modules/packages/pyusb/trunk/debian/compat?rev=2014&op=file
==============================================================================
--- packages/pyusb/trunk/debian/compat (added)
+++ packages/pyusb/trunk/debian/compat Mon Apr 9 19:01:52 2007
@@ -1,0 +1,1 @@
+5
Added: packages/pyusb/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/pyusb/trunk/debian/control?rev=2014&op=file
==============================================================================
--- packages/pyusb/trunk/debian/control (added)
+++ packages/pyusb/trunk/debian/control Mon Apr 9 19:01:52 2007
@@ -1,0 +1,18 @@
+Source: pyusb
+Section: python
+Priority: optional
+Maintainer: Petter Reinholdtsen <pere at debian.org>
+Build-Depends: debhelper (>= 5), cdbs (>=0.4.41), dpatch, libusb-dev, python-all-dev, python-support (>= 0.3)
+Standards-Version: 3.7.2
+XS-Vcs-CVS: :pserver:anonymous at cvs.pyusb.berlios.de:/cvsroot/pyusb
+XS-Vcs-Browser: http://cvs.berlios.de/cgi-bin/viewcvs.cgi/pyusb/
+
+Package: python-pyusb
+Architecture: any
+Depends: ${python:Depends}, ${misc:Depends}
+XB-Python-Version: ${python:Versions}
+Description: USB interface for python
+ PyUSB is a native Python module written in C (meanwhile, because the
+ next major version will use ctypes), that provides USB access for it.
+ .
+ Homepage: http://pyusb.berlios.de/
Added: packages/pyusb/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/python-modules/packages/pyusb/trunk/debian/copyright?rev=2014&op=file
==============================================================================
--- packages/pyusb/trunk/debian/copyright (added)
+++ packages/pyusb/trunk/debian/copyright Mon Apr 9 19:01:52 2007
@@ -1,0 +1,22 @@
+This package was debianized by Petter Reinholdtsen <pere at debian.org> on
+Mon Apr 9 12:20:29 CEST 2007
+
+It was downloaded from http://pyusb.berlios.de/
+
+Upstream Author:
+
+ Wander Lairson Costa <wander.lairson at gmail.com>
+
+Copyright:
+
+ Copyright (C) 2005-2007 Wander Lairson Costa
+
+License:
+
+ This library is free software; you can redistribute them and/or modify them under
+ the terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
+
+ On Debian systems, a copy of the GNU General Public License can be
+ found in /usr/share/common-licenses/GPL.
Added: packages/pyusb/trunk/debian/examples
URL: http://svn.debian.org/wsvn/python-modules/packages/pyusb/trunk/debian/examples?rev=2014&op=file
==============================================================================
--- packages/pyusb/trunk/debian/examples (added)
+++ packages/pyusb/trunk/debian/examples Mon Apr 9 19:01:52 2007
@@ -1,0 +1,2 @@
+samples/usbenum.py
+samples/usbprint.py
Added: packages/pyusb/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/python-modules/packages/pyusb/trunk/debian/patches/00list?rev=2014&op=file
==============================================================================
--- packages/pyusb/trunk/debian/patches/00list (added)
+++ packages/pyusb/trunk/debian/patches/00list Mon Apr 9 19:01:52 2007
@@ -1,0 +1,1 @@
+10_api_kernel_detach
Added: packages/pyusb/trunk/debian/patches/10_api_kernel_detach.dpatch
URL: http://svn.debian.org/wsvn/python-modules/packages/pyusb/trunk/debian/patches/10_api_kernel_detach.dpatch?rev=2014&op=file
==============================================================================
--- packages/pyusb/trunk/debian/patches/10_api_kernel_detach.dpatch (added)
+++ packages/pyusb/trunk/debian/patches/10_api_kernel_detach.dpatch Mon Apr 9 19:01:52 2007
@@ -1,0 +1,89 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_api_kernel_detach.dpatch by Scott Weston
+##
+## DP: Add API call for detaching the kernel driver from interface
+## Downloaded from http://scott.weston.id.au/software/pymissile-20060126/pyusb-0.3.1-kernel-detach.patch
+
+ at DPATCH@
+diff -u pyusb-0.3.1/pyusb.c pyusb-0.3.1-srw/pyusb.c
+--- pyusb-0.3.1/pyusb.c 2005-10-27 22:20:48.000000000 +0100
++++ pyusb-0.3.1-srw/pyusb.c 2006-01-26 09:21:33.000000000 +0000
+@@ -12,6 +12,7 @@
+ #include "pyusb.h"
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <errno.h>
+ #define DEFAULT_TIMEOUT 100
+
+ /*
+@@ -1303,6 +1304,39 @@
+ }
+ }
+
++PYUSB_STATIC PyObject *Py_usb_DeviceHandle_detachKernelDriver(
++ PyObject *self,
++ PyObject *args
++ )
++{
++ int tInterface, ret;
++ Py_usb_DeviceHandle *_self = (Py_usb_DeviceHandle *) self;
++
++ if (SUPPORT_NUMBER_PROTOCOL(args)) {
++ tInterface = (int) py_NumberAsInt(args);
++ if (PyErr_Occurred()) return NULL;
++ } else {
++ PyErr_BadArgument();
++ return NULL;
++ }
++
++#if DUMP_PARAMS
++
++ fprintf(stderr,
++ "detachKernalDriver params:\n\taltInterface: %d\n",
++ altInterface);
++
++#endif /* DUMP_PARAMS */
++
++ ret = usb_detach_kernel_driver_np(_self->deviceHandle, tInterface);
++ if ((ret < 0) && (errno != ENODATA)) {
++ PyUSB_Error();
++ return NULL;
++ } else {
++ Py_RETURN_NONE;
++ }
++}
++
+ PYUSB_STATIC PyObject *Py_usb_DeviceHandle_bulkWrite(
+ PyObject *self,
+ PyObject *args
+@@ -1738,6 +1772,14 @@
+ "Arguments:\n"
+ "\talternate: an alternate setting number or an Interface object."},
+
++ {"detachKernelDriver",
++ Py_usb_DeviceHandle_detachKernelDriver,
++ METH_O,
++ "detachKernelDriver(interface) -> None\n\n"
++ "Detaches a kernel driver from the interface specified.\n"
++ "Arguments:\n"
++ "\talternate: an Interface object."},
++
+ {"bulkWrite",
+ Py_usb_DeviceHandle_bulkWrite,
+ METH_VARARGS,
+diff -u pyusb-0.3.1/pyusb.h pyusb-0.3.1-srw/pyusb.h
+--- pyusb-0.3.1/pyusb.h 2005-10-14 00:06:07.000000000 +0100
++++ pyusb-0.3.1-srw/pyusb.h 2006-01-25 16:33:13.000000000 +0000
+@@ -195,6 +195,11 @@
+ PyObject *args
+ );
+
++PYUSB_STATIC PyObject *Py_usb_DeviceHandle_detachKernelDriver(
++ PyObject *self,
++ PyObject *args
++ );
++
+ PYUSB_STATIC PyObject *Py_usb_DeviceHandle_bulkWrite(
+ PyObject *self,
+ PyObject *args
+Common subdirectories: pyusb-0.3.1/samples and pyusb-0.3.1-srw/samples
Propchange: packages/pyusb/trunk/debian/patches/10_api_kernel_detach.dpatch
------------------------------------------------------------------------------
svn:executable = *
Added: packages/pyusb/trunk/debian/pycompat
URL: http://svn.debian.org/wsvn/python-modules/packages/pyusb/trunk/debian/pycompat?rev=2014&op=file
==============================================================================
--- packages/pyusb/trunk/debian/pycompat (added)
+++ packages/pyusb/trunk/debian/pycompat Mon Apr 9 19:01:52 2007
@@ -1,0 +1,1 @@
+2
Added: packages/pyusb/trunk/debian/pyversions
URL: http://svn.debian.org/wsvn/python-modules/packages/pyusb/trunk/debian/pyversions?rev=2014&op=file
==============================================================================
--- packages/pyusb/trunk/debian/pyversions (added)
+++ packages/pyusb/trunk/debian/pyversions Mon Apr 9 19:01:52 2007
@@ -1,0 +1,1 @@
+2.1-
Added: packages/pyusb/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/pyusb/trunk/debian/rules?rev=2014&op=file
==============================================================================
--- packages/pyusb/trunk/debian/rules (added)
+++ packages/pyusb/trunk/debian/rules Mon Apr 9 19:01:52 2007
@@ -1,0 +1,15 @@
+#!/usr/bin/make -f
+
+DEB_PYTHON_SYSTEM = pysupport
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+
+include /usr/share/cdbs/1/rules/dpatch.mk
+# needed to use the dpatch tools (like dpatch-edit-patch)
+include /usr/share/dpatch/dpatch.make
+
+binary-post-install/python-pyusb::
+ # Remove empty and unused directory.
+ rmdir debian/python-pyusb/usr/share/python-support/python-pyusb
+ rmdir debian/python-pyusb/usr/share/python-support
Propchange: packages/pyusb/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
More information about the Python-modules-commits
mailing list