From 57e659648ac5f7b7e67a2a001bb7c17cfaa5a089 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 9 Mar 2023 02:15:51 +0000 Subject: automatic import of python-coloredlogs --- .gitignore | 1 + python-coloredlogs.spec | 107 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 109 insertions(+) create mode 100644 python-coloredlogs.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..f02754b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/coloredlogs-15.0.1.tar.gz diff --git a/python-coloredlogs.spec b/python-coloredlogs.spec new file mode 100644 index 0000000..b00ff67 --- /dev/null +++ b/python-coloredlogs.spec @@ -0,0 +1,107 @@ +%global _empty_manifest_terminate_build 0 +Name: python-coloredlogs +Version: 15.0.1 +Release: 1 +Summary: Colored terminal output for Python's logging module +License: MIT +URL: https://coloredlogs.readthedocs.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cc/c7/eed8f27100517e8c0e6b923d5f0845d0cb99763da6fdee00478f91db7325/coloredlogs-15.0.1.tar.gz +BuildArch: noarch + +Requires: python3-humanfriendly +Requires: python3-capturer + +%description +The `coloredlogs` package enables colored terminal output for Python's logging_ +module. The ColoredFormatter_ class inherits from `logging.Formatter`_ and uses +`ANSI escape sequences`_ to render your logging messages in color. It uses only +standard colors so it should work on any UNIX terminal. It's currently tested +on Python 2.7, 3.5+ and PyPy (2 and 3). On Windows `coloredlogs` automatically +tries to enable native ANSI support (on up-to-date Windows 10 installations) +and falls back on using colorama_ (if installed). Here is a screen shot of the +demo that is printed when the command ``coloredlogs --demo`` is executed: +Note that the screenshot above includes custom logging levels defined by my +verboselogs_ package: if you install both `coloredlogs` and `verboselogs` it +will Just Work (`verboselogs` is of course not required to use +`coloredlogs`). + +%package -n python3-coloredlogs +Summary: Colored terminal output for Python's logging module +Provides: python-coloredlogs +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-coloredlogs +The `coloredlogs` package enables colored terminal output for Python's logging_ +module. The ColoredFormatter_ class inherits from `logging.Formatter`_ and uses +`ANSI escape sequences`_ to render your logging messages in color. It uses only +standard colors so it should work on any UNIX terminal. It's currently tested +on Python 2.7, 3.5+ and PyPy (2 and 3). On Windows `coloredlogs` automatically +tries to enable native ANSI support (on up-to-date Windows 10 installations) +and falls back on using colorama_ (if installed). Here is a screen shot of the +demo that is printed when the command ``coloredlogs --demo`` is executed: +Note that the screenshot above includes custom logging levels defined by my +verboselogs_ package: if you install both `coloredlogs` and `verboselogs` it +will Just Work (`verboselogs` is of course not required to use +`coloredlogs`). + +%package help +Summary: Development documents and examples for coloredlogs +Provides: python3-coloredlogs-doc +%description help +The `coloredlogs` package enables colored terminal output for Python's logging_ +module. The ColoredFormatter_ class inherits from `logging.Formatter`_ and uses +`ANSI escape sequences`_ to render your logging messages in color. It uses only +standard colors so it should work on any UNIX terminal. It's currently tested +on Python 2.7, 3.5+ and PyPy (2 and 3). On Windows `coloredlogs` automatically +tries to enable native ANSI support (on up-to-date Windows 10 installations) +and falls back on using colorama_ (if installed). Here is a screen shot of the +demo that is printed when the command ``coloredlogs --demo`` is executed: +Note that the screenshot above includes custom logging levels defined by my +verboselogs_ package: if you install both `coloredlogs` and `verboselogs` it +will Just Work (`verboselogs` is of course not required to use +`coloredlogs`). + +%prep +%autosetup -n coloredlogs-15.0.1 + +%build +%py3_build + +%install +%py3_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 +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-coloredlogs -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot - 15.0.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..9279cdd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +6f68f57a8a1fa0359b4957896fda4cf7 coloredlogs-15.0.1.tar.gz -- cgit v1.2.3