summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 10:19:32 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 10:19:32 +0000
commit3cd3c4ae022c32d6f13425d1aca1940f679191f2 (patch)
tree44851451524fff515b5e7613552f66725bc085aa
parentd249a552490e917cd56167b4eff2074b0adcadb4 (diff)
automatic import of python-json-log-formatter
-rw-r--r--.gitignore1
-rw-r--r--python-json-log-formatter.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8dc488e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/JSON-log-formatter-0.5.2.tar.gz
diff --git a/python-json-log-formatter.spec b/python-json-log-formatter.spec
new file mode 100644
index 0000000..f19dd59
--- /dev/null
+++ b/python-json-log-formatter.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-JSON-log-formatter
+Version: 0.5.2
+Release: 1
+Summary: JSON log formatter
+License: MIT
+URL: https://github.com/marselester/json-log-formatter
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/80/0f/daee9657d9860f505afab484b3d80f3f1f757ec3a65ab93212558cfac468/JSON-log-formatter-0.5.2.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-JSON-log-formatter
+Summary: JSON log formatter
+Provides: python-JSON-log-formatter
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-JSON-log-formatter
+
+
+%package help
+Summary: Development documents and examples for JSON-log-formatter
+Provides: python3-JSON-log-formatter-doc
+%description help
+
+
+%prep
+%autosetup -n JSON-log-formatter-0.5.2
+
+%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-JSON-log-formatter -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..d6c229e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+18ef338b3102bdeca8973e2d1c8a6808 JSON-log-formatter-0.5.2.tar.gz