Make the package ready for EL6

This commit is contained in:
Fabio Alessandro Locati 2016-10-14 15:07:39 +01:00
parent 86c5a2b708
commit eafc66be80

View File

@ -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