diff --git a/python-usb.changes b/python-pyusb.changes similarity index 96% rename from python-usb.changes rename to python-pyusb.changes index 08b6b34..0da9a8f 100644 --- a/python-usb.changes +++ b/python-pyusb.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Apr 16 11:33:37 CEST 2019 - Matej Cepl + +- Rename package according to the Python Packaging policy to + python-pyusb (because that's the name of the package on PyPI). +- Clean SPEC file. + ------------------------------------------------------------------- Tue Dec 4 12:55:43 UTC 2018 - Matej Cepl diff --git a/python-usb.spec b/python-pyusb.spec similarity index 75% rename from python-usb.spec rename to python-pyusb.spec index 300d21c..feb2533 100644 --- a/python-usb.spec +++ b/python-pyusb.spec @@ -1,7 +1,7 @@ # -# spec file for package python-usb +# spec file for package python-pyusb # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -17,19 +17,21 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-usb +Name: python-pyusb Version: 1.0.2 Release: 0 Summary: USB access on the Python language +# URL is incorrect on PyPI, gh#pyusb/pyusb#211 License: BSD-3-Clause Group: Development/Languages/Python -Url: https://walac.github.io/pyusb +URL: https://github.com/pyusb/pyusb Source: https://files.pythonhosted.org/packages/source/p/pyusb/pyusb-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: dos2unix BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +Provides: python-usb = %{version}-%{release} +Obsoletes: python-usb < %{version}-%{release} %python_subpackages %description @@ -46,9 +48,12 @@ find . -name "*.rst" -exec dos2unix {} + %install %python_install +%check +# Tests are neither available nor useable gh#pyusb/pyusb#235 + %files %{python_files} -%defattr(-,root,root) -%doc ACKNOWLEDGEMENTS ChangeLog LICENSE README.rst docs/* +%license LICENSE +%doc ACKNOWLEDGEMENTS ChangeLog README.rst docs/* %{python_sitelib}/* %changelog