summaryrefslogtreecommitdiff
path: root/python-bunyan.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 18:43:16 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 18:43:16 +0000
commitfc584f9b4584c9fa4de3e98729287d0bbec47d68 (patch)
treeddbc9a01c2347b9832c6099b760fdbb317d73bf6 /python-bunyan.spec
parent34aabc2c04f1e00a11d4e49fbd9f497c6a4ad09c (diff)
automatic import of python-bunyan
Diffstat (limited to 'python-bunyan.spec')
-rw-r--r--python-bunyan.spec75
1 files changed, 75 insertions, 0 deletions
diff --git a/python-bunyan.spec b/python-bunyan.spec
new file mode 100644
index 0000000..1e83c37
--- /dev/null
+++ b/python-bunyan.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-bunyan
+Version: 0.1.2
+Release: 1
+Summary: Bunyan python logger
+License: LICENSE
+URL: https://www.github.com/uphold/python-bunyan/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/be/cd/661e57aca2dc0d1548112c65e6cccf185ea16421d95438bed2d28a0f138f/bunyan-0.1.2.tar.gz
+BuildArch: noarch
+
+
+%description
+Json logger compatible with
+`node-bunyan <https://github.com/trentm/node-bunyan>`__
+
+%package -n python3-bunyan
+Summary: Bunyan python logger
+Provides: python-bunyan
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-bunyan
+Json logger compatible with
+`node-bunyan <https://github.com/trentm/node-bunyan>`__
+
+%package help
+Summary: Development documents and examples for bunyan
+Provides: python3-bunyan-doc
+%description help
+Json logger compatible with
+`node-bunyan <https://github.com/trentm/node-bunyan>`__
+
+%prep
+%autosetup -n bunyan-0.1.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-bunyan -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.2-1
+- Package Spec generated