%global pypi_name xknx Name: python-%{pypi_name} Version: 0.13.0 Release: 1%{?dist} Summary: Asynchronous Python library for the KNX protocol License: MIT URL: https://xknx.io/ Source0: %{pypi_source} BuildArch: noarch %description XKNX is an Asynchronous Python library for reading and writing KNX/IP packets. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} XKNX is an Asynchronous Python library for reading and writing KNX/IP packets. %prep %autosetup -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog * Thu Sep 03 2020 Fabian Affolter - 0.13.0-1 - Initial package for Fedora