summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 12:41:15 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 12:41:15 +0000
commit40c46065b83c42183286536786705811f0ecace4 (patch)
tree5e503fdcf7623fcc952c3b1bc0e7907994b13aea
parent271bfe872c3eb7cca189e5d415dc7a379113ce37 (diff)
automatic import of python-mylogging
-rw-r--r--.gitignore1
-rw-r--r--python-mylogging.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..db8cb4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mylogging-4.0.6.tar.gz
diff --git a/python-mylogging.spec b/python-mylogging.spec
new file mode 100644
index 0000000..b0c376d
--- /dev/null
+++ b/python-mylogging.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mylogging
+Version: 4.0.6
+Release: 1
+Summary: Small library for printing warnings and creating logs.
+License: mit
+URL: https://github.com/Malachov/mylogging
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3e/87/909ff2523c59e04f2bbc2b7554b1268cdf08aaacfd61c983de4b1a5682ed/mylogging-4.0.6.tar.gz
+BuildArch: noarch
+
+Requires: python3-pygments
+Requires: python3-typing-extensions
+Requires: python3-typeguard
+
+%description
+It's possible to use logger in any other way if you need (though it's usually not necessary), you can find used logger in logger_module. There are also used filters and handlers.
+
+%package -n python3-mylogging
+Summary: Small library for printing warnings and creating logs.
+Provides: python-mylogging
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-mylogging
+It's possible to use logger in any other way if you need (though it's usually not necessary), you can find used logger in logger_module. There are also used filters and handlers.
+
+%package help
+Summary: Development documents and examples for mylogging
+Provides: python3-mylogging-doc
+%description help
+It's possible to use logger in any other way if you need (though it's usually not necessary), you can find used logger in logger_module. There are also used filters and handlers.
+
+%prep
+%autosetup -n mylogging-4.0.6
+
+%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-mylogging -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 4.0.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..438ad12
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+85a0b0b5c9a647daeca24f417933d439 mylogging-4.0.6.tar.gz