# Created by pyp2rpm-3.3.3 %global pypi_name speedtest-cli Name: python-%{pypi_name} Version: 2.1.2 Release: 1%{?dist} Summary: Command line interface for testing internet bandwidth using speedtest License: Apache License, Version 2.0 URL: https://github.com/sivel/speedtest-cli Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description speedtest-cli Command line interface for testing internet bandwidth using speedtest.net speedtest-cli works with Python 2.4-3.7. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(setuptools) %description -n python3-%{pypi_name} speedtest-cli Command line interface for testing internet bandwidth using speedtest.net speedtest-cli works with Python 2.4-3.7. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{_bindir}/speedtest %{_bindir}/speedtest-cli %{python3_sitelib}/__pycache__/* %{python3_sitelib}/speedtest.py %{python3_sitelib}/speedtest_cli-%{version}-py%{python3_version}.egg-info %changelog * Sat Sep 05 2020 Athanasios Kanaris - 2.1.2-1 - Initial package.