commit 3a44f6788240d7a86a41dfe357e2e46ba83a82674f21d478afbca202b826530d Author: Tomáš Chvátal Date: Thu Apr 18 07:40:34 2019 +0000 Accepting request 694883 from home:jayvdb:branches:devel:languages:python - Activate test suite - Remove unnecessary build dependencies, and add BuildArch: noarch - Remove GPL license as it was relicensed to LGPL2.1+ in May 2015 OBS-URL: https://build.opensuse.org/request/show/694883 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libusb1?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/libusb1-1.7.tar.gz b/libusb1-1.7.tar.gz new file mode 100644 index 0000000..8ae4996 --- /dev/null +++ b/libusb1-1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d4f66d2ed699986b06bc3082cd262101cb26af7a76a34bd15b7eb56cba37e0f +size 56605 diff --git a/python-libusb1.changes b/python-libusb1.changes new file mode 100644 index 0000000..b26d929 --- /dev/null +++ b/python-libusb1.changes @@ -0,0 +1,56 @@ +------------------------------------------------------------------- +Mon Apr 15 06:40:15 UTC 2019 - John Vandenberg + +- Activate test suite +- Remove unnecessary build dependencies, and add BuildArch: noarch +- Remove GPL license as it was relicensed to LGPL2.1+ in May 2015 + +------------------------------------------------------------------- +Fri Dec 14 16:38:03 UTC 2018 - marec@detebe.org + +- Update to version 1.7: + * Bump to 1.7 . + * setup: Simplify. + * Bump copyright year. + * usb1: Expose transferred byte count and received bytes on synchronous API + * usb1: Fix docstring interruptRead refering to itself. + * Specify that it is compatible with python 3 in setup.py + * README: libusb.org seems dead, switch to the fork. + * usb1: Move getManufacturer, getProduct ,getSerialNumber to USBDeviceHandle. + * usb1: get{,ASCII}StringDescriptor now return None for descriptor 0. + * Bump to 1.6.6 . + +------------------------------------------------------------------- +Mon Aug 27 10:41:21 UTC 2018 - marec@detebe.org + +- Update to version 1.6.6: + * Bump to 1.6.6 . + * usb1: Expose string descriptors on USBDevice. + * Bump to 1.6.5 . + * usb1: Bind "cast" to USBContext class. + * Cast libusb pollfd callbacks from null pointer to proper type. + * examples: Make hotplug and listdev examples python3-friendly. + * setup.py: Tell setuptools to run 2to3 when running on python3 + * usb1: Document hotplug handler limitations. + * Bump to 1.6.4 . + * usb1: Fix asynchronous control transfer buffer. + +------------------------------------------------------------------- +Tue Jul 24 16:22:41 UTC 2018 - marec@detebe.org + +- Update to version 1.6.5: + * Bump to 1.6.5 . + * usb1: Bind "cast" to USBContext class. + * Cast libusb pollfd callbacks from null pointer to proper type. + * examples: Make hotplug and listdev examples python3-friendly. + * setup.py: Tell setuptools to run 2to3 when running on python3 + * usb1: Document hotplug handler limitations. + * Bump to 1.6.4 . + * usb1: Fix asynchronous control transfer buffer. + * Bump to 1.6.3 . + * Deprecate USBPollerThread. + +------------------------------------------------------------------- +Thu Jun 21 18:06:13 UTC 2018 - marec@detebe.org + +- initial package build diff --git a/python-libusb1.spec b/python-libusb1.spec new file mode 100644 index 0000000..2edc0b0 --- /dev/null +++ b/python-libusb1.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-libusb1 +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-libusb1 +Version: 1.7 +Release: 0 +Summary: Python wrapper for libusb-1.0 +# Relicensed from GPL to LGPLv2.1+ in May 2015 +# https://github.com/vpelletier/python-libusb1/commit/238eaefa0759622afc554884b4b333d9bf946c65 +License: LGPL-2.1-or-later +Group: Development/Languages/Python +Url: https://github.com/vpelletier/%{name} +Source: https://files.pythonhosted.org/packages/source/l/libusb1/libusb1-1.7.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: libusb-1_0-0 +BuildRequires: python-rpm-macros +Requires: libusb-1_0-0 +BuildArch: noarch + +%python_subpackages + +%description +This is a pure python wrapper for libusb-1.0. + +%prep +%setup -q -n libusb1-%{version} +sed -i '1{/^#!/d}' examples/*.py +chmod a-x examples/*.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec -m usb1.testUSB1 + +%files %python_files +%doc README.rst examples/ +%license COPYING.LESSER +%{python_sitelib}/* + +%changelog