%global pypi_name crayons Name: python-%{pypi_name} Version: 0.3.0 Release: 1%{?dist} Summary: Python module for writing colored text to terminal License: MIT URL: https://pypi.python.org/pypi/crayons #missing license on pypi Source0: https://github.com/kennethreitz/crayons/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %{?python_enable_dependency_generator} %description This module provides a simple and elegant wrapper for colorama. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-colorama BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} This module provides a simple and elegant wrapper for colorama. %prep %autosetup -n %{pypi_name}-%{version} %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/%{pypi_name}-*.egg-info/ %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/__pycache__/%{pypi_name}.*.py* %changelog * Fri Feb 21 2020 Patrik Kopkan - 0.3.0-1 - update to 0.3.0 * Tue Mar 12 2019 Patrik Kopkan - 0.2.0-2 - initial package