Make the package ready for EL6
This commit is contained in:
parent
86c5a2b708
commit
eafc66be80
@ -12,7 +12,7 @@ Release: 3%{?dist}
|
|||||||
Summary: Cross-platform colored terminal text
|
Summary: Cross-platform colored terminal text
|
||||||
|
|
||||||
License: BSD
|
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
|
Source0: http://pypi.python.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -29,9 +29,11 @@ Termcolor.
|
|||||||
|
|
||||||
%package -n python2-%{pypi_name}
|
%package -n python2-%{pypi_name}
|
||||||
Summary: Cross-platform colored terminal text
|
Summary: Cross-platform colored terminal text
|
||||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
||||||
BuildRequires: python2-devel
|
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}
|
%description -n python2-%{pypi_name}
|
||||||
Makes ANSI escape character sequences, for producing colored
|
Makes ANSI escape character sequences, for producing colored
|
||||||
@ -69,19 +71,16 @@ Python 3 version.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version}
|
%autosetup -n %{pypi_name}-%{version}
|
||||||
# remove bundled egg-info
|
|
||||||
rm -rf *.egg-info
|
rm -rf *.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
|
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
%py2_install
|
||||||
|
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user