summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 10:25:43 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 10:25:43 +0000
commit43ccc577f027c365b29fe6e3bfc83e5faafe3e34 (patch)
tree1fcfc46b6615a8f3a6b31dfa1a070e93d1515697
parent296ef9fbac70d60c082bf0fa0e2c08b920f7f604 (diff)
automatic import of python-hanging-threadsopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-hanging-threads.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a4b64e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hanging_threads-2.0.5.tar.gz
diff --git a/python-hanging-threads.spec b/python-hanging-threads.spec
new file mode 100644
index 0000000..5af7900
--- /dev/null
+++ b/python-hanging-threads.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-hanging-threads
+Version: 2.0.5
+Release: 1
+Summary: Deadlocks? Detect where your threads hang in Python with one import.
+License: MIT
+URL: https://github.com/niccokunzmann/hanging_threads
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8f/7b/b4d4c2e759800806e514e7a43b4a59c8fd5416676a88af4ad1daf1c5fda8/hanging_threads-2.0.5.tar.gz
+BuildArch: noarch
+
+
+%description
+Deadlocks? Detect where your threads hang in Python.
+
+%package -n python3-hanging-threads
+Summary: Deadlocks? Detect where your threads hang in Python with one import.
+Provides: python-hanging-threads
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-hanging-threads
+Deadlocks? Detect where your threads hang in Python.
+
+%package help
+Summary: Development documents and examples for hanging-threads
+Provides: python3-hanging-threads-doc
+%description help
+Deadlocks? Detect where your threads hang in Python.
+
+%prep
+%autosetup -n hanging-threads-2.0.5
+
+%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-hanging-threads -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ef1f980
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+dc5c1d909c2b4121079a804c8df9c2e8 hanging_threads-2.0.5.tar.gz