From eafc66be807b0ab55e6e99a31d15bf277c5e5727 Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Fri, 14 Oct 2016 15:07:39 +0100 Subject: [PATCH] Make the package ready for EL6 --- python-colorama.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/python-colorama.spec b/python-colorama.spec index 834ba51..743381f 100644 --- a/python-colorama.spec +++ b/python-colorama.spec @@ -12,7 +12,7 @@ Release: 3%{?dist} Summary: Cross-platform colored terminal text License: BSD -URL: http://pypi.python.org/pypi/colorama/ +URL: http://pypi.python.org/pypi/colorama Source0: http://pypi.python.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch @@ -29,9 +29,11 @@ Termcolor. %package -n python2-%{pypi_name} Summary: Cross-platform colored terminal text -%{?python_provide:%python_provide python2-%{pypi_name}} BuildRequires: python2-devel -BuildRequires: python2-setuptools +%{?el6:BuildRequires: python-setuptools} +%{!?el6:BuildRequires: python2-setuptools} +%{?el6:Provides: python-%{pypi_name}} +%{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} Makes ANSI escape character sequences, for producing colored @@ -69,19 +71,16 @@ Python 3 version. %prep %autosetup -n %{pypi_name}-%{version} -# remove bundled egg-info rm -rf *.egg-info %build %py2_build - %if %{with python3} %py3_build %endif %install %py2_install - %if %{with python3} %py3_install %endif