summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 15:38:35 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 15:38:35 +0000
commit536552d0cabb1b984d9148b6e6fb6d09a50296f3 (patch)
tree47f1d8113962972cf3efd057335578a368df2801
parentcbc575fdf1730b407d4f999e454f158c70b4cd53 (diff)
automatic import of python-perfmetrics
-rw-r--r--.gitignore1
-rw-r--r--python-perfmetrics.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..85843fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/perfmetrics-3.3.0.tar.gz
diff --git a/python-perfmetrics.spec b/python-perfmetrics.spec
new file mode 100644
index 0000000..5f24f87
--- /dev/null
+++ b/python-perfmetrics.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-perfmetrics
+Version: 3.3.0
+Release: 1
+Summary: Send performance metrics about Python code to Statsd
+License: BSD-derived (http://www.repoze.org/LICENSE.txt)
+URL: https://github.com/zodb/perfmetrics
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/00/59/cd02f9a391e35b3760ee5778b2dfed308f838ca03d9c2c376e6379d0801f/perfmetrics-3.3.0.tar.gz
+
+
+%description
+
+
+%package -n python3-perfmetrics
+Summary: Send performance metrics about Python code to Statsd
+Provides: python-perfmetrics
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-perfmetrics
+
+
+%package help
+Summary: Development documents and examples for perfmetrics
+Provides: python3-perfmetrics-doc
+%description help
+
+
+%prep
+%autosetup -n perfmetrics-3.3.0
+
+%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-perfmetrics -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 3.3.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f05348b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4839a0133590cab8f577762515c9b91d perfmetrics-3.3.0.tar.gz