summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 10:53:55 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 10:53:55 +0000
commit9b839b9e51f692e7d26854f2a5bd2901c7d57fd4 (patch)
treee8ed4b27c33d42b47922e807c77cf3f1d22844ca
parent79aa412ac1dd844bad76039c53a002b4c5d65f5c (diff)
automatic import of python-pydloadopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-pydload.spec161
-rw-r--r--sources1
3 files changed, 163 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..22f1e2e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pydload-1.0.9.tar.gz
diff --git a/python-pydload.spec b/python-pydload.spec
new file mode 100644
index 0000000..6a26321
--- /dev/null
+++ b/python-pydload.spec
@@ -0,0 +1,161 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pydload
+Version: 1.0.9
+Release: 1
+Summary: Simple file downloading utilty with configurable timeouts.
+License: GPLv3
+URL: https://github.com/bedapudi6788/PyDload
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/16/6c/db4e98b5b62545e0238c5a4fad6fe434e0e03c178983997224e7794c2181/pydload-1.0.9.tar.gz
+BuildArch: noarch
+
+Requires: python3-progressbar2
+Requires: python3-requests
+
+%description
+
+# PyDload [![Downloads](https://pepy.tech/badge/pydload)](https://pepy.tech/project/pydload)
+
+# Installation
+```
+pip install pydload
+```
+
+Documentation at http://bpraneeth.com/docs/pydload/
+
+# Usage
+```python
+# As a python module
+import pydload
+pydload.dload('url')
+```
+
+```bash
+# As a cli tool
+pydload url_to_download
+```
+
+# Optional Params
+
+max_time - default:30sec. If download takes more than max_time stop download.
+
+timeout - default:10sec. Requests timeout. Max time allowed for establishing connection.
+
+
+
+
+%package -n python3-pydload
+Summary: Simple file downloading utilty with configurable timeouts.
+Provides: python-pydload
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pydload
+
+# PyDload [![Downloads](https://pepy.tech/badge/pydload)](https://pepy.tech/project/pydload)
+
+# Installation
+```
+pip install pydload
+```
+
+Documentation at http://bpraneeth.com/docs/pydload/
+
+# Usage
+```python
+# As a python module
+import pydload
+pydload.dload('url')
+```
+
+```bash
+# As a cli tool
+pydload url_to_download
+```
+
+# Optional Params
+
+max_time - default:30sec. If download takes more than max_time stop download.
+
+timeout - default:10sec. Requests timeout. Max time allowed for establishing connection.
+
+
+
+
+%package help
+Summary: Development documents and examples for pydload
+Provides: python3-pydload-doc
+%description help
+
+# PyDload [![Downloads](https://pepy.tech/badge/pydload)](https://pepy.tech/project/pydload)
+
+# Installation
+```
+pip install pydload
+```
+
+Documentation at http://bpraneeth.com/docs/pydload/
+
+# Usage
+```python
+# As a python module
+import pydload
+pydload.dload('url')
+```
+
+```bash
+# As a cli tool
+pydload url_to_download
+```
+
+# Optional Params
+
+max_time - default:30sec. If download takes more than max_time stop download.
+
+timeout - default:10sec. Requests timeout. Max time allowed for establishing connection.
+
+
+
+
+%prep
+%autosetup -n pydload-1.0.9
+
+%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-pydload -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.9-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f8f1b27
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5e4e34470f904c294d13226e756eff88 pydload-1.0.9.tar.gz