summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 04:11:20 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 04:11:20 +0000
commitdb1ee50af7da624aa03f057aee3f23aa4ea27fd5 (patch)
treea5abb5beca1d0d3ac2508f06fd7b39f80a2ac8bd
parent13dd720e0212e077410691708a146fb99845203a (diff)
automatic import of python-logdecoratoropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-logdecorator.spec105
-rw-r--r--sources1
3 files changed, 107 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..742c904 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/logdecorator-2.4.tar.gz
diff --git a/python-logdecorator.spec b/python-logdecorator.spec
new file mode 100644
index 0000000..c723f2e
--- /dev/null
+++ b/python-logdecorator.spec
@@ -0,0 +1,105 @@
+%global _empty_manifest_terminate_build 0
+Name: python-logdecorator
+Version: 2.4
+Release: 1
+Summary: Move logging code out of your business logic with decorators
+License: MIT License
+URL: https://github.com/sighalt/logdecorator
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/37/8e/67489bd6cb26b8cf0749ab64773a8ee501690c5c9c12531850c9371be137/logdecorator-2.4.tar.gz
+BuildArch: noarch
+
+
+%description
+|Downloads|
+Move logging code out of your business logic with python decorators.
+Logging is a nice tool in your toolbox for tracing bugs and getting a
+better sense how your application is working in production. But if you
+are like me, you often omit logging code, so it will not hide business
+logic or feature your code with complexity.
+Fortunately pythons decorator now came to our rescue and provides us
+with a nice library to add logging to our code without stealing
+readability and understandability.
+If you want to know more about the intentions behind logdecorator check
+out my `blog
+post <https://www.sighalt.de/remove-visual-noise-of-logging-code-by-using-python-decorators.html>`__.
+
+%package -n python3-logdecorator
+Summary: Move logging code out of your business logic with decorators
+Provides: python-logdecorator
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-logdecorator
+|Downloads|
+Move logging code out of your business logic with python decorators.
+Logging is a nice tool in your toolbox for tracing bugs and getting a
+better sense how your application is working in production. But if you
+are like me, you often omit logging code, so it will not hide business
+logic or feature your code with complexity.
+Fortunately pythons decorator now came to our rescue and provides us
+with a nice library to add logging to our code without stealing
+readability and understandability.
+If you want to know more about the intentions behind logdecorator check
+out my `blog
+post <https://www.sighalt.de/remove-visual-noise-of-logging-code-by-using-python-decorators.html>`__.
+
+%package help
+Summary: Development documents and examples for logdecorator
+Provides: python3-logdecorator-doc
+%description help
+|Downloads|
+Move logging code out of your business logic with python decorators.
+Logging is a nice tool in your toolbox for tracing bugs and getting a
+better sense how your application is working in production. But if you
+are like me, you often omit logging code, so it will not hide business
+logic or feature your code with complexity.
+Fortunately pythons decorator now came to our rescue and provides us
+with a nice library to add logging to our code without stealing
+readability and understandability.
+If you want to know more about the intentions behind logdecorator check
+out my `blog
+post <https://www.sighalt.de/remove-visual-noise-of-logging-code-by-using-python-decorators.html>`__.
+
+%prep
+%autosetup -n logdecorator-2.4
+
+%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-logdecorator -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..b3845f4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+de17eacc18a34cbd017da28c8a5892f6 logdecorator-2.4.tar.gz