6b2d9c
%global pypi_name colorama
6b2d9c
6b2d9c
%if 0%{?rhel}
6b2d9c
%if 0%{?rhel}> 7
6b2d9c
%bcond_with python2
6b2d9c
%bcond_without python3
6b2d9c
%else
6b2d9c
%bcond_without python2
6b2d9c
%bcond_with python3
6b2d9c
%endif
6b2d9c
%else
6b2d9c
%if 0%{?fedora} > 29
6b2d9c
%bcond_without python3
6b2d9c
%else
6b2d9c
%bcond_without python2
6b2d9c
%bcond_without python3
6b2d9c
%endif
6b2d9c
%endif
6b2d9c
6b2d9c
Name:           python-%{pypi_name}
6b2d9c
Version:        0.4.4
6b2d9c
Release:        2%{?dist}
6b2d9c
Summary:        Cross-platform colored terminal text
6b2d9c
6b2d9c
License:        BSD
6b2d9c
URL:            http://pypi.python.org/pypi/colorama
6b2d9c
Source0:        https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
6b2d9c
BuildArch:      noarch
6b2d9c
6b2d9c
%description
6b2d9c
Makes ANSI escape character sequences, for producing colored
6b2d9c
terminal text and cursor positioning, work under MS Windows.
6b2d9c
6b2d9c
ANSI escape character sequences have long been used to produce colored terminal
6b2d9c
text and cursor positioning on Unix and Macs. Colorama makes this work on
6b2d9c
Windows, too.
6b2d9c
It also provides some shortcuts to help generate ANSI sequences, and works fine
6b2d9c
in conjunction with any other ANSI sequence generation library, such as
6b2d9c
Termcolor.
6b2d9c
6b2d9c
%if %{with python2}
6b2d9c
%package -n python2-%{pypi_name}
6b2d9c
Summary:        Cross-platform colored terminal text
6b2d9c
BuildRequires:  python2-devel
6b2d9c
%{?el6:BuildRequires:  python-setuptools}
6b2d9c
%{!?el6:BuildRequires:  python2-setuptools}
6b2d9c
%{?el6:Provides: python-%{pypi_name}}
6b2d9c
%{?python_provide:%python_provide python2-%{pypi_name}}
6b2d9c
6b2d9c
%description -n python2-%{pypi_name}
6b2d9c
Makes ANSI escape character sequences, for producing colored
6b2d9c
terminal text and cursor positioning, work under MS Windows.
6b2d9c
6b2d9c
ANSI escape character sequences have long been used to produce colored terminal
6b2d9c
text and cursor positioning on Unix and Macs. Colorama makes this work on
6b2d9c
Windows, too.
6b2d9c
It also provides some shortcuts to help generate ANSI sequences, and works fine
6b2d9c
in conjunction with any other ANSI sequence generation library, such as
6b2d9c
Termcolor.
6b2d9c
6b2d9c
Python 2 version.
6b2d9c
%endif
6b2d9c
6b2d9c
%if %{with python3}
6b2d9c
%package -n python3-%{pypi_name}
6b2d9c
Summary:        Cross-platform colored terminal text
6b2d9c
%{?python_provide:%python_provide python3-%{pypi_name}}
6b2d9c
BuildRequires:  python3-devel
6b2d9c
BuildRequires:  python3-setuptools
6b2d9c
6b2d9c
%description -n python3-%{pypi_name}
6b2d9c
Makes ANSI escape character sequences, for producing colored
6b2d9c
terminal text and cursor positioning, work under MS Windows.
6b2d9c
6b2d9c
ANSI escape character sequences have long been used to produce colored terminal
6b2d9c
text and cursor positioning on Unix and Macs. Colorama makes this work on
6b2d9c
Windows, too.
6b2d9c
It also provides some shortcuts to help generate ANSI sequences, and works fine
6b2d9c
in conjunction with any other ANSI sequence generation library, such as
6b2d9c
Termcolor.
6b2d9c
6b2d9c
Python 3 version.
6b2d9c
%endif
6b2d9c
6b2d9c
%prep
6b2d9c
%autosetup -n %{pypi_name}-%{version}
6b2d9c
rm -rf *.egg-info
6b2d9c
6b2d9c
%build
6b2d9c
%if %{with python2}
6b2d9c
%py2_build
6b2d9c
%endif
6b2d9c
%if %{with python3}
6b2d9c
%py3_build
6b2d9c
%endif
6b2d9c
6b2d9c
%install
6b2d9c
%if %{with python2}
6b2d9c
%py2_install
6b2d9c
%endif
6b2d9c
%if %{with python3}
6b2d9c
%py3_install
6b2d9c
%endif
6b2d9c
6b2d9c
%if %{with python2}
6b2d9c
%files -n python2-%{pypi_name}
6b2d9c
%doc README.rst
6b2d9c
%license LICENSE.txt
6b2d9c
%{python2_sitelib}/%{pypi_name}/
6b2d9c
%{python2_sitelib}/%{pypi_name}-%{version}-*.egg-info/
6b2d9c
%endif
6b2d9c
6b2d9c
%if %{with python3}
6b2d9c
%files -n python3-%{pypi_name}
6b2d9c
%doc README.rst
6b2d9c
%license LICENSE.txt
6b2d9c
%{python3_sitelib}/%{pypi_name}/
6b2d9c
%{python3_sitelib}/%{pypi_name}-%{version}-*.egg-info/
6b2d9c
%endif
6b2d9c
6b2d9c
%changelog
6b2d9c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-2
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6b2d9c
6b2d9c
* Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 0.4.4-1
6b2d9c
- Update to 0.4.4 (rhbz#1887630)
6b2d9c
6b2d9c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-3
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6b2d9c
6b2d9c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-2
6b2d9c
- Rebuilt for Python 3.9
6b2d9c
6b2d9c
* Sun May 03 2020 Fabio Alessandro Locati <me@fale.io> - 0.4.3-1
6b2d9c
* Update to 0.4.3
6b2d9c
6b2d9c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-5
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6b2d9c
6b2d9c
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-4
6b2d9c
- Rebuilt for Python 3.8.0rc1 (#1748018)
6b2d9c
6b2d9c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-3
6b2d9c
- Rebuilt for Python 3.8
6b2d9c
6b2d9c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-2
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6b2d9c
6b2d9c
* Tue Feb 05 2019 Alfredo Moralejo <amoralej@redhat.com> - 0.4.1-1
6b2d9c
- Update to 0.4.1
6b2d9c
6b2d9c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-4
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6b2d9c
6b2d9c
* Tue Oct 30 2018 Matthias Runge <mrunge@redhat.com> - 0.4.0-3
6b2d9c
- fix python2 and python3 package for all releases
6b2d9c
6b2d9c
* Fri Oct 19 2018 Javier Peña <jpena@redhat.com> - 0.4.0-2
6b2d9c
- Fix python2 package for non-Fedora
6b2d9c
6b2d9c
* Fri Oct 19 2018 Matthias Runge <mrunge@redhat.com> - 0.4.0-1
6b2d9c
- update to 0.4.0
6b2d9c
6b2d9c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.9-4
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6b2d9c
6b2d9c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.9-3
6b2d9c
- Rebuilt for Python 3.7
6b2d9c
6b2d9c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.9-2
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6b2d9c
6b2d9c
* Wed Dec 20 2017 Matthias Runge <mrunge@redhat.com> - 0.3.9-1
6b2d9c
- update to 0.3.9 (rhbz#1444626)
6b2d9c
6b2d9c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-6
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6b2d9c
6b2d9c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-5
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6b2d9c
6b2d9c
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.7-4
6b2d9c
- Rebuild for Python 3.6
6b2d9c
6b2d9c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.7-3
6b2d9c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
6b2d9c
6b2d9c
* Sun Apr 10 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.3.7-2
6b2d9c
- Follow new packaging guidelines
6b2d9c
6b2d9c
* Tue Mar 08 2016 Matthias Runge <mrunge@redhat.com> - 0.3.7-1
6b2d9c
- update to 0.3.7 (rhbz#1179250)
6b2d9c
6b2d9c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-4
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6b2d9c
6b2d9c
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-3
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
6b2d9c
6b2d9c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-2
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6b2d9c
6b2d9c
* Fri Sep 05 2014 Matthias Runge <mrunge@redhat.com> - 0.3.2-1
6b2d9c
- update to 0.3.2 (rhbz#1090014)
6b2d9c
6b2d9c
* Fri Jul 25 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.2.7-5
6b2d9c
- Skip the python3 %%files section if we don't build the python3 package
6b2d9c
6b2d9c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-4
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6b2d9c
6b2d9c
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.2.7-3
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
6b2d9c
6b2d9c
* Wed Mar 12 2014 Matthias Runge <mrunge@redhat.com> - 0.2.7-2
6b2d9c
- introduce python3 package (rhbz#1075410)
6b2d9c
6b2d9c
* Mon Sep 30 2013 Matthias Rugne <mrunge@redhat.com> - 0.2.7-1
6b2d9c
- uddate to 0.2.7 (rhbz#1010924)
6b2d9c
6b2d9c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-2
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6b2d9c
6b2d9c
* Fri Mar 22 2013 Matthias Runge <mrunge@redhat.com> - 0.2.5-1
6b2d9c
- update to 0.2.5 (rhbz#913431)
6b2d9c
6b2d9c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
6b2d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6b2d9c
6b2d9c
* Tue Sep 11 2012 Matthias Runge <mrunge@redhat.com> - 0.2.4-1
6b2d9c
- Initial package.