diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 18:40:28 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 18:40:28 +0000 |
| commit | 7b3903bd04165fa2b01bbde5de082aff8e80b620 (patch) | |
| tree | 94bb7d2bd1ee60c9533406f4810f97dad292274b | |
| parent | 806bb5573a4a11a0989705b8b83c6f2a5ec4d4e4 (diff) | |
automatic import of python-stopit
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-stopit.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/stopit-1.1.2.tar.gz diff --git a/python-stopit.spec b/python-stopit.spec new file mode 100644 index 0000000..b78487d --- /dev/null +++ b/python-stopit.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-stopit +Version: 1.1.2 +Release: 1 +Summary: Timeout control decorator and context managers, raise any exception in another thread +License: GPLv3 +URL: http://pypi.python.org/pypi/stopit +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/35/58/e8bb0b0fb05baf07bbac1450c447d753da65f9701f551dca79823ce15d50/stopit-1.1.2.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-stopit +Summary: Timeout control decorator and context managers, raise any exception in another thread +Provides: python-stopit +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-stopit + + +%package help +Summary: Development documents and examples for stopit +Provides: python3-stopit-doc +%description help + + +%prep +%autosetup -n stopit-1.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-stopit -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.2-1 +- Package Spec generated @@ -0,0 +1 @@ +0f6ef75399a9420fad7b7970d7be6d58 stopit-1.1.2.tar.gz |
