%global pypi_name aioambient Name: python-%{pypi_name} Version: 1.2.1 Release: 1%{?dist} Summary: Python library for the Ambient Weather API License: MIT URL: https://github.com/bachya/aioambient Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description aioambient is a Python 3, asyncio-driven library that interfaces with both the REST and Websocket APIs provided by Ambient Weather. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} aioambient is a Python 3, asyncio-driven library that interfaces with both the REST and Websocket APIs provided by Ambient Weather. %prep %autosetup -n %{pypi_name}-%{version} %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 - 1.2.1-1 - Initial package for Fedora