[Python-modules-commits] [python-hidapi] 01/10: Import Debian packaging.

Tristan Seligmann mithrandi at moszumanska.debian.org
Mon Dec 11 10:48:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

mithrandi pushed a commit to annotated tag debian/0.7.99.post21-1
in repository python-hidapi.

commit 366b187ff05f4d063b559f9331cec685aa17dfdd
Author: Tristan Seligmann <mithrandi at mithrandi.net>
Date:   Mon Dec 11 09:41:26 2017 +0200

    Import Debian packaging.
---
 debian/changelog             | 14 ++++++++++++
 debian/compat                |  1 +
 debian/control               | 26 ++++++++++++++++++++++
 debian/copyright             | 21 ++++++++++++++++++
 debian/patches/libhidapi-dev | 53 ++++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series        |  1 +
 debian/rules                 |  9 ++++++++
 debian/source/format         |  1 +
 debian/source/options        |  1 +
 debian/watch                 |  5 +++++
 10 files changed, 132 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e76d044
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,14 @@
+python-hidapi (0.7.99.6-2) unstable; urgency=low
+
+  * Rename binary package to python-hid; this is the correct name as the
+    Python module is named "hid", and also avoids a collision with
+    python-hidapi from hidapi-cffi.
+
+ -- Tristan Seligmann <mithrandi at debian.org>  Sun, 23 Aug 2015 01:01:42 +0200
+
+python-hidapi (0.7.99.6-1) unstable; urgency=low
+
+  * source package automatically created by stdeb 0.6.0+git
+  * Initial release. (Closes: #762920)
+
+ -- Richard Ulrich <richi at paraeasy.ch>  Thu, 25 Sep 2014 22:34:03 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4f41574
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: python-hidapi
+Maintainer: Richard Ulrich <richi at paraeasy.ch>
+Uploaders: Tristan Seligmann <mithrandi at debian.org>
+Section: python
+Priority: optional
+Homepage: https://github.com/trezor/cython-hidapi
+Build-Depends: python-all-dev, debhelper (>=7), dh-python, cython, libhidapi-dev, libusb-1.0-0-dev, libudev-dev
+Standards-Version: 3.9.6
+
+Package: python-hid
+Architecture: any
+Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
+Description: cython interface to hidapi
+ This has been tested with:
+ .
+ * the PIC18F4550 on the development board from CCS with their example program.
+ * the Fine Offset WH3081 Weather Station.
+ .
+ It works on Linux, Windows XP and OS X.
+ .
+ HIDAPI is a multi-platform library which allows an application to interface
+ with USB and Bluetooth HID-Class devices on Windows, Linux, FreeBSD, and Mac
+ OS X.  HIDAPI can be either built as a shared library (.so or .dll) or
+ can be embedded directly into a target application by adding a single source
+ file (per platform) and a single header.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..26f5d5a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,21 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: cython-hidapi
+Source: https://github.com/trezor/cython-hidapi
+
+Files: *
+Copyright: 2010-2014 Gary Bishop <gb at cs.unc.edu>, Pavol Rusnak <stick at gk2.sk>
+License: GPL-3+
+
+Files: hidapi/*
+Copyright: 2009 Alan Ott <alan at signal11.us>
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2014-2015 Richard Ulrich <richi at paraeasy.ch>
+License: GPL-3+
+
+License: GPL-3+
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
+
diff --git a/debian/patches/libhidapi-dev b/debian/patches/libhidapi-dev
new file mode 100644
index 0000000..dae703d
--- /dev/null
+++ b/debian/patches/libhidapi-dev
@@ -0,0 +1,53 @@
+Description: use the libhidapi binaries already in debian
+ Rather than using the c sources delivered with the tarball, use the 
+ binary hidapi libs distributed with debian.
+ .
+ python-hidapi (0.7.99.6-1) unstable; urgency=low
+ .
+   * source package automatically created by stdeb 0.6.0+git
+   * Initial release. (Closes: #762920)
+Author: Richard Ulrich <richi at paraeasy.ch>
+Bug-Debian: https://bugs.debian.org/762920
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- python-hidapi-0.7.99.6.orig/setup.py
++++ python-hidapi-0.7.99.6/setup.py
+@@ -6,21 +6,21 @@ import os
+ import sys
+ 
+ hidapi_topdir = os.path.join(os.getcwd(), 'hidapi')
+-hidapi_include = os.path.join(hidapi_topdir, 'hidapi')
++hidapi_include = '/usr/include/hidapi'
+ def hidapi_src(platform):
+     return os.path.join(hidapi_topdir, platform, 'hid.c')
+ 
+ if sys.platform.startswith('linux'):
+     modules = [
+         Extension('hid',
+-                  sources = ['hid.pyx', 'chid.pxd', hidapi_src('libusb')],
++                  sources = ['hid.pyx', 'chid.pxd'],
+                   include_dirs = [hidapi_include, '/usr/include/libusb-1.0'],
+-                  libraries = ['usb-1.0', 'udev', 'rt'],
++                  libraries = ['usb-1.0', 'udev', 'rt', 'hidapi-libusb'],
+         ),
+         Extension('hidraw',
+-                  sources = ['hidraw.pyx', hidapi_src('linux')],
++                  sources = ['hidraw.pyx'],
+                   include_dirs = [hidapi_include],
+-                  libraries = ['udev', 'rt'],
++                  libraries = ['udev', 'rt', 'hidapi-hidraw'],
+         )
+     ]
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..849f5e9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+libhidapi-dev
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c455c93
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+# This file was automatically generated by stdeb 0.6.0+git at
+# Fri, 26 Sep 2014 11:34:03 +0200
+
+%:
+	dh $@ --with python2 --buildsystem=python_distutils
+
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..4d82e22
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="\.egg-info"
\ No newline at end of file
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..95c3a8a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+# watch control file for uscan
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/python-hidapi-$1\.tar\.gz/,\
+uversionmangle=s/(\d+\.\d+\.\d+)\-(\d)/$1.$2/ \
+http://pypi.debian.net/hidapi/hidapi-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-hidapi.git



More information about the Python-modules-commits mailing list