summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 04:55:36 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 04:55:36 +0000
commite837c06faa212361aa6d8261223d8f5ce6902019 (patch)
treee8cbb81ee653d9cf23f4faf0f90b40caded22a12
parentc89427fa7f824d5d642036f772e612ff2f1bf986 (diff)
automatic import of python-flamegraph
-rw-r--r--.gitignore1
-rw-r--r--python-flamegraph.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..880fcc9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/flamegraph-0.1.tar.gz
diff --git a/python-flamegraph.spec b/python-flamegraph.spec
new file mode 100644
index 0000000..88978c8
--- /dev/null
+++ b/python-flamegraph.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-flamegraph
+Version: 0.1
+Release: 1
+Summary: Statistical profiler which outputs in format suitable for FlameGraph
+License: UNLICENSE
+URL: https://github.com/evanhempel/python-flamegraph
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4a/c0/349ab6f90f2f9b325da25b33e7a7a050fa8c65eb4f7554190bd4d830efa3/flamegraph-0.1.tar.gz
+BuildArch: noarch
+
+
+%description
+Simply run::
+ pip install git+https://github.com/evanhempel/python-flamegraph.git
+
+%package -n python3-flamegraph
+Summary: Statistical profiler which outputs in format suitable for FlameGraph
+Provides: python-flamegraph
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-flamegraph
+Simply run::
+ pip install git+https://github.com/evanhempel/python-flamegraph.git
+
+%package help
+Summary: Development documents and examples for flamegraph
+Provides: python3-flamegraph-doc
+%description help
+Simply run::
+ pip install git+https://github.com/evanhempel/python-flamegraph.git
+
+%prep
+%autosetup -n flamegraph-0.1
+
+%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-flamegraph -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..d8aeaac
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+561a009d2435611215b497efbf84c596 flamegraph-0.1.tar.gz