summaryrefslogtreecommitdiff
path: root/python-verboselogs.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-verboselogs.spec')
-rw-r--r--python-verboselogs.spec96
1 files changed, 96 insertions, 0 deletions
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 <Python_Bot@openeuler.org> - 1.7-1
+- Package Spec generated