From d6b00082a99ebcc14bcdee5d7fa449ec4e2047c7 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 9 Mar 2023 17:53:04 +0000 Subject: automatic import of python-verboselogs --- .gitignore | 1 + python-verboselogs.spec | 96 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 98 insertions(+) create mode 100644 python-verboselogs.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..79c194b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/verboselogs-1.7.tar.gz diff --git a/python-verboselogs.spec b/python-verboselogs.spec new file mode 100644 index 0000000..4d524d6 --- /dev/null +++ b/python-verboselogs.spec @@ -0,0 +1,96 @@ +%global _empty_manifest_terminate_build 0 +Name: python-verboselogs +Version: 1.7 +Release: 1 +Summary: Verbose logging level for Python's logging module +License: MIT License +URL: https://verboselogs.readthedocs.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/29/15/90ffe9bdfdd1e102bc6c21b1eea755d34e69772074b6e706cab741b9b698/verboselogs-1.7.tar.gz +BuildArch: noarch + + +%description +The verboselogs_ package extends Python's logging_ module to add the log levels +NOTICE_, SPAM_, SUCCESS_ and VERBOSE_: +- The NOTICE level sits between the predefined WARNING and INFO levels. +- The SPAM level sits between the predefined DEBUG and NOTSET levels. +- The SUCCESS level sits between the predefined WARNING and ERROR levels. +- The VERBOSE level sits between the predefined INFO and DEBUG levels. +The code to do this is simple and short, but I still don't want to copy/paste +it to every project I'm working on, hence this package. It's currently tested +on Python 2.6, 2.7, 3.4, 3.5, 3.6 and PyPy. + +%package -n python3-verboselogs +Summary: Verbose logging level for Python's logging module +Provides: python-verboselogs +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-verboselogs +The verboselogs_ package extends Python's logging_ module to add the log levels +NOTICE_, SPAM_, SUCCESS_ and VERBOSE_: +- The NOTICE level sits between the predefined WARNING and INFO levels. +- The SPAM level sits between the predefined DEBUG and NOTSET levels. +- The SUCCESS level sits between the predefined WARNING and ERROR levels. +- The VERBOSE level sits between the predefined INFO and DEBUG levels. +The code to do this is simple and short, but I still don't want to copy/paste +it to every project I'm working on, hence this package. It's currently tested +on Python 2.6, 2.7, 3.4, 3.5, 3.6 and PyPy. + +%package help +Summary: Development documents and examples for verboselogs +Provides: python3-verboselogs-doc +%description help +The verboselogs_ package extends Python's logging_ module to add the log levels +NOTICE_, SPAM_, SUCCESS_ and VERBOSE_: +- The NOTICE level sits between the predefined WARNING and INFO levels. +- The SPAM level sits between the predefined DEBUG and NOTSET levels. +- The SUCCESS level sits between the predefined WARNING and ERROR levels. +- The VERBOSE level sits between the predefined INFO and DEBUG levels. +The code to do this is simple and short, but I still don't want to copy/paste +it to every project I'm working on, hence this package. It's currently tested +on Python 2.6, 2.7, 3.4, 3.5, 3.6 and PyPy. + +%prep +%autosetup -n verboselogs-1.7 + +%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-verboselogs -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot - 1.7-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..94011f4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +7c33bd58875e0d316a4f8d7505e946ff verboselogs-1.7.tar.gz -- cgit v1.2.3