%global pypi_name statistics Name: python-%{pypi_name} Version: 1.0.3.5 Release: 1%{?dist} Summary: A port of Python 3.4 statistics module to Python 2.*, initially done through the 3to2 tool. License: PSF License URL: https://github.com/digitalemagine/py-statistics Source0: https://github.com/digitalemagine/py-statistics/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description A port of Python 3.4 statistics module to Python 2.*, initially done through the 3to2 tool. This module provides functions for calculating mathematical statistics of numeric (Real-valued) data. %package -n python2-%{pypi_name} Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-setuptools %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} A port of Python 3.4 statistics module to Python 2.*, initially done through the 3to2 tool. This module provides functions for calculating mathematical statistics of numeric (Real-valued) data. %prep %autosetup -n %{pypi_name}-%{version} %build %py2_build %install %py2_install %files -n python2-%{pypi_name} %{python2_sitelib}/%{pypi_name}/ %{python2_sitelib}/%{pypi_name}*.egg-info %changelog * Wed Mar 24 2021 Fabian Affolter - 1.0.3.5-1 - Initial package