diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:17:23 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:17:23 +0000 |
commit | 3dff766768b24330101e13515e1f30fa1c60ac87 (patch) | |
tree | a9a2b8358dbfd9c8d5bd5270dedd22ddcb26413e /python-oauthlib.spec | |
parent | 88665ad45c98cdf52e2b29f42457c3aa5d087b00 (diff) |
automatic import of python-oauthlib
Diffstat (limited to 'python-oauthlib.spec')
-rw-r--r-- | python-oauthlib.spec | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/python-oauthlib.spec b/python-oauthlib.spec new file mode 100644 index 0000000..405b162 --- /dev/null +++ b/python-oauthlib.spec @@ -0,0 +1,112 @@ +%global _empty_manifest_terminate_build 0 +Name: python-oauthlib +Version: 3.2.2 +Release: 1 +Summary: A generic, spec-compliant, thorough implementation of the OAuth request-signing logic +License: BSD +URL: https://github.com/oauthlib/oauthlib +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6d/fa/fbf4001037904031639e6bfbfc02badfc7e12f137a8afa254df6c4c8a670/oauthlib-3.2.2.tar.gz +BuildArch: noarch + +Requires: python3-cryptography +Requires: python3-blinker +Requires: python3-cryptography +Requires: python3-pyjwt + +%description +*A generic, spec-compliant, thorough implementation of the OAuth request-signing +logic for Python 3.6+.* +OAuth often seems complicated and difficult-to-implement. There are several +prominent libraries for handling OAuth requests, but they all suffer from one or +both of the following: +1. They predate the `OAuth 1.0 spec`_, AKA RFC 5849. +2. They predate the `OAuth 2.0 spec`_, AKA RFC 6749. +3. They assume the usage of a specific HTTP request library. +OAuthLib is a framework which implements the logic of OAuth1 or OAuth2 without +assuming a specific HTTP request object or web framework. Use it to graft OAuth +client support onto your favorite HTTP library, or provide support onto your +favourite web framework. If you're a maintainer of such a library, write a thin +veneer on top of OAuthLib and get OAuth support for very little effort. + +%package -n python3-oauthlib +Summary: A generic, spec-compliant, thorough implementation of the OAuth request-signing logic +Provides: python-oauthlib +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-oauthlib +*A generic, spec-compliant, thorough implementation of the OAuth request-signing +logic for Python 3.6+.* +OAuth often seems complicated and difficult-to-implement. There are several +prominent libraries for handling OAuth requests, but they all suffer from one or +both of the following: +1. They predate the `OAuth 1.0 spec`_, AKA RFC 5849. +2. They predate the `OAuth 2.0 spec`_, AKA RFC 6749. +3. They assume the usage of a specific HTTP request library. +OAuthLib is a framework which implements the logic of OAuth1 or OAuth2 without +assuming a specific HTTP request object or web framework. Use it to graft OAuth +client support onto your favorite HTTP library, or provide support onto your +favourite web framework. If you're a maintainer of such a library, write a thin +veneer on top of OAuthLib and get OAuth support for very little effort. + +%package help +Summary: Development documents and examples for oauthlib +Provides: python3-oauthlib-doc +%description help +*A generic, spec-compliant, thorough implementation of the OAuth request-signing +logic for Python 3.6+.* +OAuth often seems complicated and difficult-to-implement. There are several +prominent libraries for handling OAuth requests, but they all suffer from one or +both of the following: +1. They predate the `OAuth 1.0 spec`_, AKA RFC 5849. +2. They predate the `OAuth 2.0 spec`_, AKA RFC 6749. +3. They assume the usage of a specific HTTP request library. +OAuthLib is a framework which implements the logic of OAuth1 or OAuth2 without +assuming a specific HTTP request object or web framework. Use it to graft OAuth +client support onto your favorite HTTP library, or provide support onto your +favourite web framework. If you're a maintainer of such a library, write a thin +veneer on top of OAuthLib and get OAuth support for very little effort. + +%prep +%autosetup -n oauthlib-3.2.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-oauthlib -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.2.2-1 +- Package Spec generated |