diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:24:34 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:24:34 +0000 |
commit | 7a0e9b45c06e903d53aead9545e753a00b5334e6 (patch) | |
tree | e88e1a13e5137c7b23374a475eb296688bd18377 | |
parent | 58eaeb254fb3381d0ab93376c28c2c2781c43893 (diff) |
automatic import of python-requests-kerberos
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-requests-kerberos.spec | 93 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 95 insertions, 0 deletions
@@ -0,0 +1 @@ +/requests-kerberos-0.14.0.tar.gz diff --git a/python-requests-kerberos.spec b/python-requests-kerberos.spec new file mode 100644 index 0000000..cede5b8 --- /dev/null +++ b/python-requests-kerberos.spec @@ -0,0 +1,93 @@ +%global _empty_manifest_terminate_build 0 +Name: python-requests-kerberos +Version: 0.14.0 +Release: 1 +Summary: A Kerberos authentication handler for python-requests +License: ISC License +URL: https://github.com/requests/requests-kerberos +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3d/ca/cad727db9eaae0db743982a8197c8a58cc85ed142354abfade1567ede9dc/requests-kerberos-0.14.0.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-cryptography +Requires: python3-pyspnego[kerberos] + +%description +Requests is an HTTP library, written in Python, for human beings. This library +adds optional Kerberos/GSSAPI authentication support and supports mutual +authentication. Basic GET usage: + >>> import requests + >>> from requests_kerberos import HTTPKerberosAuth + >>> r = requests.get("http://example.org", auth=HTTPKerberosAuth()) +The entire ``requests.api`` should be supported. + +%package -n python3-requests-kerberos +Summary: A Kerberos authentication handler for python-requests +Provides: python-requests-kerberos +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-requests-kerberos +Requests is an HTTP library, written in Python, for human beings. This library +adds optional Kerberos/GSSAPI authentication support and supports mutual +authentication. Basic GET usage: + >>> import requests + >>> from requests_kerberos import HTTPKerberosAuth + >>> r = requests.get("http://example.org", auth=HTTPKerberosAuth()) +The entire ``requests.api`` should be supported. + +%package help +Summary: Development documents and examples for requests-kerberos +Provides: python3-requests-kerberos-doc +%description help +Requests is an HTTP library, written in Python, for human beings. This library +adds optional Kerberos/GSSAPI authentication support and supports mutual +authentication. Basic GET usage: + >>> import requests + >>> from requests_kerberos import HTTPKerberosAuth + >>> r = requests.get("http://example.org", auth=HTTPKerberosAuth()) +The entire ``requests.api`` should be supported. + +%prep +%autosetup -n requests-kerberos-0.14.0 + +%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-kerberos -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.14.0-1 +- Package Spec generated @@ -0,0 +1 @@ +5b86e5b7496c5a9571614a27b7a16e0c requests-kerberos-0.14.0.tar.gz |