%global pypi_name pytile Name: python-%{pypi_name} Version: 5.0.1 Release: 1%{?dist} Summary: Python API for Tile Bluetooth trackers License: MIT URL: https://github.com/bachya/pytile Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description pytile is a simple Python library for retrieving information on Tile Bluetooth trackers (including last location and more). %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3dist(pytest) BuildRequires: python3dist(aiohttp) BuildRequires: python3dist(aresponses) BuildRequires: python3dist(pytest-aiohttp) BuildRequires: python3dist(pytest-cov) %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} pytile is a simple Python library for retrieving information on Tile Bluetooth trackers (including last location and more). %prep %autosetup -n %{pypi_name}-%{version} sed -i -e '/pylint/d' pyproject.toml %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pytest -v tests %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Sat Sep 19 2020 Fabian Affolter - 5.0.1-1 - Initial package for Fedora