3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
7 Summary: PyUSB provides USB access on the Python language
8 Summary(pl.UTF-8): PyUSB - dostęp do USB z poziomu języka Python
13 Group: Development/Languages/Python
14 Source0: http://downloads.sourceforge.net/pyusb/%{module}-%{version}.tar.gz
15 # Source0-md5: 95bf0adc0f25bfb70daf86605cff2b3f
16 URL: http://pyusb.sourceforge.net/
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.714
20 BuildRequires: python-devel >= 1:2.5
21 BuildRequires: python-setuptools
24 BuildRequires: python3-devel >= 1:3.2
25 BuildRequires: python3-setuptools
27 Requires: python-libs >= 1:2.5
28 Requires: libusb >= 1.0.0
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 PyUSB provides USB access on the Python language.
35 %description -l pl.UTF-8
36 PyUSB daje dostęp do USB z poziomu języka Python.
38 %package -n python3-%{module}
39 Summary: PyUSB provides USB access on the Python language
40 Summary(pl.UTF-8): PyUSB - dostęp do USB z poziomu języka Python
41 Group: Development/Languages/Python
42 Requires: python3-libs >= 1:3.2
43 Requires: libusb >= 1.0.0
45 %description -n python3-%{module}
46 PyUSB provides USB access on the Python language.
48 %description -n python3-%{module} -l pl.UTF-8
49 PyUSB daje dostęp do USB z poziomu języka Python.
52 %setup -q -n %{module}-%{version}
64 rm -rf $RPM_BUILD_ROOT
77 rm -rf $RPM_BUILD_ROOT
81 %defattr(644,root,root,755)
82 %doc ACKNOWLEDGEMENTS LICENSE README.rst docs/*.rst
83 %{py_sitescriptdir}/usb
84 %{py_sitescriptdir}/pyusb-%{version}-py*.egg-info
88 %files -n python3-%{module}
89 %defattr(644,root,root,755)
90 %doc ACKNOWLEDGEMENTS LICENSE README.rst docs/*.rst
91 %{py3_sitescriptdir}/usb
92 %{py3_sitescriptdir}/pyusb-%{version}-py*.egg-info