diff --git a/oauthlib-3.2.0.tar.gz b/oauthlib-3.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0c3e3dcb55ead996fdf43ef31097e67662a41b74 Binary files /dev/null and b/oauthlib-3.2.0.tar.gz differ diff --git a/python-oauthlib.spec b/python-oauthlib.spec new file mode 100644 index 0000000000000000000000000000000000000000..6a157e0d77c975d467a10b4a23f9b381ae8f1c1c --- /dev/null +++ b/python-oauthlib.spec @@ -0,0 +1,79 @@ +%define anolis_release 1 +%global modname oauthlib + +Name: python-oauthlib +Version: 3.2.0 +Release: %{anolis_release}%{dist} +Summary: An implementation of the OAuth request-signing logic + +License: BSD +URL: https://github.com/oauthlib/oauthlib + +Source0: %{modname}-%{version}.tar.gz + +BuildArch: noarch + +%description +OAuthLib is a generic utility which implements the logic of OAuth without +assuming a specific HTTP request object or web framework. Use it to graft +OAuth client support onto your favorite HTTP library, or provider 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: An implementation of the OAuth request-signing logic +%{?python_provide:%python_provide python3-oauthlib} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +BuildRequires: python3-nose +BuildRequires: python3-mock +BuildRequires: python3-blinker + +BuildRequires: python3-jwt >= 1.6.0 +BuildRequires: python3-cryptography >= 1.4.0 + +%{?python_extras_subpkg:Recommends: python3-oauthlib+signedtoken} +%{!?python_extras_subpkg:Requires: python3-jwt >= 1.6.0} +%{!?python_extras_subpkg:Requires: python3-cryptography >= 1.4.0} + +%description -n python3-oauthlib +OAuthLib is a generic utility which implements the logic of OAuth without +assuming a specific HTTP request object or web framework. Use it to graft +OAuth client support onto your favorite HTTP library, or provider 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. + +%{?python_extras_subpkg:%python_extras_subpkg -n python3-oauthlib -i %{python3_sitelib}/%{modname}-%{version}-*.egg-info signedtoken} + +%prep +%setup -q -n %{modname}-%{version} + +# python-unittest2 is now provided by "python" package and python-unittest is retired +# adapt setup.py to reflect this fact downstream +sed -i "s/'unittest2', //" setup.py + +# Remove bundled egg-info in case it exists +rm -rf %{modname}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-oauthlib +%doc README.rst +%license LICENSE +%{python3_sitelib}/%{modname}/ +%{python3_sitelib}/%{modname}-%{version}-* + +%changelog +* Tue Apr 19 2022 Zhongling He 3.2.0-1 +- Init package from upstream v3.2.0