summaryrefslogtreecommitdiff
path: root/python-datamonitor.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 07:51:40 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 07:51:40 +0000
commit084f2d58be6032f8e9d7195965089ba6b73636b8 (patch)
treeb72b1a7417cc02cf813472000f50a9294c5b666e /python-datamonitor.spec
parent9d98123769678839d6277352226d81ef0eb03aed (diff)
automatic import of python-datamonitoropeneuler20.03
Diffstat (limited to 'python-datamonitor.spec')
-rw-r--r--python-datamonitor.spec74
1 files changed, 74 insertions, 0 deletions
diff --git a/python-datamonitor.spec b/python-datamonitor.spec
new file mode 100644
index 0000000..50535e1
--- /dev/null
+++ b/python-datamonitor.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-datamonitor
+Version: 0.0.5.post5
+Release: 1
+Summary: Python utility to monitor metadata KPI
+License: MIT
+URL: https://github.com/infra-helpers/induction-monitoring/python
+Source0: https://mirrors.aliyun.com/pypi/web/packages/b0/f3/853d6f064d5e71e932b3b567b935dbd99650ab6d96d4b0984b852414622b/datamonitor-0.0.5.post5.tar.gz
+BuildArch: noarch
+
+Requires: python3-elasticsearch
+Requires: python3-elasticmock
+
+%description
+
+
+%package -n python3-datamonitor
+Summary: Python utility to monitor metadata KPI
+Provides: python-datamonitor
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-datamonitor
+
+
+%package help
+Summary: Development documents and examples for datamonitor
+Provides: python3-datamonitor-doc
+%description help
+
+
+%prep
+%autosetup -n datamonitor-0.0.5.post5
+
+%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-datamonitor -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.5.post5-1
+- Package Spec generated