diff --git a/colorama-0.4.0.zip b/colorama-0.4.0.zip new file mode 100644 index 0000000000000000000000000000000000000000..ea76a480237d535bf97dbdab4cbaa61b3bf5ecd8 Binary files /dev/null and b/colorama-0.4.0.zip differ diff --git a/colorama-0.4.3.tar.gz b/colorama-0.4.3.tar.gz deleted file mode 100644 index d0fcf5a12a83d35d0aa05027c12095e5f102ba4d..0000000000000000000000000000000000000000 Binary files a/colorama-0.4.3.tar.gz and /dev/null differ diff --git a/python-colorama.spec b/python-colorama.spec index 2334fc31a2d4f9b47092a58ac63465fde2be6de4..b5a1e0bd563d3ad1dacd353aba6818e019e7298c 100644 --- a/python-colorama.spec +++ b/python-colorama.spec @@ -1,114 +1,41 @@ %global _empty_manifest_terminate_build 0 Name: python-colorama -Version: 0.4.3 +Version: 0.4.0 Release: 1 Summary: Cross-platform colored terminal text. License: BSD URL: https://github.com/tartley/colorama -Source0: https://files.pythonhosted.org/packages/82/75/f2a4c0c94c85e2693c229142eb448840fba0f9230111faa889d1f541d12d/colorama-0.4.3.tar.gz +Source0: https://files.pythonhosted.org/packages/55/d5/c35bd3e63757ac767105f8695b055581d8b8dd8c22fef020ebefa2a3725d/colorama-0.4.0.zip BuildArch: noarch - - %description -Makes ANSI escape character sequences (for producing colored terminal text and -cursor positioning) work under MS Windows. -ANSI escape character sequences have long been used to produce colored terminal -text and cursor positioning on Unix and Macs. Colorama makes this work on -Windows, too, by wrapping ``stdout``, stripping ANSI sequences it finds (which -would appear as gobbledygook in the output), and converting them into the -appropriate win32 calls to modify the state of the terminal. On other platforms, -Colorama does nothing. -Colorama also provides some shortcuts to help generate ANSI sequences -but works fine in conjunction with any other ANSI sequence generation library, -such as the venerable Termcolor (https://pypi.org/project/termcolor/) -or the fabulous Blessings (https://pypi.org/project/blessings/). -This has the upshot of providing a simple cross-platform API for printing -colored terminal text from Python, and has the happy side-effect that existing -applications or libraries which use ANSI sequences to produce colored output on -Linux or Macs can now also work on Windows, simply by calling -``colorama.init()``. -An alternative approach is to install ``ansi.sys`` on Windows machines, which -provides the same behaviour for all applications running in terminals. Colorama -is intended for situations where that isn't easy (e.g., maybe your app doesn't -have an installer.) -Demo scripts in the source code repository print some colored text using -ANSI sequences. Compare their output under Gnome-terminal's built in ANSI -handling, versus on Windows Command-Prompt using Colorama: -These screengrabs show that, on Windows, Colorama does not support ANSI 'dim -text'; it looks the same as 'normal text'. +Cross-platform colored terminal text. + -%package -n python3-colorama +%package -n python2-colorama Summary: Cross-platform colored terminal text. -Provides: python-colorama -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%description -n python3-colorama -Makes ANSI escape character sequences (for producing colored terminal text and -cursor positioning) work under MS Windows. -ANSI escape character sequences have long been used to produce colored terminal -text and cursor positioning on Unix and Macs. Colorama makes this work on -Windows, too, by wrapping ``stdout``, stripping ANSI sequences it finds (which -would appear as gobbledygook in the output), and converting them into the -appropriate win32 calls to modify the state of the terminal. On other platforms, -Colorama does nothing. -Colorama also provides some shortcuts to help generate ANSI sequences -but works fine in conjunction with any other ANSI sequence generation library, -such as the venerable Termcolor (https://pypi.org/project/termcolor/) -or the fabulous Blessings (https://pypi.org/project/blessings/). -This has the upshot of providing a simple cross-platform API for printing -colored terminal text from Python, and has the happy side-effect that existing -applications or libraries which use ANSI sequences to produce colored output on -Linux or Macs can now also work on Windows, simply by calling -``colorama.init()``. -An alternative approach is to install ``ansi.sys`` on Windows machines, which -provides the same behaviour for all applications running in terminals. Colorama -is intended for situations where that isn't easy (e.g., maybe your app doesn't -have an installer.) -Demo scripts in the source code repository print some colored text using -ANSI sequences. Compare their output under Gnome-terminal's built in ANSI -handling, versus on Windows Command-Prompt using Colorama: -These screengrabs show that, on Windows, Colorama does not support ANSI 'dim -text'; it looks the same as 'normal text'. +Provides: python2-colorama +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-pip +%description -n python2-colorama +Cross-platform colored terminal text. + %package help Summary: Development documents and examples for colorama -Provides: python3-colorama-doc +Provides: python2-colorama-doc %description help -Makes ANSI escape character sequences (for producing colored terminal text and -cursor positioning) work under MS Windows. -ANSI escape character sequences have long been used to produce colored terminal -text and cursor positioning on Unix and Macs. Colorama makes this work on -Windows, too, by wrapping ``stdout``, stripping ANSI sequences it finds (which -would appear as gobbledygook in the output), and converting them into the -appropriate win32 calls to modify the state of the terminal. On other platforms, -Colorama does nothing. -Colorama also provides some shortcuts to help generate ANSI sequences -but works fine in conjunction with any other ANSI sequence generation library, -such as the venerable Termcolor (https://pypi.org/project/termcolor/) -or the fabulous Blessings (https://pypi.org/project/blessings/). -This has the upshot of providing a simple cross-platform API for printing -colored terminal text from Python, and has the happy side-effect that existing -applications or libraries which use ANSI sequences to produce colored output on -Linux or Macs can now also work on Windows, simply by calling -``colorama.init()``. -An alternative approach is to install ``ansi.sys`` on Windows machines, which -provides the same behaviour for all applications running in terminals. Colorama -is intended for situations where that isn't easy (e.g., maybe your app doesn't -have an installer.) -Demo scripts in the source code repository print some colored text using -ANSI sequences. Compare their output under Gnome-terminal's built in ANSI -handling, versus on Windows Command-Prompt using Colorama: -These screengrabs show that, on Windows, Colorama does not support ANSI 'dim -text'; it looks the same as 'normal text'. +Cross-platform colored terminal text. + %prep -%autosetup -n colorama-0.4.3 +%autosetup -n colorama-0.4.0 %build -%py3_build +%py2_build %install -%py3_install +%py2_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -135,12 +62,12 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-colorama -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-colorama -f filelist.lst +%dir %{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Wed Sep 30 2020 Python_Bot +* Thu Apr 29 2021 openstack-sig - Package Spec generated diff --git a/python-colorama.yaml b/python-colorama.yaml deleted file mode 100644 index 8edbbd001b335f9dc465d41e9c0bdcb6e8a6850d..0000000000000000000000000000000000000000 --- a/python-colorama.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version_control: github -src_repo: tartley/colorama -tag_prefix: -seperator: .