summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 07:03:16 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 07:03:16 +0000
commitba25cf9f198238b44b89cf007fc79c5b85ad3746 (patch)
tree5e4868f3dd3a21eaff6dc6522bc5e5d7a39da9cb
parent4da40850ef3e7509eda263c1917dbcdf69570483 (diff)
automatic import of python-requests
-rw-r--r--.gitignore1
-rw-r--r--python-requests.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..95ca77a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/requests-2.28.2.tar.gz
diff --git a/python-requests.spec b/python-requests.spec
new file mode 100644
index 0000000..998a0c4
--- /dev/null
+++ b/python-requests.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-requests
+Version: 2.28.2
+Release: 1
+Summary: Python HTTP for Humans.
+License: Apache 2.0
+URL: https://requests.readthedocs.io
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9d/ee/391076f5937f0a8cdf5e53b701ffc91753e87b07d66bae4a09aa671897bf/requests-2.28.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-charset-normalizer
+Requires: python3-idna
+Requires: python3-urllib3
+Requires: python3-certifi
+Requires: python3-PySocks
+Requires: python3-chardet
+
+%description
+[![Kenneth Reitz](https://raw.githubusercontent.com/psf/requests/main/ext/kr.png)](https://kennethreitz.org) [![Python Software Foundation](https://raw.githubusercontent.com/psf/requests/main/ext/psf.png)](https://www.python.org/psf)
+
+%package -n python3-requests
+Summary: Python HTTP for Humans.
+Provides: python-requests
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-requests
+[![Kenneth Reitz](https://raw.githubusercontent.com/psf/requests/main/ext/kr.png)](https://kennethreitz.org) [![Python Software Foundation](https://raw.githubusercontent.com/psf/requests/main/ext/psf.png)](https://www.python.org/psf)
+
+%package help
+Summary: Development documents and examples for requests
+Provides: python3-requests-doc
+%description help
+[![Kenneth Reitz](https://raw.githubusercontent.com/psf/requests/main/ext/kr.png)](https://kennethreitz.org) [![Python Software Foundation](https://raw.githubusercontent.com/psf/requests/main/ext/psf.png)](https://www.python.org/psf)
+
+%prep
+%autosetup -n requests-2.28.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-requests -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.28.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..0bf3821
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+09b752e0b0a672d805ae54455c128d42 requests-2.28.2.tar.gz