diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:50:12 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:50:12 +0000 |
| commit | 0cad8fcf102dabf1ada7d3c3263d8c6c444134fa (patch) | |
| tree | 6a71bc4d514cef024e4106fc63a55b07ba729282 /python-requests-threads.spec | |
| parent | 6352cbd905ebbf1bb286111aa6294c79a0fa029f (diff) | |
automatic import of python-requests-threads
Diffstat (limited to 'python-requests-threads.spec')
| -rw-r--r-- | python-requests-threads.spec | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/python-requests-threads.spec b/python-requests-threads.spec new file mode 100644 index 0000000..43eeadd --- /dev/null +++ b/python-requests-threads.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: python-requests-threads +Version: 0.1.1 +Release: 1 +Summary: A Requests session that returns awaitable Twisted Deferreds instead of response objects. +License: ISC +URL: https://github.com/requests/requests/requests-threads +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/63/ef/871c1681ae1094bf805a39675ad58f884bef4769fbfff82399dd02a8b4a4/requests-threads-0.1.1.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-twisted + +%description +This repo contains a Requests session that returns awaitable Twisted +Deferreds instead of Response objects. +It's awesome, basically — check it out: + +%package -n python3-requests-threads +Summary: A Requests session that returns awaitable Twisted Deferreds instead of response objects. +Provides: python-requests-threads +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-requests-threads +This repo contains a Requests session that returns awaitable Twisted +Deferreds instead of Response objects. +It's awesome, basically — check it out: + +%package help +Summary: Development documents and examples for requests-threads +Provides: python3-requests-threads-doc +%description help +This repo contains a Requests session that returns awaitable Twisted +Deferreds instead of Response objects. +It's awesome, basically — check it out: + +%prep +%autosetup -n requests-threads-0.1.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-requests-threads -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.1-1 +- Package Spec generated |
