%global srcname pyusb Name: python3-%{srcname} Version: 1.0.2 Release: 2%{?dist} Summary: Python 3 bindings for libusb License: BSD URL: http://%{srcname}.github.io/%{srcname}/ Source0: https://github.com/%{srcname}/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildRequires: libusb-devel BuildArch: noarch %global _description\ PyUSB provides easy USB access to python. The module contains classes and\ methods to support most USB operations. %description %_description %package -n python%{python3_pkgversion}-%{srcname} Summary: %summary %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %description -n python%{python3_pkgversion}-%{srcname} PyUSB provides easy USB access to python. The module contains classes and methods to support most USB operations. %prep %autosetup -n %{srcname}-%{version} %build %py3_build %install %py3_install %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/usb %{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info %changelog * Thu Feb 1 2018 Orion Poplawski - 1.0.2-2 - Add BR on setuptools - Be more explicit in %%files * Wed Jan 31 2018 Orion Poplawski - 1.0.2-1 - EPEL package