%global srcname py-statistics Name: python-statistics Version: 3.4.0 Release: 0.2.beta3%{?dist} Summary: Port of Python 3.4 statistics to 2.7 and up License: Python URL: https://github.com/digitalemagine/py-statistics Source: https://github.com/digitalemagine/%{srcname}/archive/v%{version}b3/%{srcname}-%{version}b3.tar.gz BuildArch: noarch BuildRequires: python2-devel # Tests BR BuildRequires: python2-docutils %global _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. %description %_description %package -n python2-statistics Summary: %summary %{?python_provide:%python_provide python2-statistics} Requires: python2-docutils %description -n python2-statistics %_description %prep %autosetup -n %{srcname}-%{version}b3 %build %py2_build %install %py2_install %check %{__python2} setup.py test %files -n python2-statistics %doc README.rst docs %license LICENSE %{python2_sitelib}/statistics %{python2_sitelib}/statistics-%{version}b3-py*.egg-info %changelog * Thu Aug 31 2017 Juan Orti Alcaine - 3.4.0-0.2.beta3 - Use pre-release versioning * Wed Aug 30 2017 Juan Orti Alcaine - 3.4.0b3-1 - Initial RPM release