%global pypi_name aioambient Name: python-%{pypi_name} Version: 1.3.0 Release: 4%{?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, 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} # ALlow later websockets releases sed -i -e 's/10.0/11.0/g' setup.py %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 * Fri Jul 22 2022 Fedora Release Engineering - 1.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.3.0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Sep 21 2021 Fabian Affolter - 1.3.0-1 - Update to latest upstream release 1.3.0 * Thu Sep 03 2020 Fabian Affolter - 1.2.1-1 - Initial package for Fedora