diff --git a/python-pyusb.changes b/python-pyusb.changes index 0da9a8f..13e046a 100644 --- a/python-pyusb.changes +++ b/python-pyusb.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Apr 17 01:30:00 UTC 2019 - John Vandenberg + +- Activate tests using GitHub archive +- Add fdupes +- Add Requires libusb-1_0-1 + ------------------------------------------------------------------- Tue Apr 16 11:33:37 CEST 2019 - Matej Cepl diff --git a/python-pyusb.spec b/python-pyusb.spec index feb2533..dc21ac0 100644 --- a/python-pyusb.spec +++ b/python-pyusb.spec @@ -25,10 +25,13 @@ Summary: USB access on the Python language License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/pyusb/pyusb -Source: https://files.pythonhosted.org/packages/source/p/pyusb/pyusb-%{version}.tar.gz +Source: https://github.com/pyusb/pyusb/archive/v%{version}.tar.gz#/pyusb-%{version}.tar.gz +BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module setuptools} BuildRequires: dos2unix +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: libusb-1_0-0 BuildArch: noarch Provides: python-usb = %{version}-%{release} Obsoletes: python-usb < %{version}-%{release} @@ -47,13 +50,16 @@ find . -name "*.rst" -exec dos2unix {} + %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# Tests are neither available nor useable gh#pyusb/pyusb#235 +# Testing mostly requires a device, which is not mocked or emulated +# See https://github.com/pyusb/pyusb/issues/235 +%python_exec setup.py pytest --addopts="tests/test_find.py tests/test_util.py -k 'not FindDescriptorTest'" %files %{python_files} %license LICENSE -%doc ACKNOWLEDGEMENTS ChangeLog README.rst docs/* +%doc ACKNOWLEDGEMENTS README.rst docs/* %{python_sitelib}/* %changelog diff --git a/pyusb-1.0.2.tar.gz b/pyusb-1.0.2.tar.gz index 60a1c06..2bfedae 100644 --- a/pyusb-1.0.2.tar.gz +++ b/pyusb-1.0.2.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4e9b72cc4a4205ca64fbf1f3fff39a335512166c151ad103e55c8223ac147362 -size 54220 +oid sha256:49dfa601f28e9399df62004170cfb623197ad32d8399885b7f789775767b50c3 +size 68694