%global pypi_name pigpio Name: python-%{pypi_name} Version: 1.78 Release: %autorelease Summary: Raspberry Pi GPIO module License: Unlicense URL: http://abyz.co.uk/rpi/pigpio/python.html Source0: %pypi_source BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description Raspberry Pi Python module to access the pigpio daemon. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Raspberry Pi Python module to access the pigpio daemon. %prep %autosetup -n %{pypi_name}-%{version} %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog %autochangelog